Summary of the invention
Purpose of the present invention be exactly can be provided at can support in the soft exchanging communication network multiple user terminal, based on call switching business Session Initiation Protocol, under the ringing condition.
At first aspect of the problems referred to above, the invention provides a kind of method that in soft exchanging communication network, realizes calling out switching, wherein, set up conversation between a calling terminal and one first terminal called, described method comprises following step:
A) the soft switch controller that calling terminal belonged to sends by an application server and calls out the soft switch controller that keeps request message to be belonged to first terminal called, maintains with the calling with the calling terminal and first terminal called;
B) the soft switch controller that calling terminal belonged to sends the called soft switch that belongs to of call setup request message to the second by this application server, to set up the calling between the calling terminal and second terminal called;
C) the soft switch controller that belonged to of second terminal called sends call setup response message to soft switch controller that calling terminal belonged to by this application server;
D) the soft switch controller that calling terminal belonged to sends and is used to indicate calling terminal to set up the calling switching Indication message of calling switching to application server between first terminal called and second terminal called;
E) between first terminal called and second terminal called, set up conversation by application server.
Second aspect at the problems referred to above, the invention provides a kind of method that in the soft switch controller of soft exchanging communication network, is used to call out switching, wherein, a calling terminal that belongs to this soft switch controller is set up conversation with one first terminal called, and described method comprises following step:
A) call out to keep request message to send with one and be given to an application server, be used to ask to keep the calling between the described calling terminal and first terminal called;
B) call setup request message is sent to application server, be used to ask to set up the calling between the described calling terminal and second terminal called;
C) a calling switching Indication message that is used to indicate calling terminal to set up the calling switching between first terminal called and second terminal called is sent to application server.
The 3rd aspect at the problems referred to above, the invention provides a kind of soft switch controller that in soft exchanging communication network, is used to call out switching, wherein, a calling terminal that belongs to this soft switch controller is set up conversation with one first terminal called, and this soft switch controller comprises:
Call out the maintenance request unit, be used for keeping the request message transmission to be given to an application server calling that is used to ask to keep calling out between the described calling terminal and first terminal called;
The setup requests device is used for being used to ask to set up the call setup request message of calling out between the described calling terminal and second terminal called with one and sends to application server;
Call out the switching indicating device, be used for a calling switching Indication message that is used to indicate calling terminal to set up the calling switching between first terminal called and second user terminal is sent to application server.
The 4th aspect at the problems referred to above, the invention provides a kind of method that in the application server of soft exchanging communication network, is used to call out switching, wherein, a calling terminal is set up conversation with one first terminal called, and described method comprises following step:
A) the soft switch controller of notifying first terminal called to be belonged to is to keep the calling between the described calling terminal and first terminal called;
B) the soft switch controller of notifying second terminal called to be belonged to is to set up the calling between the described calling terminal and second terminal called;
C) second terminal called being belonged to agreement that the soft switch controller sends sets up the call setup response message of calling out and sends to the soft switch controller that this calling terminal belongs to;
D) carry out the calling switching Indication message of the calling switching of calling terminal between first terminal called and second user terminal when receiving the indication that belongs to the soft switch device from described calling terminal, between first terminal called and second terminal called, set up conversation.
The 5th aspect at the problems referred to above the invention provides a kind of application server that is used to call out switching in soft exchanging communication network, and wherein, a calling terminal is set up conversation with one first terminal called, and described application server comprises:
Conversation keeps notifying device, is used to the soft switch controller of notifying first terminal called to be belonged to, to keep the calling between the described calling terminal and first terminal called;
The call setup notifying device is used to the soft switch controller of notifying second terminal called to be belonged to, to set up the calling between the described calling terminal and second terminal called;
The call notifying device is used for that second terminal called is belonged to agreement that the soft switch controller sends and sets up the call setup response message of calling out and send to the soft switch controller that this calling terminal belongs to;
The conversation apparatus for establishing, be used for carrying out the calling switching Indication message of the calling switching of calling terminal between first terminal called and second user terminal when receiving the indication that belongs to the soft switch device from described calling terminal, foundation is conversed between first terminal called and second terminal called.
The invention provides the call switching business in soft exchanging communication network, business under the traditional PSTN network can be incorporated into soft exchanging communication network, support the various types of terminals in the soft exchanging communication network, and this call switching business can finish under ringing condition, remedied the deficiencies in the prior art.
Embodiment
The network diagram of soft exchanging communication network as shown in Figure 1.IAD equipment or AG equipment pass through H.248/MGCP agreement access softswitch system under each soft switch territory, and each software changes the territory and links to each other by Session Initiation Protocol with application server.
At present, for by the IAD equipment of agreement access softswitch system H.248/MGCP or the soft switching users under the AG equipment, can't realize the call switching business under the ringing condition.
One of the present invention provides a kind of method of realize calling out switching in soft exchanging communication network, and as shown in Figure 2, prerequisite is that calling subscriber and first called subscriber are in conversation.
In actual applications, large enterprise often is in different geographical position, adopts the pattern of IPCentrex more, below be example just with IP Centrex pattern, just two kinds of situations among Fig. 2 illustrate respectively.As shown in Figure 1, user A, user B are the user in soft switch 1 territory, user C is the user in soft switch 2 territories, and user A, user B, user C are the user in the same IP Centrex group, and soft switch 1 territory all links to each other with application server by Session Initiation Protocol with soft switch 2 territories. stored IP Centrex user's following information in the application server: IP Centrex user's public number, the interior number of group, IP Centrex group ID, belong to the IP address of soft switch, this user's business information etc.User A has registered call switching business.
Fig. 3 has listed the sip message flow chart of first kind of situation, mainly may further comprise the steps:
1) user A hooking, the MGC of soft switch 1 (Media Gateway Controller) sends INVITE and asks to application server (Call leg 1: user A-soft switch 1-application server), application server is learnt by analyzing this message: user A request maintains this calling, so application server transmission INVITE asks MGC (the Call leg 2: application server-soft switch 1-user B) to soft switch 1, the far-end RTP attribute of user B is switched to the RTP resource of media server, and allow media server give user B playing back music or warning tone.
2) user A dials the interior number of group of user C, the MGC of soft switch 1 sends INVITE and asks to application server (Call leg 1: user A-soft switch 1-application server), application server is known the routing iinformation of user C by Query Database, asks MGC (Call leg 3: application server-soft switch 2-user C) to soft switch 2 thereby send INVITE.
3) the phone ring of user C, the MGC loopback 180 of soft switch 2 responds to application server (Call leg 3: application server-soft switch 2-user C), SDP (the Session Description Protocol Session Description Protocol) information that has user C in this 180 response message, application server loopback 180 respond (the Call leg 1: user A-soft switch 1-application server) to the MGC of soft switch 1.
4) user A on-hook, the MGC of soft switch 1 sends Refer and asks to application server (Call leg 1: user A-soft switch 1-application server), the From parameter is the public number of user A in this Refer request, the To parameter is the interior number of the group of user B, and the Refer-to parameter is the interior number of the group of user C.
5) application server send UPDATE ask to soft switch 2 MGC (Call leg 3: application server-soft switch 2-user C), and in this request with on the SDP information of user B, be used for the far-end RTP attribute of user C is switched to the RTP resource of user B.
6) application server send INVITE ask to soft switch 1 MGC (Call leg 2: application server-soft switch 1-user B), and in this request with on the SDP information of user C, be used for the far-end RTP attribute of user B is switched to the RTP resource of user C.
7) application server transmission BYE asks MGC (the Call leg 1: user A-soft switch 1-application server), be used to discharge the resource of user A to soft switch 1.
8) user C off-hook, the MGC of soft switch 2 send 200 and respond that (Callleg 3: application server-soft switch 2-user C), user B and user C enter talking state to application server.
Fig. 4 has listed the sip message flow chart of second kind of situation, mainly may further comprise the steps:
1) user A hooking, the MGC of soft switch 1 sends INVITE and asks to application server (Call leg 1: user A---soft switch 1---application server), application server is learnt by analyzing this message: user A request maintains this calling, so application server transmission INVITE asks MGC (the Call leg 2: application server-soft switch l-user B) to soft switch 1, the far-end RTP attribute of user B is switched to the RTP resource of media server, and allow media server give user B playing back music or warning tone.
2) user A dials the interior number of group of user C, the MGC of soft switch 1 sends INVITE and asks to application server (Call leg 1: user A-soft switch 1-application server), application server is known the routing iinformation of user C by Query Database, thus send INVITE ask to soft switch 2 MGC (Call leg 3: application server-soft switch 2-user C).
3) the phone ring of user C, soft switch 2 loopbacks 180 respond that (Call leg 3: application server-soft switch 2-user C), application server loopback 180 responds (the Call leg 1: user A-soft switch 1-application server) to the MGC of soft switch 1 to application server.
4) user A on-hook, the MGC of soft switch 1 sends Refer and asks to application server (Call leg 1: user A-soft switch 1-application server), the From parameter is the public number of user A in this Refer request, the To parameter is the interior number of the group of user B, and Refer-to is the interior number of the group of user C.
5) application server transmission BYE asks MGC (the Call leg 1: user A-soft switch 1-application server), be used to discharge the resource of user A to soft switch 1.
6) user C off-hook, the MGC of soft switch 2 send 200 and respond that (Callleg 3: application server-soft switch 2-user C), have the SDP information of user C in the response to application server.
7) application server send INVITE ask to soft switch 1 MGC (Call leg 2: application server-soft switch 1-user B), and in this request with on the SDP information of user C, be used for the far-end RTP attribute of user B is switched to the RTP resource of user C.Application server send INVITE ask to soft switch 2 MGC (Call leg 3: application server-soft switch 2-user C), and in this request with on the SDP information of user B, be used for the far-end RTP attribute of user C is switched to the RTP resource of user B.User B and user C enter talking state.
The present invention's two provides a kind of method that is used to call out switching in the soft switch controller of soft exchanging communication network, as shown in Figure 5, mainly may further comprise the steps:
Step S111 when the call forwarding request message that receives from described calling terminal, calls out one and to keep request message to send being given to an application server, is used to ask to keep the calling between the described calling terminal and first terminal called;
Step S112, when receive from described calling terminal to the call request message of one second terminal called the time, a call setup request message is sent to application server, be used to ask to set up the calling between the described calling terminal and second terminal called;
Step S113, when receiving the on-hook message of described calling terminal, a calling switching Indication message that is used to indicate calling terminal to set up the calling switching between first terminal called and second terminal called is sent to application server, comprise the number of first terminal called and the number of second terminal called.
Preferably, said method also comprises:
Step S114 when the resource release request message that receives from described application server, discharges the resource relevant with described calling terminal.
The present invention's three provides a kind of soft switch controller that is used to call out switching in soft exchanging communication network, and as shown in Figure 6, it comprises with lower member:
Call out and keep request unit 11, be used for when reception is transferred Indication message from the calling of described calling terminal, keep the request message transmission to be given to an application server calling that is used to ask to keep calling out between the described calling terminal and first terminal called;
Setup requests device 12, be used for when receive from described calling terminal to the call request message of one second terminal called the time, be used to ask to set up the call setup request message of calling out between the described calling terminal and second terminal called with one and send to application server;
Call out switching indicating device 13, be used for when receiving the on-hook message of described calling terminal, a calling switching Indication message that is used to indicate calling terminal to set up the calling switching between first terminal called and second user terminal is sent to application server.
Preferably, above-mentioned soft switch controller also comprises
Resource releasing device 14 is used for discharging the resource relevant with described calling terminal when the resource release request message received from described application server.
The present invention's four provides a kind of method that is used to call out switching in the application server of soft exchanging communication network, as shown in Figure 7, may further comprise the steps:
Step S121, when calling out the maintenance request message for one that receives that the request that is sent from the soft switch controller that this calling terminal belonged to keeps calling out between this calling terminal and first terminal called, notify first terminal called affiliated soft switch controller, to keep the calling between the described calling terminal and first terminal called;
Step S 22, when a call setup request message of calling out between this calling terminal and second terminal called is set up in reception from the request of described soft switch controller, the soft switch controller of notifying second terminal called to be belonged to is to set up the calling between the described calling terminal and second terminal called;
Step S123 when receiving the agreement that belongs to the soft switch controller from second terminal called and set up the response message of calling, sends to soft switch device under this calling terminal with described response message;
Preferably, said method also comprises step S124, detects the SDP information that whether comprises second terminal called in the described call setup response message;
If comprise the SDP information of second terminal called in the described call setup response message, the calling switching Indication message of the calling switching between first terminal called and second user terminal is carried out in the indication of soft switch device under receiving from described calling terminal, will carry out following steps:
Step S125, the soft switch device of notifying second terminal called to be belonged to is to switch to the far-end RTP attribute of second terminal called RTP resource of first terminal called;
Step S126, the soft switch controller of notifying first terminal called to be belonged to is to switch to the far-end RTP attribute of first terminal called RTP resource of second terminal called;
Step S127 sends to the soft switch controller that this calling terminal belongs to resource release message, to discharge the resource relevant with this calling terminal;
Step S128 receives indication second terminal called offhook message of off-hook that belongs to the soft switch controller from second terminal called.
If when not comprising the SDP information of second terminal called in the described call setup response message, the calling switching Indication message of the calling switching between first terminal called and second user terminal is carried out in the indication of soft switch device under receiving from described calling terminal, will carry out following steps:
Step S129 sends to the soft switch controller that this calling terminal belongs to resource release message, to discharge the resource relevant with this calling terminal;
Step S12a receives indication second terminal called offhook message of off-hook that belongs to the soft switch controller from second terminal called, wherein, comprises the SDP information of second terminal called in this offhook message;
Step S12b, the soft switch controller of notifying first terminal called to be belonged to is to switch to the far-end RTP attribute of first terminal called RTP resource of second terminal called;
Step S12c, the soft switch device of notifying second terminal called to be belonged to is to switch to the far-end RTP attribute of second terminal called RTP resource of first terminal called.
The present invention's five provides a kind of application server that is used to call out switching in soft exchanging communication network, and it comprises:
Conversation keeps notifying device 21, be used for keeping conversing between this calling terminal and first terminal called when the request from the soft switch controller that this calling terminal belonged to of receiving one when calling out the maintenance request message, notify first terminal called affiliated soft switch controller, to keep the conversation between the described calling terminal and first terminal called;
Call setup notifying device 22, be used for when reception is set up call setup request message calling out between this calling terminal and first terminal called from the request of described soft switch controller, the soft switch controller of notifying second terminal called to be belonged to is to set up the calling between the described calling terminal and second terminal called;
Call notifying device 23 is used to receive from the agreement that belongs to the soft switch controller from second terminal called and sets up the call setup response message of calling out; And notify soft switch controller under this calling terminal with it;
Conversation apparatus for establishing 24, be used for carrying out the calling switching Indication message of the calling switching of calling terminal between first terminal called and second user terminal when receiving the indication that belongs to the soft switch device from described calling terminal, foundation is conversed between first terminal called and second terminal called.
Preferably, described application server also comprises:
Checkout gear 25 is used for detecting the SDP information whether described call setup response message comprises second terminal called;
Wherein, when comprising the SDP information of second terminal called in the described call setup response message, described conversation apparatus for establishing is used to carry out following operation:
-soft switch the controller of notifying second terminal called to be belonged to, the far-end RTP attribute of second terminal called is switched to the RTP resource of first terminal called, and the soft switch controller of notifying first terminal called to be belonged to, the far-end RTP attribute of first terminal called being switched to the RTP resource of second terminal called;
-resource release message is sent to the soft switch device that this calling terminal belongs to, to discharge the resource relevant with this calling terminal;
-receive indication second terminal called offhook message of off-hook that belongs to the soft switch controller from second terminal called.
When not comprising the SDP information of second terminal called in the described call setup response message, described conversation apparatus for establishing is used to carry out following operation:
-resource release message is sent to the soft switch controller that this calling terminal belongs to, to discharge the resource relevant with this calling terminal;
-receive indication second terminal called offhook message of off-hook that belongs to the soft switch controller from second terminal called, wherein, comprise the SDP information of second terminal called in this offhook message;
-soft switch the controller of notifying first terminal called to be belonged to, the far-end RTP attribute of first terminal called is switched to the RTP resource of second terminal called, and the soft switch controller of notifying second terminal called to be belonged to, the far-end RTP attribute of second terminal called is switched to the RTP resource of first terminal called.
Do not break away from design of the present invention and scope and can make many other changes and this type.Should be appreciated that to the invention is not restricted to specific execution mode, scope of the present invention is defined by the following claims.