Summary of the invention
The technical problem that the present invention will solve provides in the soft switch redundancy scheme, find fast with correct SoftSwitch and gateway in the inconsistent a kind of SoftSwitch backup method consistent that keep of the SOT state of termination with the gateway device SOT state of termination.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: a kind of SoftSwitch backup method consistent with the gateway device SOT state of termination that keep comprises the steps:
A, will be equipped with the limit SoftSwitch and correctly be connected, and start the said limit SoftSwitch that is equipped with, and in being equipped with the limit SoftSwitch, setting up SOT state of termination mapping table with main limit SoftSwitch;
The data handling procedure of B, main limit SoftSwitch:
Main limit SoftSwitch receives the signaling message of self terminal, judges the terminal operate condition according to signaling message:
A, terminal transit to unstable state by idle stable state: said main limit SoftSwitch sends unstable state terminal redundant data to being equipped with the limit SoftSwitch;
B, terminal transit to idle stable state by unstable state: said main limit SoftSwitch sends unstable state terminal redundant data to being equipped with the limit SoftSwitch;
C, terminal transit to busy stable state by unstable state: said main limit SoftSwitch sends stable state call redundancy data to being equipped with the limit SoftSwitch;
D, terminal transit to idle stable state by busy stable state: said main limit SoftSwitch sends stable state call redundancy data to being equipped with the limit SoftSwitch;
Said unstable state terminal data comprises call reference, Termination ID sign and SOT state of termination transition sign, and said stable state call data comprise call reference, Termination ID sign;
Main limit SoftSwitch continues to carry out the above-mentioned B step, and the said limit SoftSwitch that is equipped with is carried out the following C step;
C, the said data handling procedure that is equipped with the limit SoftSwitch:
1) the said limit SoftSwitch that is equipped with is handled the data that the SoftSwitch from main limit receives:
The data that a, said limit SoftSwitch are fully received are the unstable state terminal data; Processing method by: judge according to the transition between states in the data that receive sign whether these data are to transit to unstable state by the terminal from idle condition to be produced; If these data are to transit to unstable state by the terminal by idle condition to produce; The said limit SoftSwitch that is equipped with is that key value identifies relevant mapping relations at said SOT state of termination mapping table foundation and the call reference and Termination ID that is equipped with in the SoftSwitch of limit with the call reference in these data, carries out the following the 2nd) step; Otherwise, be equipped with the limit SoftSwitch and go on foot described processing method according to following b and carry out data processing;
The data that b, said limit SoftSwitch are fully received are the stable state call data; Preserve this data; Processing method is: the said limit SoftSwitch that is equipped with compares the call reference in call reference in the data that receive and the said SOT state of termination mapping table; When having this call reference in the said SOT state of termination mapping table, the corresponding mapping relations of call reference are deleted from said SOT state of termination mapping table therewith, carry out the following the 2nd) step; Otherwise, be equipped with the limit SoftSwitch and directly carry out the following the 2nd) and the step;
2) judge whether the said limit SoftSwitch that is equipped with is switched to main limit SoftSwitch:
When said when being equipped with the limit SoftSwitch and being switched to main limit SoftSwitch; New main limit SoftSwitch after the switching travels through said SOT state of termination mapping table; Detect the Termination ID sign in the said SOT state of termination mapping table; Make terminal initialization according to legal Termination ID identity validation terminal equipment place gateway and to said gateway transmission message, traversal is deleted said SOT state of termination mapping table after finishing; , be equipped with the limit SoftSwitch and continue to carry out the above-mentioned C step when being equipped with the limit SoftSwitch and not being switched to main limit SoftSwitch when said.
Adopt the technological progress that obtains after the technique scheme to be: traditional 1+1 hot backup; Only the stable state call information data is carried out redundancy backup; Can't solve unstable state and call out the inconsistent problem of the SOT state of termination in the SoftSwitch in active and standby handoff procedure, cause and the gateway; This scheme adopts main limit SoftSwitch and is equipped with the mode of redundant unstable state end message between the SoftSwitch of limit, has guaranteed the consistency of the SOT state of termination and the gateway device SOT state of termination in the SoftSwitch, especially when the limit SoftSwitch becomes main limit SoftSwitch fully; Traversal queries to end message; Through sending the initialization signaling to the unstable state terminal, fast and effeciently solve unstable state and called out the inconsistent problem of the SOT state of termination that when SoftSwitch switches, runs into, make the terminal can recover as early as possible to serve.
Embodiment
Arrive flow chart shown in Figure 3 according to Fig. 1 below, and combine the present invention to be elaborated by embodiment shown in Figure 4.
Main limit SoftSwitch be equipped with the limit SoftSwitch and insert IP network, and adopt the 1+1 hot backup redundancy scheme.IP network is inserted through MEGACO comprehensive access gate 1 and SIP comprehensive access gate 2 respectively with terminal 2 in terminal 1.The terminal here is the terminal equipment that satisfies MGCP agreement or megaco protocol, is generally phone equipment, the terminal equipment that perhaps carries for Tandem Gateway.Tandem Gateway can be MGCP IAD or MEGACO Tandem Gateway, can also be the gateway of other types.Main limit SoftSwitch is AcroSwitch 6000 with the model that is equipped with the limit SoftSwitch.
MEGACO comprehensive access gate 1 and SIP comprehensive access gate 2 are after main limit SoftSwitch succeeds in registration, and terminal 1 just can intercom with terminal 2 mutually.
Be that example is elaborated to the present invention with two kinds of different call processes between terminal 1 and the terminal 2 below.
A kind of SoftSwitch backup method consistent with the gateway device SOT state of termination that keep comprises the steps:
S1, will be equipped with the limit SoftSwitch and correctly be connected, and start the said limit SoftSwitch that is equipped with, and in being equipped with the limit SoftSwitch, setting up SOT state of termination mapping table with main limit SoftSwitch;
Call out 1
Terminal 1 off-hook dialing, calling terminal 2, terminal 2 does not respond, and calls out not success, does not get into talking state, then, terminal 1 on-hook, end of calling.In this process, the state variation at terminal 1 is: idle stable state-unstable state-idle stable state, main limit SoftSwitch be equipped with the concrete processing procedure of limit SoftSwitch and be:
The data handling procedure of S2, main limit SoftSwitch:
Terminal 1 off-hook dialing; Send signaling message to main limit SoftSwitch simultaneously; Main limit SoftSwitch receives the signaling message of self terminal 1; Learn that according to this signaling message terminal 1 gets into unstable state by idle stable state, therefore, main limit SoftSwitch sends unstable state terminal redundant data to being equipped with the limit SoftSwitch; Said unstable state terminal redundant data comprises the ID sign at the call reference relevant with terminal 1, terminal 1 and the SOT state of termination transition sign that shows terminal 1 state variation;
Then, main limit SoftSwitch continues to receive the data of self terminal, and sends corresponding data to being equipped with the limit SoftSwitch, and the said limit SoftSwitch that is equipped with is then carried out the following S3 step;
S3, be equipped with the data handling procedure of limit SoftSwitch:
1) the said limit SoftSwitch that is equipped with is handled the data that the SoftSwitch from main limit receives:
After said limit SoftSwitch fully receives that above-mentioned S2 comes the unstable state terminal redundant data of autonomous limit SoftSwitch in the step; Judging terminal 1 based on the sign of the SOT state of termination transition in the data is unstable state from idle stable state transition; Therefore; Be equipped with the limit SoftSwitch and identify relevant mapping relations as key value at SOT state of termination mapping table foundation and call reference and Termination ID, carry out the following the 2nd then with the call reference in this unstable state terminal redundant data) step;
2) judge whether the said limit SoftSwitch that is equipped with is switched to main limit SoftSwitch:
When being equipped with the limit SoftSwitch and being switched to main limit SoftSwitch, new main limit its inner SOT state of termination mapping table of SoftSwitch traversal after the switching detects the Termination ID sign in the said SOT state of termination mapping table one by one when said; Main limit SoftSwitch links to each other with a lot of Tandem Gateways, also can receive the signaling message from different terminals, therefore in SOT state of termination mapping table, can have a lot of terminal information; In ergodic process; Judge at first whether the Termination ID sign is legal,, send message based on this identity validation terminal device place this said gateway of gateway and make terminal initialization for legal Termination ID sign; After traversal finishes, deletion SOT state of termination mapping table; , be equipped with the limit SoftSwitch and continue to carry out the above-mentioned S3 step when being equipped with the limit SoftSwitch and not being switched to main limit SoftSwitch when said, promptly continue to receive the data of autonomous limit SoftSwitch and handle; Because 1 back, terminal also has action, therefore main limit SoftSwitch continues to carry out following step;
The not calling of response terminal 1 of S4, terminal 2, terminal 1 on-hook end call, signaling message is sent to main limit SoftSwitch in terminal 1, and like this, main limit SoftSwitch continues to carry out the data handling procedure that promptly gets into main limit SoftSwitch according to above-mentioned S2 step content:
Main limit SoftSwitch receives the signaling message of self terminal 1, learns that according to signaling message terminal 1 gets into idle stable state by unstable state, and main limit SoftSwitch sends unstable state terminal redundant data to being equipped with the limit SoftSwitch; The unstable state terminal redundant data of this moment is identical with Termination ID sign content with call reference in the above-mentioned S2 unstable state terminal redundant data in the step, but SOT state of termination transition identifies the content difference; Then, main limit SoftSwitch continues to receive the data of self terminal, and sends data to being equipped with the limit SoftSwitch, carries out following step and be equipped with the limit SoftSwitch;
S5, be equipped with the data handling procedure of limit SoftSwitch:
1) the said limit SoftSwitch that is equipped with is handled the data that the SoftSwitch from main limit receives:
After the limit SoftSwitch receives that above-mentioned S4 comes the above-mentioned unstable state terminal redundant data of autonomous limit SoftSwitch in the step fully; Judging terminal 1 according to the sign of the SOT state of termination transition in the data is idle stable state from the unstable state transition; Therefore; Being equipped with the limit SoftSwitch compares the call reference in this unstable state terminal redundant data with the call reference in the said SOT state of termination mapping table; Because the above-mentioned S3 step the 1st) deposit this call reference in SOT state of termination mapping table as key value in the step, so can find there has been this call reference in the SOT state of termination mapping table relatively, in view of the above; Be equipped with the limit SoftSwitch with the corresponding mapping relations deletion of call reference therewith in the SOT state of termination mapping table, carry out above-mentioned S3 the 2nd in step then) step; If there is not the identical call reference of call reference of data therewith in the SOT state of termination mapping table, be equipped with the limit SoftSwitch so and do not do any operation, directly carry out above-mentioned S3 the 2nd in step) step.
So far, calling out 1 finishes.If terminal 1 firm off-hook; Main limit SoftSwitch just breaks down and is equipped with the limit SoftSwitch and replaces; The mapping that is equipped with relevant terminal 1 in the SOT state of termination mapping table in the SoftSwitch of limit so this moment shows that the terminal also is in unstable state 1 this moment, so just can guarantee that SoftSwitch is inner consistent with the information of the SOT state of termination in the gateway device.
Call out 2
Terminal 1 off-hook dialing, calling terminal 2, the calling of terminal 2 response terminals 1 gets into talking state, behind the end of conversation, terminal 1 on-hook.The state variation at terminal 1 is in this process: idle stable state-unstable state-stable state-idle stable state, because of the transition between states first time at terminal 1 with call out similar in 1, therefore, the forward part of calling out 2 processing procedures is identical with calling 1, other processing procedure should be:
The calling of S4, terminal 2 response terminals 1; Begin conversation between terminal 1 and the terminal 2, signaling message is sent to main limit SoftSwitch in terminal 1, like this; Main limit SoftSwitch continues to carry out the data handling procedure that promptly gets into main limit SoftSwitch according to above-mentioned S2 step content:
Main limit SoftSwitch receives the signaling message of self terminal 1, learns that according to signaling message terminal 1 gets into busy stable state by unstable state, and so, main limit SoftSwitch sends stable state call redundancy data to being equipped with the limit SoftSwitch; Said stable state call data comprise call reference relevant with terminal 1 and Termination ID sign; Also comprise other call informations; Like the hello protocol type, whether be that hair clip connects and calls out information such as time started; The call reference here is identical with Termination ID sign content with the call reference of calling out the unstable state terminal data in 1 with the Termination ID sign, because the both is relevant with terminal 1; Then, main limit SoftSwitch continues to receive the data of self terminal, and sends data to being equipped with the limit SoftSwitch, carries out following step and be equipped with the limit SoftSwitch;
S5, be equipped with the data handling procedure of limit SoftSwitch:
1) the said limit SoftSwitch that is equipped with is handled the data that the SoftSwitch from main limit receives:
After said limit SoftSwitch fully receives that above-mentioned S4 comes the stable state call redundancy data of autonomous limit SoftSwitch in the step; Be equipped with the limit SoftSwitch and preserve the data that receive; And existing call reference in call reference in these data and the SOT state of termination mapping table compared; Because above-mentioned S2 deposits this call reference in SOT state of termination mapping table in the step, then can find there has been this call reference in the SOT state of termination mapping table relatively, in view of the above; With in the SOT state of termination mapping table therewith call reference be equipped with the limit SoftSwitch and carry out above-mentioned S3 the 2nd in step to the deletion of the mapping relations of correspondence) step; Because 1 back, terminal also has action, therefore main limit SoftSwitch continues to carry out following step;
S6, end of conversation; Terminal 1 on-hook; And to main limit SoftSwitch transmission signaling message, main limit SoftSwitch learns that according to this signaling message terminal 1 gets into idle stable state by busy stable state, so; Main limit SoftSwitch sends stable state call redundancy data to being equipped with the limit SoftSwitch, and the call reference of the stable state call redundancy data here is identical with Termination ID sign content with the call reference of above-mentioned S4 stable state call redundancy data in the step with Termination ID sign content; Then, main limit SoftSwitch continues to receive the data of self terminal, and sends data to being equipped with the limit SoftSwitch, is equipped with the limit SoftSwitch and then carries out the following S7 step;
S7, be equipped with the data handling procedure of limit SoftSwitch:
1) the said limit SoftSwitch that is equipped with is handled the data that the SoftSwitch from main limit receives:
After the limit SoftSwitch receives that above-mentioned S6 comes the stable state call redundancy data of autonomous limit SoftSwitch in the step fully; Be equipped with the limit SoftSwitch and preserve the data that receive; And existing call reference in call reference in these data and the SOT state of termination mapping table compared, because therefore above-mentioned S5 corresponding mapping deletion of call reference therewith in the step can't find identical call reference; So; Be equipped with the limit SoftSwitch SOT state of termination mapping table do not done any operation, directly carry out above-mentioned S3 the 2nd in step) step, judge promptly whether be equipped with the limit SoftSwitch is switched to main limit SoftSwitch.
So far; The whole communication process at terminal 1 and terminal 2 finishes whole process, the consistent signaling message of accepting self terminal of main limit SoftSwitch; And send corresponding data to being equipped with the limit SoftSwitch according to this signaling message, be equipped with the data that the limit SoftSwitch is then being handled autonomous limit SoftSwitch always.The information about terminal 1 state is constantly corresponding with the state at terminal 1 in the SoftSwitch of limit fully; Only after 1 off-hook of terminal; That is the terminal is in the state that just can in SOT state of termination mapping table, have terminal 1 astable the time; In addition, no matter which kind of state terminal 1 is in, and the map information at relevant terminal 1 all is empty in the SOT state of termination mapping table.Like this, when the limit SoftSwitch was switched to main limit fully, the information of the relevant SOT state of termination of limit SoftSwitch stored was corresponding one by one with the state at terminal itself fully.
In the practical communication process, various situation are very complicated.When being equipped with the limit SoftSwitch and not receiving unstable state terminal redundant data that main limit sends over or stable state call redundancy data; Will consider whether main limit SoftSwitch is out of joint; At this moment; Be equipped with the limit switch and will cross treatment step, judge directly whether master/slave device switching has taken place the data of coming autonomous limit SoftSwitch.Sometimes be that SoftSwitch notice in main limit is equipped with the limit SoftSwitch and switches, like this, also need cross the treatment step of limit switch fully, directly carry out according to the processing method after switching to the data of coming autonomous limit SoftSwitch.Also have a lot of similarly situation, do not enumerate one by one here, in practical application, handle getting final product according to the core content of this method.
MEGACO comprehensive access gate 1 in the foregoing description and the SIP comprehensive access gate 2, the present invention can also solve SoftSwitch and the consistent problem of the gateway device SOT state of termination in the terminal call process between two MEGACO comprehensive access gates or two MGCP comprehensive access gates or MEGACO comprehensive access gate and the MGCP comprehensive access gate.
Its processing core of this method is:
The terminal takes place to send signaling message to main limit SoftSwitch after the transition between states; Main limit SoftSwitch is judged the transition between states situation at terminal according to the signaling message that receives from the terminal; And send unstable state terminal redundant data or stable state call redundancy data to being equipped with the limit SoftSwitch according to this situation; Be equipped with the limit SoftSwitch and contain the data that the preservation of SOT state of termination mapping table can be represented the SOT state of termination; When be equipped with the limit SoftSwitch receive data be unstable state terminal redundant data and this data be by the terminal when idle condition transits to unstable state and produces; Be equipped with the limit SoftSwitch and just build on this data relevant mapping as key value at SOT state of termination mapping table with the call reference of these data, in addition, the limit SoftSwitch all is that call reference in the data is compared with the call reference in the SOT state of termination mapping table to the processing of other data fully; In case identical content is arranged, just with corresponding mapping deletion in the SOT state of termination mapping table.When active and standby switchings takes place when, be equipped with the limit SoftSwitch based in the SOT state of termination mapping table with terminal content corresponding control terminal state, recover fast to serve to guarantee the terminal.
In sum, more than being merely preferred application example of the present invention, is not to be used to limit protection scope of the present invention.All within spirit of the present invention and principle, any modification of being made, be equal to replacement etc., all should be included within protection scope of the present invention.