[go: up one dir, main page]

WO2007109970A1 - Method, system and device for controlling session timer - Google Patents

Method, system and device for controlling session timer Download PDF

Info

Publication number
WO2007109970A1
WO2007109970A1 PCT/CN2007/000652 CN2007000652W WO2007109970A1 WO 2007109970 A1 WO2007109970 A1 WO 2007109970A1 CN 2007000652 W CN2007000652 W CN 2007000652W WO 2007109970 A1 WO2007109970 A1 WO 2007109970A1
Authority
WO
WIPO (PCT)
Prior art keywords
duration
session
session timer
timer
entity
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2007/000652
Other languages
English (en)
French (fr)
Inventor
Prakasha Mr
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
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 WO2007109970A1 publication Critical patent/WO2007109970A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/28Timers or timing mechanisms used in protocols
    • 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]

Definitions

  • the present invention relates to communication technologies, and in particular, to a method and system for controlling a session timer in a Session Initiation Protocol (SIP), an application server, and a transaction user entity.
  • SIP Session Initiation Protocol
  • application server an application server
  • transaction user entity a transaction user entity
  • SIP is an IP telephony signaling protocol proposed by the Internet Engineering Task Force (IETF). As implied by its name, SIP is used to initiate a session, to control the establishment and termination of multimedia sessions in which multiple participants participate, and to dynamically adjust and modify session attributes.
  • IMS IP Multi-media Subsystem
  • NGN Next Generation Network
  • the SIP application is implemented in an application server (AS, Application Server), and provides various value-added services to users through interaction between the soft switch and the AS, such as: prepaid calling card service.
  • the transaction user in order to be able to process a session establishment request (eg, invite INVITE message) without a final response, the transaction user (TU, Transaction User) will set the session timer for the formal response of the session establishment request, usually Timer C
  • TU refers to the protocol layer entity located above the transport layer, mainly refers to the SIP layer entity, including: User Agent Client (UAC, User Agent Client), User Agent Server (UAS), Agent ( Proxy) and so on; Among them, Proxy includes: Caller Outbound Proxy, SIP Server, Back-to-Back User Agent, etc.
  • B2BUA is usually the current Application business AS.
  • the formal response usually refers to 2XX, 3XX, 4XX messages in SIP signaling, such as: 200 OK message, 380 message, and so on.
  • the TU forwards the session establishment request, it will establish a client transaction and start a Timer C for the client transaction.
  • the timing threshold must be greater than three minutes, and the following mechanism is used to control Timer C.
  • This Timer C is used to receive a formal response to the session establishment request, and when it receives a formal response, Timer C will stop timing.
  • the TU must select any timing threshold to reset Timer C or terminate the current client transaction.
  • the TU receives a temporary response, it can also select any timing threshold to reset Timer C, or terminate the current client transaction.
  • the TU can dynamically extend the lifetime of the current client transaction based on current conditions if Timer C times out or receives a temporary response.
  • the temporary response usually refers to the 1XX message in the SIP signaling (ie, the message from 101 to 199), such as: 180 Ringing message, 183 Processing message, and so on.
  • each TU on the calling side is a backward TU entity
  • each TU on the called side is a forward TU entity
  • the TU ⁇ can be referred to as a backward TU entity of the TU n .
  • TU n may interact with other entities.
  • a TU acting as a back-to-back user agent interacts with a soft switch (Soft Switch) to obtain routing information, and thus cannot forward the session establishment request to the forward direction in time.
  • Soft Switch soft switch
  • the TU entity cannot return the formal response corresponding to the session establishment request to the backward TU entity TU ⁇ in time; or, the AS is performing the playback and receiving, that is, interacting with the user, the process may last for a long time (far More than 3 minutes), at this point, the AS will return 180 messages to prevent the calling end office from starting billing.
  • the backward TU entity TU ⁇ releases the Timer C in advance, and the TU n must send a temporary response to the backward TU entity TU ⁇ within the minimum timing period of Timer C (ie, three minutes), so that the TU entity TU ⁇ is reset to the Timer C. , to wait for a formal response from the forward TU entity TU n . Moreover, if the forward TU entity TU n still cannot return the formal response in time, it also retransmits the temporary response to the backward TU entity TUw within the minimum timing period of Timer C, which may cause retransmission of multiple temporary responses.
  • the embodiment of the invention provides a method and system for controlling a session timer, an application server and a transaction user entity, so that the application server can unify the session timer on each backward transaction user (TU) entity in the SIP session establishment process. Control to reduce the repeated transmission of temporary responses.
  • TU backward transaction user
  • the embodiment of the invention discloses a method for controlling a session timer, which is applied between an application service server and a transaction user (TU) entity, and the TU entity is provided with a session timer; during the establishment of the session, the application server determines the session timing.
  • the duration of the device is sent to the transaction user entity; this transaction user entity configures its own session timer according to the duration of the received session timer.
  • the transaction user entity when there are at least two transaction user entities, reconfigures its own session timer according to the duration of the received session timer, including: After receiving the session timer, the user entity sends the duration of the session timer to the transaction user entity to which it is connected. Each transaction user entity configures its own session timer according to the duration of the received session timer.
  • the embodiment of the invention further discloses a system for controlling a session timer, the system comprising: an application server and a transaction user entity, the transaction user entity is provided with a session timer; and the application server determines the duration of the session timer during the establishment of the session; Backward transaction user entity by application ⁇ ! The duration determined by the server resets its own session timer.
  • An embodiment of the present invention discloses an application server, including: a first module, determining a duration of a session timer in establishing a session; and a second module, outputting a session timer determined by the first module to a backward transaction user entity .
  • the embodiment of the present invention further discloses a transaction user entity, which is provided with a session timer.
  • the method includes: a first module, receiving a session timer from the application server The second module resets the session timer according to the length of time received by the first module.
  • the method and system for controlling the session timer, the application server, and the transaction user entity provided by the embodiment of the present invention enable the application server to uniformly reset the session timer of each backward TU entity according to the current session establishment situation, and avoid The session timer is released to the TU entity in advance, which significantly reduces the repeated transmission of the temporary response between the TU entities, and effectively utilizes the bandwidth resources, thereby improving the service quality of the SIP.
  • FIG. 1 is a flowchart of a process of controlling a session timer according to an embodiment of the present invention.
  • FIG. 2 is a structural diagram of a system for controlling a session timer according to an embodiment of the present invention. Mode for carrying out the invention
  • the embodiment of the invention discloses a method for controlling a session timer in a SIP, which is applied to a system including: an AS and a backward TU entity set with a session timer, and the method includes: when the AS establishes a session with the called party, The duration of the session timer is determined and sent to the backward TU entity; thereafter, the TU entity reconfigures its own session timer according to the duration of the received session timer.
  • TU entities There may be one or more TU entities between the AS and the calling party. These TU entities may be referred to as backward TU entities of the AS, including: a backward TU entity of the AS connection, and a backward TU entity.
  • the connected backward TU entity when the AS returns the duration of the session timer, the AS first returns the session timer duration to the backward TU entity of the AS connection, and then forwards the received session timer duration to the TU entity.
  • the connected backward TU entity after which each backward TU entity sends the session timer to the backward TU entity of its own connection after receiving the session timer duration, and each backward TU entity also receives the respective TU entity respectively.
  • the session timer to which the session is reached reconfigures its own session timer.
  • the backward TU entity in the embodiment of the present invention may be a proxy (Proxy), or a SIP server, or a user agent client/user proxy server (UAC/UAS).
  • the duration of the session timer may be carried in the temporary response sent back to the TU entity to implement the transmission.
  • the temporary response refers to any of the SIP 1XX messages, that is, the 101 to 199 messages ' (also denoted as 101 ⁇ 199 messages), usually using 180 or 183 messages.
  • FIG. 1 is a flowchart of a process of controlling a session timer according to an embodiment of the present invention.
  • the session timer is Timer C.
  • the backward TU entity includes: a SIP server, a Caller Outbound Proxy, and a calling terminal as a UAC.
  • the specific processing includes: Step 101: The calling terminal sends a session establishment request to the calling outbound proxy.
  • the session establishment request is carried by the SIP INVITE message.
  • the calling terminal When the calling terminal, the calling outbound proxy, the SIP server, and the AS receive the INVITE message, they all return a 100 Trying message, indicating that the INVITE message has been received and is being processed.
  • Step 104 The AS sends an INVITE message to the called terminal; the called terminal returns a 100 Trying message.
  • Step 105 When the line is connected, the called terminal also returns a 180 Ringing message to the AS, and the 180 Ringing message is a temporary response.
  • Step 106 The AS can determine the duration of the Timer C according to the current session establishment condition, and carry the duration of the Timer C in the 180 Ringing message that is currently to be returned to the SIP server. Then, the SIP server and the calling outbound proxy sequentially forward the 180 Ringing message to the connected backward TU entity when receiving the 180 Ringing message.
  • Each backward TU entity that is, the calling terminal, the calling outbound proxy, and the SIP server, after receiving the 180 Ringing message, parses the duration of the Timer C, and reconfigures its own Timer C according to the length of the time.
  • the AS can also carry the duration of the session timer by using other temporary responses, such as: 183 Processing message, etc., and the embodiment of the present invention does not limit the duration of the session timer by which the temporary response is specifically adopted.
  • the SIP server may be referred to as a backward TU entity that is an AS connection
  • the calling outbound proxy may be referred to as a backward TU entity that is a SIP server connection
  • the calling terminal may be referred to as a calling outbound proxy connection.
  • the backward TU entity that is, the calling outbound proxy and the calling terminal are both backward TU entities connected to the backward TU entity.
  • the duration of Timer C can also be expressed as the transmission duration (TE, Transaction Expires). This TE is usually configured to a relatively large value, such as: 3000 Seconds, this ensures that each backward TU entity has enough time to receive a formal response.
  • Step 107 When the called terminal answers, the called terminal returns a formal response 200 OK message to the AS, and the AS returns the 200 OK message to the calling outbound proxy through the SIP server, and the calling outbound proxy returns to the server.
  • the calling terminal returns the 200 OK message, and after receiving the formal response 200 OK message, the SIP server, the calling outbound calling agent and the calling terminal will release the respective Timer C to end the entire session establishing process.
  • each entity has reset its respective Timer C according to the received TE, therefore, the Timer C of each entity has sufficient time to wait for a formal response, and the AS does not have to repeatedly send a temporary response as in the prior art. To ensure that each backward TU entity continues to wait for a formal response, thereby greatly reducing the number of times a temporary response is transmitted between TU entities.
  • the existing reserved field in the temporary response may be used to carry the current length, or a new field may be constructed for the temporary response to carry the current length.
  • the embodiment of the present invention further proposes another processing flow, which is basically the same as that shown in FIG. 1, except that the session establishment request from the calling terminal (eg, INVITE message) is:
  • the session establishment request from the calling terminal eg, INVITE message
  • the calling terminal sends the session establishment request, it carries the duration of the session timer supported by the calling terminal, for example: carrying a maximum duration and a minimum duration; the AS receives the session establishment request from the autonomous terminal.
  • the duration of the session timer is obtained by parsing, and a duration is selected from the long range, which is determined as the duration of the session timer and returned to the backward TU entity. In this way, it is possible to ensure that each of the forward TU entities of the calling party can support the duration of the received session timer.
  • the existing reservation field in the session establishment request may be used to carry the current length range, and a new field may be constructed for the session establishment request to carry Take this long range.
  • the embodiment of the present invention further provides a system for controlling a session timer in a SIP, the system includes: an AS and a backward TU entity configured with a session timer; wherein the AS includes a duration setting unit, and the backward TU entity includes The duration setting unit is configured to determine the duration of the session timer and output to the duration reset unit, and the duration reset unit is configured to receive the duration of the session timer from the duration setting unit and reset according to the duration of the session timer.
  • the duration setting unit may include: a duration determining module and a duration output module, and the duration reset unit may include: a duration input module and a duration configuration module.
  • the system includes: an AS and its included duration setting unit, a backward TU entity 1 and a duration reset unit included therein.
  • the long setting unit further includes: a duration determining module and a duration output module; and the long reset unit further comprises: a duration input module 1 and a duration configuration module 1.
  • the duration determining module is configured to determine the duration of the current ⁇ timer and send it to the duration output module; the long output module is configured to output the duration of the received session timer to the duration input module 1, for example: by using the AS
  • the temporary response sent to the TU entity 1 carries the duration of the session timer for output.
  • the duration input module 1 is configured to receive the duration of the session timer from the duration output module and send it to the duration configuration module 1.
  • the long input module 1 parses the duration of the session timer from the temporary response.
  • the duration configuration module 1 is configured to reset the session timer of the backward TU entity 1 according to the duration of the session timer of the input module 1 of the duration.
  • the duration reset unit in the backward TU entity further includes: a duration forwarding module.
  • the long forwarding module is configured to forward the duration of the session timer to the duration reset unit in the other backward TU entity.
  • the system may further include a backward TU entity 2, and thereafter the duration resetting unit 2 included in the TU entity 2 includes: a duration input module 2, a duration configuration module 2, and a duration forwarding module 2, and a backward TU entity.
  • the duration resetting unit 1 included in 1 further includes: a duration forwarding module 1.
  • the duration input module 1 After receiving the duration of the session timer, the duration input module 1 also outputs the time length forwarding module 1 at this time.
  • the duration forwarding module 1 is configured to send the duration of the received session timer to the duration resetting unit included in the other backward TU entity, and the other backward TU entity is the backward TU entity connected to the TU entity in the backward direction of the forwarding module 1 , that is, the backward TU entity 2 in FIG.
  • the duration input module 2 receives the duration of the session timer from the duration forwarding module 1 and outputs the duration to the duration configuration module 2 and the duration forwarding module 2, and the duration configuration module 2 resets the session to the TU entity 2 according to the received session timer duration.
  • the timer, and the duration forwarding module 2 will also forward the duration of the session timer to other backward TU entities to which the TU entity 2 is connected.
  • FIG. 2 Only two systems including two backward TU entities are shown in FIG. 2.
  • the backward TU entity is greater than two, the internal components and connection relationships between the respective backward TU entities are the same as the backward TU entity 1 shown in FIG.
  • the backward TU entity 2 is the same, this article is no longer - detailed.
  • the embodiment of the present invention enables the AS to uniformly control the session timers of the respective backward TU entities, thereby significantly reducing the number of times the temporary response is sent during the session establishment process, and saving the system bandwidth resources, thereby improving the overall service quality.

Landscapes

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

Description

控制会话定时器的方法、 系统及装置
技术领域
本发明涉及通信技术, 特别涉及一种会话初始协议(SIP, Session Initiation Protocol )中控制会话定时器的方法及系统、应用服务器以及事 务用户实体。 发明背景
SIP是由互联网工程任务组( IETF, Internet Engineering Task Force ) 提出的 IP电话信令协议。 正如其名字所隐含的, SIP用于发起会话, 能 够对多个参与者参加的多媒体会话的建立和终结进行控制, 并能够对会 话属性进行动态调整和修改等。 通常, 可基于 IP多媒体子系统(IMS, IP Multi-media Subsystem ) 和下—代网给 ( NGN , Next Generation Network )来实现各种 SIP应用业务。 在 NGN中, SIP应用实现于应用 服务器(AS, Application Server ) 中, 并且通过软交换(Soft switch )与 AS 之间的交互来向用户提供各种增值服务, 比如: 预付费电话卡业务
( pre-paid calling card calls )、 点击拔号 ( click-to-dial )等等。
在建立 SIP会话的过程中 , 为了能够处理会话建立请求(如: 邀请 INVITE消息)未产生终结应答的情况,事务用户( TU, Transaction User ) 将为会话建立请求的正式响应设置会话定时器, 通常称为定时器 C
( Timer C X 这里, TU指位于传输层之上的协议层实体, 主要指 SIP层 实体, 包括: 用户代理客户端 (UAC, User Agent Client ), 用户代理服 务器(UAS, User Agent Server ), 代理(Proxy )等等; 其中, Proxy包 括: 主叫外呼代理(Caller Outbound Proxy )、 SIP服务器、 背靠背用户 代理(B2BUA, Back-to- Back User Agent )等等, B2BUA通常就是当前 应用业务的 AS。 正式响应通常指 SIP信令中的 2XX、 3XX, 4XX消息, 比如: 200 OK消息、 380消息等。
按目前协议规定 , 当 TU转发会话建立请求之后 , 将建立客户端事 务并为客户端事务启动一个 Timer C, 其定时门限必须大于三分钟, 并 采用如下机制来控制 Timer C。此 Timer C用于接收会话建立请求的正式 响应, 当接收到正式响应时, Timer C将停止计时。 当 Timer C超时时, TU必须选择任意定时门限来重置 Timer C或终结当前客户端事务。 当 TU接收到临时响应时, 也可以选择任意定时门限来重置 Timer C、 或终 结当前客户端事务。由于,允许 TU来重置 Timer C,所以 TU在 Timer C 超时或接收到临时响应的情况下 , 能基于当前条件动态的延长当前客户 端事务的生命周期。临时响应通常指 SIP信令中的 1XX消息(即: 101 ~ 199的消息), 比如: 180振铃(Ringing )消息、 183 处理( Processing ) 消息等等。
但是, 本专利申请的发明人发现: 上述会话定时器 Timer C控制机 制在实际应用中仍存在一些问题。 在 SIP会话的建立过程中, 可能存在 大量 TU来转发临时响应。 比如: 主叫用户 A到被叫用户 B之间依次存 在 m个 TU: TU TU2、 、 TUn-1、 TUn、 、 TUm。 对于 AS来 说, 主叫侧的各个 TU就是后向 TU实体, 而被叫侧的各个 TU就是前 向 TU实体, 所以可将 TU^称为 TUn的后向 TU实体。 TUn在某些情况 下可能由于要与其它实体进行交互, 比如: 作为背靠背用户代理 ( B2BUA ) 的 TU与软交换 ( Soft Switch ) 交互以获取路由信息, 因而 不能及时转发会话建立请求至前向 TU实体, 也就不能及时返回此会话 建立请求对应的正式响应给后向 TU实体 TU^; 或者, AS正在进行放 音收号, 即与用户进行交互, 此过程可能持续相当长的时间 (远超过 3 分钟), 此时, AS要返回 180消息以避免主叫端局开始计费。 为了避免 后向 TU实体 TU^提前释放 Timer C, TUn必须在 Timer C的最小定时 周期(即三分钟 )内发送临时响应给后向 TU实体 TU^, 以便让此后向 TU实体 TU^重置 Timer C, 以等待来自前向 TU实体 TUn的正式响应。 而且,如果前向 TU实体 TUn仍不能及时返回正式响应,其还要在 Timer C的最小定时周期内重发临时响应给后向 TU实体 TUw, 从而可能造成 多次临时响应的重发。
可见,在现有的 SIP会话建立过程中,各个 TU之间不能实现 Timer C的统一设置, 前向 TU实体只能通过发送临时响应的机制来通知后向 TU实体重置 Timer C, 以继续等待正式响应。 由此将造成各个 TU之间 临时响应的重复发送, 从而造成网絡带宽资源的浪费, 并影响 SIP会话 建立过程中其它消息的处理。 发明内容
本发明实施例提供了一种控制会话定时器的方法及系统、 应用服务 器以及事务用户实体, 使应用服务器能对 SIP会话建立过程中各后向事 务用户 (TU )实体上的会话定时器实施统一控制, 以减少临时响应的重 复发送。
本发明实施例的技术方案是这样实现的:
本发明实施例公开了一种控制会话定时器的方法, 应用于应用业务 服务器以及事务用户 (TU ) 实体之间, 此 TU实体设置有会话定时器; 在建立会话过程中, 应用服务器确定会话定时器的时长并发送给事务用 户实体; 此事务用户实体按接收到的会话定时器的时长配置自身的会话 定时器。
上述方案中, 当有至少两个事务用户实体时, 事务用户实体按接收 到的会话定时器的时长重新配置自身的会话定时器, 包括: 每一事务用 户实体在接收到会话定时器时长后发送此会话定时器的时长给自身连 接的事务用户实体, 各个事务用户实体分别按各自接收到的会话定时器 时长配置自身的会话定时器。
本发明实施例还公开了一种控制会话定时器的系统, 该系统包括: 应用服务器以及事务用户实体, 事务用户实体设置有会话定时器; 应用 服务器在建立会话过程中确定会话定时器的时长; 后向事务用户实体按 应用 ^!良务器确定的时长重置自身的会话定时器。
本发明实施例公开了一种应用服务器, 包括: 第一模块, 在建立会 话过程中确定会话定时器的时长; 第二模块, 输出第一模块确定的会话 定时器的时长至后向事务用户实体。
本发明实施例又公开了一种事务用户实体, 其设置有会话定时器, 当此实体作为应用服务器的后向事务用户实体时, 其包括: 第一模块, 接收来自应用服务器的会话定时器的时长; 第二模块, 按第一模块收到 的时长重置此会话定时器。
因此, 本发明实施例所提供的控制会话定时器的方法及系统、 应用 服务器以及事务用户实体, 使应用服务器能够依据当前会话建立的情况 统一重置各后向 TU实体的会话定时器, 避免后向 TU实体提前释放会 话定时器, 显著减少各个 TU实体之间临时响应的重复发送, 有效利用 带宽资源, 从而提高 SIP的业务质量。 附图简要说明
图 1为依据本发明实施例的控制会话定时器的处理流程图。
图 2为依据本发明实施例的控制会话定时器的系统组成结构图。 实施本发明的方式
下面结合附图及具体实施例对本发明再作进一步详细的说明。
本发明实施例公开了一种 SIP中控制会话定时器的方法, 其应用于 包括: AS 以及设置有会话定时器的后向 TU 实体的系统, 其包括: 当 AS在与被叫建立会话时, 确定会话定时器的时长并发送给后向 TU实 体; 此后向 TU实体再按接收到的会话定时器的时长重新配置自身的会 话定时器。
其中, 从 AS到主叫之间可能存在一个或多个 TU实体', 这些 TU 实体都可称为是 AS的后向 TU实体, 包括: AS连接的后向 TU实体、 以及后向 TU实体所连接的后向 TU实体。 此种情况下, AS在返回会话 定时器的时长时,首先将此会话定时器时长返回给此 AS连接的后向 TU 实体, 然后此后向 TU实体可将接收到的会话定时器时长转发给自身连 接的后向 TU实体, 此后, 每一后向 TU实体在接收到会话定时器时长 后都会发送此会话定时器的时长给自身连接的后向 TU实体, 各个后向 TU 实体还分別按各自接收到的会话定时器时长重新配置自身的会话定 时器。 本发明实施例所述的后向 TU实体可以为代理( Proxy )、 或 SIP 服务器、 或用户代理客户端 /用户代理服务器 ( UAC/UAS )。
这里, AS或后向 TU实体在发送会话定时器的时长时, 可以在返 回给其后向 TU 实体的临时响应中携带此会话定时器的时长来实现发 送。 临时响应指 SIP的 1XX消息, 也就是 101至 199消息'(也被表示为 101 ~ 199消息) 中的任一消息, 通常采用 180或 183消息。
图 1为依据本发明实施例的控制会话定时器的处理流程图。本实施 例中, 会话定时器为 Timer C, 在 AS的主叫侧,后向 TU实体包括: SIP 服务器、 主叫外呼代理(Caller Outbound Proxy )和作为 UAC的主叫终 端。 如图 1所示, 具体处理包括: 步骤 101: 主叫终端向主叫外呼代理发送会话建立请求, 这里, 会 话建立请求由 SIP的邀请 ( INVITE ) 消息来承载。
步驟 102 ~步驟 103:主叫外呼代理发送 INVITE消息至 SIP服务器, 此 SIP服务器再将此 INVITE消息转发至当前业务的 AS, 即 B2BUA。
其中,当主叫终端、主叫外呼代理、 SIP服务器和 AS接收到 INVITE 消息后都返回 100 尝试(Trying ) 消息, 表明已接收到此 INVITE消息 且正在处理中。
步骤 104: AS向被叫终端发送 INVITE消息; 此被叫终端返回 100 Trying消息。
步骤 105 : 当线路接通时, 此被叫终端还向 AS 返回 180 振铃 ( Ringing ) 消息, 此 180 Ringing消息就是一种临时响应。
步骤 106: AS此时能根据当前会话建立的情况确定 Timer C的时长, 并在当前要返回给 SIP服务器的 180 Ringing消息中携带此 Timer C的时 长。 然后, SIP服务器、 主叫外呼代理依次在接收到 180 Ringing消息时 向各自连接的后向 TU实体转发此 180 Ringing消息。各个后向 TU实体, 即: 主叫终端、 主叫外呼代理、 SIP服务器在接收到 180 Ringing消息之 后,从中解析得到 Timer C的时长,并按此时长重新配置自身的 Timer C。
当然, AS也可通过其它临时响应来携带会话定时器的时长, 比如: 183 Processing消息等等,本发明实施例对于具体通过哪些临时响应携带 会话定时器时长并不进行限定。
这里, SIP服务器可以称为是 AS连接的后向 TU实体, 而主叫外呼 代理可称为是 SIP服务器连接的后向 TU实体, 主叫终端就可称为是主 叫外呼代理连接的后向 TU实体, 即: 主叫外呼代理和主叫终端均为后 向 TU实体连接的后向 TU实体。 Timer C的时长也可表示为传输时长 ( TE, Transaction Expires ),此 TE通常要配置成比较大的值,比如: 3000 秒, 这样可以保证各个后向 TU实体有足够的时长来接收正式响应。 步骤 107: 当被叫终端接听时,此被叫终端向 AS返回正式响应 200 OK消息, AS再通过 SIP月良务器向主叫外呼代理返回此 200 OK消息, 主叫外呼代理再向主叫终端返回此 200 OK消息, SIP服务器、主叫外呼 代理和主叫终端在接收到此正式响应 200 OK消息后, 各自的 Timer C 将被释放, 以结束整个会话建立过程。
由于,在步骤 106,各个实体已按接收到的 TE重置各自的 Timer C, 所以,各个实体的 Timer C有足够的时长来等待正式响应, AS就不必像 现有技术那样通过反复发送临时响应来保证各个后向 TU实体继续等待 正式响应, 从而大大减少各 TU实体之间传递临时响应的次数。
其中, 为实现在临时响应中携带会话定时器的时长, 可使用临时响 应中现有的预留字段来携带此时长, 也可为临时响应构造新的字段来携 带此时长。
另外,主叫方与 AS并不一定属同一管理域( administrative domain ), 因此, 主叫方的 TU实体并不一定能够支持 AS所返回的会话定时器时 长。 考虑此种情况, 本发明实施例还提出了另一种处理流程, 此流程与 图 1所示基本相同, 不同之处在于来自主叫终端的会话建立请求(如: INVITE消息): 在本实施例中, 主叫终端在发送会话建立请求时, 在其 中携带自身支持的会话定时器时长范围, 比如: 携带一个最大时长和一 个最小时长; AS 在接收到来自主叫终端的会话建立请求后从中解析得 到此会话定时器时长范围, 从此时长范围中任选一个时长, 将其确定为 会话定时器的时长并返回给后向 TU实体。 这样, 能够保证主叫方的各 个后向 TU实体能够支持接收到的会话定时器的时长。 这里, 为实现在 会话建立请求中携带会话定时器时长范围, 可使用会话建立请求中现有 的预留字段来携带此时长范围, 也可为会话建立请求构造新的字段来携 带此时长范围。
本发明实施例还提出了一种 SIP中控制会话定时器的系统, 此系统 包括: AS以及设置有会话定时器的后向 TU实体; 其中, AS中包含时 长设置单元, 后向 TU实体中包含时长重置单元; 时长设置单元用于确 定会话定时器的时长并输出至时长重置单元, 时长重置单元用于从时长 设置单元接收会话定时器的时长并按此会话定时器的时长重置自身所 在后向 TU实体中的会话定时器。 时长设置单元可包括: 时长确定模块 和时长输出模块,时长重置单元可包括: 时长输入模块和时长配置模块。
图 2为依据本发明实施例的控制会话定时器的系统组成结构图。如 图 2所述, 此系统包括: AS及其包含的时长设置单元、 后向 TU实体 1 及其包含的时长重置单元。 此时长设置单元进一步包括: 时长确定模块 和时长输出模块; 此时长重置单元进一步包括: 时长输入模块 1和时长 配置模块 1。
其中, 时长确定模块用于确定当前 ^^舌定时器的时长并发送给时长 输出模块; 此时长输出模块用于将接收到的会话定时器的时长输出给时 长输入模块 1 , 比如: 通过在 AS发往后向 TU实体 1的临时响应中携带 此会话定时器的时长来输出。 时长输入模块 1用于接收来自时长输出模 块的会话定时器的时长并发送给时长配置模块 1。 当时长输入模块 1接 收到的是携带会话定时器的时长的临时响应时, 此时长输入模块 1要从 临时响应中解析得到此会话定时器的时长。 时长配置模块 1则用于按来 自时长输入模块 1的会话定时器的时长来重置自身所在后向 TU实体 1 的会话定时器。
当然, 在从 AS到主叫之间, 不一定仅有一个后向 TU实体, AS到 主叫之间可能会有多个后向 TU实体, 包括: AS连接的后向 TU实体、 以及后向 TU实体所连接的后向 TU实体。 其中, 每一后向 TU实体中 均设置有会话定时器、 并均包含一个时长重置单元。 各个后向 TU实体 之间要实现会话定时器的时长的转发, 所以, 后向 TU实体中的时长重 置单元要进一步包括: 时长转发模块。 此时长转发模块用于将会话定时 器的时长转发至其它后向 TU实体中的时长重置单元。
如图 2所示, 此系统可进一步包括后向 TU实体 2, 此后向 TU实 体 2包含的时长重置单元 2包括: 时长输入模块 2、 时长配置模块 2和 时长转发模块 2, 后向 TU实体 1中包含的时长重置单元 1中还要进一 步包括: 时长转发模块 1。
此时, 时长输入模块 1在接收到会话定时器的时长之后, 还要输出 此时长给时长转发模块 1。 时长转发模块 1用于将接收到的会话定时器 的时长发送给其它后向 TU实体包含的时长重置单元, 其它后向 TU实 体为时长转发模块 1所在后向 TU实体连接的后向 TU实体, 即图 2中 的后向 TU实体 2。 时长输入模块 2从时长转发模块 1接收会话定时器 的时长并输出给时长配置模块 2和时长转发模块 2, 时长配置模块 2将 按接收到的会话定时器时长重置后向 TU实体 2的会话定时器, 而时长 转发模块 2也将把会话定时器的时长转发给自身所在后向 TU实体 2连 接的其它后向 TU实体。
图 2中仅示出包含两个后向 TU实体的系统, 当后向 TU实体大于 两个时, 各个后向 TU实体之间的内部组成和连接关系与图 2所示后向 TU实体 1和后向 TU实体 2相同, 本文就不再——详述。
综上所述, 采用本发明实施例能使 AS统一控制各个后向 TU实体 的会话定时器, 从而显著减少会话建立过程中临时响应的发送次数, 节 约系统带宽资源, 利于整体提高业务质量。
以上所述仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。 凡在本发明的精神和原则之内所作的任何修改、 等同替换、 改 进等, 均包含在本发明的保护范围内。

Claims

权利要求书
1、 一种控制会话定时器的方法, 应用于应用服务器以及事务用户 实体之间, 所述事务用户实体设置有会话定时器; 其特征在于, 在建立 会话过程中, 所述方法包括:
所述事务用户实体接收所述应用服务器确定的所述会话定时器的 时长;
所述事务用户实体按接收到的会话定时器的时长配置自身的会话 定时器。
2、 居权利要求 1所述的方法, 其特征在于, 当有至少两个所述 事务用户实体时, 所述事务用户实体按接收到的会话定时器的时长重新 配置自身的会话定时器, 包括: 每一事务用户实体在接收到会话定时器 时长后发送所述会话定时器的时长给自身连接的事务用户实体, 各个事 务用户实体分别按各自接收到的会话定时器时长配置自身的会话定时 器。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述会话定时 器的时长承载在所述应用服务器返回给所述事务用户实体的临时响应 中。
4、 根据权利要求 3所述的方法, 其特征在于, 使用所述临时响应 中的预留字段来承载所述会话定时器的时长, 或者为所述临时响应构造 新的字段来 载所述会话定时器的时长。
5、 根据权利要求 3所述的方法, 其特征在于, 所述应用服务器确 定所述会话定时器的时长之前, 进一步包括: 所述应用服务器接收主叫 发送的自身支持的会话定时器时长范围, 从接收到的会话定时器时长范 围中选择一个时长作为当前会话定时器的时长。
6、 根据权利要求 5所述的方法, 其特征在于, 所述会话定时器时 长范围承载在所述主叫发往应用服务器的会话建立请求中。
7、 根据权利要求 6所述的方法, 其特征在于, 使用会话建立请求 中的预留字段来承载所述会话定时器时长范围, 或者为所述会话建立请 求构造新的字段来承载所述会话定时器时长范围。
8、 一种控制会话定时器的系统, 所述系统包括: 应用服务器和事 务用户实体, 所述事务用户实体设置有会话定时器; 其特征在于,
所述应用服务器, 用于在建立会话过程中确定会话定时器的时长, 并将所述会话定时器的时长发送给所述事务用户实体;
所述事务用户实体,用于根据所述会话定时器的时长配置自身的会 话定时器。
9、 根据权利要求 8所述的系统, 其特征在于, 所述系统包括至少 两个所述事务用户实体时,
所述事务用户实体进一步用于转发所述应用服务器确定的时长至 与自身连接的事务用户实体。
10、根据权利要求 8所述的系统,其特征在于,所述事务用户实体, 包括以下三者之一或三者的任意组合:代理 Proxy、背靠背代理 B2BUA、 用户代理客户端 /用户代理服务器 UAC UAS。
11、 一种应用服务器, 其特征在于, 包括:
第一模块, 在建立会话过程中, 用于确定所述会话定时器的时长; 第二模块, 用于输出所述第一模块确定的会话定时器的时长至后向 事务用户实体。
12、 一种事务用户实体, 其设置有会话定时器, 其特征在于, 当所 述实体作为应用服务器的后向事务用户实体时, 其包括:
第一模块, 用于接收来自所述应用服务器的所述会话定时器的时 长;
第二模块, 用于按所述第一模块收到的时长重置所述会话定时器。
13、 根据权利要求 12所述的事务用户实体, 其特征在于, 所述实 体进一步包括:
第三模块, 用于转发所述第一模块收到的会话定时器的时长。
14、 据权利要求 12或 13所述的事务用户实体, 其特征在于, 所 述实体为,代理 Proxy、背靠背代理 B2BUA、或用户代理客户端 /用户代理 服务器 UAC/UAS。
PCT/CN2007/000652 2006-03-28 2007-03-01 Method, system and device for controlling session timer Ceased WO2007109970A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200610066521.2A CN100486254C (zh) 2006-03-28 2006-03-28 一种会话初始协议网络中控制会话定时器的方法及系统
CN200610066521.2 2006-03-28

Publications (1)

Publication Number Publication Date
WO2007109970A1 true WO2007109970A1 (en) 2007-10-04

Family

ID=37298290

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/000652 Ceased WO2007109970A1 (en) 2006-03-28 2007-03-01 Method, system and device for controlling session timer

Country Status (2)

Country Link
CN (1) CN100486254C (zh)
WO (1) WO2007109970A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108289079B (zh) * 2017-01-09 2020-07-10 大唐移动通信设备有限公司 一种会话刷新时长控制的方法及装置
CN110311808A (zh) * 2019-06-06 2019-10-08 厦门亿联网络技术股份有限公司 一种通用型协议网络的稳定性验证方法及系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1645812A (zh) * 2004-07-30 2005-07-27 华为技术有限公司 将终端能力变化通知给网络的方法
US20050265382A1 (en) * 2004-05-31 2005-12-01 Nokia Corporation Providing control information for a protocol
US20050281251A1 (en) * 2004-06-21 2005-12-22 Hitachi, Ltd. Session control system for hierarchical relaying processes
JP2006222667A (ja) * 2005-02-09 2006-08-24 Sanyo Electric Co Ltd SIPサーバ及びVoIP電話システム
CN1859353A (zh) * 2005-05-08 2006-11-08 华为技术有限公司 基于重试机制的业务过程中对sip协议请求的处理方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050265382A1 (en) * 2004-05-31 2005-12-01 Nokia Corporation Providing control information for a protocol
US20050281251A1 (en) * 2004-06-21 2005-12-22 Hitachi, Ltd. Session control system for hierarchical relaying processes
CN1645812A (zh) * 2004-07-30 2005-07-27 华为技术有限公司 将终端能力变化通知给网络的方法
JP2006222667A (ja) * 2005-02-09 2006-08-24 Sanyo Electric Co Ltd SIPサーバ及びVoIP電話システム
CN1859353A (zh) * 2005-05-08 2006-11-08 华为技术有限公司 基于重试机制的业务过程中对sip协议请求的处理方法

Also Published As

Publication number Publication date
CN100486254C (zh) 2009-05-06
CN1859428A (zh) 2006-11-08

Similar Documents

Publication Publication Date Title
JP5606074B2 (ja) 通信ネットワークにおける動的サービストリガ
KR101548140B1 (ko) 원격통신 네트워크에서 매체 속성들에 기초한 선택적 호 포워딩을 위한 방법 및 시스템
US20150222753A1 (en) Method for Handling a Call from a Calling Subscriber Towards a Called Subscriber
WO2011017889A1 (zh) 一种多媒体会议的实现方法及系统
JP5437435B2 (ja) 呼制御方法、回線交換ドメインアダプタ、および端末装置
WO2009155824A1 (zh) 一种彩铃、彩像业务的实现方法及系统
WO2008011790A1 (en) Method, system and network apparatus for setting up session
WO2008025216A1 (fr) Procédé et système de mise à jour de ressources
KR100941306B1 (ko) Sip 망의 호 처리 시스템 및 방법
KR101169493B1 (ko) 통신 시스템에서 초기 미디어를 용이하게 하는 것
WO2007109970A1 (en) Method, system and device for controlling session timer
US9258367B2 (en) Technique for managing sessions with entities in a communication network
CN105991239A (zh) 一种ims系统中的信令处理方法、装置和相关设备
WO2007109950A1 (en) A method and system for realizing speech interaction
KR100959019B1 (ko) SIP 기반의 프락시 서버에서의 SIP 메시지forking을 이용한 실시간 과금 데이터 수집 방법
WO2009135375A1 (zh) 实现单对话彩铃业务的呼叫建立方法
CN102057701B (zh) 在通信网络中实现呼叫等待功能的方法
WO2008049371A1 (en) A method and system for transferring service event
JP2005327101A (ja) セッション継続確認方法、および、sipプロキシサーバ
JP6234272B2 (ja) アーリーメディアの送信タイミングを制御するセッション制御方法、sipサーバ及びプログラム
CN103475648B (zh) 基于sip协议的呼叫盲转方法及呼叫盲转系统
CN102006273B (zh) 一种呼叫通话中控制语音提示的方法及系统
JP6549523B2 (ja) 要求先端末のオプション機能の非使用を整合する網間制御方法、sipサーバ及びプログラム
US11283842B2 (en) Method for controlling a communication comprising multiple transactions
CN1984126A (zh) 使用背靠背用户代理时实现分叉的方法

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: 07720294

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: 07720294

Country of ref document: EP

Kind code of ref document: A1