Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The IP PBX register method that the embodiment of the invention provides referring to Fig. 2, comprising:
S201: the network equipment sends logon message according to preset strategy to a SBC.
S203: when the network equipment detects a SBC fault or message when unreachable, then send logon message according to preset strategy to the 2nd SBC.
The register method of the IP PBX that the embodiment of the invention provides, network equipment Agent IP PBX registers to a SBC, the network equipment if detect a SBC fault or message unreachable, then automaticallying switch sends logon message to the 2nd SBC and registers.When having solved SBC and can not register, need insert IMS again by another SBC by manual configuration, thereby cause the user to interrupt using professional problem.Realized the automatic switchover when SBC breaks down, and IP PBX is not switched process influence, the user can normally use business.
The IP PBX register method that another embodiment of the present invention provides, referring to Fig. 3, with enterprise's egress router as the network equipment (Customer Premise Equipment, be called for short CPE) for example describes, but the embodiment of the invention is not made restriction to the network equipment.With reference to Fig. 6 and IP telephony system shown in Figure 7, as shown in Figure 3, described IP PBX register method comprises:
S301: in CPE40, preestablish preset strategy;
Exemplary, this preset strategy can send logon message to SBC from high to low for according to the priority of each SBC, the weight of SBC or priority and the weight of SBC; This preset strategy also can be for giving each SBC definition different identification, and such as digital number or other sequence numbers or other sign that can distinguish, the numeric order according to sign sends logon message to SBC then.
Present embodiment is not made restriction to the setting of preset strategy, and still, the disclosed first kind of preset strategy of present embodiment is stable and reliability is relatively good and it is all fairly simple to arrange and operate, and is preferred scheme.
Concrete, the priority of the priority of each SBC, the weight of SBC or SBC and weight can be obtained by following method: at CPE40 configuration IMS domain name system (Domain Name System, be called for short DNS), inquire about each IMS domain name according to DNS, and obtain SBC bunch of address, be the address of each SBC of each IMS domain name correspondence, record priority and/or the weight that SRV inquires about each SBC according to the domain name system DNS Service Source.
S302:CPE40 sends logon message according to preset strategy to a SBC501.
Exemplary, can be by configuration of IP PBX on CPE40, CPE40 directly sends logon message to a SBC501 according to preset strategy then, also can receive by CPE40 and send logon message to a SBC501 again behind the log-on message that IP PBX70 sends and realize, and CPE40 both can act on behalf of the IP PBX70 with registering functional and send logon message to SBC, also can act on behalf of the IP PBX70 with registering functional and send logon message to SBC.
Sending logon message to a SBC501 again behind the log-on message with CPE40 reception IP PBX70 transmission below is that example describes, but present embodiment does not limit this.
CPE40 receives the log-on message that IP PBX70 sends,
The log-on message that the IP PBX70 of CPE40 sends is analyzed, and has or not registering functional to judge this IP PBX70, if determine that according to log-on message IP PBX70 does not possess registering functional, then sends logon message according to preset strategy to SBC501 (SBC).
If CPE40 determines that according to log-on message IP PBX70 possesses registering functional, then shield the log-on message that this IP PBX70 sends, send logon message according to preset strategy to SBC501 (SBC).
Perhaps, if CPE40 determines that according to log-on message IP PBX70 possesses registering functional, and determine domain name of log-on message appointment that this IP PBX70 sends, namely this IP PBX70 can work with at least two SBC, then transmits this log-on message according to preset strategy to SBC501 (SBC).
Exemplary, CPE40 shields the log-on message that this IP PBX70 sends, and sends logon message according to preset strategy to SBC501 (SBC) and can comprise following two kinds of schemes:
CPE40 closes the registering functional of this IP PBX70, sends logon message according to preset strategy to SBC501 (SBC);
Perhaps, CPE40 abandons the log-on message that this IP PBX sends, and sends logon message according to preset strategy to SBC501 (SBC).
First kind of scheme the best in above-mentioned two kinds of schemes uses most convenient also the most reliable, no matter and IP PBX70 whether registering functional is arranged, all can adopt this method.Certainly, the judgement of above-mentioned registering functional to IP PBX70 also can be finished by operating personnel, closes the registering functional of IP PBX70 then in advance, directly sends logon message to SBC501 (SBC) by CPE40 again.
The above-mentioned configuration of IP PBX70 on CPE40 that can be equally applicable in steps, CPE40 directly sends the situation of logon message to SBC501 (SBC) according to preset strategy then, and, in this case, no matter IP PBX70 has or not registering functional, CPE40 can receive that IP PBX70 sends log-on message, directly send logon message according to preset strategy to SBC501 (SBC).
S303:CPE40 receives the registration response message that a SBC501 sends;
Exemplary, CPE40 constantly sends logon message to SBC501 (SBC) with Fixed Time Interval, SBC501 (SBC) is if succeed in registration after receiving logon message then timely registration response message from this logon message to CPE40 that return, CPE40 receives the registration response message of this logon message of SBC501 (SBC) transmission, determines that then this logon message succeeds in registration.
S304: if CPE40 does not receive the registration response message at the appointed time, then CPE40 determines that a SBC501 fault or message are unreachable;
Exemplary, if do not receive the registration response message of this logon message of SBC501 (SBC) transmission behind logon message of CPE40 transmission at the appointed time, then determine SBC501 (SBC) fault or message unreachable (and the link failure between the SBC501).The described stipulated time can be set as required, and present embodiment does not limit this.
S306:CPE40 sends this logon message according to described preset strategy to SBC502 (the 2nd SBC).
Exemplary, if CPE40 determines that according to sending the registration response message that does not receive this logon message that SBC501 (SBC) sends behind the logon message at the appointed time SBC501 (SBC) fault or message are unreachable, then CPE40 sends this logon message according to preset strategy to SBC502 (the 2nd SBC).The unreachable link failure that can represent between CPE40 and the SBC501 of described message.
Identical reason, if CPE40 determines SBC502 (the 2nd SBC) fault or message unreachable (and the link failure between the SBC502) according to sending the registration response message that does not receive this logon message that SBC502 (the 2nd SBC) sends behind the logon message at the appointed time, then CPE40 sends logon message according to the next SBC of preset strategy in the trend ordering, till finishing registration.Can be implemented in SBC like this breaks down and can't finish registration and the time automatically switch to other SBC, guarantee user's normal business of using in the process of switching, the reliability and stability of user's side IP PBX70 have been improved, solved and relied on SBC when registration in the prior art fully, need switch the defective of the service disconnection that SBC causes manually when SBC breaks down.
Referring to Fig. 4, the embodiment of the invention provides a kind of network equipment 40, comprises registering unit 401 and switch unit 402, is used for realizing said method embodiment.Wherein:
Described registering unit 401 is used for sending logon message according to preset strategy to a SBC;
Exemplary, this preset strategy can be for according to the priority of each SBC, the weight of SBC or priority and the weight of SBC, send logon message to SBC from high to low, also can be for giving each SBC definition different identification, such as digital number or other sequence numbers or other sign that can distinguish, the numeric order according to sign sends logon message to SBC then.Present embodiment is not made restriction to the setting of preset strategy.
Described switch unit 402 is used for when detecting a SBC fault or message when unreachable, according to described preset strategy to the 2nd SBC transmission logon message.
Further, as shown in Figure 5, this network equipment 40 also comprises:
Acquiring unit 403 is used for configuration DNS, inquires about each IMS domain name according to DNS, and obtains the address of each SBC of each IMS domain name correspondence, obtains the priority of each SBC, the weight of each SBC, priority and the weight of SBC according to DNS SRV.
Log-on message receiving element 404 is used for receiving the log-on message that IP PBX sends;
First analytic unit 405, the log-on message that the IPPBX that is used for receiving according to log-on message receiving element 401 sends determines whether this IP PBX possesses registering functional;
Screen unit 406 is used for if first analytic unit 405 determines that these IP PBX possess registering functional, then shields the log-on message that this IP PBX that log-on message receiving element 401 receives sends;
Second analytic unit 407, the log-on message that the IPPBX that is used for receiving according to log-on message receiving element 401 sends determines whether the log-on message that this IP PBX sends specifies a domain name.
Described switch unit 402 comprises:
Detect judge module 4021, be used for receiving the registration response message that a SBC sends; If do not receive the registration response message that a SBC sends at the appointed time, determine that then a SBC fault or message are unreachable.
Switch sending module 4022, be used for then sending logon message according to described preset strategy to the 2nd SBC if detection judge module 4021 definite SBC faults or message are unreachable.
The network equipment 40 that present embodiment provides, registering unit 401 sends logon message according to preset strategy to a SBC, if switch unit 403 detects a SBC fault or message is unreachable, then the network equipment 40 sends this logon message from trend the 2nd SBC, so just realized the automatic switchover between the SBC, and IP PBX is not switched process influence, and the user can normally use business.Solved IP PBX and placed one's entire reliance upon SBC when inserting IMS, if SBC breaks down, original IP PBX need insert IMS again by manual configuration, thereby causes the user to interrupt using professional problem.
The embodiment of the invention provides a kind of IP PBX Accreditation System, referring to Fig. 6, comprises,
The network equipment 40: be used for sending logon message according to preset strategy to SBC501 (SBC); When the network equipment 40 detects SBC501 (SBC) fault or message when unreachable, then send described logon message according to preset strategy to SBC502 (the 2nd SBC).
At least two SBC50 that are connected with the network equipment 40: be used for receiving the logon message that the network equipment 40 sends, send the registration response message.
Further, referring to Fig. 7, this system can also comprise,
At least one the IP PBX70 that is connected with the network equipment 40 is used for sending log-on message to the network equipment 40.
The IP PBX Accreditation System that present embodiment provides, the logon message that the network equipment 40 sends to SBC501 (SBC) SBC according to preset strategy, if SBC501 (SBC) SBC fault or unreachable, the network equipment 40 sends logon message from trend SBC502 (the 2nd SBC) the 2nd SBC, so just realized the automatic switchover between the SBC, and the IPPBX70 that is acted on behalf of is not switched process influence, and the user can normally use business.Solved IP PBX70 and placed one's entire reliance upon SBC when inserting IMS60, if SBC breaks down, original IP PBX70 need insert IMS60 again by manual configuration, thereby causes the user to interrupt using professional problem.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.