Background technology
Fig. 1 is the IAD MG 10 of communication network in the prior art and the sequence chart of media gateway controller MGC 20 detection on-hooks and off-hook event.
As shown in Figure 1, under ideal environment, need MG 10 after successfully having handled on-hook ON_HOOK incident, on the terminal of activating, to detect off-hook OFF_HOOK incident.With reference to Fig. 1, step S101 user on-hook ON_HOOK incident takes place; Detect this incident at step S102 WMG 10 subsequently, and utilize Notify to order and notify media gateway controller MGC 20 these onhook events (being Notify (ON_HOOK)); Then reply notified through the Reply signaling at step S103 Media Gateway Controller 20; And at step S104, Media Gateway Controller 20 utilizes the Modify order to send to IAD 10 and detects off-hook request command (being Modify (al/of)), detects off-hook OFF_HOOK incident with indication IAD 10; At step S105, IAD 10 is replied through the Reply signaling and is received this order; Like this, off-hook event takes place in S106 user in step, thereby just can detect this incident at step S107 IAD, and notice Media Gateway Controller 20 (being Notify (OFF_HOOK)).
Fig. 2 illustration the finite state machine of destination node in the prior art.Destination node is a logic entity on the IAD 10, and it is initiated and/or receiving media flows and/or the medium control flows is as shown in Figure 2, and the destination node among the MG 10 has three kinds of states: be in state in the service (IS), withdraw from service state (OS) and busy condition (B).When IAD 10 detects off-hook event OFF_HOOK, and this moment, this destination node was in the IS state, and then this destination node gets into the B state from the IS state; And detect on-hook (ON_HOOK) incident when IAD 10, this destination node then from B state transition to the IS state.When user or Media Gateway Controller 20 locked (Lock) or hardware fault alarm (Alarm), the service condition of this destination node can be moved to OS from IS, thereby withdraws from service; On the other hand, through release (Unlock), this destination node can get into the IS state.
In the prior art; Usually using agreement H.248 controls the carrying of media device and connects behavior; And H.248 message is often being transmitted on the internet through UDP (UDP) agreement, because UDP can only provide insecure service, message might be lost in transport process.Therefore, H.248 adopting " three-way handshake " mechanism to guarantee the correct handling of message in the agreement.Yet internet status has complexity, and it is not very reliable sometimes.On the other hand, also possibly there is defective in MGC 20.It is unusual that all these problems possibly cause the operation of 10 pairs of destination nodes of MG to occur, and carries out the off-hook detection to destination node thereby influence it.
Fig. 3 is the sequence chart that the MG 10 under the abnormality of the prior art detects off-hook event.As shown in Figure 3, similar with step S101, S102 and S103 among Fig. 1, onhook event takes place in S101 user in step; Detect this incident at step S102 IAD 10 subsequently, and utilize Notify to order and notify media gateway controller MGC 20; Then reply notified through the Reply signaling at step S103 Media Gateway Controller 20.Yet; Under abnormality; Transmit off-hook detection request from Media Gateway Controller 20 unreliablely; Perhaps, possibly cause in step S104 ' IAD side and lose this off-hook detection request, thereby cannot carry out detection the off-hook event of destination node in the IAD side owing to the mistake of Media Gateway Controller.
As shown in Figure 3; User's off-hook event takes place at step S106 '; Yet, therefore can only be dropped at the off hook signal of IAD 10 sides from this terminal owing to do not receive the indication (being Modify (al/of)) of the detection off-hook event of 20 pairs of IADs 10 of Media Gateway Controller.Like this, in abnormality, when losing off-hook detection request (being Modify (al/of)), if there is not the method for protection to exist, can not work in the terminal of then activating again.
Existing solution be when the user when the report of the call center of telecommunications company goes wrong, restart operation to the destination node of IAD.Not enough below this scheme exists:
1) not from recovery scheme;
2) can not go too slowly to pinpoint the problems;
3) time loss and manpower consumption;
4) will cause more discontented to telecommunications company from the user.
Therefore, need a kind of method to strengthen the robustness of the communication network of complicacy with different MGC.
Summary of the invention
According to a first aspect of the invention, a kind of control method to the service of destination node that restarts that is used for IAD is provided, comprises:
If handling onhook event in the scheduled time afterwards; Do not receive off-hook detection request in the IAD side from Media Gateway Controller, then the said Media Gateway Controller of said IAD side direction send change service signaling to restart service to destination node; And
In the IAD side, receive from said Media Gateway Controller, restart service in response to the off-hook detection request of the signaling of said change service with execution to said destination node.
According to a further aspect in the invention, a kind of control device to the service of destination node that restarts that is used for IAD is provided, comprises:
Dispensing device; Handling onhook event in the scheduled time afterwards if be configured to; Do not receive off-hook detection request in the IAD side from Media Gateway Controller, then to said Media Gateway Controller send change service signaling to restart service to destination node; And
Receiving system, be configured to receive from said Media Gateway Controller, restart service in response to the off-hook detection request of the signaling of said change service with execution to said destination node.
Advantageously, said control device also comprises behavior control device, is configured to:
If after handling onhook event, do not receive off-hook detection request, then the service condition of said destination node changed into the wait test request state from busy condition from said Media Gateway Controller in said IAD side; And
If in the said scheduled time, still do not receive the off-hook detection request from said Media Gateway Controller in said IAD side, then the service condition of said destination node is set to recover and wait for test request state from waiting for test request state.
Embodiment
Below, in conjunction with accompanying drawing embodiments of the invention are described in detail.
In an embodiment of the present invention, the control method that is used for the service of restarting of IAD comprises:
If handling in the on-hook ON_HOOK incident scheduled time afterwards; Do not receive from the off-hook OFF_HOOK of Media Gateway Controller in the IAD side and to detect request (for example Modify (al/of)), then this Media Gateway Controller of this IAD side direction send change service signaling to restart service to destination node; And
In this IAD side, the off-hook detection request that receives from signaling this Media Gateway Controller, that serve in response to this changes restarts the service to this destination node with execution.
Fig. 4 is the sequence chart that the media device of method according to an embodiment of the invention detects on-hook and off-hook event.As shown in Figure 4, at step S401, IAD MG 30 detects the onhook event from the user; So at step S402, it reports this incident to give media gateway controller MGC 20 through the Notify signaling.
In an embodiment of the present invention, preferably use H.248 agreement, yet other agreement also can be selected MGCP (SGCP) agreement for example.
With identical in the prior art, at step S403, MGC 20 replys (Reply) to this order.Equally; The abnormality that causes when the defective that has occurred owing to media gateway controller MGC or network; Cause when step S404 IAD 30 is lost the order from the detection off-hook detection of Media Gateway Controller 20; In an embodiment of the present invention, come in time to handle this abnormality through on IAD 30, adopting, thereby recover operation destination node from Restoration Mechanism.For example, can in IAD MG 30, timer be set.After handling on-hook (ON_HOOK) incident, surpassing the scheduled time does not receive the off-hook detection request (step S405) from media gateway controller MGC 20, and IAD 30 can send to Media Gateway Controller 20 at step S406 and change the signaling of serving to restart the service (for example ServiceChange (Restart) signaling) to this destination node.
In an embodiment of the present invention, the scheduled time of timer is worth relevant with the state and the Media Gateway Controller of communication network.Particularly, it can be confirmed according to the time interval of Media Gateway Controller 20 transmission on-hooks answer signalings and off-hook detection request.To those skilled in the art, also can be suitable for the algorithm that other can confirm timer value, for example confirm according to the re-transmission timing algorithm of TCP/IP.In an embodiment of the present invention, the value scope of this timer can be from several milliseconds to tens seconds.
Media Gateway Controller 20 is replied (step S407) to this, and response therewith, resends the off-hook detection request (step S408) of request detection off-hook event to MG30.Thereby, in the IAD side, can receive off-hook detection request again, and this is replied (step S409) from Media Gateway Controller 20.Like this, IAD can realize restarting the service to this destination node.When off-hook event took place the user, IAD 30 just can carry out the detection (step S410) to this incident and report MGC 20 (step S411).
Fig. 5 illustration the finite state machine of the destination node of IAD 30 according to an embodiment of the invention.As shown in Figure 5, in an embodiment of the present invention, this destination node can have five kinds of states: be in state in the service (IS), withdraw from service state (OS), busy condition (B), wait for detected state (WDR) and recover and wait detected state (RWDR).When IAD 30 detects onhook event, and receive off-hook detection request, then the state of its destination node can be set to IS from B; And if do not detect off-hook detection request, then the state of its destination node can be set to WDR from the B state.Between IS, OS and B state, carry out and the similar state transition of prior art, please refer to aforementioned content, repeat no more at this.
As shown in Figure 5; In an embodiment of the present invention; If the off-hook (OFF_HOOK) that IAD 30 does not receive from Media Gateway Controller 20 after handling onhook event detects request (for example Modify (al/of)), then the destination node of said IAD is moved to the WDR state from busy condition.At this state, circuit will be waited for the message of Media Gateway Controller.
When the value that exceeds timer, promptly scheduled time IAD 30 does not still receive the off-hook detection request from Media Gateway Controller 20, and this destination node is in the WDR state at this moment, and then this destination node can be with its state transition to the RWDR state.
In an embodiment of the present invention; Change into RWDR state (this RWDR state is an abnormality) in response to state from the WDR state; The function of destination node in this state is not normal (reason code is 900), and IAD 30 can send the signaling that changes service to Media Gateway Controller 20 and restart the service to this destination node with notice MGC 20.
In an embodiment of the present invention, can send ServiceChange (Restart)=900 (service is resumed) order with the service of restarting to MGC.
In an embodiment of the present invention; If exceed the scheduled time of timer; IAD 30 does not receive the off-hook detection request from Media Gateway Controller 20, and this moment, destination node was in the RWDR state, and then the service condition of this destination node can be changed into the OS state.
In an embodiment of the present invention, if IAD 30 receives the off-hook detection request from Media Gateway Controller 20 in the scheduled time of timer, and this moment, this destination node was in the RWDR state, and then the service condition of this destination node can be changed into the IS state.
In an embodiment of the present invention, if IAD 30 receives the off-hook detection request from Media Gateway Controller 20 in the scheduled time of timer, and this moment, this destination node was in the WDR state, then its state was changed into the IS state.
In an embodiment of the present invention, if be in WDR state or the RWDR state and the OFF_HOOK incident occurs, MG 30 can rank this incident under the situation of off-hook detection request receiving; If do not receive off-hook detection request, then abandon this off-hook event.
Under same inventive concept, Fig. 6 schematically shows the block diagram to the control device of the service of destination node that restarts that is used for IAD according to an embodiment of the invention.In the present embodiment, identical with previous embodiment principle part will suitably be omitted its explanation.Below in conjunction with accompanying drawing, present embodiment is carried out detailed description.
Control device 40 comprises dispensing device 41, receiving system 42 and behavior control device 43.If dispensing device 41 is configured to handling on-hook (ON_HOOK) incident in the scheduled time afterwards; Do not receive from the off-hook OFF_HOOK of media gateway controller MGC 20 in IAD MG 30 sides and to detect request (for example Modify (al/of)), then to Media Gateway Controller 20 send change service signaling to restart service to destination node.
Receiving system 42 be configured to receive from said Media Gateway Controller 20, restart service in response to this off-hook detection request of the signaling of said change service with execution.
Behavior control device 43 is configured to carry out the setting to the state of the destination node of IAD 30; For example; If the off-hook (OFF_HOOK) that IAD 30 does not receive from Media Gateway Controller 20 after handling onhook event detects request, the state that then behavior control device 43 can this destination node is set to the WDR state from busy condition.
If IAD 30 does not still receive the off-hook detection request from Media Gateway Controller 20 in the scheduled time of timer, the state that then behavior control device 43 can this destination node is set to the RWDR state from the WDR state.
In an embodiment of the present invention, move to RWDR from WDR in response to the state of this destination node, then control dispensing device 41 can to Media Gateway Controller 20 send change service signaling to restart service to this destination node.
In an embodiment of the present invention; If IAD 30 does not receive the off-hook detection request from Media Gateway Controller 20 in the scheduled time of timer; And this moment, this IAD 30 was in the RWDR state, and the state that then behavior control device 43 can this destination node is set to OS.
In an embodiment of the present invention; If IAD 30 receives the off-hook detection request from Media Gateway Controller 20 in the scheduled time of timer; And this moment, this IAD 30 was in the RWDR state, and the state that then behavior control device 43 can this destination node is set to the IS state.
In an embodiment of the present invention; If IAD 30 receives the off-hook detection request from Media Gateway Controller 20 in the scheduled time of timer; And this moment, this destination node was in the WDR state, and then behavior control device 43 can be set to the IS state by this destination node.
In an embodiment of the present invention, control device 40 is configured to use H.248 agreement.
In an embodiment of the present invention, control device 40 realizes being used for according to an embodiment of the invention the control method to the service of destination node that restarts of IAD in operation.
Those having ordinary skill in the art will appreciate that can use a computer executable instruction and/or be included in the processor control routine of above-mentioned method and apparatus realizes, for example provides such code on such as the mounting medium of disk, CD or DVD-ROM, such as the programmable memory of read-only memory (firmware) or the data medium such as optics or electronic signal carrier.The control device of present embodiment and assembly thereof can by such as very lagre scale integrated circuit (VLSIC) or gate array, such as the semiconductor of logic chip, transistor etc., or realize such as the hardware circuit of the programmable hardware device of field programmable gate array, programmable logic device etc.; Also can use the software of carrying out by various types of processors to realize, also can by the combination of above-mentioned hardware circuit and software for example firmware realize.
Through control method and the control device that restart among the embodiment of the present invention embodiment to the service of destination node; IAD can carry out fault detect and carry out the automatic recovery to the service of destination node in abnormality; Thereby improve the robustness of IAD, signaling helps interconnecting of equipment to avoid defining privately owned signaling thereby used H.248 in an embodiment of the present invention.
Though above combination specific embodiment is described in detail the control method and the control device of the service of destination node restarting of IAD of the present invention; But the present invention is not limited to this, and those of ordinary skills can understand and can carry out multiple conversion, replacement and modification and without departing from the spirit and scope of the present invention to the present invention; Protection scope of the present invention is limited accompanying claims.