WO2007112640A1 - A method and an apparatus for replacing the session id, an application server and a method for replacing the session - Google Patents

A method and an apparatus for replacing the session id, an application server and a method for replacing the session Download PDF

Info

Publication number
WO2007112640A1
WO2007112640A1 PCT/CN2007/000371 CN2007000371W WO2007112640A1 WO 2007112640 A1 WO2007112640 A1 WO 2007112640A1 CN 2007000371 W CN2007000371 W CN 2007000371W WO 2007112640 A1 WO2007112640 A1 WO 2007112640A1
Authority
WO
WIPO (PCT)
Prior art keywords
session
message
session identifier
identifier
sip
Prior art date
Application number
PCT/CN2007/000371
Other languages
French (fr)
Chinese (zh)
Inventor
Youzhu Shi
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2007112640A1 publication Critical patent/WO2007112640A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1083In-session procedures
    • H04L65/1094Inter-user-equipment sessions transfer or sharing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • H04L65/403Arrangements for multi-party communication, e.g. for conferences
    • H04L65/4038Arrangements for multi-party communication, e.g. for conferences with floor control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions

Definitions

  • the present invention relates to the field of session services in network systems, and more particularly to a method, apparatus, application server, and a method of session substitution for session identity replacement.
  • Session Initiation Protocol As the call control signaling for packet telecommunications core networks is one of the current technological trends, such as ITU-T and ETSI standards organizations for NGN research, in this new In the packet telecommunications network, the new packet terminal SIP terminal will gradually replace the traditional terminal telephone.
  • TISPAN Telecommunications and Internet Converged
  • PSTN/ISDN simulation services Public Telephone Switching Network/Integrated Services Digital Network Simulation Service
  • WI Work Item
  • WI 03023 DTS/TISPAN-03023-NGN-Rl NGN CO F
  • WI 03055 DTS/TISPAN-03055- NGN-Rl Explicit Communication Transfer
  • the CONF service enables the user to participate in and control a call with many users joining, and the ECT service enables a party in a call to transfer the call to a third party.
  • the user can invite one and his established call.
  • the user of the department joins a conference, and the user sends a SIP REFER reference message to implement this function.
  • the contact address of the invited user is set in Refer-To, and the session Dialog identifier established between the two users is set in Replaces, indicating that the session will be established between the conference and the invited user. A new session is replaced.
  • the SIP REFER message is routed to the application server that handles the CONF conference service (AS:
  • the AS will send a SIP INVITE invitation message to the specified invited user contact address according to the setting content in the SIP REFER message, and carry the above Replaces information in the SIP INVITE message to establish a connection between the conference and the invited user.
  • a new call is simultaneously invited to release a call already established between two users based on the Replaces information in the SIP INVITE message.
  • Step 1 User UE-A initiates a session and calls a PSTN/ISDN user.
  • Steps 2 ⁇ 14 The session between the user UE-A and the PSTN/ISDN user is successfully established, and the call is started;
  • Step 15 The user UE-A applies to create a conference, and initiates a session to the AS that processes the conference service.
  • Steps 16 ⁇ 24 The user's UE-A application is successfully created.
  • Step 25 The user UE-A invites the PSTN/ISDN user who is in the call to join the conference, and sends a SIP REFER message to the AS that processes the conference service;
  • Steps 26 - 30 The SIP REFER message arrives at the AS that processes the conference service, and the AS sends the SIP.
  • the NOTIFY message informs the user that UE-A has received this REFER message
  • Step 31 The AS that processes the conference service initiates a session to the PSTN/ISDN user according to the related content set in the received SIP REFER message, and sends a SIP INVITE message.
  • Steps 32 ⁇ 41 Since the PSTN/ISDN users belong to the traditional circuit domain users, the interworking call will be handled by the MGCF between the circuit domain and the packet domain, and the SIP INVITE message will be sent to the MGCF.
  • the MGCF will "replace, between the PSTN/ISDN user and the conference. Create a session and join the PSTN/ISDN user to the conference.
  • the AS that processes the conference service sends a SIP NOTIFY message to notify the user of UE-A that the operation of the REFER request is successful.
  • Steps 42 ⁇ 47 The MGCF releases according to the Replaces information in the SIP INVITE message.
  • the Dialog set in the Replaces message identifies the specified session (the session established between the user UE-A and the PSTN/ISDN user).
  • user B establishes two calls with user A and user C respectively, and user B can establish a new call between user A and user C, and withdraw himself from the two calls that have been established.
  • User B implements this function by sending a SIP REFER message to User A.
  • the contact address of the user C is set in the Refer-To, and the session Dialog identifier established between the user B and the user C is set in the Replaces, indicating that the session will be established between the user C and the user A.
  • a new session is replaced.
  • user A After receiving the SIP REFER message, user A sends a SIP to the specified user C contact address.
  • the INVITE message carries the above Replaces information in the SIP INVITE message, so that a new call is established between the user A and the user C, and the user C releases the call that has been established by the user B according to the Replaces information in the SIP INVITE message.
  • User B will also release the call that it has established with User A.
  • the call established between the user ⁇ - ⁇ and the PSTN/ISDN user may also have more than one session, between the user UE-A and the AS processing a certain service.
  • a session Dialog-1 is established, and another session Dialog-2 is established between the MGCF and the AS.
  • the session Dialog identifier set in the Replaces is only the Dialog visible to the user.
  • the identifier (Dialog-1), the Replacement carried in the SIP INVITE message sent by the AS that processes the conference service to the MGCF is also Dialog-1, and the session identifier of the corresponding call on the MGCF is Dialog-2, so MGCF
  • the call established between the user UE-A and the PSTN/ISDN user will not be released.
  • the MGCF may also reject the SIP INVITE message because the Dialog identifier set by the Replaces carried in the SIP INVITE message received by the MGCF does not exist. Business failed.
  • the call established between the user B and the user C may also have more than one session, so that the Dialog identifier set by the Replaces carried in the SIP INVITE message received by the user C, It is the Dialog identifier visible to the user B, but does not exist on the user C, so that the user C will not be able to release the call established between the user B and the user C, and may also cause the ECT service to fail.
  • the embodiment of the invention provides a method, a device, an application server, and a method for replacing a session identifier, so that the session identifier sent by the service user is replaced with the session identifier that the service invitee can correctly interpret, and further
  • the business invitees can make the correct processing so that the business expected by the business users is implemented normally.
  • the embodiment of the present invention provides a method for replacing a session identifier, the method includes: a call passes through an application server, and the application server acquires a first session identifier and a second session identifier of the call; The signaling path arrives at the application server, and the first session initiation message carries at least the first session identifier; the application server replaces the first session identifier with the second session identifier.
  • An embodiment of the present invention provides a method for session substitution, where the method includes: a service user sending a session initiation message, where the message includes a first session identifier, a service invitee, and a signaling path; After the session is received, the receiver replaces the first session identifier with the second session identifier, and sends a specific message carrying the second session identifier to the service invitee, the first session identifier. And the second session identifier is located in the same call; the service invitee receives the specific message carrying the second session identifier, establishes a new session, and releases the previously established call represented by the second session identifier. .
  • the embodiment of the present invention provides a session identifier replacement device, where the device includes: a session identifier obtaining unit, configured to learn a first session identifier and a second session identifier of a call that passes through the session identifier replacing device; a unit, configured to parse the session identifier carried in the message from the received first session initiation message, and the session identifier replacement unit, configured to use the session identifier that is parsed by the session message parsing unit as the first session identifier In the case, the first session identifier is replaced with a second session identifier.
  • the embodiment of the present invention further provides an application server, where the application server includes: a session identifier obtaining unit, configured to acquire a first session identifier and a second session identifier of a call that passes through the application server; The session identifier is used to parse the session identifier carried in the message from the received first session initiation message; the session identifier replacement unit is configured to: when the session identifier parsed by the session message parsing unit is the first session identifier Replacing the first session identifier with a second session identifier.
  • the application server includes: a session identifier obtaining unit, configured to acquire a first session identifier and a second session identifier of a call that passes through the application server; The session identifier is used to parse the session identifier carried in the message from the received first session initiation message; the session identifier replacement unit is configured to: when the session identifier parsed by the session message parsing unit is the first session identifier Replacing the first session
  • the application server obtains the first session identifier and the second session identifier of the call, if the application server receives the The first session initiation message of the first session identifier replaces the first session identifier with the second session identifier, so that the service invitee can identify the call according to the second session identifier, thereby releasing the original established call, so that The session replacement service is implemented normally.
  • FIG. 1 is a schematic diagram of a specific signaling flow of a CONF conference service in the prior art
  • FIG. 2 is a flow chart of a first embodiment of the present invention for implementing a CONF service by using a session identifier replacement
  • FIG. 3 is a flow chart of a second embodiment of the present invention for implementing a CONF service by using a session identifier replacement
  • FIG. 2 is a flowchart of a first embodiment of a method for implementing session substitution of a CONF service according to the present invention.
  • a call has been established between one user UE-A and another user UE-B because the call is due to a certain service.
  • the triggering invokes AS1 that handles the service, and AS1 exists as a B2BUA in the call signaling path.
  • the session Dialog identifier between UE-A and AS1 is Dialog-1, which includes three parts: Call-Id, to-tag, and from-tag. Expressed as "[email protected]", “xyz” and "pdq" respectively.
  • the session Dialog between AS1 and UE-B is identified as Dialog-2, which also includes three parts: Call-Id, to-tag and from-tag.
  • the description of the process is expressed as "[email protected]", respectively. Abc" and "hij,,.
  • Step 1 User UE-A applies for a conference and sends a SIP INVITE message, which can be expressed as:
  • the destination address of the call is the conference service identifier "[email protected]", which means to apply for a conference resource;
  • Step 2 After receiving the SIP INVITE message, the conference AS will apply for a conference resource.
  • the contact address of the conference resource is [email protected], and the response code 200 0K is returned to the user UE-A.
  • Step 3 User UE- A returns a confirmation message SIP ACK. Indicates that the application server AS applies for the conference resource successfully, and establishes a call with UE-A;
  • Step 4 The user UE-A sends a SIP REFER message to the conference AS, requesting the already applied conference resource to initiate a new call to the user UE-B, replacing the established call between the user UE-A and the user UE-B, and
  • the signaling path of the new call is indicated in the SIP REFER message, and the message can be expressed as:
  • the destination address of the message is the conference resource contact address "[email protected]” that has been successfully applied.
  • the reference destination is the contact address of the user UE-B.”sip:[5555::aaa: Bbb:ccc:ddd]: 1357”, Replaces is set to Dialog-l, Call-Id is "[email protected]", to-tag is "xyz”, and from-tag is "pdq" , Route ( Path) setting The specified signaling path [email protected]
  • AS1 When AS1 is involved in the call signaling path of user UE-A and user UE-B as B2BUA, it also records its own contact address [email protected] in the call signaling path. UE-A can pass the established The call signaling acquires the contact address and is specified by Route in the above SIP REFER message.
  • more contact addresses of network elements in the call signaling path that have been established by the user UE-A and the user UE-B may be specified, if the user UE-A and the user UE-B have previously established In the call contact, in addition to the foregoing AS1, there are other network elements that exist in the call signaling path as the B2BUA, and the contact addresses of the network elements need to be specified in the route.
  • the route can also be specified.
  • the contact address of a non-B2BUA network element located in the established call signalling path no longer here - an example.
  • Step 5 The conference AS receives the SIP REFER message, and according to the indication in the message, the conference resource [email protected] has successfully applied to the contact address of the user UE-B, and sends a SIP INVITE message.
  • the message example is as follows:
  • the signaling path of the SIP INVITE message is specified by the Route header field, and is set to the contact address of AS1.
  • the Replaces header field is set to Dialog-1.
  • Step 6 The SIP INVITE message is routed to AS1 according to the signaling path specified by the route header field.
  • the session Dialog identifier established by UE-A is Dialog-1
  • the session Dialog identifier established by UE-B is Dialog-2
  • AS1 obtains the session identifier Dialog-2 corresponding to Dialog-1 according to the B2BUA mechanism, and fills in the SIP INVITE message to replace Dialog-1 in the Replaces header field.
  • the message example is as follows: INVITE sip: [5555 ::aaa:bbb: Ccc:ddd]: 1357 SIP/2.0
  • AS1 sends the replaced SIP INVITE message to the contact address of the user UE-B.
  • the SIP INVITE message will be sent to the NEs according to the signaling path specified in the Route.
  • the NEs will repeat the operation of AS1 in this step according to the B2BUA mechanism, and the SEP INVITE message will be received.
  • the session Dialog identifier carried by the replacements is replaced by the session Dialog identifier of the network element in the direction of the user UE-B, and the replaced SIP INVITE message is sent to the contact address of the user UE-B until the session carried by the Replaces in the SIP INVITE message.
  • the Dialog identifier is located on the user UE-B.
  • Step 7 The user UE-B receives the SIP INVITE message, checks that the Dialog identifier Dialog-2 set in the Replaces header field exists on the local end, and establishes a call with the conference resource sip onf [email protected] that has been successfully applied. Return the response code 2 00 OK to the conference AS.
  • Dialog-1 is replaced by Dialog-2, and does not need to leave itself in the call signaling path between the conference AS and the user UE-B, that is, AS1 does not need to send the INVITE message to the user UE-B in step 6. Record its own contact address, so that the user UE-B receives the subsequent INVITE message and the subsequent interaction message of the conference AS, and does not go through AS1.
  • Step 8 The conference AS returns a confirmation message SIP ACK.
  • User UE-B joins the conference.
  • Step 9 User UE-B releases Dialog-2, sends a goodbye message to AS1 SIP BYE, and the message indicates that the session Dialog is identified as Dialog-2.
  • Step 10 AS1 receives the SIP BYE message and sends a SIP BYE goodbye message to the user UE-A, indicating that the session Dialog identifier is Dialog-l.
  • the call established between the user UE-A and the user UE-B is released.
  • the network element in the SIP REFER message sent by the service user, indicating the signaling path of the SIP INVITE message that the message recipient is required to send, that is, indicating that the service user and the service are located in the SIP REFER message.
  • the network element address in the established call signaling path the network element acts as a B2BUA in the call signaling path that has been established between the service user and the invitee, and the network element will receive the SIP INVITE message in the received message.
  • Network element and industry The first session identifier established between the user and the second session identifier established between the network element and the invitee, and the SIP INVITE message is sent to the invitee, so that the service invitee is in accordance with the SIP INVITE message.
  • the information correctly releases the call that it has established with the business user, so that the business is implemented normally.
  • the session identifier replacement method is also applicable to the foregoing ECT service implementation process.
  • the user B sends a SIP REFER message to the user A, it indicates that the call signaling path established between the user B and the user C is used as the B2BUA.
  • User A receives the SIP REFER message, and sends a SIP INVITE message to user C according to the specified path.
  • the message is routed to AS2.
  • AS2 replaces Dialog-3 set by Replaces in the SIP INVITE message with AS2 and user C according to the B2BUA mechanism.
  • the session Dialog identifies Dialog-4 and sends it to User C.
  • User C receives the SIP INVITE message, checks that the Dialog identifier Dialog-4 set in Replaces exists at the local end, establishes a call with user A, and releases the call that has been established with user B.
  • the session substitution of the present invention can also be applied to other purposes, and not only replaces the session identifier set in the Replaces information, but also replaces the session identifier set in other header fields in this scenario, such as Join information, Target- Dialog information, etc., to implement other types of services.
  • the information can be carried as a parameter in the Refer-To header field of the SIP REFER message, or can be directly carried in the SIP REFER message as a header field.
  • the session identifier of the requested operation is set in the SIP REFER message, and the signaling path of the message carrying the operation information may be indicated in the SIP REFER message, so that the message is obtained.
  • the network element replaces the above session identifier with the session identifier between the network element and the operation acceptor.
  • the message may be a SIP SUBSCRIBE subscription message, a SIP MESSAGE instant message, a SIP INFO information message, etc., in addition to the SIP INVITE message described above.
  • Step 1 User UE-A applies for a conference and sends a SIP INVITE message.
  • Step 2 After receiving the SIP INVITE message, the AS will apply for a conference resource and return a response code 200 OK to the user UE-A.
  • Step 3 User UE-A returns an acknowledgement message SIP ACK. Indicates that the application server AS applies for the conference resource successfully, and establishes a call with UE-A;
  • Step 4 The user UE-A sends a SIP REFER message to the user UE-B, requesting the user UE-B to initiate a new call to the already applied conference resource, instead of the established call between the user UE-A and the user UE-B. And indicating the signaling path of the message in the SIP REFER message, the message can be expressed as:
  • the destination address of the SIP REFER message is the contact address of the user UE-B, and indicates that the signaling path of the REFER message passes through AS 1 , and the signaling path is also the same. It is set by the Route information, but is not set in the Route parameter of the Refer-To header field as shown in Figure 2, but is directly set in the Route header field of the REFER message.
  • Step 5 AS 1 receives the SIP REFER message, because AS 1 is located in the call signaling path established between UE-A and UE-B as B2BUA, and the session Dialog identifier established by UE-A is Dialog-1, and The session Dialog identifier established by UE-B is Dialog-2, and AS1 obtains the session identifier Dialog-2 corresponding to Dialog-1 according to the B2BUA mechanism, and replaces the session identifier in the SIP REFER message, and sends it to the user UE-B.
  • the message example is as follows: :
  • Step 6 After receiving the SIP REFER message, the user UE-B checks the session identifier Dialog-2. If the session is on the local end, the call is initiated to the conference resource that has already been applied.
  • the message is as follows:
  • Step 7 The conference AS sets the SIP INVITE message, establishes a conference channel with the user UE-B, and returns a response code of 200 OK.
  • Step 8 User UE-B returns an acknowledgement message SIPACK. Join the meeting.
  • Step 9 User UE-B releases Dialog-2, sends a goodbye message to AS1 SIP BYE, and the message indicates that the session Dialog is identified as Dialog-2.
  • Step 10 AS1 receives the SIP BYE message and sends a SIP BYE goodbye message to the user UE-A, indicating that the session Dialog identifier is Dialog-l.
  • the call translation has been established between the user UE-A and the user UE-B.
  • the present invention also discloses an apparatus for replacing a session identifier.
  • the session identifier replacement device is located in a signaling path of a call formed by the first session and the second session. Referring to FIG. 4, it is a session identifier of the present invention.
  • FIG. 4 it is a session identifier of the present invention.
  • the session identifier replacing unit specifically includes a session identifier obtaining unit 41, a session message parsing unit 42, and a session identifier replacing unit 43, and preferably, a session message sending unit 44.
  • the session identification unit 41 in the device learns the first session identifier and the second session identifier of the call.
  • the session identifier parsing unit 42 first parses the session identifier carried in the first session initiation message, and if the parsed session identifier is the first session identifier, The first session identifier is replaced by the session identifier replacing unit 43 with the second session identifier.
  • the first session initiation message carries the first session identifier by using the first session identification information segment, and the first session identification information segment may be a Replaces information segment, a Join segment, or a Target-Dialog message. segment.
  • the session identification replacing means is disposed in an application server as a back-to-back user agent, and therefore, the session identification replacing unit 43 performs the identity replacement in accordance with the back-to-back proxy mechanism.
  • the second session initiation message carrying the second session identifier is also sent by the session message sending unit 44, where the second session is sent.
  • the message carries the second session identifier by using the second session identifier information segment, and the second session identifier information segment may be a Replaces information segment, a Join information segment, or a Target-Dialog information segment.
  • the two session initiation messages shown in the foregoing embodiment of FIG. 2 are SIP INVITE invite messages, and the two shown in the embodiment of FIG. Session initiation messages are all SIP REFER reference messages.
  • the server includes the session identifier replacement device of the present embodiment
  • the SIP received by the session message receiving unit 41 The SIP message sent by the message and session message sending unit 44 is not the same SIP message, for example, a SIP REFER message is received, and a SIP INVITE message is sent.
  • the information segment carrying the first session identifier and the information segment carrying the second session identifier are not the same information segment, and the Replaces information segment carrying the first session identifier is located in the Refer-To header field of the SIP REFER message, carrying the first The Replaces information segment of the second session identifier is located in the Replaces header field in the SIP INVITE message.
  • the second session initiation message and the first session initiation message may not be the same message type.
  • the first session initiation message is a SIP REFER message
  • the second session initiation message may be the SIP REFER message.
  • a specific message indicated in the embodiment although the embodiment shown in FIG. 2 provides the case where the specific message is a SIP INVITE message, those skilled in the art should appreciate that the specific message may also be other types of SIP.
  • the specific message includes but is not limited to a SIP INVITE invite message, a SIP SUBSCRIBE subscription message, a SIP MESSAGE instant message, or a SIP INFO information message.
  • a call passes through an application server and has a session identifier (a first session identifier and a second session identifier) on each side of the application server
  • a session identifier a first session identifier and a second session identifier
  • the application service receives the first session identifier in the first session initiation message, by replacing the first session identifier with the second session identifier, the service invitee can identify the second session identifier according to the parsing
  • the call can then release the call accordingly, and the new call service cannot be implemented normally.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A method for replacing the session ID relates to the session service field in a network system. The method includes: an application server acquires a first session ID and a second session ID of a call passing the application server; a first session initiation message arrives at the application server according to the specified signaling route and the first session initiation message at least carries the first session ID; the application server replaces the first session ID with the second session ID. An apparatus for replacing the session ID, an application server and a method for replacing the session enable the session ID sent by the service user to be replaced with a session ID explained correctly by the service invited user, the service invited user can process correctly and thereby the service desired by the service user is implemented normally.

Description

会话标识替换的方法、 装置、 应用服务器及会话替代的方法 本申请要求于 2006 年 4 月 4 日提交中国专利局、 申请号为 200610075019.8、 发明名称为"会话标识替换的方法及使用该会话标识替换的 会话替代的方法"的中国专利申请的优先权, 其全部内容通过引用结合在本申 请中。  Method, device, application server and session replacement method for session identifier replacement. This application claims to be submitted to the Chinese Patent Office on April 4, 2006, with the application number of 200610075019.8, the invention name is "the method of session identifier replacement and the use of the session identifier is replaced. The priority of the Chinese Patent Application, the entire disclosure of which is hereby incorporated by reference.
技术领域 本发明涉及网络***中的会话业务领域,特别是关于一种会话标识替换的 方法、 装置、 应用月 务器及一种会话替代的方法。 TECHNICAL FIELD The present invention relates to the field of session services in network systems, and more particularly to a method, apparatus, application server, and a method of session substitution for session identity replacement.
背景技术 Background technique
目前, 随着分组技术的不断成熟,基于电路交换的传统电信网络正在向着 基于分组交换的宽带电信网发展。 而使用会话发起协议 (SIP: Session Initiation Protocol)作为分组电信核心网的呼叫控制信令则是当前的技术发展趋势之一, 如 ITU-T和 ETSI等标准组织对 NGN的研究, 在这种新的分组电信网络中, 新的分组终端 SIP终端将逐步取代传统的终端话机。  At present, with the continuous maturity of packet technology, traditional telecommunication networks based on circuit switching are developing toward packet telecommunication-based broadband telecommunication networks. The use of Session Initiation Protocol (SIP) as the call control signaling for packet telecommunications core networks is one of the current technological trends, such as ITU-T and ETSI standards organizations for NGN research, in this new In the packet telecommunications network, the new packet terminal SIP terminal will gradually replace the traditional terminal telephone.
其中, ETSI下属的 TISPAN(Telecommunications and Internet Converged Among them, TISPAN (Telecommunications and Internet Converged) under ETSI
Services and Protocols for Advanced Networking)将在 GN ( Next Genteration Network, 下一代网络) 中向 SIP终端用户提供具有传统业务特征的业务统称 为 PSTN/ISDN simulation services (公共电话交换网 /综合业务数字网模拟业务)。 TISPAN成立了多个工作项目(WI, Work Item)来研究这些 simulation业务, 如 WI 03023(DTS/TISPAN-03023-NGN-Rl NGN CO F)研究 CONP会议业务, WI 03055(DTS/TISPAN-03055-NGN-Rl Explicit Communication Transfer)研究 ECT显式通信转移业务。 Services and Protocols for Advanced Networking) will provide SIP terminal users with services with traditional service features in the GN (Next Genteration Network), collectively referred to as PSTN/ISDN simulation services (Public Telephone Switching Network/Integrated Services Digital Network Simulation Service) ). TISPAN has established a number of work projects (WI, Work Item) to study these simulation businesses, such as WI 03023 (DTS/TISPAN-03023-NGN-Rl NGN CO F) research CONP conference business, WI 03055 (DTS/TISPAN-03055- NGN-Rl Explicit Communication Transfer) studies the ECT explicit communication transfer service.
在 WI 03023和 WI 03055修订的标准草案中, CONF业务可以使用户能够 参与和控制一个有许多用户加入的通话, ECT业务则可以使一个通话中的一 方能够将该通话转移至第三方。  In the draft standard revised by WI 03023 and WI 03055, the CONF service enables the user to participate in and control a call with many users joining, and the ECT service enables a party in a call to transfer the call to a third party.
在 WI 03023和 WI 03055制订的这两个业务标准中,都使用了一个会话替 代的技术来实现业务流程, 分别分析如下:  In the two business standards developed by WI 03023 and WI 03055, a session replacement technology is used to implement the business process, which is analyzed as follows:
1) CONF会议业务流程分析  1) Analysis of business process of CONF meeting
在 CONF会议的业务实现流程中, 用户可以邀请一个和其已建立呼叫关 系的用户加入到一个会议中, 用户发送 SIP REFER参考消息来实现这个功能。 在该 SIP REFER消息中,在 Refer-To中设置被邀请用户的联系地址, Replaces 中设置两个用户之间已经建立的会话 Dialog标识, 指示该会话将会被会议和 被邀请用户之间建立的新会话所代替。 In the business implementation process of the CONF meeting, the user can invite one and his established call. The user of the department joins a conference, and the user sends a SIP REFER reference message to implement this function. In the SIP REFER message, the contact address of the invited user is set in Refer-To, and the session Dialog identifier established between the two users is set in Replaces, indicating that the session will be established between the conference and the invited user. A new session is replaced.
该 SIP REFER 消息被路由至处理 CONF 会议业务的应用服务器 (AS: The SIP REFER message is routed to the application server that handles the CONF conference service (AS:
Application Sever), AS将根据 SIP REFER消息中的设置内容, 向指定的被邀 请用户联系地址发送 SIP INVITE邀请消息,并在 SIP INVITE消息中携带上述 的 Replaces信息,使会议和被邀请用户之间建立新的呼叫, 同时被邀请用户根 据 SIP INVITE消息中的 Replaces信息释放两个用户之间已经建立的呼叫。 Application Sever), the AS will send a SIP INVITE invitation message to the specified invited user contact address according to the setting content in the SIP REFER message, and carry the above Replaces information in the SIP INVITE message to establish a connection between the conference and the invited user. A new call is simultaneously invited to release a call already established between two users based on the Replaces information in the SIP INVITE message.
在 WI 03023的标准草案中, 给出了一个具体的信令流程示例, 如图 1所 示。 其流程简介如下;  An example of a specific signaling procedure is given in the draft standard of WI 03023, as shown in Figure 1. The process is as follows:
步骤 1: 用户 UE-A发起一个会话 , 呼叫一个 PSTN/ISDN用户;  Step 1: User UE-A initiates a session and calls a PSTN/ISDN user.
步驟 2 ~ 14: 用户 UE-A和 PSTN/ISDN用户之间会话建立成功 , 开始通 话;  Steps 2 ~ 14: The session between the user UE-A and the PSTN/ISDN user is successfully established, and the call is started;
步骤 15: 用户 UE-A申请创建一个会议, 向处理会议业务的 AS发起一个 会话; .  Step 15: The user UE-A applies to create a conference, and initiates a session to the AS that processes the conference service.
步骤 16 ~ 24: 用户 UE-A申请的会议创建成功;  Steps 16 ~ 24: The user's UE-A application is successfully created.
步骤, 25:用户 UE-A邀请和他正在通话的 PSTN/ISDN用户加入到会议中, 向处理会议业务的 AS发送 SIP REFER消息;  Step 25: The user UE-A invites the PSTN/ISDN user who is in the call to join the conference, and sends a SIP REFER message to the AS that processes the conference service;
步驟 26 - 30: SIP REFER消息到达处理会议业务的 AS, AS 发送 SIP Steps 26 - 30: The SIP REFER message arrives at the AS that processes the conference service, and the AS sends the SIP.
NOTIFY消息通知用户 UE-A接收了这个 REFER消息; The NOTIFY message informs the user that UE-A has received this REFER message;
步骤 31: 处理会议业务的 AS根据收到的 SIP REFER消息中设置的相关 内容, 向 PSTN/ISDN用户发起会话, 发送 SIP INVITE消息;  Step 31: The AS that processes the conference service initiates a session to the PSTN/ISDN user according to the related content set in the received SIP REFER message, and sends a SIP INVITE message.
步骤 32 ~ 41 : 由于 PSTN/ISDN用户属于传统电路域用户, 电路域和分组 域之间将由 MGCF处理互通呼叫, SIP INVITE消息发送到 MGCF, MGCF将 "代替,, PSTN/ISDN用户和会议之间创建会话, 将 PSTN/ISDN用户加入会议。 处理会议业务的 AS发送 SIP NOTIFY消息通知用户 UE-A, REFER请求的操 作成功;  Steps 32 ~ 41: Since the PSTN/ISDN users belong to the traditional circuit domain users, the interworking call will be handled by the MGCF between the circuit domain and the packet domain, and the SIP INVITE message will be sent to the MGCF. The MGCF will "replace, between the PSTN/ISDN user and the conference. Create a session and join the PSTN/ISDN user to the conference. The AS that processes the conference service sends a SIP NOTIFY message to notify the user of UE-A that the operation of the REFER request is successful.
步骤 42 ~ 47: MGCF根据 SIP INVITE 消息中的 Replaces信息, 释放 Replaces信息中设置的 Dialog标识指定的会话 (用户 UE-A和 PSTN/ISDN用 户之间已经建立的会话) 。 Steps 42 ~ 47: The MGCF releases according to the Replaces information in the SIP INVITE message. The Dialog set in the Replaces message identifies the specified session (the session established between the user UE-A and the PSTN/ISDN user).
2) ECT显示通信转移业务流程分析  2) ECT display communication transfer business process analysis
在 ECT转移业务的实现流程中, 用户 B分别和用户 A、 用户 C建立了两 个呼叫, 用户 B可以使用户 A和用户 C之间建立新呼叫, 并且使自己退出原 先已经建立的两个呼叫, 用户 B通过向用户 A发送 SIP REFER消息来实现这 个功能。在 SIP REFER消息中, Refer-To中设置了用户 C的联系地址, Replaces 中设置用户 B和用户 C之间已经建立的会话 Dialog标识, 指示该会话将会被 用户 C和用户 A之间建立的新会话所代替。  In the implementation process of the ECT transfer service, user B establishes two calls with user A and user C respectively, and user B can establish a new call between user A and user C, and withdraw himself from the two calls that have been established. User B implements this function by sending a SIP REFER message to User A. In the SIP REFER message, the contact address of the user C is set in the Refer-To, and the session Dialog identifier established between the user B and the user C is set in the Replaces, indicating that the session will be established between the user C and the user A. A new session is replaced.
用户 A收到这个 SIP REFER消息后, 向指定的用户 C联系地址发送 SIP After receiving the SIP REFER message, user A sends a SIP to the specified user C contact address.
INVITE消息, 并在 SIP INVITE消息中携带上述的 Replaces信息, 使用户 A 和用户 C之间建立新的呼叫, 同时用户 C根据 SIP INVITE消息中的 Replaces 信息释放其和用户 B已经建立的呼叫。 此外, 用户 B也将释放其和用户 A已 经建立的呼叫。 The INVITE message carries the above Replaces information in the SIP INVITE message, so that a new call is established between the user A and the user C, and the user C releases the call that has been established by the user B according to the Replaces information in the SIP INVITE message. In addition, User B will also release the call that it has established with User A.
可以看到, CONF业务和 ECT业务的会话替代的实现流程中, 存在的相 同技术点是: 用户使用 SIP REFER消息来发起业务操作请求, 在该消息中使 用 Replaces来指示要被替代释放的会话 Dialog标识。  It can be seen that in the implementation process of the session substitution of the CONF service and the ECT service, the same technical point exists: the user uses the SIP REFER message to initiate a service operation request, and uses Replaces in the message to indicate the session Dialog to be replaced. Logo.
在 SIP协议中, 两个 SIP UA之间建立呼叫时, 可能因为业务的需要, 而 使该呼叫存在一个以上的会话, 比如该呼叫触发了某个业务, 处理该业务的 AS作为背靠背用户代理 (B2BUA: Back to Back User Agent)介于该呼叫的信令 路径中,则该 AS和这两个 SIP UA之间分别建立了两个会话,各有一个 Dialog 标识。  In the SIP protocol, when a call is established between two SIP UAs, there may be more than one session for the call because the service needs, for example, the call triggers a certain service, and the AS that processes the service acts as a back-to-back user agent ( B2BUA: Back to Back User Agent) In the signaling path of the call, two sessions are established between the AS and the two SIP UAs, each with a Dialog identifier.
这样, 在前述的 CONF 业务会话替代的实现流程中, 用户 ΌΕ-Α 和 PSTN/ISDN用户之间建立的呼叫, 也可能存在一个以上的会话, 用户 UE-A 和处理某个业务的 AS之间建立了一个会话 Dialog- 1 , MGCF和该 AS之间建 立了另一个会话 Dialog-2, 这样, 在用户 UE-A发出的 SIP REFER消息中, Replaces中设置的会话 Dialog标识只是该用户可见的 Dialog标识 (Dialog-1), 处理会议业务的 AS发送给 MGCF的 SIP INVITE消息中携带的 Replaces设置 的也是 Dialog-1 , 而 MGCF上对应呼叫的会话标识却是 Dialog-2,这样 MGCF 将无法释放用户 UE-A和 PSTN/ISDN用户之间建立的呼叫, MGCF也可能因 其收到的 SIP INVITE消息中携带的 Replaces设置的 Dialog标识不存在, 而拒 绝该 SIP INVITE消息, 从而导致会议业务失败。 In this way, in the implementation process of the foregoing CONF service session replacement, the call established between the user ΌΕ-Α and the PSTN/ISDN user may also have more than one session, between the user UE-A and the AS processing a certain service. A session Dialog-1 is established, and another session Dialog-2 is established between the MGCF and the AS. Thus, in the SIP REFER message sent by the user UE-A, the session Dialog identifier set in the Replaces is only the Dialog visible to the user. The identifier (Dialog-1), the Replacement carried in the SIP INVITE message sent by the AS that processes the conference service to the MGCF is also Dialog-1, and the session identifier of the corresponding call on the MGCF is Dialog-2, so MGCF The call established between the user UE-A and the PSTN/ISDN user will not be released. The MGCF may also reject the SIP INVITE message because the Dialog identifier set by the Replaces carried in the SIP INVITE message received by the MGCF does not exist. Business failed.
同样的, 在 ECT业务会话替代的实现流程中, 用户 B和用户 C之间建立 的呼叫也可能存在一个以上的会话, 这样在用户 C收到的 SIP INVITE消息中 携带的 Replaces设置的 Dialog标识, 是用户 B可见的 Dialog标识, 但在用户 C上却不存在, 这样用户 C将无法释放用户 B和用户 C之间建立的呼叫, 还 可能导致 ECT业务失败。  Similarly, in the implementation process of the ECT service session replacement, the call established between the user B and the user C may also have more than one session, so that the Dialog identifier set by the Replaces carried in the SIP INVITE message received by the user C, It is the Dialog identifier visible to the user B, but does not exist on the user C, so that the user C will not be able to release the call established between the user B and the user C, and may also cause the ECT service to fail.
可见, 在当前的会议业务和 ECT业务实现流程中, 没有考虑业务使用者 和业务被邀请者之间建立的呼叫可能存在一个以上的会话的情况,这将使被邀 请者收到的需要被替代的 Dialog标识, 在本端不存在, 这将导致被邀请者无 法释放和业务使用者之间已经建立的呼叫, 还可能导致业务失败。  It can be seen that in the current conference service and ECT service implementation process, there is no consideration that the call established between the service user and the service invitee may have more than one session, which will enable the invitee to receive the need to be replaced. The Dialog ID does not exist on the local end. This will cause the invitee to be unable to release the call that has been established between the service user and may also cause the service to fail.
发明内容 Summary of the invention
本发明实施例提供了一种会话标识替换的方法、 装置、 应用服务器, 以及 —种会话替代的方法,使得业务使用者发出的会话标识被替换为业务被邀请者 能够正确解释的会话标识,进而业务被邀请者可以作出正确的处理,从而使业 务使用者期望的业务正常实现。  The embodiment of the invention provides a method, a device, an application server, and a method for replacing a session identifier, so that the session identifier sent by the service user is replaced with the session identifier that the service invitee can correctly interpret, and further The business invitees can make the correct processing so that the business expected by the business users is implemented normally.
本发明实施例提供了一种会话标识替换的方法, 所述方法包括: 一个呼叫 经过应用服务器, 所述应用服务器获取该呼叫的第一会话标识和第二会话标 识; 第一会话发起消息根据指定信令路径到达所述应用服务器, 所述第一会话 发起消息至少携带所述第一会话标识;所述应用服务器将所述第一会话标识替 换为所述第二会话标识。  The embodiment of the present invention provides a method for replacing a session identifier, the method includes: a call passes through an application server, and the application server acquires a first session identifier and a second session identifier of the call; The signaling path arrives at the application server, and the first session initiation message carries at least the first session identifier; the application server replaces the first session identifier with the second session identifier.
本发明实施例提供了一种会话替代的方法, 所述方法包括: 业务使用者发 送会话发起消息,在所述消息中包括第一会话标识、业务被邀请者及信令路径; 依据所述信令路径,接收者接收到所述会话发起消息后将第一会话标识替换为 第二会话标识, 并向业务被邀请者方向发送携带所述第二会话标识的特定消 息, 所述第一会话标识和第二会话标识位于同一个呼叫中; 所述业务被邀请者 收到所述携带有第二会话标识的特定消息后建立新会话,并释放原已建立的所 述第二会话标识代表的呼叫。 本发明实施例提供了一种会话标识替换装置, 所述装置包括: 会话标识获 知单元,用于获知经过所述会话标识替换装置的一个呼叫的第一会话标识和第 二会话标识; 会话消息解析单元, 用于从接收到的第一会话发起消息中解析出 该消息携带的会话标识; 会话标识替换单元, 用于在所述会话消息解析单元解 析出的会话标识为所述第一会话标识的情况下,将所述第一会话标识替换为第 二会话标识。 An embodiment of the present invention provides a method for session substitution, where the method includes: a service user sending a session initiation message, where the message includes a first session identifier, a service invitee, and a signaling path; After the session is received, the receiver replaces the first session identifier with the second session identifier, and sends a specific message carrying the second session identifier to the service invitee, the first session identifier. And the second session identifier is located in the same call; the service invitee receives the specific message carrying the second session identifier, establishes a new session, and releases the previously established call represented by the second session identifier. . The embodiment of the present invention provides a session identifier replacement device, where the device includes: a session identifier obtaining unit, configured to learn a first session identifier and a second session identifier of a call that passes through the session identifier replacing device; a unit, configured to parse the session identifier carried in the message from the received first session initiation message, and the session identifier replacement unit, configured to use the session identifier that is parsed by the session message parsing unit as the first session identifier In the case, the first session identifier is replaced with a second session identifier.
本发明实施例还提过了一种应用服务器, 所述应用服务器包括: 会话标识 获取单元,用于获取经过所述应用服务器的呼叫的第一会话标识和第二会话标 识; 会话消息解析单元, 用于从接收到的第一会话发起消息中解析出该消息携 带的会话标识; 会话标识替换单元,用于在所述会话消息解析单元解析出的会 话标识为所述第一会话标识的情况下,将所述第一会话标识替换为第二会话标 识。  The embodiment of the present invention further provides an application server, where the application server includes: a session identifier obtaining unit, configured to acquire a first session identifier and a second session identifier of a call that passes through the application server; The session identifier is used to parse the session identifier carried in the message from the received first session initiation message; the session identifier replacement unit is configured to: when the session identifier parsed by the session message parsing unit is the first session identifier Replacing the first session identifier with a second session identifier.
从以上技术方案可以看出,在本发明实施例中, 当一个呼叫经过应用服务 器, 并且该应用服务器获取了该呼叫的第一会话标识和第二会话标识后,如果 应用服务器收到携带所述第一会话标识的第一会话发起消息,则将第一会话标 识替换为第二会话标识,使得业务被邀请者能够根据第二会话标识识别出所述 呼叫, 进而释放原已建立的呼叫, 使会话替代业务正常实现。  As can be seen from the above technical solution, in the embodiment of the present invention, after a call passes through the application server, and the application server obtains the first session identifier and the second session identifier of the call, if the application server receives the The first session initiation message of the first session identifier replaces the first session identifier with the second session identifier, so that the service invitee can identify the call according to the second session identifier, thereby releasing the original established call, so that The session replacement service is implemented normally.
附图说明 图 1是现有技术中 CONF会议业务具体的信令流程示意图; BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of a specific signaling flow of a CONF conference service in the prior art;
图 2是本发明通过会话标识替换实现 CONF业务的第一实施例流程图; 图 3是本发明通过会话标识替换实现 CONF业务的第二实施例流程图; 图 4是本发明会话标识替换装置的实施例结构示意图。  2 is a flow chart of a first embodiment of the present invention for implementing a CONF service by using a session identifier replacement; FIG. 3 is a flow chart of a second embodiment of the present invention for implementing a CONF service by using a session identifier replacement; A schematic structural view of an embodiment.
具体实施方式 以下结合附图和具体实施方式, 进一步说明本发明各实施例 。 DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of the present invention will be further described with reference to the drawings and specific embodiments.
以下将以 CONF业务及 ECT业务的具体的信令流程来说明本发明会话标 识替换的方法及会话替代的方法各实施例的实施。  The implementation of the method for replacing the session identifier and the method for replacing the session of the present invention will be described below in the specific signaling flow of the CONF service and the ECT service.
请参考图 2,是本发明一种实现的 CONF业务的会话替代的方法的第一实 施例流程图。  Please refer to FIG. 2, which is a flowchart of a first embodiment of a method for implementing session substitution of a CONF service according to the present invention.
一用户 UE-A和另一用户 UE-B之间已经建立一个呼叫, 该呼叫因为某个业务 的触发而调用了处理该业务的 AS1 , AS1作为 B2BUA存在于呼叫信令路径中。 其中, UE-A和 AS1之间的会话 Dialog标识为 Dialog-1 , 其包括 Call-Id (呼叫 标识)、 to-tag (目的标签)及 from-tag (源标签)三个部分, 流程说明中分别 表示为 "[email protected]"、 "xyz"及" pdq"。 AS1 和 UE-B之间的会话 Dialog 标识为 Dialog-2, 其同样包括 Call-Id、 to-tag及 from-tag三个部分, 流程说明 中则分别表示为 "[email protected]"、 "abc"及" hij,,。 A call has been established between one user UE-A and another user UE-B because the call is due to a certain service. The triggering invokes AS1 that handles the service, and AS1 exists as a B2BUA in the call signaling path. The session Dialog identifier between UE-A and AS1 is Dialog-1, which includes three parts: Call-Id, to-tag, and from-tag. Expressed as "[email protected]", "xyz" and "pdq" respectively. The session Dialog between AS1 and UE-B is identified as Dialog-2, which also includes three parts: Call-Id, to-tag and from-tag. The description of the process is expressed as "[email protected]", respectively. Abc" and "hij,,.
本发明实现的 CONF业务的方法, 其具体流程说明如下:  The specific process of the method for implementing the CONF service implemented by the present invention is as follows:
步驟 1 : 用户 UE-A申请一个会议, 发送 SIP INVITE消息, 该消息可表 示为:  Step 1: User UE-A applies for a conference and sends a SIP INVITE message, which can be expressed as:
INVITE sip:[email protected] SIP/2.0  INVITE sip:[email protected] SIP/2.0
呼叫目的地址为会议业务标识" [email protected]", 其表示申请一个 会议资源;  The destination address of the call is the conference service identifier "[email protected]", which means to apply for a conference resource;
步骤 2: 会议 AS收到该 SIP INVITE消息后, 会申请一个会议资源, 该会 议资源的联系地址为 [email protected], 并向用户 UE-A返回响应码 200 0K; 步骤 3: 用户 UE-A返回确认消息 SIP ACK。 表示应用服务器 AS申请会 议资源成功, 并和 UE-A之间建立了一个呼叫;  Step 2: After receiving the SIP INVITE message, the conference AS will apply for a conference resource. The contact address of the conference resource is [email protected], and the response code 200 0K is returned to the user UE-A. Step 3: User UE- A returns a confirmation message SIP ACK. Indicates that the application server AS applies for the conference resource successfully, and establishes a call with UE-A;
步骤 4: 用户 UE-A向会议 AS发送一个 SIP REFER消息, 要求已经申请 的会议资源向用户 UE-B发起一个新呼叫 , 替代用户 UE-A和用户 UE-B间已 经建立的呼叫, 并在该 SIP REFER消息中指明新呼叫的信令路径, 该消息可 表示为:  Step 4: The user UE-A sends a SIP REFER message to the conference AS, requesting the already applied conference resource to initiate a new call to the user UE-B, replacing the established call between the user UE-A and the user UE-B, and The signaling path of the new call is indicated in the SIP REFER message, and the message can be expressed as:
REFER sip:[email protected] SIP/2.0  REFER sip:[email protected] SIP/2.0
Refer-To :<  Refer-To :<
sip: [5555: : aaa:bbb: ccc: ddd]: 1357?Replaces= 123 @example.org%3 Bto-tagxyz%3B f rom-tagpdq? Sip: [5555: : aaa:bbb: ccc: ddd]: 1357?Replaces= 123 @example.org%3 Bto-tagxyz%3B f rom-tagpdq?
Route=sip:as [email protected]; method=INVITE>  Route=sip:as [email protected]; method=INVITE>
该消息的 目 的地址为 已经申请成功的会议资源联系地址 "[email protected]"„ 在 Refer-To头域中, 参考目的地为用户 UE-B的联系地址 "sip:[5555::aaa:bbb:ccc:ddd]: 1357", Replaces (替换)设置为 Dialog-l, Call-Id 为" [email protected]", to-tag为" xyz" , from-tag为" pdq" , Route (路径)设置 了指定的信令路径 [email protected] The destination address of the message is the conference resource contact address "[email protected]" that has been successfully applied. In the Refer-To header field, the reference destination is the contact address of the user UE-B."sip:[5555::aaa: Bbb:ccc:ddd]: 1357", Replaces is set to Dialog-l, Call-Id is "[email protected]", to-tag is "xyz", and from-tag is "pdq" , Route ( Path) setting The specified signaling path [email protected]
当 AS1作为 B2BUA介入用户 UE-A和用户 UE-B的呼叫信令路径中, 其 也会将自己的联系地址 [email protected]记录在呼叫信令路径中, UE-A可以通过 已经建立的呼叫信令获取该联系地址,并在上述 SIP REFER消息中通过 Route 来指定。  When AS1 is involved in the call signaling path of user UE-A and user UE-B as B2BUA, it also records its own contact address [email protected] in the call signaling path. UE-A can pass the established The call signaling acquires the contact address and is specified by Route in the above SIP REFER message.
需要说明的是, 该 Route中可以指定更多位于用户 UE-A和用户 UE-B已 经建立的呼叫信令路径中的网元的联系地址, 若用户 UE-A和用户 UE-B此前 已经建立的呼叫联系中,除了上述的 AS1夕卜,还有其它的网元作为 B2BUA存 在于该呼叫信令路径中, 都需要在该 Route中指定这些网元的联系地址, 当然 该 Route中也可以指定位于已经建立的呼叫信令路径中的非 B2BUA网元的联 系地址, 这里不再——示例。  It should be noted that, in the route, more contact addresses of network elements in the call signaling path that have been established by the user UE-A and the user UE-B may be specified, if the user UE-A and the user UE-B have previously established In the call contact, in addition to the foregoing AS1, there are other network elements that exist in the call signaling path as the B2BUA, and the contact addresses of the network elements need to be specified in the route. Of course, the route can also be specified. The contact address of a non-B2BUA network element located in the established call signalling path, no longer here - an example.
步驟 5: 会议 AS收到该 SIP REFER消息, 根据消息中的指示, 由已经申 请成功的会议资源 [email protected]向用户 UE-B的联系地址发起呼叫, 发 送 SIP INVITE消息, 消息示例如下:  Step 5: The conference AS receives the SIP REFER message, and according to the indication in the message, the conference resource [email protected] has successfully applied to the contact address of the user UE-B, and sends a SIP INVITE message. The message example is as follows:
INVITE sip: [5555::aaa:bbb:ccc:ddd]:1357 SIP/2.0  INVITE sip: [5555::aaa:bbb:ccc:ddd]:1357 SIP/2.0
Route: <sip: as 1 @home.net>  Route: <sip: as 1 @home.net>
Replaces: [email protected]; to-tag=xyz; from-tag=pdq  Replaces: [email protected]; to-tag=xyz; from-tag=pdq
通过 Route头域指定该 SIP INVITE消息的信令路径, 设定为 ASl的联系 地址, Replaces头域中设定为 Dialog- 1。  The signaling path of the SIP INVITE message is specified by the Route header field, and is set to the contact address of AS1. The Replaces header field is set to Dialog-1.
步骤 6:该 SIP INVITE消息根据 Route头域指定的信令路径,路由至 AS1, Step 6: The SIP INVITE message is routed to AS1 according to the signaling path specified by the route header field.
AS1作为 B2BUA位于 UE-A和 UE-B间已经建立的呼叫信令路径中,和 UE-A 建立的会话 Dialog 标识为 Dialog-l, 和 UE-B 建立的会话 Dialog 标识为 Dialog-2, 则 ASl根据 B2BUA机制,得到 Dialog-1对应的会话标识 Dialog-2, 并填入 SIP INVITE消息中, 替换 Replaces头域中的 Dialog-1 , 消息示例如下: INVITE sip: [5555 ::aaa:bbb:ccc:ddd]: 1357 SIP/2.0 As the B2BUA is located in the call signaling path established between UE-A and UE-B, the session Dialog identifier established by UE-A is Dialog-1, and the session Dialog identifier established by UE-B is Dialog-2. AS1 obtains the session identifier Dialog-2 corresponding to Dialog-1 according to the B2BUA mechanism, and fills in the SIP INVITE message to replace Dialog-1 in the Replaces header field. The message example is as follows: INVITE sip: [5555 ::aaa:bbb: Ccc:ddd]: 1357 SIP/2.0
Replaces: [email protected]; to-tag=abc;
Figure imgf000009_0001
Replaces: [email protected]; to-tag=abc;
Figure imgf000009_0001
ASl将替换后的 SIP INVITE消息发往用户 UE-B的联系地址。  AS1 sends the replaced SIP INVITE message to the contact address of the user UE-B.
需要指出的是, 如果除了 AS1外, 在上述的 Route中还指定了其它作为 B2BUA存在于用户 UE-A和用户 UE-B已经建立的呼叫信令路径中的网元的 联系地址, 则上述的 SIP INVITE消息还将按 Route中指定的信令路径, 发往 这些网元, 这些网元将按 B2BUA机制, 重复本步驟中 AS1的操作, 即将收到 的 SEP INVITE消息中 Replaces携带的会话 Dialog标识,替换为该网元向用户 UE-B方向的会话 Dialog标识,再将替换后的 SIP INVITE消息发往用户 UE-B 的联系地址, 直至 SIP INVITE消息中 Replaces携带的会话 Dialog标识, 位于 用户 UE-B上为止。 It should be noted that, in addition to AS1, other network elements that are present in the call signaling path that the user UE-A and the user UE-B have established are also specified in the above-mentioned route. The SIP INVITE message will be sent to the NEs according to the signaling path specified in the Route. The NEs will repeat the operation of AS1 in this step according to the B2BUA mechanism, and the SEP INVITE message will be received. The session Dialog identifier carried by the replacements is replaced by the session Dialog identifier of the network element in the direction of the user UE-B, and the replaced SIP INVITE message is sent to the contact address of the user UE-B until the session carried by the Replaces in the SIP INVITE message. The Dialog identifier is located on the user UE-B.
步骤 7: 用户 UE-B收到该 SIP INVITE消息, 检查 Replaces头域中设置 的 Dialog 标识 Dialog-2 存在于本端, 则和已经申请成功的会议资源 sip onf [email protected]间建立呼叫, 向会议 AS返回响应码 2 00 OK。  Step 7: The user UE-B receives the SIP INVITE message, checks that the Dialog identifier Dialog-2 set in the Replaces header field exists on the local end, and establishes a call with the conference resource sip onf [email protected] that has been successfully applied. Return the response code 2 00 OK to the conference AS.
需要指出的是, 该 200 ΟΚ响应码没有经过 AS1 , 这是因为 AS1除了将 It should be noted that the 200 ΟΚ response code does not pass AS1, because AS1 will be
Dialog-1替换为 Dialog-2外, 并不需要将自己留在会议 AS和用户 UE-B之间 的呼叫信令路径中,即 AS1不需要在步骤 6向用户 UE-B发出的 INVITE消息 中记录下自己的联系地址, 这样用户 UE-B 收到该 INVITE 消息后的和会议 AS的后继交互消息, 都不经过 AS1。 Dialog-1 is replaced by Dialog-2, and does not need to leave itself in the call signaling path between the conference AS and the user UE-B, that is, AS1 does not need to send the INVITE message to the user UE-B in step 6. Record its own contact address, so that the user UE-B receives the subsequent INVITE message and the subsequent interaction message of the conference AS, and does not go through AS1.
当然,若 AS1在步骤 6向用户 UE-B发出的 INVITE消息中记录下自己的 联系地址, 则上述的 200 OK响应码将经过 AS1 , 再发送至会议 AS。  Of course, if AS1 records its own contact address in the INVITE message sent by the user UE-B in step 6, the above 200 OK response code will pass through AS1 and then be sent to the conference AS.
步驟 8: 会议 AS返回确认消息 SIP ACK。 用户 UE-B加入会议。  Step 8: The conference AS returns a confirmation message SIP ACK. User UE-B joins the conference.
步骤 9: 用户 UE-B释放 Dialog-2, 向 AS1发送再见消息 SIP BYE, 消息 中指明会话 Dialog标识为 Dialog-2。  Step 9: User UE-B releases Dialog-2, sends a goodbye message to AS1 SIP BYE, and the message indicates that the session Dialog is identified as Dialog-2.
步骤 10: AS1收到该 SIP BYE消息, 向用户 UE-A发送 SIP BYE再见消 息, 消息中指明会话 Dialog标识为 Dialog-l。 用户 UE-A和用户 UE-B间已经 建立的呼叫释放。  Step 10: AS1 receives the SIP BYE message and sends a SIP BYE goodbye message to the user UE-A, indicating that the session Dialog identifier is Dialog-l. The call established between the user UE-A and the user UE-B is released.
该会话标识替换的方法中, 在业务使用者发出的 SIP REFER消息中, 指 明该消息接受者被要求发送的 SIP INVITE消息的信令路径, 即在 SIP REFER 消息中指明位于业务使用者和业务被邀请者间已经建立的呼叫信令路径中的 网元地址, 从而使 SIP REFER消息接受者按要求发送的 SIP INVITE消息, 可 以通过指定的信令路径,路由至业务使用者和被邀请者间已经建立的呼叫信令 路径中的网元地址, 该网元作为 B2BUA存在于业务使用者和被邀请者间已经 建立的呼叫信令路径中, 该网元将其收到的 SIP INVITE消息中的该网元和业 务使用者间建立的第一会话标识,替换为该网元和被邀请者间建立的第二会话 标识, 并将 SIP INVITE消息向被邀请者发送, 从而使业务被邀请者根据 SIP INVITE消息中的信息正确释放其和业务使用者已经建立的呼叫, 使业务正常 实现。 In the method for replacing the session identifier, in the SIP REFER message sent by the service user, indicating the signaling path of the SIP INVITE message that the message recipient is required to send, that is, indicating that the service user and the service are located in the SIP REFER message. The network element address in the call signaling path that has been established between the invitees, so that the SIP INVITE message sent by the SIP REFER message recipient can be routed to the service user and the invitee through the specified signaling path. The network element address in the established call signaling path, the network element acts as a B2BUA in the call signaling path that has been established between the service user and the invitee, and the network element will receive the SIP INVITE message in the received message. Network element and industry The first session identifier established between the user and the second session identifier established between the network element and the invitee, and the SIP INVITE message is sent to the invitee, so that the service invitee is in accordance with the SIP INVITE message. The information correctly releases the call that it has established with the business user, so that the business is implemented normally.
同理, 该会话标识替换方法同样适用于前述的 ECT业务实现流程, 当用 户 B向用户 A发送的 SIP REFER消息中,指明了位于用户 B和用户 C间已经 建立的呼叫信令路径中作为 B2BUA的网元 AS2的联系地址, 并将 Replaces 设置为用户 B和 AS2间的会话 Dialog标识 Dialog-3。  Similarly, the session identifier replacement method is also applicable to the foregoing ECT service implementation process. When the user B sends a SIP REFER message to the user A, it indicates that the call signaling path established between the user B and the user C is used as the B2BUA. The contact address of the network element AS2, and set Replaces as the session Dialog identifier Dialog-3 between user B and AS2.
用户 A收到该 SIP REFER消息, 按指定路径向用户 C发送 SIP INVITE 消息, 该消息路由至 AS2, AS2根据 B2BUA机制, 将 SIP INVITE消息中的 Replaces设置的 Dialog-3,替换为 AS2和用户 C间的会话 Dialog标识 Dialog-4, 并向用户 C发送。  User A receives the SIP REFER message, and sends a SIP INVITE message to user C according to the specified path. The message is routed to AS2. AS2 replaces Dialog-3 set by Replaces in the SIP INVITE message with AS2 and user C according to the B2BUA mechanism. The session Dialog identifies Dialog-4 and sends it to User C.
用户 C收到该 SIP INVITE消息, 检查 Replaces 中设置的 Dialog标识 Dialog-4存在于本端, 则和用户 A建立呼叫, 并释放和用户 B 已经建立的呼 叫。  User C receives the SIP INVITE message, checks that the Dialog identifier Dialog-4 set in Replaces exists at the local end, establishes a call with user A, and releases the call that has been established with user B.
同样本发明会话替代也可以应用于其他的用途中,并不仅仅替换 Replaces 信息中设置的会话标识,还可用来替换在此场景下, 其它头域中设置的会话标 识, 如 Join信息、 Target-Dialog信息等, 以实现其他的各类业务, 这些信息可 以作为参数携带于 SIP REFER消息的 Refer-To头域中, 也可以直接作为头域 携带于 SIP REFER消息中。  The session substitution of the present invention can also be applied to other purposes, and not only replaces the session identifier set in the Replaces information, but also replaces the session identifier set in other header fields in this scenario, such as Join information, Target- Dialog information, etc., to implement other types of services. The information can be carried as a parameter in the Refer-To header field of the SIP REFER message, or can be directly carried in the SIP REFER message as a header field.
也就是, 使用本发明方案, 只要出现上述场景, 在 SIP REFER消息中设 定了被要求操作的会话标识, 都可在 SIP REFER消息中指明发起携带操作信 息的消息的信令路径,使该消息到达指定的网元时, 该网元将上述的会话标识 替换为该网元和操作接受方间的会话标识。 该消息除了上述的 SIP INVITE消 息外,还可以是 SIP SUBSCRIBE订阅消息、 SIP MESSAGE即时消息、 SIP INFO 信息消息等。  That is, using the solution of the present invention, as long as the above scenario occurs, the session identifier of the requested operation is set in the SIP REFER message, and the signaling path of the message carrying the operation information may be indicated in the SIP REFER message, so that the message is obtained. When the specified network element is reached, the network element replaces the above session identifier with the session identifier between the network element and the operation acceptor. The message may be a SIP SUBSCRIBE subscription message, a SIP MESSAGE instant message, a SIP INFO information message, etc., in addition to the SIP INVITE message described above.
可以看到, 本发明的核心思想是由指定信令路径中的网元, 替换 SIP REFER 消息中携带的被要求操作的会话标识, 下面给出第二实施例流程, 请 参考图 3 , 该实施流程的应用场景同前述的图 2。 其具体流程说明如下: It can be seen that the core idea of the present invention is to replace the session identifier of the requested operation carried in the SIP REFER message by the network element in the specified signaling path. The flow of the second embodiment is given below. Please refer to FIG. 3 , the implementation The application scenario of the process is the same as Figure 2 above. The specific process is described as follows:
步骤 1: 用户 UE-A申请一个会议, 发送 SIP INVITE消息;  Step 1: User UE-A applies for a conference and sends a SIP INVITE message.
步驟 2: 会议 AS收到该 SIP INVITE消息后, 会申请一个会议资源, 并向 用户 UE-A返回响应码 200 OK;  Step 2: After receiving the SIP INVITE message, the AS will apply for a conference resource and return a response code 200 OK to the user UE-A.
步骤 3: 用户 UE-A返回确认消息 SIP ACK。 表示应用服务器 AS申请会 议资源成功, 并和 UE-A之间建立了一个呼叫;  Step 3: User UE-A returns an acknowledgement message SIP ACK. Indicates that the application server AS applies for the conference resource successfully, and establishes a call with UE-A;
步骤 4: 用户 UE-A向用户 UE-B发送一个 SIP REFER消息, 要求用户 UE-B向已经申请的会议资源发起一个新呼叫, 替代用户 UE-A和用户 UE-B 间已经建立的呼叫, 并在该 SIP REFER消息中指明本消息的信令路径, 该消 息可表示为:  Step 4: The user UE-A sends a SIP REFER message to the user UE-B, requesting the user UE-B to initiate a new call to the already applied conference resource, instead of the established call between the user UE-A and the user UE-B. And indicating the signaling path of the message in the SIP REFER message, the message can be expressed as:
REFER sip:[5555::aaa:bbb:ccc:ddd]:1357 SIP/2.0  REFER sip:[5555::aaa:bbb:ccc:ddd]:1357 SIP/2.0
Refer-To :<  Refer-To :<
sip:[email protected][email protected]%3Bto-tagxyz%3Bfrom-tagpdq ; method=INVITE> Sip:[email protected][email protected]%3Bto-tagxyz%3Bfrom-tagpdq ; method=INVITE>
Route: <as 1 @home.net>  Route: <as 1 @home.net>
可以看到, 和图 2的实施流程的不同在于: 该 SIP REFER消息的目的地 址是用户 UE-B的联系地址,并指明了该 REFER消息的信令路径要经过 AS 1 , 该信令路径同样由 Route信息设定, 但不象图 2—样设置在 Refer-To头域的 Route参数中, 而是直接设置在该 REFER消息的 Route头域中。  It can be seen that the difference from the implementation flow of FIG. 2 is that: the destination address of the SIP REFER message is the contact address of the user UE-B, and indicates that the signaling path of the REFER message passes through AS 1 , and the signaling path is also the same. It is set by the Route information, but is not set in the Route parameter of the Refer-To header field as shown in Figure 2, but is directly set in the Route header field of the REFER message.
步骤 5: AS 1收到该 SIP REFER消息, 由于 AS 1作为 B2BUA位于 UE-A 和 UE-B间已经建立的呼叫信令路径中, 和 UE-A建立的会话 Dialog标识为 Dialog-1 , 和 UE-B建立的会话 Dialog标识为 Dialog-2, 则 AS1根据 B2BUA 机制, 得到 Dialog-1对应的会话标识 Dialog-2, 替换 SIP REFER消息中的会 话标识, 向用户 UE-B发送, 消息示例如下:  Step 5: AS 1 receives the SIP REFER message, because AS 1 is located in the call signaling path established between UE-A and UE-B as B2BUA, and the session Dialog identifier established by UE-A is Dialog-1, and The session Dialog identifier established by UE-B is Dialog-2, and AS1 obtains the session identifier Dialog-2 corresponding to Dialog-1 according to the B2BUA mechanism, and replaces the session identifier in the SIP REFER message, and sends it to the user UE-B. The message example is as follows: :
REFER sip:[5555::aaa:bbb:ccc:ddd]:1357 SIP/2.0  REFER sip:[5555::aaa:bbb:ccc:ddd]:1357 SIP/2.0
Refer-To :<  Refer-To :<
sip:[email protected][email protected]%3Bto-tagabc%3Bfrom-taghji ; method=INVITE> Sip:[email protected][email protected]%3Bto-tagabc%3Bfrom-taghji ; method=INVITE>
步骤 6: 用户 UE-B收到该 SIP REFER消息后, 检查会话标识 Dialog-2对 应的会话位于本端, 则向已经申请的会议资源发起呼叫, 消息示例如下:Step 6: After receiving the SIP REFER message, the user UE-B checks the session identifier Dialog-2. If the session is on the local end, the call is initiated to the conference resource that has already been applied. The message is as follows:
INVITE sip :conf [email protected] SIP/2.0 INVITE sip :conf [email protected] SIP/2.0
步骤 7: 会议 AS该 SIP INVITE消息, 和用户 UE-B建立了会议通道, 返 回响应码 200 OK。  Step 7: The conference AS sets the SIP INVITE message, establishes a conference channel with the user UE-B, and returns a response code of 200 OK.
步骤 8: 用户 UE-B返回确认消息 SIPACK。 加入会议。  Step 8: User UE-B returns an acknowledgement message SIPACK. Join the meeting.
步骤 9: 用户 UE-B释放 Dialog-2, 向 AS1发送再见消息 SIP BYE, 消息 中指明会话 Dialog标识为 Dialog-2。  Step 9: User UE-B releases Dialog-2, sends a goodbye message to AS1 SIP BYE, and the message indicates that the session Dialog is identified as Dialog-2.
步骤 10: AS1收到该 SIP BYE消息, 向用户 UE-A发送 SIP BYE再见消 息, 消息中指明会话 Dialog标识为 Dialog-l。 用户 UE-A和用户 UE-B间已经 建立的呼叫译放。  Step 10: AS1 receives the SIP BYE message and sends a SIP BYE goodbye message to the user UE-A, indicating that the session Dialog identifier is Dialog-l. The call translation has been established between the user UE-A and the user UE-B.
本发明还公开了一种会话标识替换的装置实施例,所述会话标识替换装置 位于第一会话和第二会话构成的一个呼叫的信令路径中, 请参阅图 4, 其为本 发明会话标识替换装置实施例的结构示意图。由于前文已经对许多相同或相应 的技术特征进行过详细说明, 因此, 本实施例仅简单叙述。 下面结合该装置的 工作原理进一步说明其内部结构。所述会话标识替换装置具体包括会话标识获 知单元 41、会话消息解析单元 42以及会话标识替换单元 43 , 优选的, 还包括 会话消息发送单元 44。  The present invention also discloses an apparatus for replacing a session identifier. The session identifier replacement device is located in a signaling path of a call formed by the first session and the second session. Referring to FIG. 4, it is a session identifier of the present invention. A schematic structural view of an alternative device embodiment. Since many of the same or corresponding technical features have been described in detail above, this embodiment is only briefly described. The internal structure will be further explained below in conjunction with the working principle of the device. The session identifier replacing unit specifically includes a session identifier obtaining unit 41, a session message parsing unit 42, and a session identifier replacing unit 43, and preferably, a session message sending unit 44.
当一个呼叫经过所述会话标识替换装置时,由该装置中的会话标识获知单 元 41获知该呼叫的第一会话标识和第二会话标识。 当某个第一会话发起消息 到达所述会话标识替换装置后, 首先由会话消息解析单元 42从中解析出该第 一会话发起消息携带的会话标识,如果解析出的会话标识是第一会话标识, 则 由会话标识替换单元 43将所述第一会话标识替换为第二会话标识。 所述第一 会话发起消息通过第一会话标识信息段携带第一会话标识,第一会话标识信息 段可以是 Replaces (替换)信息段、 Join (加入)信息段或 Target-Dialog (目 标会话 )信息段。 通常而言, 所述会话标识替换装置设置于一个作为背靠背用 户代理的应用服务器中, 因此, 会话标识替换单元 43在进行标识替换时依据 的是背靠背代理机制。  When a call passes through the session identification replacement device, the session identification unit 41 in the device learns the first session identifier and the second session identifier of the call. After a certain session initiation message arrives at the session identifier replacement device, the session identifier parsing unit 42 first parses the session identifier carried in the first session initiation message, and if the parsed session identifier is the first session identifier, The first session identifier is replaced by the session identifier replacing unit 43 with the second session identifier. The first session initiation message carries the first session identifier by using the first session identification information segment, and the first session identification information segment may be a Replaces information segment, a Join segment, or a Target-Dialog message. segment. Generally, the session identification replacing means is disposed in an application server as a back-to-back user agent, and therefore, the session identification replacing unit 43 performs the identity replacement in accordance with the back-to-back proxy mechanism.
在会话标识替换单元 43将第一标识替换为第二标识后, 还会通过会话消 息发送单元 44发送携带第二会话标识的第二会话发起消息, 所述第二会话发 起消息通过第二会话标识信息段携带第二会话标识,所述第二会话标识信息段 可以是 Replaces信息段、 Join信息段或 Target-Dialog信息段。 After the session identifier replacing unit 43 replaces the first identifier with the second identifier, the second session initiation message carrying the second session identifier is also sent by the session message sending unit 44, where the second session is sent. The message carries the second session identifier by using the second session identifier information segment, and the second session identifier information segment may be a Replaces information segment, a Join information segment, or a Target-Dialog information segment.
无论是第一会话发起消息还是第二会话发起消息, 其种类都很多,例如前 述图 2实施例中所示的两个会话发起消息都是 SIP INVITE邀请消息, 图 3实 施例所示的两个会话发起消息都是 SIP REFER参考消息。  There are many types of the first session initiation message or the second session initiation message. For example, the two session initiation messages shown in the foregoing embodiment of FIG. 2 are SIP INVITE invite messages, and the two shown in the embodiment of FIG. Session initiation messages are all SIP REFER reference messages.
此外,参考图 2所示的实施例,如果 AS1和会议 AS在一个应用服务器(该 服务器包括本实施例的会话标识替换装置)中予以实现, 则可以看到, 会话消 息接收单元 41接收的 SIP消息和会话消息发送单元 44发送的 SIP消息不是同 一种 SIP消息, 例如接收的是 SIP REFER消息, 发送的是 SIP INVITE消息。 而且,携带第一会话标识的信息段和携带第二会话标识的信息段也不是同一个 信息段了, 携带第一会话标识的 Replaces信息段位于 SIP REFER 消息的 Refer-To头域中, 携带第二会话标识的 Replaces信息段位于 SIP INVITE消息 中的 Replaces头域中。  Further, referring to the embodiment shown in FIG. 2, if AS1 and the conference AS are implemented in one application server (the server includes the session identifier replacement device of the present embodiment), it can be seen that the SIP received by the session message receiving unit 41 The SIP message sent by the message and session message sending unit 44 is not the same SIP message, for example, a SIP REFER message is received, and a SIP INVITE message is sent. Moreover, the information segment carrying the first session identifier and the information segment carrying the second session identifier are not the same information segment, and the Replaces information segment carrying the first session identifier is located in the Refer-To header field of the SIP REFER message, carrying the first The Replaces information segment of the second session identifier is located in the Replaces header field in the SIP INVITE message.
由此可知,所述第二会话发起消息和第一会话发起消息可以不是同一种消 息类型, 当第一会话发起消息是 SIP REFER消息时, 所述第二会话发起消息 可以是所述 SIP REFER消息中指示的某种特定消息, 虽然图 2所示的实施例 中提供了所述特定消息是 SIP INVITE消息的情况, 但是本领域技术人员应该 意识到, 所述特定消息还可以是其他类型的 SIP消息, 所述特定消息包括但不 限于 SIP INVITE邀请消息、 SIP SUBSCRIBE订阅消息、 SIP MESSAGE即时 消息或 SIP INFO信息消息。  Therefore, the second session initiation message and the first session initiation message may not be the same message type. When the first session initiation message is a SIP REFER message, the second session initiation message may be the SIP REFER message. A specific message indicated in the embodiment, although the embodiment shown in FIG. 2 provides the case where the specific message is a SIP INVITE message, those skilled in the art should appreciate that the specific message may also be other types of SIP. The specific message includes but is not limited to a SIP INVITE invite message, a SIP SUBSCRIBE subscription message, a SIP MESSAGE instant message, or a SIP INFO information message.
通过以上本发明的多个实施例可以看出,本发明实施例在一个呼叫经过应 用服务器、并在应用服务器两侧各有一个会话标识(第一会话标识和第二会话 标识)的情况下,如果应用服务接收到第一会话发起消息中包括所述第一会话 标识,则通过将该第一会话标识替换为第二会话标识,使得业务被邀请方能够 根据解析出的第二会话标识识别出该呼叫, 进而可以据此释放该呼叫,也不会 导致新呼叫业务无法正常实现。  As can be seen from the foregoing various embodiments of the present invention, in a case where a call passes through an application server and has a session identifier (a first session identifier and a second session identifier) on each side of the application server, And if the application service receives the first session identifier in the first session initiation message, by replacing the first session identifier with the second session identifier, the service invitee can identify the second session identifier according to the parsing The call can then release the call accordingly, and the new call service cannot be implemented normally.
以上对本发明所提供的会话标识替换的方法、装置、应用服务器及会话替 代方法各实施例进行了描述。本文中应用了特定个例对本发明的原理及实施方 式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思 想; 同时, 对于本领域的一般技术依据本发明的思想, 在特定实施方式及应用 范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The embodiments of the method, apparatus, application server, and session replacement method for session identifier replacement provided by the present invention are described above. The principles and embodiments of the present invention have been described with specific examples. The description of the above embodiments is only for helping to understand the method of the present invention and its core ideas. At the same time, there is a change in the scope of the specific embodiments and the scope of the application in the general art of the present invention, and the contents of the present specification should not be construed as limiting the present invention.

Claims

权 利 要 求 Rights request
1. 一种会话标识替换的方法, 其特征在于, 所述方法包括:  A method for replacing a session identifier, the method comprising:
一个呼叫经过应用服务器,所述应用服务器获取该呼叫的第一会话标识和 第二会话标识;  A call passes through an application server, and the application server acquires a first session identifier and a second session identifier of the call;
第一会话发起消息根据指定信令路径到达所述应用服务器,所述第一会话 发起消息至少携带所述第一会话标识;  The first session initiation message arrives at the application server according to the specified signaling path, and the first session initiation message carries at least the first session identifier;
所述应用服务器将所述第一会话标识替换为所述第二会话标识。  The application server replaces the first session identifier with the second session identifier.
2. 如权利要求 1所述的方法, 其特征在于, 所述方法还包括:  2. The method according to claim 1, wherein the method further comprises:
所述应用服务器发送携带第二会话标识的第二会话发起消息。  The application server sends a second session initiation message carrying the second session identifier.
3. 如权利要求 1 所述的方法, 其特征在于: 所述应用服务器在进行标识 替换之前, 首先要确定所述第一会话标识位于本端。  The method according to claim 1, wherein the application server first determines that the first session identifier is located at the local end before performing the identifier replacement.
4. 如权利要求 1所述的方法, 其特征在于:  4. The method of claim 1 wherein:
所述第一会话发起消息通过第一会话标识信息段携带第一会话标识,所述 第一会话标识信息段可以是 Replaces 替换信息段、 Join 加入信息段或 Target-Dialog目标会话信息段;  The first session initiation message carries the first session identifier by using the first session identifier information segment, and the first session identifier information segment may be a Replaces replacement information segment, a Join join information segment, or a Target-Dialog target session information segment;
所述第二会话发起消息通过第二会话标识信息段携带第二会话标识,所述 第二会话标识信息段可以是 Replaces信息段、 Join信息段或 Target-Dialog信息 段。  The second session initiation message carries the second session identifier by using the second session identification information segment, and the second session identification information segment may be a Replaces information segment, a Join information segment, or a Target-Dialog information segment.
5. 如权利要求 1所述的方法, 其特征在于:  5. The method of claim 1 wherein:
所述第一会话发起消息是 SIP REFER参考消息或 SIP INVITE邀请消息; 所述第二会话发起消息是 SIP REFER参考消息、 SIP INVITE邀请消息或 所述第一会话发起消息中指示的特定消息。  The first session initiation message is a SIP REFER reference message or a SIP INVITE invite message; the second session initiation message is a SIP REFER reference message, a SIP INVITE invite message or a specific message indicated in the first session initiation message.
6. 如权利要求 5所述的方法, 其特征在于: 所述第一会话发起消息中指 示的特定消息具体为: SIP INVITE邀请消息、 SIP SUBSCRIBE订阅消息、 SIP MESSAGE即时消息或 SIP INFO信息消息。  The method according to claim 5, wherein: the specific message indicated in the first session initiation message is specifically: a SIP INVITE invite message, a SIP SUBSCRIBE subscription message, a SIP MESSAGE instant message or a SIP INFO information message.
7. 如权利要求 1至 6中任意一项所述的方法, 其特征在于: 所述信令路 径在所述第一会话发起消息中被指定。  The method according to any one of claims 1 to 6, wherein: the signaling path is specified in the first session initiation message.
8. 如权利要求 1至 6中任意一项所述的方法, 其特征在于: 所述信令路 径在引发所述第一会话发起消息的控制消息中被指定, 所述控制消息为 SIP REFER参考消息。 The method according to any one of claims 1 to 6, wherein: the signaling path is specified in a control message that triggers the first session initiation message, and the control message is SIP REFER reference message.
9. 如权利要求 8所述的方法, 其特征在于: 所述方法还包括: 所述控制消息到达网络中的一个网元,该网元依据所述控制消息发送所述 第一会话发起消息。  The method according to claim 8, wherein the method further comprises: the control message reaching a network element in the network, the network element sending the first session initiation message according to the control message.
5 10. 一种会话替代的方法, 其特征在于, 所述方法包括:  A method of session substitution, characterized in that the method comprises:
业务使用者发送会话发起消息,在所述消息中包括第一会话标识、业务被 邀请者及信令路径;  The service user sends a session initiation message, where the message includes the first session identifier, the service invitee, and the signaling path;
依据所述信令路径,接收者接收到所述会话发起消息后将第一会话标识替 换为第二会话标识, 并向业务被邀请者发送携带所述第二会话标识的特定消 10 息, 所述第一会话标识和第二会话标识位于同一个呼叫中;  According to the signaling path, after receiving the session initiation message, the receiver replaces the first session identifier with the second session identifier, and sends a specific consumer information that carries the second session identifier to the service invitee. The first session identifier and the second session identifier are located in the same call;
所述业务被邀请者收到所述携带有第二会话标识的特定消息后建立新会 话, 并释放原已建立的所述第二会话标识代表的呼叫。  After the service invitee receives the specific message carrying the second session identifier, a new session is established, and the call that is established by the second session identifier is released.
11. 如权利要求 10所述的会话替代的方法, 其特征在于: 所述会话发起 消息中的信令路径具体为指示所述特定消息途经第一网元的信令路径,所述接 The method of the session substitution according to claim 10, wherein: the signaling path in the session initiation message is specifically a signaling path indicating that the specific message passes through the first network element, and the
15 收者依次包括消息接收者和第一网元, 15 The receiver includes the message receiver and the first network element in turn.
所述依据信令路径, 接收者进行标识替换的具体过程包括:  The specific process of the identifier replacement by the receiver according to the signaling path includes:
所述消息接收者接收所述会话发起消息后,向所述业务被邀请者方向发送 所述第一特定消息, 所述第一特定消息中携带所述第一会话标识;  After receiving the session initiation message, the message receiver sends the first specific message to the service invitee, where the first specific message carries the first session identifier;
, 所述第一网元接收到所述第一特定消息 ,根据背靠背用户代理机制将所述 0 第一会话标识替换为第二会话标识,并将携带所述第二会话标识的第二特定消 息向业务被邀请者发送。 Receiving, by the first network element, the first specific message, replacing the 0 first session identifier with a second session identifier according to a back-to-back user proxy mechanism, and carrying the second specific message of the second session identifier Send to business invitees.
12.如权利要求 10所述的会话替代的方法, 其特征在于: 所述会话发起 消息中的信令路径具体为指示本消息途经第一网元的信令路径,所述接收者包 抟所述第一网元, The method for the session substitution according to claim 10, wherein: the signaling path in the session initiation message is specifically a signaling path indicating that the message passes through the first network element, and the receiver includes Said the first network element,
5 所述依据信令路径, 接收者进行标识替换的具体过程包括:  5 According to the signaling path, the specific process of the identifier replacement by the receiver includes:
所述第一网元接收到所述会话发起消息,根据背靠背用户代理机制将所述 第一会话标识替换为第二会话标识 ,并将携带所述第二会话标识的特定消息向 业务被邀请者方向发送。  Receiving, by the first network element, the session initiation message, replacing the first session identifier with a second session identifier according to a back-to-back user proxy mechanism, and transmitting a specific message carrying the second session identifier to a service invitee Send in the direction.
13. 如权利要求 11或 12所述的会话替代的方法, 其特征在于: 在业务使 用者发送会话发起消息之前还包括: 13. The method of session substitution according to claim 11 or 12, characterized by: Before the user sends the session initiation message, it also includes:
所述业务使用者和所述业务被邀请者之间建立呼叫,所述第一网元作为背 靠背用户代理位于所述呼叫的信令路径中。  A call is established between the service user and the service invitee, and the first network element is located as a back-to-back user agent in a signaling path of the call.
14. 如权利要求 13所述的会话替代的方法, 其特征在于: 所述呼叫在第 —网元上存在两个会话标识,所述第一网元和所述业务使用者之间的会话标识 是所述第一会话标识,所述第一网元和所述业务被邀请者之间的会话标识是所 述第二会话标识。  14. The method of session substitution according to claim 13, wherein: the call has two session identifiers on the first network element, and the session identifier between the first network element and the service user The first session identifier is, and the session identifier between the first network element and the service invitee is the second session identifier.
15. 如权利要求 10至 12中任意一项所述的会话替代的方法,其特征在于: 所述业务被邀请者释放原已建立的呼叫具体为:所述业务被邀请者释放和所述 业务使用者之间原已建立的呼叫。  The method for session substitution according to any one of claims 10 to 12, wherein: the service invitee releases the originally established call specifically: the service invitee release and the service A call that has been established between users.
16. 如权利要求 10至 12中任意一项所述的会话替代的方法,其特征在于: 所述会话发起消息中的信令路径设定了所述第一网元的联系地址,所述第一网 元的联系地址设定在 Route路径信息中, 所述第一会话标识设定在 Replaces 信息、 Join信息或 Target-Dialog信息中。  The method for session substitution according to any one of claims 10 to 12, wherein: the signaling path in the session initiation message sets a contact address of the first network element, the The contact address of a network element is set in the Route path information, and the first session identifier is set in the Replaces information, the Join information, or the Target-Dialog information.
17. 一种会话标识替换装置, 其特征在于, 所述装置包括:  17. A session identifier replacement device, the device comprising:
会话标识获知单元,用于获知经过所述会话标识替换装置的一个呼叫的第 一会话标识和第二会话标识;  a session identifier obtaining unit, configured to learn a first session identifier and a second session identifier of a call that passes through the session identifier replacing device;
会话消息解析单元,用于从接收到的第一会话发起消息中解析出该消息携 带的会话标识;  a session message parsing unit, configured to parse a session identifier carried by the message from the received first session initiation message;
会话标识替换单元,用于在所述会话消息解析单元解析出的会话标识为所 述第一会话标识的情况下 , 将所述第一会话标识替换为第二会话标识。  The session identifier replacing unit is configured to replace the first session identifier with the second session identifier if the session identifier parsed by the session message parsing unit is the first session identifier.
18. 如权利要求 17所述的装置, 其特征在于, 所述会话标识替换单元进 行标识替换的依据是背靠背用户代理机制。  18. The apparatus according to claim 17, wherein the session identification replacement unit performs identification replacement on the basis of a back-to-back user agent mechanism.
19. 如权利要求 17或 18所述的装置, 其特征在于, 所述装置还包括: 会话消息发送单元, 用于发送携带第二会话标识的第二会话发起消息。 The device according to claim 17 or 18, wherein the device further comprises: a session message sending unit, configured to send a second session initiation message carrying the second session identifier.
20. 如权利要求 19所述的装置, 其特征在于, 20. Apparatus according to claim 19, wherein
所述第一会话发起消息是 SIP REFER参考消息或 SIP INVITE邀请消息; 所述第二会话发起消息是 SIP REFER参考消息、 SIP INVITE邀请消息或 所述第一会话发起消息中指示的特定消息。 The first session initiation message is a SIP REFER reference message or a SIP INVITE invite message; the second session initiation message is a SIP REFER reference message, a SIP INVITE invite message or a specific message indicated in the first session initiation message.
21. 如权利要求 19所述的装置, 其特征在于, 21. Apparatus according to claim 19, wherein
所述第一会话发起消息通过第一会话标识信息段携带第一会话标识,所述 第一会话标识信息段可以是 Replaces信息段、 Join信息段或 Target-Dialog信息 段;  The first session initiation message carries the first session identifier by using the first session identification information segment, and the first session identification information segment may be a Replaces information segment, a Join information segment, or a Target-Dialog information segment;
所述第二会话发起消息通过第二会话标识信息段携带第二会话标识,所述 第二会话标识信息段可以是 Replaces信息段、 Join信息段或 Target-Dialog信息 段。  The second session initiation message carries the second session identifier by using the second session identification information segment, and the second session identification information segment may be a Replaces information segment, a Join information segment, or a Target-Dialog information segment.
22.—种应用服务器, 其特征在于, 所述应用服务器包括:  22. An application server, wherein the application server comprises:
会话标识获取单元,用于获取经过所述应用服务器的一个呼叫的第一会话 标识和第二会话标识;  a session identifier obtaining unit, configured to acquire a first session identifier and a second session identifier of a call that passes through the application server;
会话消息解析单元,用于从接收到的第一会话发起消息中解析出该消息携 带的会话标识;  a session message parsing unit, configured to parse a session identifier carried by the message from the received first session initiation message;
会话标识替换单元,用于在所述会话消息解析单元解析出的会话标识为所 述第一会话标识的情况下, 将所述第一会话标识替换为第二会话标识。  The session identifier replacing unit is configured to replace the first session identifier with the second session identifier if the session identifier parsed by the session message parsing unit is the first session identifier.
23. 如权利要求 22所述的应用服务器, 其特征在于, 所述装置还包括: 会话消息发送单元, 用于发送携带第二会话标识的第二会话发起消息。  The application server according to claim 22, wherein the device further comprises: a session message sending unit, configured to send a second session initiation message carrying the second session identifier.
24. 如权利要求 23所述的应用服务器, 其特征在于, 24. The application server of claim 23, wherein
所述第一会话发起消息是 SIP REFER消息或 SIP INVITE消息; 所述第二会话发起消息是 SIP REFER消息、 SIP INVITE消息或所述第一 会话发起消息中指示的特定消息。  The first session initiation message is a SIP REFER message or a SIP INVITE message; the second session initiation message is a SIP REFER message, a SIP INVITE message or a specific message indicated in the first session initiation message.
PCT/CN2007/000371 2006-04-04 2007-02-02 A method and an apparatus for replacing the session id, an application server and a method for replacing the session WO2007112640A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200610075019.8A CN101051993A (en) 2006-04-04 2006-04-04 Method for substituting conversation mark conversation replacing method using said conversation mark substitution
CN200610075019.8 2006-04-04

Publications (1)

Publication Number Publication Date
WO2007112640A1 true WO2007112640A1 (en) 2007-10-11

Family

ID=38563084

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/000371 WO2007112640A1 (en) 2006-04-04 2007-02-02 A method and an apparatus for replacing the session id, an application server and a method for replacing the session

Country Status (2)

Country Link
CN (1) CN101051993A (en)
WO (1) WO2007112640A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111641602A (en) * 2020-05-13 2020-09-08 维沃移动通信有限公司 Session creation method and device and electronic equipment
CN112187780A (en) * 2020-09-25 2021-01-05 杭州涂鸦信息技术有限公司 Safety refreshing method and system for app login session

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291379B (en) * 2010-06-18 2016-08-03 中兴通讯股份有限公司 Meeting method for building up based on back-to-back user agent and system
US9473544B2 (en) 2012-09-25 2016-10-18 Avaya Inc. System and method for enabling hot-desking
CN106973033B (en) * 2016-01-14 2019-11-22 深信服科技股份有限公司 Session invitation method and agent equipment based on SIP
CN108307531B (en) * 2017-07-05 2021-08-17 宇龙计算机通信科技(深圳)有限公司 Call control method, device, user terminal and computer readable storage medium
CN114979006B (en) * 2021-10-14 2023-09-05 中移互联网有限公司 Session Initiation Protocol (SIP) message processing method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994016533A1 (en) * 1993-01-11 1994-07-21 Nokia Telecommunications Oy Call control in a digital tdma radio system
CN1486037A (en) * 2003-08-29 2004-03-31 北京港湾网络有限公司 Method and system for bearing PPP proxy server with Ethernet
CN1492656A (en) * 2002-10-25 2004-04-28 �Ҵ���˾ Method, device and system for sharing applied program conversation information on multichannels

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994016533A1 (en) * 1993-01-11 1994-07-21 Nokia Telecommunications Oy Call control in a digital tdma radio system
CN1492656A (en) * 2002-10-25 2004-04-28 �Ҵ���˾ Method, device and system for sharing applied program conversation information on multichannels
CN1486037A (en) * 2003-08-29 2004-03-31 北京港湾网络有限公司 Method and system for bearing PPP proxy server with Ethernet

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"TISPAN Simulation services: conference (CONF) protocol specification", TSI TS183005 V1.1.1, March 2006 (2006-03-01), pages 11 - 16 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111641602A (en) * 2020-05-13 2020-09-08 维沃移动通信有限公司 Session creation method and device and electronic equipment
CN112187780A (en) * 2020-09-25 2021-01-05 杭州涂鸦信息技术有限公司 Safety refreshing method and system for app login session
CN112187780B (en) * 2020-09-25 2022-11-15 杭州涂鸦信息技术有限公司 Safety refreshing method and system for app login session

Also Published As

Publication number Publication date
CN101051993A (en) 2007-10-10

Similar Documents

Publication Publication Date Title
JP4673369B2 (en) Method and apparatus for providing correlation means in a hybrid communication network
US8379544B2 (en) Communications
US20130094671A1 (en) Method, apparatus, and system for cross-platform conference convergence
US8296447B2 (en) Method for copying session information, call control server for executing the same, and computer product
US11496531B2 (en) System and method to identify secure media streams to conference watchers in SIP messaging
KR20110050439A (en) Method and system for selective call forwarding based on media attributes in telecommunication network
JP2010507269A (en) Method for routing SIP messages when an intermediate node is unavailable
KR20100042270A (en) Call transfer with multiple application servers in session initiation protocol-based network
WO2007112640A1 (en) A method and an apparatus for replacing the session id, an application server and a method for replacing the session
CN106797379B (en) Use the TeleConference Bridge of synthesis identifier
US20140164543A1 (en) Communication System, Application Server and Communication Method for Server Cooperation
JP5260746B2 (en) End-to-end address forwarding
CN100574474C (en) Set up the method that communication traffic connects in a kind of communication system
WO2007098706A1 (en) A method for transmitting the service data and a packet terminal used in the method
US20080208993A1 (en) Method For Distributing New Services in an Internet Multimedia Subsystem (Ims), and a Node Adapted Therefore
WO2010069176A1 (en) A method for calling a conference when hard terminals have been bound to pc clients, a login server thereof, a conference server thereof and a pc client thereof
WO2008006311A1 (en) A method and corresponding device for using of user terminal identifier
WO2007062609A1 (en) A method, a application server and a system for implementing the third party control service
WO2012013094A1 (en) Session establishment method and system based on dialog correlation identifier
US8160224B2 (en) Method, apparatus and system for implementing conference service
CN101141689A (en) Method for inviting users when establishing session service
EP1871067B1 (en) A calling method between the terminals of packet multimedia communication system
CN102006272B (en) Method and system of application server (AS) for replacing Replace parameter
WO2008080334A1 (en) Back to back user agent and the method for transmitting information thereof
KR100757535B1 (en) Multimedia service method and system for division of application

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07702263

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 07702263

Country of ref document: EP

Kind code of ref document: A1