Ip voice special line control method and equipment thereof
Technical field
The present invention relates to the calling control technology in VoIP (Voice over Internet Protocol internet voice) field.
Background technology
In the voice communications applications scene of reality, exist the demand of voice special line.For example between emergency scheduling system, the network management center and other concerning security matters or connect the high occasion of reliability requirement etc.
For the environment of non-IP network, the special line that can dispose a physics reaches this purpose, can move as signalings such as PRI on it.Circuit and extraneous physical isolation can be ensured like this, the talkthrough reliability can be guaranteed highly.
Though it is the method for physics special line is fine, when far away, not too practical for a lot of users for distance.In IP network flourishing day by day today, the application demand of setting up the ip voice special line is more and more.It is mutual generally can to carry out call signaling by agreements such as VOIP relevant SIP, H323, MGCP, limits only allowing two callings between the user with control of authority; Can reserve line resource with modes such as resource reservation.
In the standard or data that VOIP is relevant, there is not the clearly record of the control method aspect of ip voice special line at present.So increasing along with the market demand, the control method problem of ip voice special line needs to be resolved hurrily.
Summary of the invention
Technical problem to be solved by this invention is the ip voice special line control appliance that a kind of ip voice special line control method is provided and realizes this method.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be, ip voice special line control method may further comprise the steps:
After caller ip voice special line control appliance detects calling party's off-hook, by searching the number that voice special line group under the calling party is obtained the callee, after callee's ip voice special line control appliance receives calling, detect callee's state, according to the different operation of the different execution of detected callee's state.
Callee's ip voice special line control appliance is according to the different operation of the different execution of detected callee's state, and is specific as follows:
Be in hook state when detecting the callee, callee's ip voice special line control appliance is then initiated ring to the callee;
Be in off hook state when detecting the callee, callee's ip voice special line control appliance then directly is communicated with conversation;
Also initiated calling when detecting the callee to the calling party, callee's ip voice special line control appliance is then according to default priority, remove the calling of the low priority that local terminal initiates or wait for that the opposite end is removed after the low priority call of its initiation and conversation is set up in the opposite end.
An ip voice special line control appliance can be supported a plurality of voice special line groups among the present invention, and can reach the calling party does not need dialing, off-hook only, and the callee is the effect of ring.No matter the callee is in any state, no matter is that the callee is in off hook state (in existing call control method, the callee is in off hook state, promptly return calling party's busy tone, can't be communicated with conversation), or caller, called party's while off hook state, all can guarantee to connect.
Further, ip voice special line control appliance detects local terminal and converses after side's on-hook, detects opposite end correspondent state again; When opposite end correspondent also on-hook, then remove whole calling; When the not on-hook of opposite end correspondent, then only remove the calling of local terminal correspondent.
Another object of the present invention also provides a kind of ip voice special line control appliance, comprises Call Control Block, special line group administration module, collision detection and avoids module;
Call Control Block is used for, detect local terminal calling party off-hook after, by searching the number that special line group administration module obtains the callee, make a call to the callee; After receiving the calling of sending the opposite end, trigger collision detection and avoid module, initiate being communicated with or dismounting of ring, calling with the commands for controlling of avoiding module according to collision detection;
Special line group administration module is used for, and disposes the number and the priority of both call sides in each voice special line group;
Collision detection with avoid module to be used for, receive the calling of sending the opposite end after, detect callee's state, carry out different operations according to callee's state is different.
Further, collision detection with avoid module also to be used for, be in hook state when detecting the callee, the controlling call control module is initiated ring to the callee; Be in off hook state when detecting the callee, the controlling call control module directly is communicated with conversation; Also initiated calling when detecting the callee to the calling party, in special line group administration module, search calling and called both sides' priority, conversation is set up in after the low priority call that its initiation is removed in calling that the priority of controlling call control module dismounting local terminal initiation is low or wait opposite end and opposite end.
Further, collision detection with avoid module also to be used for, in communication process, detect the side's on-hook in the local terminal conversation after, detect opposite end correspondent state again; When opposite end correspondent also on-hook, the controlling call control module is removed whole calling; When not on-hook of the opposing party, then remove the calling of local terminal correspondent.
The invention has the beneficial effects as follows that the calling party's off-hook on special line need not dialing, ip voice special line control appliance can be communicated with conversation, and no matter which kind of state the callee is in, and all can connect conversation, promote the user experience sensation better, be applicable to applied environments such as dispatching patcher, remote network management.
Description of drawings
Fig. 1 is embodiment network implementation figure.
Fig. 2 is ip voice special line control appliance signal of the present invention.
Fig. 3 is that embodiment uses SIP to dispose the sip message interaction flow that sends when conflicting.
Embodiment
As shown in Figure 1, communication terminal A, B belong to a voice special line group, and communication terminal C, D belong to a voice special line group.Communication terminal A, C are connected with communication terminal B, D by IP network respectively.On a cover ip voice special line control appliance, can support a plurality of voice special line groups.The ip voice special line control appliance 1 of IP network one side disposes two voice special line group private-line AB and private-line CD, and the ip voice special line control appliance 2 of IP network opposite side disposes two voice special line group private-line BA and private-line DC.
As shown in Figure 2, ip voice special line control appliance comprises Call Control Block, special line group administration module, collision detection and avoids module.
With AB special line group is example, and the control mode of ip voice special line control appliance is as follows:
1. special line configuration set:
The configuration parameter of the special line group administration module in the ip voice special line control appliance 1:
Private-line AB shows that this is respectively the special line group AB of A, B for both call sides, and disposes number and the priority of A and B;
The configuration parameter of the special line group administration module in the ip voice special line control appliance 2:
Private-line BA shows that this is respectively the special line group BA of A, B for both call sides, and disposes number and the priority of A and B;
2.AB off-hook is straight-through:
During the A off-hook, ip voice special line control appliance 1 obtains the number of callee B according to the configuration of special line group in its special line group administration module, dial without calling party A, Call Control Block directly is initiated to the calling of B, when ip voice special line control appliance 2 is received A to the calling of B, look into the configuration learn that B belongs to special line group BA, collision detection with avoid module to carry out following processing:
1) detect B and be in hook state, then the controlling call control module is initiated ring to B;
2) detect B and be in off hook state, then the controlling call control module is directly connected conversation;
3) detect B and also make a call simultaneously to A, then collision detection with avoid module in special line group administration module, to search calling and called both sides' priority, the controlling call control module is communicated with and converses after removing the calling that the low side of priority initiates.Such as, when ip voice special line control appliance 2 is received the calling of A initiation, check the state of B, if at this moment B has also initiated the calling of A, special line equipment 2 is removed the calling of arriving B that A initiate if B priority is higher than A, and AB is connected.Otherwise ip voice special line control appliance 2 is removed this road calling that B is initiated to A, and AB is connected.As shown in Figure 3, the message flow when using the Session Initiation Protocol Call Collision, wherein solid arrow represents that A is the communication process that the calling party initiates, dotted arrow represents that B is the communication process that the calling party initiates:
Behind the A off-hook, ip voice special line control appliance 1 is to the B request message (Invite) that makes a call, and simultaneously, B is also to the A request message (Invite) that makes a call;
The ip voice special line control appliance 2 at B place is received A after the calling of B, returns Temporary Response message (100trying) to A place ip voice special line control appliance 1; The ip voice special line control appliance 1 at A place is received B after the calling of A, returns Temporary Response message (100trying) to B place ip voice special line control appliance 2;
Ip voice special line control appliance 2 receives that A calls out to B, its collision detection with avoid module to detect B having initiated calling to A, priority according to A is higher than B simultaneously, at first controlling call control module cancellation B calls out to this road that A initiates, the detailed process of Signalling exchange is: ip voice special line control appliance 2 at first sends Cancel message, sends response message 200OK, ip voice special line control appliance 2 by 1 pair of Cancel message of ip voice special line control appliance afterwards and replys the ACK message and finish call tear down; The controlling call control module is linked A to B to this road calling of B then, conversation is just set up successfully like this, the detailed process of Signalling exchange is: ip voice special line control appliance 2 sends ring to B, and send the 180Ringing message of ring between the AB and to the response message 200OK of call request message to ip voice special line equipment 1, ip voice special line equipment 1 sends ACK message to ip voice special line equipment 2, and both sides set up conversation.
Simultaneously, because ip voice special line equipment 1 has also been received the calling of B to A, its collision detection with avoid module to detect A having initiated calling to B, priority according to A is higher than B simultaneously, can wait for the calling of the B of ip voice special line equipment 2 dismounting local terminal low priorities to A in this calling of refusal.
3. side on-hook in conversation is arranged in the both call sides, during as the A on-hook, the collision detection of ip voice special line equipment 1 with avoid module to carry out following processing:
1) it is permanent to detect B, and the controlling call control module is only removed the calling of A, and the calling of B keeps forever up to the B on-hook.
2) detect the B on-hook, the controlling call control module is removed whole calling.