Summary of the invention
The object of the present invention is to provide a kind of implementation method of negotiated message receiving terminal for session initiation protocol domain, the problem when being used to eliminate REFER message generation bifurcated.
Technical scheme of the present invention comprises:
A kind of implementation method of negotiated message receiving terminal for session initiation protocol domain, it is provided with a bifurcated processing entities between the request message initiator and each terminal of indication visit allocated resource, and comprises step:
The request message initiator of A, indication visit allocated resource sends the request message of indication visit allocated resource;
B, recipient are multiple users and parallel bifurcated take place that described bifurcated processing entities sends the request message requests of indication visit allocated resource to each terminal;
The response that C, described bifurcated processing entities are collected each user terminal is handled the terminal that entity selection receives the request message of indication visit allocated resource according to predetermined policy by described bifurcated.
Described method wherein, also comprises:
Only after the request message receiving terminal of indication visit allocated resource is received the success response to event notification message of bifurcated processing entities transmission, indicate the action of indicating in the request message of visit allocated resource, comprise the transmission session initiation message.
A kind of implementation method of negotiated message receiving terminal for session initiation protocol domain, wherein, it is provided with a bifurcated processing entities between the request message initiator who indicates the visit allocated resource and each terminal, and comprise: when taking place to walk abreast bifurcated, use the terminal of other request messages earlier, again the request message of indication visit allocated resource is sent to selected terminal according to the request message requests of predetermined policy selective reception indication visit allocated resource.
Described method, wherein, described bifurcated processing entities is different network entities with the request message transmit leg of indication visit allocated resource.
Described method, wherein, also comprise: described bifurcated processing entities sends inquiry request message to each user terminal simultaneously, and in this request message, carry the indication of inquiry terminal information capability, the terminal ability information of the priority index that method that inquiry terminal is supported and terminal are current, each terminal is returned response separately, the bifurcated processing entities is collected the response of each terminal, and a terminal list of response is issued the request message transmit leg of indication visit allocated resource by redirect message, when indicating the terminal of the request message of visiting allocated resource, and will indicate the request message of visit allocated resource to send to selected terminal by sender-selected reception.
Described method, wherein, also comprise: send inquiry request message to each terminal by described bifurcated processing entities, each terminal is returned response separately, the bifurcated processing entities is collected the terminal of the response of each terminal according to the request message of predetermined policy selective reception indication visit allocated resource, and will indicate the request message of visit allocated resource to send to selected terminal.
Described method, wherein, described bifurcated processing entities is same network entity with the request message transmit leg of indication visit allocated resource, and comprises step:
Request message initiator/bifurcated the processing entities of A1, described indication visit allocated resource sent inquiry request message to each terminal earlier before the request message that sends indication visit allocated resource, each terminal is returned response separately;
Request message initiator/bifurcated processing entities bifurcated the processing entities of B1, described indication visit allocated resource is collected the response of each terminal, visit the terminal of the request message of allocated resource according to predetermined policy selective reception indication, and send the request message requests of indication visit allocated resource to this terminal.
Described method, wherein, described predetermined policy comprises:
Described bifurcated processing entities sends inquiry request message to each user terminal simultaneously, and in this request message, carry the indication of inquiry terminal information capability, the terminal ability information of the priority index that method that inquiry terminal is supported and terminal are current, and select to support the bigger terminal of the request message method of indication visit allocated resource and/or priority index as receiving terminal.
Described method, wherein, described predetermined policy comprises: described bifurcated processing entities sends inquiry request message to each terminal simultaneously, and the terminal of selecting first success response is as receiving terminal.
Described method, wherein, described predetermined policy comprises: described bifurcated processing entities order sends inquiry request message to each terminal, selects first terminal that returns success response as receiving terminal.
Described method, wherein, the request message of described inquiry terminal ability is an OPTIONS message.
Described method, wherein, the request of the media capability information of described inquiry terminal priority index and support is carried by expansion Terminal-Info header field.
Described method, wherein, described redirect message is 302 Moved temporarily message.
The implementation method of a kind of negotiated message receiving terminal for session initiation protocol domain provided by the present invention, by a bifurcated processing entities is set, realize the uncontrollable problem of elimination terminal operation under the multiple users situation that parallel bifurcated takes place, realized the stability of system.
Embodiment
Below in conjunction with accompanying drawing, will be described in more detail each preferred embodiment of the present invention.
The implementation method of negotiated message receiving terminal for session initiation protocol domain of the present invention, can be after the REFER receiving terminal be only received the success response to NOTIFY of bifurcated processing entities transmission, just carry out the action of indicating among the REFER, as send INVITE etc., if do not receive or when receiving failure response then do not carry out the action of indicating among the REFER.This embodiment is provided with a bifurcated processing entities as shown in Figure 2 in the system, the REFER initiator sends REFER message by this bifurcated processing entities to described terminal 1 and terminal 2, and its step comprises:
1, the REFER initiator sends REFER message;
2~3, the parallel bifurcated of recipient user multiple terminals and generation, the bifurcated processing entities sends the REFER request simultaneously to each terminal.
4~7, terminal 1 returns success response 200OK, and sends a NOTIFY, carries the content information of the resource status of subscription.Terminal 2 returns success response and NOTIFY equally.
8~9, described bifurcated is handled the response and the NOTIFY of entity selection receiving terminal 1, and this response and NOTIFY are sent to the REFER initiator.
10, the bifurcated processing entities sends 200OK to terminal 1.
11, the bifurcated processing entities sends 400Bad Request to terminal 2, and cancellation is to the subscription and the REFER request of this terminal.
12, after terminal 1 is received the 200OK response that the bifurcated processing entities sends, carry out the action of indicating among the REFER, as sending INVITE.
The inventive method can also be used other request messages earlier when taking place to walk abreast bifurcated, as OPTIONS message, the terminal of selective reception REFER request sends to the terminal of choosing to REFER message afterwards again.Comprise two kinds of situations in this embodiment scheme, the one, the bifurcated processing entities is different network entities with the REFER transmit leg, the 2nd, bifurcated processing entities and REFER transmit leg are same network entity.
Be understandable that in the technical conceive of the inventive method, REFER message is an embodiment of the request message of indication visit allocated resource just, those skilled in the art obviously can adopt other relevant message to realize this function.
For situation one, the inventive method is that the bifurcated processing entities is when receiving REFER message, judge the recipient multiple terminals and parallel bifurcated can take place, then the bifurcated processing entities sends a request message to each terminal, each terminal is returned response separately, the bifurcated processing entities is collected the response of each terminal, receives the terminal of REFER message according to certain policy selection; Also can issue the REFER transmit leg to the terminal list of response by redirect message, by the terminal of sender-selected reception REFER message.
Described bifurcated processing entities sends a request message also to each terminal, and the selective reception terminal can adopt three kinds of modes: the one, and the bifurcated processing entities sends a request message to each terminal simultaneously, carry the indication of inquiry terminal information in the request message, method and the current terminal ability informations such as priority index of terminal that inquiry terminal is supported for example select to support the bigger terminal of REFER method and/or priority index as receiving terminal according to certain strategy; The 2nd, the bifurcated processing entities sends a request message to each terminal simultaneously, and the terminal of selecting first success response is as receiving terminal; The 3rd, described bifurcated processing entities order sends a request message to each terminal, and first terminal that returns success response is as receiving terminal.
Specifically, it is the ability query requests that described bifurcated processing entities sends OPTIONS to each terminal simultaneously, method and the current priority index of terminal that inquiry terminal is supported, and directly select to support the bigger terminal of REFER method and priority index as the terminal that receives REFER message according to the terminal return results.
The flow process of this embodiment as shown in Figure 3, it comprises step:
1, the REFER initiator sends REFER message, carries the sign that whether needs bifurcated processing entities inquiry terminal ability information in the message.The bifurcated processing entities whether parameter f ork-query of inquiry terminal ability indication by expansion header field Fork-query or expansion Request-Disposition header field is carried, and the fork-query parameter value need to represent bifurcated processing entities inquiry terminal ability information during for TRUE.The relevant parameter that REFER message is carried is as follows:
REFER:sip:mike@example.com
Request-Disposition:fork-directive=fork;fork-query=True
Or
REFER:sip:mike@example.com
Fork-query:fork-query=True
2, the bifurcated processing entities sends OPTIONS request, inquiry terminal ability information to terminal 1.Information inquiring comprises the method for the terminal support that terminal is supported, the priority index (q value) of terminal.Carry the Termbinal-Info header field of expansion in the OPTIONS message, be used for the priority index (q-Value=true) of identification request terminal.
The relevant parameter example that OPTIONS message is carried is as follows:
Terminal-Info:q-value=true
3, the bifurcated processing entities sends the OPTIONS request to terminal 2, inquires about its terminal ability information, and message examples is with step 2.
4, terminal 1 is returned 200OK, and the information of carried terminal 1 comprises methods such as REFER, the contact address mike@pcl.example.com of terminal and current priority index (q value) 0.5 that terminal is supported.
The relevant parameter example of carrying in the 200OK message is as follows:
Contact:mike@pcl.example.com;q=0.5
Allow:REFER,INVITE,OPTIONS,BYE,CANCEL
5, terminal 1 is returned 200OK, and the information of carried terminal 2 comprises methods such as REFER, the contact address mike@pc2.example.com of terminal and current priority index (q value) 0.3 that terminal is supported.
The relevant parameter example of carrying in the 200OK message is as follows:
Contact:mike@pc2.example.com;q=0.3
Allow:REFER,INVITE,OPTIONS,BYE,CANCEL
6, bifurcated processing entity selection supports REFER method, terminal 1 conduct that priority index is big to receive the terminal of REFER message, and REFER message is issued this terminal.What the Request URI in the REFER message filled in is the contact address of terminal 1, and the relevant parameter example is as follows:
REFER:sip:mike@pc?l.example.com
The processing that terminal 1 receives after the REFER message is same as the prior art, is not described in detail at this.
In the second way of the inventive method, described bifurcated processing entities sends the OPTIONS query requests to each terminal simultaneously, and the terminal of selecting first success response is as the terminal that receives REFER message, and concrete implementation step is seen shown in Figure 4, comprises step:
1, the REFER initiator sends REFER message.
2~3, the bifurcated processing entities sends the OPTIONS request simultaneously to terminal 1, terminal 2.
4, terminal 1 is returned 200OK, and the contact address mike@pcl.example.com of carried terminal.
The relevant parameter example of carrying in the 200OK message is as follows:
Contact:mike@pcl.example.com
5, terminal 2 is returned 200OK, and the contact address mike@pc2.example.com of carried terminal.
The relevant parameter example of carrying in the 200OK message is as follows:
Contact:mike@pc2.example.com
6, the bifurcated processing entities as the terminal that receives REFER message, is issued this terminal to terminal 1 to REFER message because at first receive the feedback of terminal 1.What the RequestURI in the REFER message filled in is the contact address of terminal 1, and the relevant parameter example is as follows:
REFER:sip:mike@pcl.example.com
The third mode of the inventive method is, bifurcated processing entities order sends query requests to each terminal, and first terminal that returns success response is as receiving terminal, and the bifurcated processing entities is directly sent out REFER message and sent to this terminal.This concrete implementation step is referring to as shown in Figure 5:
1, the REFER initiator sends REFER message.
2, the bifurcated processing entities sends the OPTIONS request to terminal 1.
3, terminal 2 is returned 200OK, and the contact address mike@pcl.example.com of carried terminal.
The relevant parameter example of carrying in the 200OK message is as follows:
Contact:mike@pcl.example.com
4, the bifurcated processing entities continues to send the OPTIONS request to terminal 2.
5, terminal 2 is returned 200OK, and the contact address mike@pc2.example.com of carried terminal.
The relevant parameter example of carrying in the 200OK message is as follows:
Contact:mike@pc2.example.com
6, the bifurcated processing entities is because of terminal 1 success response, so the terminal of terminal 1 as reception REFER message, REFER message is issued this terminal.What the RequestURI in the REFER message filled in is the contact address of terminal 1, and the relevant parameter example is as follows:
REFER:sip:mike@pcl.example.com
The inventive method can also make the bifurcated processing entities send the OPTIONS request to each terminal simultaneously or sequentially, result according to certain tactful collection terminal response, for example start a timer, the terminal that responds before timer expiry is as the terminal that receives REFER message, and response terminal tabulation issued the REFER transmit leg by redirect message, by the terminal of sender-selected reception REFER message, this embodiment comprises step as shown in Figure 6:
1, described REFER initiator sends REFER message, carries the sign that whether needs bifurcated processing entities inquiry terminal ability information in the message; The bifurcated processing entities whether carry by the parameter f ork-query that expands header field Fork-query or expansion Request-Disposition header field by the indication of inquiry terminal ability, and the fork-query parameter value is that TRUE need to represent bifurcated processing entities inquiry terminal ability information.The relevant parameter that REFER message is carried is as follows:
REFER:sip:mike@example.com
Request-Disposition:fbrk-directive=fork;fork-query=True
Or
REFER:sip:mike@example.com
Fork-query:fork-query=True
2, described bifurcated processing entities sends OPTIONS request, inquiry terminal information to terminal 1.
Information inquiring comprises the method for the terminal support that terminal is supported, the priority index (q value) of terminal.Carry the Terminal-Info header field of expansion in the OPTIONS message, be used for the priority index (q-value=true) of identification request terminal.
The relevant parameter example that OPTIONS message is carried is as follows:
Terminal-Info:q-value=true
3, the bifurcated processing entities sends OPTIONS request, inquiry terminal ability information to terminal 2.Message examples is with step 2.
4, terminal 1 is returned 200OK, and the information of carried terminal 1 comprises methods such as REFER, the contact address mike@pcl.example.com of terminal and current priority index (q value) 0.5 that terminal is supported.
The relevant parameter example of carrying in the 200OK message is as follows:
Contact:mike@pcl.example.com;q=0.5
Allow:REFER,INVITE,OPTIONS,BYE,CANCEL
5, terminal 1 is returned 200OK, and the information of carried terminal 2 comprises methods such as REFER, the contact address mike@pc2.example.com of terminal and current priority index (q value) 0.3 that terminal is supported.
The relevant parameter example of carrying in the 200OK message is as follows:
Contact:mike@pc2.example.com;q=0.3
Allow:REFER,INVITE,OPTIONS,BYE,CANCEL
6, bifurcated processing entities terminal ability information that each terminal is returned is issued the REFER transmit leg by 302 redirect messages, by the terminal of the sender-selected reception of REFER REFER message.Carry in the Contact header field tabulation of each terminal ability information in 302 message.Related content example in 302 message is as follows:
Contact:<sip:mike@pcl.example.com>;q=0.5;expires=3600
<sip:mike@pc2.example.com>;q=0.3;expires=3600
7, the REFER transmit leg selects terminal 1 as the terminal that receives REFER message according to the receiving side terminal information of receiving.And REFER message directly issued this terminal.In the Request of REFER message URI except carrying recipient's public subscriber identification, also pass through the contact address of the contact-addr parameter carried terminal 1 of expansion, after the bifurcated processing entities is received REFER message, check the legitimacy of contact address, afterwards REFER message is directly issued terminal 1.
REFER:sip:mike@.example.com;contact-addr=”mike@pcl.example.com”
When being same network entity for situation bifurcated processing entities and REFER transmit leg, the inventive method is judged the recipient multiple terminals and parallel bifurcated can be taken place by REFER initiator/bifurcated processing entities, then sent the terminal capability query messages to each terminal earlier before sending REFER, each terminal is returned response separately.REFER initiator/bifurcated processing entities bifurcated processing entities is collected the response of each terminal, and the terminal according to certain policy selection reception REFER message sends the REFER request to this terminal then.
Similar with situation one, the bifurcated processing entities sends a request message also to each terminal, and the selective reception terminal also can have three kinds of modes, mode one is that the bifurcated processing entities sends a request message to each terminal simultaneously, carry the indication of inquiry terminal information in the request message, method and the current terminal ability informations such as priority index of terminal that inquiry terminal is supported support the bigger terminal of REFER method and territory priority index as receiving terminal according to certain policy selection; Mode two is that the bifurcated processing entities sends a request message to each terminal simultaneously, and the terminal of selecting first response is as receiving terminal; Mode three is that bifurcated processing entities order sends a request message to each terminal, and first terminal that returns success response is as receiving terminal.Provide the implementing procedure of mode one as shown in Figure 7, the implementing procedure of other dual modes can obtain with reference to the embodiment of mode one and the corresponding embodiment in the situation one, does not repeat them here.
Step shown in Figure 7 comprises:
1, the bifurcated processing entities sends OPTIONS request, inquiry terminal information to terminal 1.Information inquiring comprises the method for the terminal support that terminal is supported, the priority index (q value) of terminal.Carry the Terminal-Info header field of expansion in the OPTIONS message, be used for the priority index (q-value=true) of identification request terminal.
The relevant parameter example that OPTIONS message is carried is as follows:
Terminal-Info:q-value=tme
2, the bifurcated processing entities sends OPTIONS request, inquiry terminal ability information to terminal 2.Message examples is with step 2.
3, terminal 1 is returned 200OK, and the information of carried terminal 1 comprises methods such as REFER, the contact address mike@pcl.example.com of terminal and current priority index (q value) 0.5 that terminal is supported.
The relevant parameter example of carrying in the 200OK message is as follows:
Contact:mike@pcl.example.com;q=0.5
Allow:REFER,INVITE,OPTIONS,BYE,CANCEL
4, terminal 1 is returned 200OK, and the information of carried terminal 2 comprises methods such as REFER, the contact address mike@pc2.example.com of terminal and current priority index (q value) 0.3 that terminal is supported.
The relevant parameter example of carrying in the 200OK message is as follows:
Contact:mike@pc2.example.com;q=0.3
Allow:REFER,INVITE,OPTIONS,BYE,CANCEL
5, bifurcated processing entity selection supports REFER method, terminal 1 conduct that priority index is big to receive the terminal of REFER message, and REFER message is issued this terminal.What the Request URI in the REFER message filled in is the contact address of terminal 1, and the relevant parameter example is as follows:
REFER:sip:mike@pcl.example.com
To sum up, as can be seen, though what various embodiments of the present invention provided is the application scenarios that parallel bifurcated takes place REFER, but as preceding analysis, one of key point of technical solution of the present invention is exactly the bifurcated processing entities can obtain each user terminal earlier by the request that sends inquiry terminal information to each terminal when bifurcated takes place a ability information, by the bifurcated processing entities or by the terminal of initial request message initiator selective reception request message, then initial request message is sent to designated terminal afterwards.
Be understandable that; concerning the those of ordinary skill in field of the present invention; the method of the negotiation request message receiving terminal that the inventive method is given can but the not only explanation of the foregoing description; change or replacement that need not creative work all should belong to the protection range of claims of the present invention.