Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.
Be illustrated in figure 1 as the structural representation of the user terminal of the embodiment of the invention one, described user terminal comprises:
Encoder 11 is used for when opening the Media Stream that needs send being encoded, and described Media Stream comprises voice or video etc.
Decoder 12 when being used to open, is decoded to the Media Stream that receives.
First request module 13, be used for sending first call request message to application server, carrying described user terminal in described first call request message need indicate with the direction of the Media Stream that end user terminal is set up, and the direction of described Media Stream is designated as: described Media Stream is two-way media stream for the one-way media stream that only sends, described Media Stream for the one-way media stream or the described Media Stream of only reception.
Control module 14 is used for the direction according to described Media Stream, the operating state of controlled encoder 11 and decoder 12.
Communication module 15 is used for when receiving the response message of described application server, according to the operating state of described encoder 11 and decoder 12, to described end user terminal is sent Media Stream or receiving media stream.
Above-mentioned user terminal can be for being arranged in the user terminal of CS network, to being arranged in CS network or IMS network end user terminal is made a call, certainly, above-mentioned user terminal also can be for being arranged in the user terminal of IMS network, to being arranged in CS network or IMS network end user terminal is made a call.
The user terminal that provides by the foregoing description, when end user terminal is made a call, the Media Stream direction of Jian Liing as required, controlled encoder and decoder are opened or are closed, thereby save the resource of encoder.
Below be example with the user terminal that is arranged in the CS network to inserting IMS network end user terminal is made a call, the user terminal of the embodiment of the invention is elaborated.
Be illustrated in figure 2 as the structural representation of the user terminal of the embodiment of the invention two, described user terminal is arranged in the CS network, specifically comprises:
Encoder 11 is used for when opening the Media Stream that needs send being encoded, and described Media Stream comprises voice or video etc.
Decoder 12 when being used to open, is decoded to the Media Stream that receives.
First request module 13, be used for sending first call request message to the application server of IMS network, carrying described user terminal in described first call request message need indicate with the direction of the Media Stream that end user terminal is set up, described is the user terminal that inserts in the IMS network to end user terminal, and the direction of described Media Stream is designated as: described Media Stream is that one-way media stream or the described Media Stream that only receives is two-way media stream for the one-way media stream that only sends, described Media Stream.
Control module 14 is used for the direction according to described Media Stream, the operating state of controlled encoder 11 and decoder 12.
Communication module 15 is used for when receiving the response message of described application server, according to the operating state of described encoder 11 and decoder 12, to described end user terminal is sent Media Stream or receiving media stream.
Above-mentioned control module 14 further comprises:
The first control submodule 141 when being used for direction at described Media Stream and being designated as described Media Stream for the one-way media stream that only sends, is controlled described encoder 11 and is opened, and controls described decoder 12 to close; And/or
The second control submodule 142 when being used for direction at described Media Stream and being designated as described Media Stream for the one-way media stream that only receives, is controlled described encoder 11 to close, and controls described decoder 12 and opens; And/or
The 3rd control submodule 143 when being used for direction at described Media Stream and being designated as described Media Stream and being two-way media stream, is controlled described encoder 11 and described decoder 12 is opened.
Above-mentioned communication module 15 further comprises:
First sends submodule 151, is used for when described encoder 11 is opened, and sends the Media Stream after the described encoder encodes; And/or
Second sends submodule 152, is used for when the operating state of described encoder 11 is closed, and sends blank form stream; And/or
Receive submodule 153, be used for when described decoder 12 is opened or closed receiving media stream; And/or
Abandon submodule 154, be used for when the operating state of described decoder 12 is closed, the Media Stream that receives being abandoned.
When encoder 11 is opened, first sends the Media Stream of submodule 151 after network side sends coding, when encoder 11 cuts out, because the CS network does not allow to set up one-way media stream, therefore, the second transmission submodule 152 still needs to send blank form stream to the CS network side;
Receive submodule 153 when decoder 12 is opened, receive the Media Stream that network side sends, when the operating state of decoder 12 is closed, because the CS network side does not allow to set up one-way media stream, still send Media Stream to user terminal, receiving submodule 153 still needs to receive the Media Stream that network side sends, and at this moment, can the Media Stream that receive be abandoned by abandoning submodule 154.
Above-mentioned user terminal is arranged in the CS network, need have the ability that inserts the CS network, in addition, described user terminal also need with the IMS network in application server communication, also must have the ability that is used to insert the IMS network, therefore described user terminal is: promptly have the ability that inserts the CS network, have the user terminal of the ability that inserts the IMS network again.
Above-mentioned user terminal is by a specific control channel and an application server communication, described control channel can be realized by polytype signaling protocol, for example, sip message, SMS (Short Message Service, Short Message Service) Facility (instrument) message of the USSD of message, CS network (Unstructured Supplementary Service Data, unstructured supplementary data traffic) message or CS network etc.
When described user terminal adopts control channel that IMS network signaling protocol (as sip message) realizes and application server communication, described user terminal need pass through S-CSCF (Server Call SessionControl Function, service call conversation control function) communicates with application server, S-CSCF is used for user terminal is carried out registration/registration function, carry out the session control service, application server and S-CSCF are by ISC (IMS Centralised Service, the control of IMS centralized traffic) interface communication; When described user terminal adopts control channel that CS network signaling protocol (as USSD message) realizes and application server communication, described user terminal can be directly and application server communicate.
In addition, before transmission or receiving media stream, above-mentioned user terminal also need be set up the media channel of carrying media stream in the CS network, and therefore, above-mentioned user terminal also comprises:
Second request module 16 is used for sending to the signaling swap server of CS network the foundation request of the media channel of setting up the described Media Stream of carrying.
After setting up the carrying media passage, described user terminal then can be by described media channel to end user terminal being sent Media Stream or receiving media stream.
Above-mentioned user terminal all is as a side who makes a call, to inserting IMS network end user terminal is made a call, certainly, described user terminal also can be used as a side of receipt of call, receive described calling to end user terminal, at this moment, described user terminal also comprises:
First receiver module 17 is used to receive second call request message that described application server sends, and carries the direction indication that need set up Media Stream with described user terminal to end user terminal that inserts in the IMS network in described second call request message.
Same, after the call setup success, above-mentioned control module 14 is according to the direction of the Media Stream that the end user terminal needs are set up, and the unlatching of controlled encoder 11 and decoder 12 or close is in order to avoid waste unnecessary coding or decode operation.
The user terminal that provides by the foregoing description, with insert end user terminal is set up when calling out in the IMS network, the Media Stream direction of Jian Liing as required, controlled encoder and decoder are opened or are closed, thereby the resource of saving encoder.
Be illustrated in figure 3 as the structural representation of the application server of the embodiment of the invention three, described application server comprises:
Second receiver module 21, be used to receive that user terminal sends and the call request message of end user terminal being set up Media Stream, carry the direction indication of the Media Stream that needs foundation in the described call request message, the direction of described Media Stream is designated as: described Media Stream is that one-way media stream or the described Media Stream that only receives is two-way media stream for the one-way media stream that only sends, described Media Stream.
Sending module 22 is used for sending to the direction indication of described Media Stream described to end user terminal.
Indicating module 23 is used for according to the indication of the direction of described Media Stream, and indication IMS media gateway is described user terminal and describedly sets up unidirectional or two-way media stream to end user terminal.
Described application server is the application server that is arranged in the IMS network.
Described IMS media gateway is used to carry the Media Stream between CS network and the IMS network.
Above-mentioned user terminal can be for being arranged in the user terminal of CS network, to being arranged in CS network or IMS network end user terminal is made a call, certainly, above-mentioned user terminal also can be for being arranged in the user terminal of IMS network, to being arranged in CS network or IMS network end user terminal is made a call.
The application server that provides by the foregoing description, when receiving the calling of CS user terminal or IMS user terminal initiation, the direction indication of the Media Stream that can set up according to the needs that carry in the call request message, indication IMS media gateway is set up unidirectional or two-way media stream, thus the resource that can save the IMS network side.
Be illustrated in figure 4 as the structural representation of the application server of the embodiment of the invention four, described application server comprises:
Second receiver module 21, be used to receive that user terminal sends and the call request message of end user terminal being set up Media Stream, carry the direction indication of the Media Stream that needs foundation in the described call request message, the direction of described Media Stream is designated as: described Media Stream is that one-way media stream or the described Media Stream that only receives is two-way media stream for the one-way media stream that only sends, described Media Stream.
Sending module 22 is used for sending to the direction indication of described Media Stream described to end user terminal.
Indicating module 23 is used for according to the indication of the direction of described Media Stream, and indication IMS media gateway is described user terminal and describedly sets up unidirectional or two-way media stream to end user terminal.
Described application server is the application server that is arranged in the IMS network.
Described IMS media gateway is used to carry the Media Stream between CS network and the IMS network.
Above-mentioned user terminal can be for being arranged in the user terminal of CS network, to being arranged in CS network or IMS network end user terminal is made a call, certainly, above-mentioned user terminal also can be for being arranged in the user terminal of IMS network, to being arranged in CS network or IMS network end user terminal is made a call.
When described user terminal was the user terminal that inserts in the IMS network, described application server also needed to ask to set up described user terminal and described media channel to the stream of the carrying media between the end user terminal, and therefore, described application server also comprises:
Request module 24 is used for when receiving described call request message, sends the foundation request of the media channel of setting up the described Media Stream of carrying to the signaling change server of IMS network.
The signaling change server of above-mentioned IMS network can be MGCF (MGW Control Function, MGCF).
When described user terminal is the CS user terminal, application server at first receives the call request message that the CS user terminal sends, carry the direction indication of the Media Stream that needs foundation in the described call request message, application server does not send to the IMS user terminal with described call request message at once, but receiving request that the CS user terminal sends by the signaling change server when setting up the request message of media channel, in conjunction with the indication of setting up two-way media stream of carrying in the described request message, the direction of the Media Stream of determine to need setting up sends to the direction indication of the Media Stream that carries in the call request message to end user terminal.
The application server that provides by the foregoing description, when receiving the calling of CS user terminal or IMS user terminal initiation, the direction indication of the Media Stream that can set up according to the needs that carry in the call request message, indication IMS media gateway is set up unidirectional or two-way media stream, thus the resource that can save the IMS network side.
Be illustrated in figure 5 as the schematic flow sheet of the call-establishing method of the embodiment of the invention five, comprise:
Step 51 sends first call request message to application server, carries user terminal in described first call request message and need indicate with the direction of the Media Stream that end user terminal is set up.
Step 52 is according to the direction indication of described Media Stream, the operating state of controlled encoder and decoder.
Step 53 when receiving the response message of described application server, according to the operating state of described encoder and described decoder, sends Media Stream or receiving media stream to described to end user terminal.
Above-mentioned user terminal can be for being arranged in the user terminal of CS network, to being arranged in CS network or IMS network end user terminal is made a call, certainly, above-mentioned user terminal also can be for being arranged in the user terminal of IMS network, to being arranged in CS network or IMS network end user terminal is made a call.
The method that provides by the foregoing description, when end user terminal is made a call, the Media Stream direction of Jian Liing as required, controlled encoder and decoder are opened or are closed, thereby save the resource of encoder.
Below make a call to the user terminal that inserts the IMS network with the user terminal that is arranged in the CS network and to be example, the call-establishing method of the embodiment of the invention is elaborated.
Be illustrated in figure 6 as the schematic flow sheet of the call-establishing method of the embodiment of the invention six, comprise:
Step 61, send request to application server and in the IMS network end user terminal is set up first call request message of Media Stream with inserting, carry the direction indication of described Media Stream in described first call request message, the direction of described Media Stream is designated as: described Media Stream is two-way media stream for the one-way media stream that only sends, described Media Stream for one-way media stream or the described Media Stream that only receives.
Step 62 sends the foundation request of the media channel of setting up the described Media Stream of carrying to the signaling swap server of CS network.
Step 63 receives the described request responding message of setting up that described signaling swap server sends.
Step 64 is according to the direction indication of described Media Stream, the operating state of controlled encoder and decoding.
Step 65 when receiving the response message of described server, according to the operating state of encoder, by described media channel, sends Media Stream or receiving media stream to described to end user terminal.
For convenience of description, above-mentioned steps 64 is placed after the step 63, in the implementation of reality, step 64 can be arranged in after arbitrary step of step 61~step 63, or finishes synchronously with the arbitrary step in step 61~step 63.
The method of above-mentioned steps 64 is specially:
When the direction of described Media Stream is designated as described Media Stream for the one-way media stream that only sends, control described encoder and open, control described decoder to close; Or
When the direction of described Media Stream is designated as described Media Stream for the one-way media stream that only receives, control described encoder to close, control described decoder and open; Or
When the direction of described Media Stream is designated as described Media Stream and is two-way media stream, control described encoder and described decoder and open.
The method of above-mentioned steps 65 is specially:
When described encoder is opened,, send the Media Stream after the described encoder encodes by described media channel; Or
When described encoder cuts out,, send blank form stream by described media channel; Or
By described media channel, receiving media stream; Or
When described decoder is closed, the Media Stream that receives is abandoned.
Above-mentioned first call request message can be sip message, USSD message, SMS message or facility message.
Said method all is that user terminal in the CS network is as the initiator who calls out, end user terminal is made a call in the IMS network, certainly, user terminal in the CS network also can be used as the recipient of calling, receive the calling in the IMS network to end user terminal, during as the recipient that calls out, described method also comprises:
Receive second call request message that described application server sends, carry the direction indication that need set up Media Stream with described user terminal to end user terminal in the IMS network in described second call request message;
According to the direction indication of described Media Stream, the operating state of controlled encoder and decoding.
Described second call request message is a conversation initiating protocol message.
The method that provides by the foregoing description, in the IMS network to end user terminal make a call or receive in the IMS network to the calling of end user terminal the time, equal directions of the Media Stream that can set up as required, controlled encoder or decoder are opened or are closed, and can save the resource of encoder or decoder.
Below with concrete application scenarios above-mentioned call-establishing method is elaborated.
The CS user terminal that is illustrated in figure 7 as the embodiment of the invention may further comprise the steps to the concrete scene schematic diagram that the IMS user terminal makes a call:
Step 71, CS UE (user terminal) sends the INVITE of asking to set up with IMS UE Media Stream by S-CSCF to application server, carries " recvonly (only receiving) " indication of the direction of indication Media Stream in the described INVITE.
CS UE is for inserting the user terminal in the CS network, IMS UE is for inserting the user terminal of IMS network, described INVITE is first call request message described in the foregoing description, control channel and application server communication that described CS UE realizes by sip message.
Step 72, CS UE sends SETUP message to MSC server, and the media channel of carrying media stream is set up in request.
In the present embodiment, MSC server and MGCF combine and form the signaling change server, and certainly, MSC server also can be independent network entity.
Step 73, MGCF gives INVITE with the SETUP message conversion, and sends to application server, carries " sendrecv (transmitting-receiving bidirectional) " indication in this INVITE, and two-way media stream is set up in request.
Because the CS network can only be set up two-way media stream, therefore, MGCF still indicated in the message that application server sends and set up two-way media stream this moment.
Step 74, application server is in conjunction with above-mentioned two INVITE that receive, definite direction that needs the Media Stream of foundation, generate a new INVITE, and send to IMS UE by S-CSCF, and carrying " recvonly (only receiving) " indication in the described new INVITE, indication CS UE is receiving media stream only, be the indication of carrying in the INVITE that only sends according to CS UE of application server, determine the direction of Media Stream.
Step 75 after IMS UE receives INVITE, sends the 200OK acknowledge message by S-CSCF to application server.
Step 76, application server sends 200 OK acknowledge messages to MGCF by S-CSCF, carry " sendonly (only sending) " indication in the message, indication IMS UE only sends Media Stream, at this moment, MGCF control IMS-MGW sets up the one-way media stream that only receives, and promptly only receives the Media Stream that IMS UE sends.
Step 77, MSC server sends CONNECT message to UE, indication IMS UE call accepted request.
Step 78, application server sends 200 OK acknowledge messages by S-CSCF to CS UE, and indicating call is set up successfully.
At this moment, CS UE controlled encoder is closed, and the control decoder is opened, and only the Media Stream that receives is decoded, and send blank CS network media stream, and the IMS network side only uses the transmission media stream resources.
Above-mentioned CS UE communicates by the control channel and the application server of sip message expansion, as mentioned above, also can communicate by the control channel and the application server of other extension of message, the concrete scene schematic diagram that Fig. 8 communicates for the control channel and the application server of CS UE by the USSD extension of message, the specific implementation method is similar to the above embodiments, different is, at control channel and the application server when communicating of CS UE by the USSD extension of message, because USSD is the signaling of CS network, therefore, CS UE can be directly and application server communicate, no longer need by S-CSCF, the specific implementation process is not being described in detail.
Above-mentioned two specific embodiments all are that the CS user terminal is as the initiator who calls out, the method that makes a call to the IMS user terminal, with next with the IMS user terminal as the initiator who calls out, making a call to the CS user terminal is example, and the call-establishing method of the embodiment of the invention is elaborated.
The IMS user terminal that is illustrated in figure 9 as the embodiment of the invention may further comprise the steps to the concrete scene schematic diagram that the CS user terminal makes a call:
Step 91, IMS UE sends INVITE by S-CSCF to application server, carry " sendonly (only sending) " indication in the described INVITE, the Media Stream that indication IMS UE need set up is the one-way media stream of only sending direction, and described INVITE is second call request message in the foregoing description.
Step 92, application server to sending to CS UE, are carried INVITE " sendonly (only sending) " indication in the described INVITE.
Step 93, application server sends INVITE to MGCF, and the media channel of carrying media stream is set up in request, carries " sendonly (only sending) " indication in the described INVITE.
Step 94, MSC server sends SETUP message to CS UE.
Step 95, CS UE returns CONNECT message, indication user call accepted.
Step 96, MGCF is that 200 OK determine message with the CONNECT message conversion, and sends to application server
Step 97, CS UE returns 200 OK acknowledge messages to application server.
Step 98, application server send 200 OK acknowledge messages to IMS UE, and indicating call is set up successfully.
At this moment, CS UE controlled encoder is closed, and the control decoder is opened, and only carry out the decoding of Media Stream, and the IMS network side only uses the transmission media stream resources.
Above-mentioned application server communicates by the control channel and the CS UE of sip message expansion, also can communicate by the control channel and the CS UE of other extension of message, the concrete scene schematic diagram that Figure 10 communicates for the control channel and the CS UE of application server by the USSD extension of message, the specific implementation method is similar to the above embodiments, different is, at control channel and the CS UE when communicating of application server by the USSD extension of message, because USSD is the signaling of CS network, therefore, application server can be directly and CS UE communicate, no longer need by S-CSCF, the specific implementation process is not being described in detail.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, this program is when carrying out, comprise step, described storage medium as above-mentioned method embodiment.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.