CN101030964A - Session controller and controlling method - Google Patents
Session controller and controlling method Download PDFInfo
- Publication number
- CN101030964A CN101030964A CN 200610056807 CN200610056807A CN101030964A CN 101030964 A CN101030964 A CN 101030964A CN 200610056807 CN200610056807 CN 200610056807 CN 200610056807 A CN200610056807 A CN 200610056807A CN 101030964 A CN101030964 A CN 101030964A
- Authority
- CN
- China
- Prior art keywords
- request
- session
- release
- dialogue
- call
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/142—Managing session states for stateless protocols; Signalling session states; State transitions; Keeping-state mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
- Computer And Data Communications (AREA)
Abstract
本发明提供了一种呼叫会话控制装置和方法,该方法包括以下步骤:步骤702,根据用户签约数据中的初始过滤规则将会话请求触发到一个或多个应用服务器,并存储所有经过呼叫会话控制功能实体并与会话请求相关的对话信息;以及步骤704,当释放会话时,根据存储的与会话请求相关的对话信息释放对话。通过使用本发明提供的会话控制装置和方法,可以在接收到应用服务器的释放请求信息后,判断是否需要释放所有被触发的与应用服务器的会话,并且在需要时,释放所有被触发的与应用服务器的会话,满足实际应用中的要求。
The present invention provides a call session control device and method. The method includes the following steps: Step 702: Trigger a session request to one or more application servers according to the initial filtering rules in the user subscription data, and store all The functional entity and session information related to the session request; and step 704, when releasing the session, release the session according to the stored session information related to the session request. By using the session control device and method provided by the present invention, after receiving the release request information from the application server, it can be judged whether it is necessary to release all triggered sessions with the application server, and if necessary, release all triggered sessions with the application server. The session of the server meets the requirements in practical applications.
Description
技术领域technical field
本发明涉及通信装置和方法,尤其涉及网络中的会话控制装置和方法。The present invention relates to a communication device and method, in particular to a session control device and method in a network.
背景技术Background technique
会话发起协议(Session Initiation Protocl,简称SIP)是因特网工程任务组(IETF)于1999年3月发布的一种VoIP的标准。会话发起协议将电话作为因特网(Internet)的一个重要应用,增加了电话信令和服务质量(Quality of Service,简称QoS)方面的要求,并具有独特的用户寻址与定位的功能。近来会话发起协议的实际作用已远远超出了VoIP的应用。会话发起协议是电话信令的协议,用于发起会话,能控制多个参与者参加的多媒体会话的建立和终结,并能动态调整和修改会话属性,诸如会话带宽要求、传输媒体类型(语音、视频、数据等)、媒体的编解码格式、对多播和单播的支持等。因此,会话发起协议有利于与因特网结合开发多种应用的增值服务。Session Initiation Protocol (SIP for short) is a VoIP standard released by the Internet Engineering Task Force (IETF) in March 1999. The Session Initiation Protocol regards telephony as an important application of the Internet (Internet), increases the requirements for telephony signaling and Quality of Service (QoS), and has unique user addressing and positioning functions. The actual role of the session initiation protocol has been far beyond the application of VoIP recently. Session Initiation Protocol is a telephony signaling protocol used to initiate sessions, which can control the establishment and termination of multimedia sessions participated by multiple participants, and can dynamically adjust and modify session attributes, such as session bandwidth requirements, transmission media types (voice, video, data, etc.), media codec format, support for multicast and unicast, etc. Therefore, the Session Initiation Protocol is conducive to the development of value-added services for various applications in combination with the Internet.
IP多媒体核心网子系统(IP Multimedia Subsystem,简称IMS)是第三代移动通信标准化伙伴项目(3rd Generation PartnershipProiect,简称3GPP)在分组网络上叠加一个子系统,采用分组域作为其控制信令和媒体传输的承载通道,引入会话发起协议作为业务控制协议,利用会话发起协议简单、易扩展、媒体组合方便的特点,通过将业务控制与承载控制分离,提供丰富的多媒体业务。IP多媒体核心网子系统架构如图1所示,IP多媒体核心网子系统架构的主要功能实体包括:用于控制用户注册、会话控制等功能的呼叫会话控制功能实体(Call Session Control Function,简称CSCF)102、用于集中管理用户签约数据的归属用户服务器(Home SubscriberServer,简称HSS)104、用于提供各种业务逻辑控制功能的应用服务器(Application Server,简称AS)、用于选择PSTN/CS域中断发生的网络的中断网关控制功能(BGCF)实体106、用于控制媒体网关与电路域/PSTN/软交换网络互通的媒体网关控制功能(MediaGate Control Function,简称MGCF)实体108、用于控制盒处理分组域的媒体流资源的多媒体资源功能控制器(MRFC)110和多媒体资源功能处理器(MRFP)112、代理SCSF(P-CSCF)114、用于提供用户签约归属用户服务器的查询功能的签约定位器功能(SLF)实体116。其中,Cx接口支持呼叫会话控制功能实体和归属用户服务器之间的路有信息的获取,通过呼叫会话控制功能实体隧道传输用户和归属用户服务器间的信息,采用Diameter协议。Dx接口是呼叫会话控制功能实体和签约定位器功能实体之间的接口,用于获得为一个给定的用户保持签约的归属用户服务器的地址。Gm接口主要传输用户和呼叫会话控制功能实体之间的登记相关、用户业务控制、鉴权相关的流程。Mg接口是媒体网关控制功能实体和呼叫会话控制功能实体之间的接口,基于3GPP会话发起协议。Mj接口允许中断网关控制功能实体前转会话信令媒体网关控制功能实体,以便到PSTN(Public Switched Telephone Network,公共交换电话网络)的交互,基于会话发起协议。Mk接口允许呼叫会话控制功能实体前转会话信令到另一个中断网关控制功能实体,基于会话发起协议。Mm接口是呼叫会话控制功能实体和IP网络之间的IP接口,用于IP多媒体业务的业务控制,例如,从IP网上的VOIP呼叫控制服务器或IP网上的终端接收一个呼叫请求。Mp接口允许多媒体资源功能控制器控制MRF提供的媒体流资源,完全符合H.248标准并增加了3GPP的扩展。Mr接口允许呼叫会话控制功能实体和多媒体资源功能控制器之间的交互,基于3GPP会话发起协议。The IP Multimedia Core Network Subsystem (IP Multimedia Subsystem, referred to as IMS) is a subsystem superimposed on the packet network by the 3rd Generation Partnership Project ( 3rd Generation Partnership Project, referred to as 3GPP), using the packet domain as its control signaling and For the bearer channel of media transmission, the Session Initiation Protocol is introduced as the service control protocol. By utilizing the features of the Session Initiation Protocol, which are simple, easy to expand, and convenient for media combination, the service control and bearer control are separated to provide rich multimedia services. The IP multimedia core network subsystem architecture is shown in Figure 1. The main functional entities of the IP multimedia core network subsystem architecture include: Call Session Control Function (CSCF) for controlling functions such as user registration and session control ) 102, Home Subscriber Server (HSS for short) 104 for centralized management of user subscription data, application server (Application Server, AS for short) for providing various business logic control functions, and PSTN/CS domain selection The interrupt gateway control function (BGCF) entity 106 of the network where the interruption occurs, the media gateway control function (MediaGate Control Function, MGCF for short) entity 108 for controlling the intercommunication between the media gateway and the circuit domain/PSTN/softswitch network, and the entity 108 for the control box Multimedia Resource Function Controller (MRFC) 110, Multimedia Resource Function Processor (MRFP) 112, Proxy SCSF (P-CSCF) 114 for processing media stream resources in the packet domain, and subscription for providing the query function of the user subscription home user server Locator Function (SLF) entity 116 . Among them, the Cx interface supports the acquisition of route information between the call session control function entity and the home user server, and uses the Diameter protocol to transmit information between the user and the home user server through the call session control function entity tunnel. The Dx interface is the interface between the call session control functional entity and the subscription locator functional entity, and is used to obtain the address of the home subscriber server that maintains a subscription for a given subscriber. The Gm interface mainly transmits the processes related to registration, user service control, and authentication between the user and the call session control function entity. The Mg interface is an interface between the media gateway control function entity and the call session control function entity, and is based on the 3GPP session initiation protocol. The Mj interface allows the interrupt gateway control function entity to forward the session signaling media gateway control function entity, so as to interact with the PSTN (Public Switched Telephone Network, public switched telephone network), based on the session initiation protocol. The Mk interface allows the call session control function entity to forward session signaling to another interrupt gateway control function entity, based on the session initiation protocol. The Mm interface is an IP interface between the call session control function entity and the IP network, and is used for service control of IP multimedia services, for example, receiving a call request from a VOIP call control server on the IP network or a terminal on the IP network. The Mp interface allows the multimedia resource function controller to control the media stream resources provided by the MRF, fully complying with the H.248 standard and adding 3GPP extensions. The Mr interface allows interaction between the call session control functional entity and the multimedia resource function controller, based on the 3GPP session initiation protocol.
IP多媒体核心网子系统网络使用会话发起协议进行注册,实现用户接入IP多媒体核心网子系统网络。在用户注册过程中,IP多媒体核心网子系统网络针对用户私有标识进行认证并建立接入域安全通道,用户注册成功将在归属域S-CSCF(Serving-Call SessionControl Function,服务-呼叫会话控制功能)实体102建立用户公有标识与该用户当前位置间的关系,S-CSCF同时从归属用户服务器104取下用户的签约数据。The IP multimedia core network subsystem network uses the session initiation protocol to register, so that users can access the IP multimedia core network subsystem network. During the user registration process, the IP multimedia core network subsystem network authenticates the user's private identity and establishes a secure channel in the access domain. If the user registration is successful, the S-CSCF (Serving-Call Session Control Function, Serving-Call Session Control Function) in the home domain ) entity 102 establishes the relationship between the user's public identity and the user's current location, and the S-CSCF retrieves the user's subscription data from the home user server 104 at the same time.
在S-CSCF下载的IP多媒体核心网子系统签约中,可以包含一个或者多个业务描述(Service Profile)。业务描述包含公共标识、核心网业务授权、初始过滤规则集、共享初始过滤规则集等信息。其中的初始过滤规则是一组用户的服务参数。一个业务描述可以包含多个初始过滤规则组成的列表。The IP multimedia core network subsystem subscription downloaded by the S-CSCF may contain one or more service profiles. The service description includes information such as public identification, core network service authorization, initial filter rule set, and shared initial filter rule set. The initial filtering rules are a set of user service parameters. A business description can contain a list of multiple initial filter rules.
一个触发规则包含以下信息:被触发的应用服务器地址、触发规则的优先级、触发点、缺省处理、可选服务信息。A trigger rule includes the following information: the address of the application server to be triggered, the priority of the trigger rule, the trigger point, default processing, and optional service information.
根据这些参数,S-CSCF按照触发规则的优先级从高到低,根据触发点中的触发信息和从Mw接口接收到请求消息匹配。如果匹配成功,S-CSCF通过ISC接口发送相关的请求到匹配触发规则的应用服务器。According to these parameters, the S-CSCF follows the priority of the trigger rule from high to low, and matches the trigger information in the trigger point with the request message received from the Mw interface. If the match is successful, the S-CSCF sends the relevant request to the application server matching the trigger rule through the ISC interface.
如果接收到的是一个注册消息,S-CSCF给每个匹配触发规则的应用服务器发送第三方注册消息。If a registration message is received, the S-CSCF sends a third-party registration message to each application server matching the trigger rule.
如果接收到的是一个其他请求,S-CSCF在给每个匹配触发规则的应用服务器发送消息中,添加特殊标识和路由信息。应用服务器在处理完成业务逻辑后,根据路由信息,将请求消息返回给S-CSCF。S-CSCF将继续进行低优先级的触发规则匹配,直至将业务描述中的所有触发规则检查完毕。If it receives another request, the S-CSCF adds special identification and routing information to the message sent to each application server that matches the trigger rule. After processing the business logic, the application server returns the request message to the S-CSCF according to the routing information. The S-CSCF will continue to match the low-priority trigger rules until all the trigger rules in the service description are checked.
IP多媒体核心网子系统中S-CSCF和应用服务器之间通过ISC接口交互提供业务,其架构图2所示。其中,应用服务器可以是如下类型:In the IP multimedia core network subsystem, the S-CSCF and the application server provide services interactively through the ISC interface, and its architecture is shown in Figure 2. Among them, the application server can be of the following types:
1、会话发起协议应用服务器(SIP AS)202:能够提供某些服务,可以基于业务影响一个会话发起协议会话。1. Session Initiation Protocol Application Server (SIP AS) 202: can provide certain services, and can influence a Session Initiation Protocol session based on business.
2、IP多媒体业务切换功能(IP Multimedia Services SwitchingFunction,简称IM SSF)204:这是一个特殊类型的应用服务器,它是用来负责CAMEL(服务网络增强逻辑)网的特性(例如:触发DP点、CAMEL服务交换的有限状态机等),它提供一个CAP接口。2. IP Multimedia Services Switching Function (IP Multimedia Services Switching Function, referred to as IM SSF) 204: This is a special type of application server, which is used to be responsible for the characteristics of the CAMEL (Service Network Enhanced Logic) network (for example: triggering DP points, Finite state machine for CAMEL service exchange, etc.), which provides a CAP interface.
3、开放业务接入的业务能力服务器(Open ServicesAccess-Service Capability Server,简称OSA-SCS)206:它给开放业务接入的应用服务器(OSA AS)208提供了一个接口,它给第三方安全接入IM子系统提供了一个标准方式。OSA参考架构定义了一个开放业务接入的应用服务器实体,它通过OSA API(ApplicationProgram Interface,应用程序接口)为客户端的应用提供一个逻辑执行环境。这里开放业务接入的应用服务器的定义不同于上文中给IP多媒体核心网子系统提供服务的应用服务器的定义,即,IP多媒体核心网子系统的应用服务器是通过内部服务控制接口(InternalService Control Interface,简称ISC接口)和S-CSCF交互的。3. Open Services Access-Service Capability Server (OSA-SCS for short) 206: it provides an interface for the application server (OSA AS) 208 of Open Services Access-Service, which provides a third-party secure access It provides a standard way to enter the IM subsystem. The OSA reference architecture defines an application server entity with open service access, which provides a logical execution environment for client applications through the OSA API (Application Program Interface, application program interface). The definition of the application server for open service access here is different from the definition of the application server providing services for the IP multimedia core network subsystem above, that is, the application server of the IP multimedia core network subsystem is through the internal service control interface (Internal Service Control Interface) , referred to as the ISC interface) interacts with the S-CSCF.
所有的应用服务器(包括IP多媒体业务切换功能实体(IPMultimedia Services Switching Function,简称IM-SSF)和开放业务接入的业务能力服务器)都是在ISC接口上执行一个会话发起协议应用服务器的行为。All application servers (including IP Multimedia Services Switching Function (IM-SSF) and service capability servers for open service access) execute a session initiation protocol application server behavior on the ISC interface.
应用服务器可以采用以下几种模型来处理会话发起协议请求。Application servers can use the following models to process session initiation protocol requests.
1、应用服务器作为终结用户代理(User Agent,简称UA)1. The application server acts as the terminal user agent (User Agent, UA for short)
如图3所示,应用服务器302执行终结用户代理或者重定向服务器角色。在这种操作模型下,S-CSCF 304将收到的会话发起协议请求传递给应用服务器302,应用服务器302执行RFC 3261中定义的终结用户代理或者重定向服务器角色。As shown in FIG. 3, the
2、应用服务器作为PROXY(代理)2. The application server acts as a PROXY (proxy)
如图4所示,应用服务器302执行会话发起协议代理的角色。在这种操作模型下,S-CSCF 304将收到的会话发起协议请求代理给应用服务器302,应用服务器302执行IETF RFC 3261中定义的PROXY角色,将请求代理回S-CSCF 304,然后S-CSCF 304代理该消息给目的地。在代理操作过程中,应用服务器302能够根据IETF RFC 3261中描述的PROXY的规则,增加、删除和修改会话发起协议请求中的头域内容。As shown in FIG. 4, the
在这种模型下,应用服务器302还可以通过到S-CSCF 304订阅用户设备(User Equipment,简称UE)的注册事件,获得用户设备的所有联系地址,对用户设备发起分叉(Forking)。Forking是Proxy串行或者并行对多个终端发起会话的一种处理方式。Under this model, the
3、应用服务器302作为背靠背用户代理(Back-to-Back UserAgent,简称B2BUA)3. The
如图5所示,应用服务器302作为路由背靠背用户代理。应用服务器从S-CSCF接收到一个请求,终结请求,并且基于接收到的请求生成一个新的请求。As shown in FIG. 5, the
在这种操作模型下,接收的会话发起协议请求被S-CSCF 304代理到应用服务器,应用服务器302生成一个不同的会话发起协议会话的一个新会话发起协议请求,并发送给S-CSCF,然后S-CSF将该请求代理到目的地。在这种模型下,应用服务器302执行IETFRFC 3261中描述的多个会话发起协议会话的背靠背用户代理的角色。In this mode of operation, the received SIP request is proxied by the S-
在这种模型下,应用服务器302可以根据业务的需要进行前转处理、或者对多个IP多媒体公开身份(IP Multimedia Public Identity,简称IMPU)发起请求。Under this model, the
根据3GPP TS 24.229,现有的会话处理方式如下:According to 3GPP TS 24.229, the existing session processing method is as follows:
一、被服务用户发起的请求处理过程:1. The request processing process initiated by the service user:
由被服务用户发起的请求,当S-CSCF从服务用户或PSI接收到对话的最初请求或者独立会话的请求时,在转发请求之前,S-CSCF应该:For a request initiated by a served user, when the S-CSCF receives an initial request for a dialog or a request for an independent session from the serving user or PSI, before forwarding the request, the S-CSCF shall:
1、检查是否S-CSCF以前放置在Route头域中的原始对话标识存在于到来请求Route头域的最高项。1. Check whether the original dialog identifier previously placed by the S-CSCF in the Route header field exists in the top item of the Route header field of the incoming request.
a)如果不存在,它表示这个请求是第一次拜访这个S-CSCF;a) If it does not exist, it means that this request is the first time to visit this S-CSCF;
b)如果存在,它表示了与一个现存对话的联系,这请求是从应用服务器发来的对于先前发送请求的响应。b) If present, it indicates the association with an existing dialog, which was sent from the application server in response to a previously sent request.
2、取出这个请求消息中P-Asserted-Identity头域中的公共标识对应的初始过滤规则。按照优先级顺序,检查这个初始请求是否与下一条未执行的初始过滤规则相匹配。如果匹配,S-CSCF在Route头域中最高项的自己的用户资源标识符(Uniform ResourceIdentifier,简称URI)之后,插入将要联系的AS URI,转发这个请求到那个应用服务器。如果不匹配,S-CSCF接着检查余下的较低优先级的过滤规则的匹配情况,直至所有初始过滤规则检查完成,然后处理请求消息的目的地址;在处理目的地址之前,S-CSCF可能联系一个或多个应用服务器;2. Take out the initial filtering rule corresponding to the public identity in the P-Asserted-Identity header field in the request message. In order of priority, check whether this initial request matches the next unexecuted initial filter rule. If it matches, the S-CSCF inserts the AS URI to be contacted after its own Uniform Resource Identifier (URI) in the highest item in the Route header field, and forwards the request to that application server. If there is no match, the S-CSCF then checks the matching of the remaining filter rules with lower priority until all the initial filter rules are checked, and then processes the destination address of the request message; before processing the destination address, the S-CSCF may contact a or multiple application servers;
3、如果Route头域中最高项没有原始对话标识,S-CSCF保存从P-Charging-Vector头域接收到的icid参数并且保留P-Charging-Vector头域的icid参数。可选地,S-CSCF可以产生一个新的、全局唯一的icid并在转发这条消息时将这个新数值插入到P-Charging-Vector头域的icid参数中。如果S-CSCF生成新的icid,那么它将有责任在后续通讯中维护这两个icid数值;3. If the highest item in the Route header field does not have the original dialog identifier, the S-CSCF saves the icid parameter received from the P-Charging-Vector header field and retains the icid parameter in the P-Charging-Vector header field. Optionally, the S-CSCF may generate a new globally unique icid and insert this new value into the icid parameter of the P-Charging-Vector header field when forwarding this message. If the S-CSCF generates a new icid, it will be responsible for maintaining these two icid values in subsequent communications;
4、S-CSCF处理目的地址时,如果存在,使用最高Route头域中的URI来决定目的地址,否则就基于Request-URI;4. When the S-CSCF processes the destination address, if it exists, use the URI in the highest Route header field to determine the destination address, otherwise it will use the Request-URI;
5、如果这请求是INVITE请求,S-CSC保存从请求中接收到的Contact、Cseq和Record-Route头域数值以使需要时S-CSCF能够释放这个对话。5. If the request is an INVITE request, the S-CSC saves the values of the Contact, Cseq and Record-Route header fields received from the request so that the S-CSCF can release the dialog when necessary.
二、被服务用户终结的请求处理过程:2. The request processing process terminated by the service user:
当S-CSCF接收到发往静态预制的PSI或已注册的服务用户的对话的初始请求或者独立事务的请求时,在转发这请求前,S-CSCF应该:When the S-CSCF receives an initial request for a session or a request for an independent transaction addressed to a statically prefabricated PSI or a registered service user, before forwarding the request, the S-CSCF shall:
1、检查是否S-CSCF以前放置在Route头域中的原始对话标识存在于到来请求Route头域的最高项。1. Check whether the original dialog identifier previously placed by the S-CSCF in the Route header field exists in the top item of the Route header field of the incoming request.
a)如果不存在,它表示这个请求是第一次拜访这个S-CSCF,在这时S-CSCF将保存请求的Request-URI;a) If it does not exist, it means that this request is the first visit to this S-CSCF, at this time S-CSCF will save the Request-URI of the request;
b)如果存在,它表示了与一个现存对话的联系,这请求是从应用服务器发来的对于先前发送请求的响应。b) If present, it indicates the association with an existing dialog, which was sent from the application server in response to a previously sent request.
2、如果Route头域中的原始对话标识存在,检查是否这个Request-URI与已经保存的Request-URI相等。如果不匹配,则S-CSCF应该:2. If the original dialog identifier in the Route header field exists, check whether the Request-URI is equal to the saved Request-URI. If there is no match, the S-CSCF shall:
a)如果这请求是INVITE请求,保存从请求中接收到的Contact、Cseq和Record-Route头域以使S-CSCF能够在需要时释放这个对话;并且a) if the request is an INVITE request, save the Contact, Cseq and Record-Route header fields received from the request so that the S-CSCF can release the dialog if necessary; and
b)基于这个Request-URI转发这条请求并且跳过下述步骤;b) Forward the request based on the Request-URI and skip the following steps;
3、取出这个请求消息中Request-URI头域中的公共标识对应的初始过滤规则。按照优先级顺序,检查这个初始请求是否与下一条未执行的初始过滤规则相匹配。如果匹配,S-CSCF在Route头域中最高项的自己的URI之后,插入将要联系AS URI,转发这个请求到那个应用服务器。如果不匹配,S-CSCF接着检查余下的较低优先级的过滤规则的匹配情况,直至所有初始过滤规则检查完成,然后处理请求消息的目的地址;在处理目的地址之前,S-CSCF可能联系一个或多个应用服务器;3. Take out the initial filtering rule corresponding to the public identifier in the Request-URI header field in the request message. In order of priority, check whether this initial request matches the next unexecuted initial filter rule. If it matches, the S-CSCF inserts the URI of the AS to be contacted after its own URI in the highest item in the Route header field, and forwards the request to that application server. If there is no match, the S-CSCF then checks the matching of the remaining filter rules with lower priority until all the initial filter rules are checked, and then processes the destination address of the request message; before processing the destination address, the S-CSCF may contact a or multiple application servers;
4、如果Route头域中最高项没有原始对话标识,S-CSCF保存从P-Charging-Vector头域接收到的icid参数并且保留P-Charging-Vector头域的icid参数。4. If the highest item in the Route header field does not have the original dialog identifier, the S-CSCF saves the icid parameter received from the P-Charging-Vector header field and retains the icid parameter in the P-Charging-Vector header field.
5、如果这请求是INVITE请求,S-CSC保存从请求中接收到的Contact、Cseq和Record-Route头域数值以使需要时S-CSCF能够释放这个对话。5. If the request is an INVITE request, the S-CSC saves the values of the Contact, Cseq and Record-Route header fields received from the request so that the S-CSCF can release the dialog when necessary.
三、被服务用户释放会话处理过程:3. The service user releases the session processing process:
当S-CSCF内部指示会话释放时(例如注册定时器超时、管理注销用户等),S-CSCF按照RFC3261发送CANCEL消息取消正在建立的相关的对话,或者发送BYE释放已经建立的会话。When the S-CSCF internally instructs session release (for example, registration timer expires, management logout user, etc.), S-CSCF sends CANCEL message according to RFC3261 to cancel the related dialogue being established, or sends BYE to release the established session.
发送BYE的方法如下:The method of sending BYE is as follows:
1、根据保存的对话信息,为被叫用户构造第一个BYE请求;1. Construct the first BYE request for the called user according to the saved dialogue information;
2、根据保存的对话信息,为主叫用户构造第二个BYE请求;2. Construct a second BYE request for the calling user according to the saved dialogue information;
3、如果S-CSCF在主叫侧,将第一个BYE消息当作从主叫用户接收的消息处理,发送到业务控制,进一步根据结果转发到被叫用户。3. If the S-CSCF is on the calling side, treat the first BYE message as a message received from the calling user, send it to the service control, and forward it to the called user according to the result.
4、如果S-CSCF在主叫侧,将第二个BYE消息直接发到主叫用户。4. If the S-CSCF is on the calling side, send the second BYE message directly to the calling user.
5、如果S-CSCF在被叫侧,将第一个BYE消息直接发到被叫用户。5. If the S-CSCF is on the called side, send the first BYE message directly to the called user.
6、如果S-CSCF在被叫侧,将第二个BYE消息当作从被叫用户接收的消息处理,发送到业务控制,进一步根据结果转发到主叫用户。6. If the S-CSCF is on the called side, process the second BYE message as a message received from the called user, send it to the service control, and further forward it to the calling user according to the result.
现有技术中存在以下问题:There are following problems in the prior art:
1、网络注销用户时,S-CSCF不能释放该用户当前业务控制的所有对话。1. When the network logs out the user, the S-CSCF cannot release all the sessions currently controlled by the user.
2、S-CSCF接收到应用服务器的释放消息后,无法判断是否需要释放该业务控制的所有被触发的应用服务器的对话。2. After receiving the release message from the application server, the S-CSCF cannot determine whether to release all triggered application server sessions controlled by the service.
例如,一个会话请求的业务控制,在S-CSCF触发到三个应用服务器,其中第一个应用服务器为IP多媒体业务切换功能实体,该用户有根据会话释放消息触发一个新会话的业务;第二个应用服务器为IMS-GWF(在线计费网关),需要根据用户的计费信息,随时可以释放当前业务控制的所有对话;第三个为一个背靠背用户代理角色的应用服务器,该用户有被叫控制业务。在业务控制的所有对话建立完成后:For example, the service control of a session request is triggered to three application servers in the S-CSCF, wherein the first application server is an IP multimedia service switching function entity, and the user has a service that triggers a new session according to the session release message; the second application server The first application server is IMS-GWF (online charging gateway), which needs to release all the conversations of the current service control at any time according to the user's charging information; the third is an application server with a back-to-back user agent role, and the user has called Take control of the business. After all dialogs for business control are established:
如果归属用户服务器管理注销用户,S-CSCF按照现有的标准释放会话,由于应用服务器存在业务逻辑,将不能释放所有对话。If the home user server manages the logout user, the S-CSCF releases the session according to the existing standard, but all sessions cannot be released due to the business logic of the application server.
如果由于计费原因,在线计费网关IMS-GWF需要释放会话,向会话两侧发送BYE消息。S-CSCF按照现有的标准描述,将释放消息BYE发送给第一个应用服务器和第三个应用服务器,则第一个应用服务器和第三个应用服务器按照自己的业务逻辑继续执行业务,不能被释放。显然,这无法满足IMS-GWF释放当前业务控制的所有对话的要求。If the online charging gateway IMS-GWF needs to release the session due to charging reasons, it sends a BYE message to both sides of the session. According to the existing standard description, S-CSCF sends the release message BYE to the first application server and the third application server, then the first application server and the third application server continue to execute the business according to their own business logic, and cannot released. Obviously, this cannot meet the requirement of IMS-GWF to release all dialogues controlled by the current business.
发明内容Contents of the invention
本发明的目的在于提供一种呼叫会话控制装置和方法,能够释放当前业务控制的所有对话的要求。The purpose of the present invention is to provide a call session control device and method, which can release all dialog requirements of current service control.
该装置包括:会话建立模块,根据用户签约数据中的初始过滤规则将会话请求触发到一个或多个应用服务器,并存储所有经过呼叫会话控制功能实体并与会话请求相关的对话信息;以及会话释放模块,用于当释放会话时,根据存储的与会话请求相关的对话信息释放对话。The device includes: a session establishment module, which triggers a session request to one or more application servers according to the initial filter rule in the user subscription data, and stores all session information related to the session request passing through the call session control function entity; and session release A module configured to release the session according to the stored session information related to the session request when the session is released.
会话释放模块包括:第一释放请求构造单元,用于为每个对话的服务器端(UAS)构造第一释放请求,并且将第一释放请求沿对话建立的路径发送至对话的服务器端;以及第二释放请求构造单元,用于为每个对话的客户端(UAC)构造第二释放请求,并且将第二释放请求沿对话建立的路径发送至对话的客户端。The session release module includes: a first release request construction unit, configured to construct a first release request for each dialog server (UAS), and send the first release request to the dialog server along the path established by the dialog; and The second release request construction unit is configured to construct a second release request for each dialog client (UAC), and send the second release request to the dialog client along the path established by the dialog.
对话信息为释放对话的必要信息,对话信息包括:对话请求中的Call-ID头域、From头域、To头域、Contact头域、Cseq头域、和Record-Route头域。The dialog information is necessary information for releasing the dialog, and the dialog information includes: Call-ID header field, From header field, To header field, Contact header field, Cseq header field, and Record-Route header field in the dialog request.
该方法包括:步骤702,根据用户签约数据中的初始过滤规则将会话请求触发到一个或多个应用服务器,并存储所有经过呼叫会话控制功能实体并与会话请求相关的对话信息;以及步骤704,当释放会话时,根据存储的所有与会话请求相关的对话信息释放对话。The method includes: step 702, triggering the session request to one or more application servers according to the initial filter rule in the user subscription data, and storing all session information related to the session request passing through the call session control function entity; and step 704, When the session is released, the session is released according to all stored session information related to the session request.
对话信息为释放对话的必要信息,对话信息包括:对话请求中的Call-ID头域、From头域、To头域、Contact头域、Cseq头域、和Record-Route头域。The dialog information is necessary information for releasing the dialog, and the dialog information includes: Call-ID header field, From header field, To header field, Contact header field, Cseq header field, and Record-Route header field in the dialog request.
步骤704包括:当呼叫会话控制功能实体本身或外部实体指示释放会话时,根据存储的所有与会话请求相关的对话信息释放所有对话。Step 704 includes: when the CSCF entity itself or an external entity instructs to release the session, release all sessions according to all stored session information related to the session request.
根据存储的所有与会话请求相关的对话信息释放所有对话包括:为每个对话的服务器端(UAS)构造第一释放请求,并且将对话建立的路径发送至对话的服务器端;以及为每个对话的客户端(UAC)构造第二释放请求,并且将对话建立的路径发送至对话的客户端。Releasing all dialogs according to all dialog information related to the session request stored includes: constructing a first release request for each dialog's server (UAS), and sending the path established by the dialog to the dialog's server; and for each dialog The client (UAC) of the dialog constructs a second release request, and sends the path established by the dialog to the client of the dialog.
步骤704包括:当应用服务器释放会话时,根据存储的与会话请求相关的对话信息和释放处理指示,释放所有对话或部分对话。Step 704 includes: when the application server releases the session, release all or part of the sessions according to the stored session information related to the session request and the release processing instruction.
其中,释放处理指示是:在用户签约数据中应用服务器对应的初始过滤规则中的缺省处理指示;在用户签约数据的初始过滤规则中添加的释放处理指示;或者在呼叫会话控制功能实体中配置的释放处理指示。Wherein, the release processing instruction is: the default processing instruction in the initial filter rule corresponding to the application server in the user subscription data; the release processing instruction added in the initial filter rule of the user subscription data; or configured in the call session control function entity The release processing instructions.
释放处理指示包括:会话继续指示和会话终止指示。如果释放处理指示不存在,则按照会话继续指示处理。The release processing indication includes: a session continuation indication and a session termination indication. If the release processing instruction does not exist, it will be processed according to the session continuation instruction.
当指示为会话继续指示时,沿着对话建立的路径传送释放请求,释放对话;以及当指示为会话终止指示时,沿着对话建立的路径传送释放请求,同时根据存储的所有与会话请求相关的对话信息,释放应用服务器的释放请求所在一侧的所有对话。When the indication is a session continuation indication, transmit the release request along the path established by the dialogue, and release the dialogue; Conversation information, release all dialogs on the side where the application server's release request is located.
释放应用服务器的释放请求所在一侧的所有对话的过程包括:为对话的服务器端(UAS)构造第一释放请求,并且沿对话建立的路径将第一释放请求发送至对话的服务器端;以及为对话的客户端(UAC)构造第二释放请求,并且沿对话建立的路径将第二释放请求发送至对话的客户端。The process of releasing all dialogs at the side where the release request of the application server comprises: constructing the first release request for the server end (UAS) of the dialog, and sending the first release request to the server end of the dialog along the path established by the dialog; The dialog's client (UAC) constructs a second release request and sends the second release request to the dialog's client along the path established by the dialog.
通过使用本发明提供的呼叫会话控制装置和方法,可以在接收到应用服务器的释放请求信息后,根据存储的对话信息和释放处理指示来判断是否需要释放所有被触发的与应用服务器的对话,并且在需要时,释放所有被触发的与应用服务器的对话。By using the call session control device and method provided by the present invention, after receiving the release request information from the application server, it is possible to judge whether all triggered dialogs with the application server need to be released according to the stored dialog information and release processing instructions, and Releases all triggered conversations with the application server when needed.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:
图1示出根据本发明的IP多媒体核心网子系统的框图;Fig. 1 shows the block diagram of IP multimedia core network subsystem according to the present invention;
图2示出根据本发明的IP多媒体核心网子系统网络业务提供的架构图;Fig. 2 shows the framework diagram that IP multimedia core network subsystem network service provides according to the present invention;
图3示出根据本发明的应用服务器执行终结用户代理或重定向服务器角色的示意图;FIG. 3 shows a schematic diagram of an application server performing the role of a terminating user agent or a redirection server according to the present invention;
图4示出根据本发明的应用服务器执行会话发起协议代理角色的示意图;Fig. 4 shows a schematic diagram of an application server performing a SIP proxy role according to the present invention;
图5示出根据本发明的应用服务器作为路由背靠背用户代理执行第三方呼叫控制的示意图;FIG. 5 shows a schematic diagram of the application server according to the present invention as a routing back-to-back user agent performing third-party call control;
图6示出根据本发明的呼叫会话控制装置的框图;Figure 6 shows a block diagram of a call session control device according to the present invention;
图7示出根据本发明的呼叫会话控制方法的流程图;Fig. 7 shows the flowchart of the call session control method according to the present invention;
图8示出根据本发明的实施例的网络注销用户时S-CSCF释放所有业务控制会话的过程的示意图;以及Fig. 8 shows a schematic diagram of a process in which the S-CSCF releases all service control sessions when the network logs out the user according to an embodiment of the present invention; and
图9示出根据本发明的实施例的应用服务器发起会话释放时S-CSCF释放所有业务控制会话的过程的示意图。Fig. 9 shows a schematic diagram of the process of releasing all service control sessions by the S-CSCF when the application server initiates the session release according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将参考附图详细说明本发明。Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.
图6示出根据本发明的呼叫会话控制装置的框图。如图6所示,该装置600包括:会话建立模块602,根据用户签约数据中的初始过滤规则将会话请求触发到一个或多个应用服务器,并存储所有经过呼叫会话控制功能实体并与会话请求相关的对话信息;以及会话释放模块604,用于当释放会话时,根据存储的与会话请求相关的对话信息释放对话。Fig. 6 shows a block diagram of a call session control device according to the present invention. As shown in FIG. 6, the
会话释放模块604包括:第一释放请求构造单元604-2,用于为每个对话的服务器端(UAS)构造第一释放请求,并且将第一释放请求沿对话建立的路径发送至对话的服务器端;以及第二释放请求构造单元604-4,第二释放请求构造单元,用于为每个对话的客户端(UAC)构造第二释放请求,并且将第二释放请求沿对话建立的路径发送至对话的客户端。The session release module 604 includes: a first release request construction unit 604-2, configured to construct a first release request for each dialog server (UAS), and send the first release request to the dialog server along the path established by the dialog end; and a second release request construction unit 604-4, a second release request construction unit configured to construct a second release request for the client (UAC) of each dialog, and send the second release request along the path established by the dialog to the client side of the conversation.
对话信息为释放对话的必要信息,对话信息包括:对话请求中的Call-ID头域、From头域、To头域、Contact头域、Cseq头域、和Record-Route头域。The dialog information is necessary information for releasing the dialog, and the dialog information includes: Call-ID header field, From header field, To header field, Contact header field, Cseq header field, and Record-Route header field in the dialog request.
图7示出根据本发明的呼叫会话控制方法的流程图。如图7所示,呼叫会话控制方法包括以下步骤:步骤702,根据用户签约数据中的初始过滤规则将会话请求触发到一个或多个应用服务器,并存储所有经过呼叫会话控制功能实体并与会话请求相关的对话信息;以及步骤704,当释放会话时,根据存储的所有与会话请求相关的对话信息释放对话。Fig. 7 shows a flowchart of a call session control method according to the present invention. As shown in Figure 7, the call session control method includes the following steps: step 702, trigger the session request to one or more application servers according to the initial filtering rules in the user subscription data, and store all the call session control function entities and communicate with the session request related session information; and step 704, when releasing the session, release the session according to all stored session information related to the session request.
其中,对话信息为释放对话的必要信息,对话信息包括:对话请求中的Call-ID头域、From头域、To头域、Contact头域、Cseq头域、和Record-Route头域。Wherein, the dialog information is necessary information for releasing the dialog, and the dialog information includes: Call-ID header field, From header field, To header field, Contact header field, Cseq header field, and Record-Route header field in the dialog request.
步骤704包括:当呼叫会话控制功能实体本身或外部实体指示释放会话时,根据存储的所有与会话请求相关的对话信息释放所有对话。Step 704 includes: when the CSCF entity itself or an external entity instructs to release the session, release all sessions according to all stored session information related to the session request.
根据存储的所有与会话请求相关的对话信息释放所有对话包括:为每个对话的服务器端(UAS)构造第一释放请求,并且将对话建立的路径发送至对话的服务器端;以及为每个对话的客户端(UAC)构造第二释放请求,并且将对话建立的路径发送至对话的客户端。Releasing all dialogs according to all dialog information related to the session request stored includes: constructing a first release request for each dialog's server (UAS), and sending the path established by the dialog to the dialog's server; and for each dialog The client (UAC) of the dialog constructs a second release request, and sends the path established by the dialog to the client of the dialog.
步骤704包括:当应用服务器释放会话时,根据存储的与会话请求相关的对话信息和释放处理指示,释放所有对话或部分对话。Step 704 includes: when the application server releases the session, release all or part of the sessions according to the stored session information related to the session request and the release processing instruction.
其中,释放处理指示是:在用户签约数据中应用服务器对应的初始过滤规则中的缺省处理指示;在用户签约数据的初始过滤规则中添加的释放处理指示;或者在呼叫会话控制功能实体中配置的释放处理指示。Wherein, the release processing instruction is: the default processing instruction in the initial filter rule corresponding to the application server in the user subscription data; the release processing instruction added in the initial filter rule of the user subscription data; or configured in the call session control function entity The release processing instructions.
释放处理指示包括:会话继续指示和会话终止指示。The release processing indication includes: a session continuation indication and a session termination indication.
当指示为会话继续指示时,沿着对话建立的路径传送释放请求,释放对话;以及当指示为会话终止指示时,沿着对话建立的路径传送释放请求,同时根据存储的所有与会话请求相关的对话信息,释放应用服务器的释放请求所在一侧的所有对话。When the indication is a session continuation indication, transmit the release request along the path established by the dialogue, and release the dialogue; Conversation information, release all dialogs on the side where the application server's release request is located.
释放应用服务器的释放请求所在一侧的所有对话的过程包括:为对话的服务器端(UAS)构造第一释放请求,并且沿对话建立的路径将第一释放请求发送至对话的服务器端;以及为对话的客户端(UAC)构造第二释放请求,并且沿对话建立的路径将第二释放请求发送至对话的客户端。The process of releasing all dialogs at the side where the release request of the application server comprises: constructing the first release request for the server end (UAS) of the dialog, and sending the first release request to the server end of the dialog along the path established by the dialog; The dialog's client (UAC) constructs a second release request and sends the second release request to the dialog's client along the path established by the dialog.
S-CSCF进行网络业务控制的会话触发和释放的过程为:The process of S-CSCF triggering and releasing the session of network service control is as follows:
A.业务控制的会话触发过程:A. Session triggering process of service control:
当S-CSCF接收到会话请求消息时,检查S-CSCF以前放置在Route头域中的原始对话标识是否存在于请求消息中Route头域的最高项。When the S-CSCF receives the session request message, it checks whether the original dialogue identifier previously placed by the S-CSCF in the Route header field exists in the highest item of the Route header field in the request message.
1、如果不存在,它表示这个请求是第一次拜访这个S-CSCF。如果这请求是INVITE请求,这时S-CSCF保存从请求中接收到的Call-ID头域、From头域的tag参数、To头域的tag参数、Contact头域、Cseq头域和Record-Route头域值,以在需要时S-CSCF能够释放这个对话。1. If it does not exist, it means that this request is the first time to visit this S-CSCF. If the request is an INVITE request, the S-CSCF saves the Call-ID header field, the tag parameter of the From header field, the tag parameter of the To header field, the Contact header field, the Cseq header field and the Record-Route received from the request. The value of the header field, so that the S-CSCF can release this dialogue when needed.
2、如果存在,它表示了与一个现存对话的联系,这请求是从应用服务器发来的对于先前发送请求的回应。如果这请求是INVITE请求,这时S-CSCF判断该请求消息和自己发往该应用服务器的请求是否是同一个对话(将接收的请求消息中的Call-ID头域、From头域的tag、To头域的tag和发往该应用服务器的相关联的请求消息中的Call-ID头域、From头域的tag、To头域的tag进行比较),如果发现不是同一个对话,则S-CSCF保存从请求中接收到的Call-ID头域、From头域的tag、To头域的tag、Contact头域、Cseq头域和Record-Route头域值,以在需要时S-CSCF能够释放这个对话。2. If present, it represents an association with an existing dialog, which was sent from the application server in response to a previously sent request. If the request is an INVITE request, then the S-CSCF judges whether the request message and the request sent to the application server by itself are the same dialog (the Call-ID header field, the tag in the From header field, The tag in the To header field is compared with the Call-ID header field, the tag in the From header field, and the tag in the To header field in the associated request message sent to the application server), if it is found that they are not the same dialog, then S- The CSCF saves the values of the Call-ID header field, the tag of the From header field, the tag of the To header field, the Contact header field, the Cseq header field and the Record-Route header field received from the request, so that the S-CSCF can release the this conversation.
然后按照以上描述的现有会话处理方式进行处理。Then proceed according to the existing session processing method described above.
B.S-CSCF发起的业务控制会话释放过程:B. The service control session release process initiated by the S-CSCF:
当S-CSCF内部或者外部指示会话释放时(例如注册定时器超时、管理注销用户等),S-CSCF按照RFC3261向该业务控制的每个事务发送CANCEL消息取消正在建立的相关的对话,或者向该业务控制的每个对话两侧发送BYE释放已经建立的对话。When the S-CSCF internally or externally indicates that the session is released (for example, the registration timer expires, the management cancels the user, etc.), the S-CSCF sends a CANCEL message to each transaction of the service control according to RFC3261 to cancel the related dialog being established, or send Both sides of each dialogue controlled by this service send BYE to release the established dialogue.
S-CSCF发送BYE的方法如下:The method for S-CSCF to send BYE is as follows:
1、根据S-CSCF保存的每个对话信息,为每个对话的被叫侧构造第一个BYE请求,然后发送该对话的用户代理服务器端(UserAgent Server,简称UAS)。1. Construct the first BYE request for the called side of each dialog according to each dialog information saved by the S-CSCF, and then send the user agent server (UserAgent Server, UAS for short) of the dialog.
2、根据S-CSCF保存的每个对话信息,为每个对话的主叫侧构造第二个BYE请求,然后发送该对话的用户代理客户端(User AgentClient,简称UAC)。2. Construct a second BYE request for the calling side of each dialog according to each dialog information saved by the S-CSCF, and then send the user agent client (User Agent Client, UAC for short) of the dialog.
C.应用服务器发起的业务控制会话释放过程:C. The service control session release process initiated by the application server:
当业务控制流程中的某个应用服务器释放对话后,S-CSCF需要判断是否仅释放当前的对话,还是释放该业务控制流程中的所有对话。方法如下:When an application server in the service control process releases a dialog, the S-CSCF needs to judge whether to release only the current dialog or release all dialogs in the service control process. Methods as below:
方法一:method one:
当S-CSCF从ISC接口接收到应用服务器发起的会话释放请求时,S-CSCF检查该应用服务器对应的初始过滤规则的缺省处理指示:When the S-CSCF receives the session release request initiated by the application server from the ISC interface, the S-CSCF checks the default processing instructions of the initial filtering rule corresponding to the application server:
1、如果过滤规则中的缺省处理的值为″SESSION_CONTINUED″,或者没有缺省处理指示,S-CSCF直接按照该对话建立的路径转发释放消息。1. If the value of the default processing in the filter rule is "SESSION_CONTINUED", or there is no default processing instruction, the S-CSCF forwards the release message directly according to the path established by the dialog.
2、如果过滤规则中的缺省处理的值为″SESSION_TERMINATED″,则S-CSCF直接按照该对话建立的路径转发释放消息,并且按照B描述的方法释放该应用服务器释放消息所在的一侧的所有业务控制对话。2. If the value of the default processing in the filter rule is "SESSION_TERMINATED", the S-CSCF directly forwards the release message according to the path established by the dialog, and releases all the messages on the side where the application server releases the message according to the method described in B. Business control dialogue.
方法二:Method Two:
在用户的签约数据中的初始过滤规则中增加一个释放处理指示,或者在呼叫会话控制功能实体中配置释放处理指示,其值为:Add a release processing instruction to the initial filter rule in the subscription data of the user, or configure the release processing instruction in the call session control function entity, and its value is:
SESSION_CONTINUED:表明如果初始过滤规则中的应用服务器释放对话,其他初始过滤规则中被触发的应用服务器控制的对话如果不是同一个对话,S-CSCF不释放这些对话。SESSION_CONTINUED: Indicates that if the application server in the initial filtering rule releases the dialogue, if the dialogues controlled by the application server triggered in other initial filtering rules are not the same dialogue, the S-CSCF will not release these dialogues.
SESSION_TERMINATED:表明如果初始过滤规则中的应用服务器释放对话,S-CSCF必须同时释放其他初始过滤规则中被触发的应用服务器控制的对话。SESSION_TERMINATED: Indicates that if the application server in the initial filtering rule releases the dialog, the S-CSCF must release the dialog controlled by the application server triggered in other initial filtering rules at the same time.
当S-CSCF从ISC接口接收到该应用服务器发起的对话释放请求时,S-CSCF检查触发该应用服务器对应的初始过滤规则的释放处理指示:When the S-CSCF receives the dialog release request initiated by the application server from the ISC interface, the S-CSCF checks and triggers the release processing indication of the initial filter rule corresponding to the application server:
1、如果过滤规则中的释放处理指示的值为″SESSION_CONTINUED″,或者没有缺省处理指示,S-CSCF直接按照该对话建立的路径转发释放消息。1. If the value of the release processing instruction in the filtering rule is "SESSION_CONTINUED", or there is no default processing instruction, the S-CSCF forwards the release message directly according to the path established by the dialog.
2、如果过滤规则中的释放处理指示的值为″SESSION_TERMINATED″,则S-CSCF直接按照该对话建立的路径转发释放消息,并且按照B描述的方法释放该应用服务器释放消息所在的一侧的所有业务控制对话。2. If the value of the release processing indication in the filter rule is "SESSION_TERMINATED", the S-CSCF forwards the release message directly according to the path established by the dialog, and releases all the messages on the side where the application server releases the message according to the method described in B. Business control dialogue.
如果没有释放处理指示,则按照SESSION_CONTINUED进行处理。If there is no release processing instruction, it will be processed according to SESSION_CONTINUED.
图8示出根据本发明的实施例的网络注销用户时S-CSCF 304释放所有业务控制对话的过程的示意图。如图8所示,网络注销用户时S-CSCF释放所有业务控制对话包括以下步骤:Fig. 8 shows a schematic diagram of a process in which the S-
步骤1、S-CSCF 304从Mw接口接收到会话请求,请求消息中的对话标识为Call-ID1、From tag1和To tag1。
步骤2、S-CSCF 304保存消息中的对话标识Call-ID1、From tag1和To tag1的对话信息,然后取出用户的签约数据,处理初始过滤规则检查,匹配某条规则后,转发请求到对应的应用服务器1。
步骤3、应用服务器1为背靠背用户代理,处理业务逻辑之后,发回的请求消息中的对话标识为Call-ID2、From tag2和To tag2。
步骤4、S-CSCF 304比较保存的发送消息中的对话标识和接收消息中的对话标识,发现二者不同,则保存消息中的对话标识为Call-ID2、From tag2和To tag2的对话信息,然后S-CSCF继续低优先级的初始过滤规则检查,匹配某条规则后,转发请求到对应的应用服务器2。
步骤5、应用服务器2为Proxy,处理业务逻辑之后,发回的请求消息中的对话标识为Call-ID2、From tag2和To tag2。
步骤6、S-CSCF 304比较保存的发送消息中的对话标识和接收消息中的对话标识,发现二者相同,则S-CSCF继续低优先级的初始过滤规则检查,匹配某条规则后,转发请求到对应的应用服务器3。
步骤7、应用服务器3为背靠背用户代理,处理业务逻辑之后,发回的请求消息中的对话标识为Call-ID3、From tag3和To tag3。
步骤8、S-CSCF 304比较保存的发送消息中的对话标识和接收消息中的对话标识,发现二者不同,则保存消息中的对话标识为Call-ID3、From tag3和to tag3的对话信息,然后S-CSCF继续低优先级的初始过滤规则检查,没有发现匹配的规则,转发请求出去到Mw接口。
会话建立后,网络注销用户,S-CSCF释放该用户的会话。After the session is established, the network logs out the user, and the S-CSCF releases the user's session.
步骤9、S-CSCF 304首先释放对话3,向Mw接口发送BYE消息释放被叫侧。Step 9: S-
步骤10、S-CSCF 304向应用服务器3发送BYE消息释放被叫侧,释放对话3另一侧。
步骤11、S-CSCF 304释放对话2,向应用服务器3接口发送BYE消息释放对话2一侧。
步骤12、S-CSCF 304向应用服务器2发送BYE消息释放被叫侧,释放对话2另一侧。
步骤13、应用服务器2304沿着对话2的路径转发BYE释放消息。
步骤14、S-CSCF 304沿着对话2的路径转发BYE释放消息到应用服务器1。
步骤15、S-CSCF 304向应用服务器1发送BYE消息释放被叫侧,释放对话1一侧。
步骤16、S-CSCF 304向Mw接口发送BYE消息释放主叫侧。
图9示出根据本发明的实施例的应用服务器发起会话释放时S-CSCF释放所有业务控制对话的过程的示意图。如图9所示,应用服务器发起会话释放时S-CSCF释放所有业务控制对话包括以下步骤:Fig. 9 shows a schematic diagram of a process in which the S-CSCF releases all service control sessions when an application server initiates a session release according to an embodiment of the present invention. As shown in Figure 9, when the application server initiates session release, the S-CSCF releases all service control dialogs, including the following steps:
步骤1、S-CSCF 304从Mw接口接收到会话请求,请求消息中的对话标识为Call-ID1、From tag1和To tag1。
步骤2、S-CSCF 304保存消息中的对话标识Call-ID1、From tag1和To tag1的对话信息,然后取出用户的签约数据,处理初始过滤规则检查,匹配某条规则后,转发请求到对应的应用服务器1。
步骤3、应用服务器1为背靠背用户代理,处理业务逻辑之后,发回的请求消息中的对话标识为Call-ID2、From tag2和To tag2。
步骤4、S-CSCF 304比较保存的发送消息中的对话标识和接收消息中的对话标识,发现二者不同,则保存消息中的对话标识为Call-ID2、From tag2和To tag2的对话信息,然后S-CSCF继续低优先级的初始过滤规则检查,匹配某条规则后,转发请求到对应的应用服务器2。
步骤5、应用服务器1为Proxy,处理业务逻辑之后,发回的请求消息中的对话标识为Call-ID2、From tag2和To tag2。
步骤6、S-CSCF 304比较保存的发送消息中的对话标识和接收消息中的对话标识,发现二者相同,则S-CSCF继续低优先级的初始过滤规则检查,匹配某条规则后,转发请求到对应的应用服务器3。
步骤7、应用服务器3为背靠背用户代理,处理业务逻辑之后,发回的请求消息中的对话标识为Call-ID3、From tag3和To tag3。
步骤8、S-CSCF 304比较保存的发送消息中的对话标识和接收消息中的对话标识,发现二者不同,则保存消息中的对话标识为Call-ID3、From tag3和To tag3的对话信息,然后S-CSCF继续低优先级的初始过滤规则检查,没有发现匹配的规则,转发请求出去到Mw接口。
会话建立后,应用服务器3发起会话释放请求。After the session is established, the
步骤9、应用服务器3首先释放对话2,通过ISC接口向S-CSCF发送BYE消息。Step 9: The
步骤10、S-CSCF 304接收到对话2的释放消息后,检查应用服务器3对应初始过滤规则中的释放处理指示为SESSION_TERMINATED,同时释放对话2一侧的对话1。Step 10: After receiving the release message of
步骤11、S-CSCF 304转发对话2的释放消息BYE到应用服务器2。
步骤12、S-CSCF 304接收应用服务器2转发的对话2的BYE释放消息。
步骤13、S-CSCF 304转发对话2的释放消息BYE到应用服务器1。
步骤14、S-CSCF 304向应用服务器1接口发送BYE消息释放对话1。
步骤15、S-CSCF 304向Mw接口发送BYE消息释放主叫侧对话1。
步骤16、应用服务器3释放对话3,通过ISC接口向S-CSCF发送BYE消息。
步骤17、S-CSCF 304向被叫侧发送BYE消息释放对话3。
S-CSCF保存所有经过S-CSCF的对话信息,在网络发起释放用户当前业务控制的所有对话时,S-CSCF能够根据保存的对话信息释放所有被触发应用服务器的对话。The S-CSCF saves all dialog information passing through the S-CSCF. When the network initiates all dialogs for releasing the user's current service control, the S-CSCF can release all dialogs of the triggered application server according to the saved dialog information.
S-CSCF保存所有经过S-CSCF的对话信息,当应用服务器发起释放用户业务控制的对话时,S-CSCF能够根据保存的对话信息,以及触发该应用服务器的初始过滤规则中的释放处理指示,判断是否释放当前业务控制的所有对话。The S-CSCF saves all the dialog information passing through the S-CSCF. When the application server initiates a dialog for releasing user service control, the S-CSCF can trigger the release processing instruction in the initial filtering rule of the application server according to the saved dialog information, Determine whether to release all dialogs controlled by the current service.
本发明实现了S-CSCF根据初始过滤规则触发到应用服务器后,在网络发起释放当前业务控制的所有对话时,或者应用服务器发起释放用户业务控制的对话时,S-CSCF能够根据保存的对话信息,释放当前业务控制的所有对话。The present invention realizes that after the S-CSCF triggers the application server according to the initial filtering rule, when the network initiates all dialogues for releasing the current service control, or when the application server initiates the dialogue for releasing the user service control, the S-CSCF can, according to the saved dialogue information , to release all conversations controlled by the current service.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (12)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200610056807 CN101030964B (en) | 2006-03-03 | 2006-03-03 | Session controller and controlling method |
PCT/CN2007/000698 WO2007098714A1 (en) | 2006-03-03 | 2007-03-05 | Apparatus and method for session control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200610056807 CN101030964B (en) | 2006-03-03 | 2006-03-03 | Session controller and controlling method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101030964A true CN101030964A (en) | 2007-09-05 |
CN101030964B CN101030964B (en) | 2011-07-20 |
Family
ID=38458679
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200610056807 Expired - Fee Related CN101030964B (en) | 2006-03-03 | 2006-03-03 | Session controller and controlling method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101030964B (en) |
WO (1) | WO2007098714A1 (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101645879A (en) * | 2008-08-08 | 2010-02-10 | 华为技术有限公司 | Method and system for activating network storage |
CN101572954B (en) * | 2008-04-30 | 2011-02-16 | 华为技术有限公司 | Method, device and system for releasing session |
CN102257486A (en) * | 2009-05-06 | 2011-11-23 | 华为技术有限公司 | System and method for ims based collaborative services enabling multimedia application sharing |
CN102263797A (en) * | 2011-08-30 | 2011-11-30 | 大唐移动通信设备有限公司 | Session control method and device |
WO2012058942A1 (en) * | 2010-11-05 | 2012-05-10 | 中兴通讯股份有限公司 | Ip multimedia subsystem, and method and device for forking subscription |
CN102469070A (en) * | 2010-11-05 | 2012-05-23 | 中兴通讯股份有限公司 | IP Multimedia Subsystem, Method and Device for Subscribing Forking |
CN102469066A (en) * | 2010-11-04 | 2012-05-23 | 大唐移动通信设备有限公司 | Message processing method and device |
CN103002567A (en) * | 2012-12-14 | 2013-03-27 | 大唐移动通信设备有限公司 | Logging-off method and system |
CN103685200A (en) * | 2012-09-24 | 2014-03-26 | 中兴通讯股份有限公司 | QoS bearer resource control method and system in access negotiation and release |
CN106411930A (en) * | 2016-11-09 | 2017-02-15 | 腾讯音乐娱乐(深圳)有限公司 | Protocol information execution method and device thereof |
CN107666723A (en) * | 2016-07-22 | 2018-02-06 | 华为技术有限公司 | A kind of information transferring method, Convergence gateway and system |
WO2020069681A1 (en) * | 2018-10-06 | 2020-04-09 | Mediatek Inc. | Handling of collision between pdu session establishment and release procedures |
CN111385358A (en) * | 2020-03-04 | 2020-07-07 | 海南金盘智能科技股份有限公司 | Synchronization method and device of session control object and server |
WO2021082538A1 (en) * | 2019-10-29 | 2021-05-06 | 中国银联股份有限公司 | Session processing method and apparatus, device, and medium |
CN112883184A (en) * | 2021-03-22 | 2021-06-01 | 深圳前海微众银行股份有限公司 | Session management method, device, computer-readable storage medium and program product |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7831247B2 (en) * | 2002-11-12 | 2010-11-09 | Nokia Corporation | Method of communication and communication system |
US7283506B2 (en) * | 2003-10-13 | 2007-10-16 | Nokia Corporation | System and method for releasing sessions at network entities associated with the sessions |
US20050213606A1 (en) * | 2004-03-25 | 2005-09-29 | Jiun-Yao Huang | Method of triggering application service using response filter criteria and IP multimedia subsystem using the same |
-
2006
- 2006-03-03 CN CN 200610056807 patent/CN101030964B/en not_active Expired - Fee Related
-
2007
- 2007-03-05 WO PCT/CN2007/000698 patent/WO2007098714A1/en active Application Filing
Cited By (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101572954B (en) * | 2008-04-30 | 2011-02-16 | 华为技术有限公司 | Method, device and system for releasing session |
US9043475B2 (en) | 2008-08-08 | 2015-05-26 | Huawei Technologies Co., Ltd. | Method and system for activating network storage, message processing server, and client |
CN101645879B (en) * | 2008-08-08 | 2014-01-22 | 华为技术有限公司 | Method and system for activating network storage |
CN101645879A (en) * | 2008-08-08 | 2010-02-10 | 华为技术有限公司 | Method and system for activating network storage |
CN102257486A (en) * | 2009-05-06 | 2011-11-23 | 华为技术有限公司 | System and method for ims based collaborative services enabling multimedia application sharing |
CN102469066A (en) * | 2010-11-04 | 2012-05-23 | 大唐移动通信设备有限公司 | Message processing method and device |
CN102469066B (en) * | 2010-11-04 | 2015-06-17 | 大唐移动通信设备有限公司 | Message processing method and device |
CN102469070A (en) * | 2010-11-05 | 2012-05-23 | 中兴通讯股份有限公司 | IP Multimedia Subsystem, Method and Device for Subscribing Forking |
CN102469071A (en) * | 2010-11-05 | 2012-05-23 | 中兴通讯股份有限公司 | IP Multimedia Subsystem, Method and Device for Subscribing Forking |
WO2012058942A1 (en) * | 2010-11-05 | 2012-05-10 | 中兴通讯股份有限公司 | Ip multimedia subsystem, and method and device for forking subscription |
CN102263797B (en) * | 2011-08-30 | 2014-09-10 | 大唐移动通信设备有限公司 | Session control method and device |
CN102263797A (en) * | 2011-08-30 | 2011-11-30 | 大唐移动通信设备有限公司 | Session control method and device |
CN103685200B (en) * | 2012-09-24 | 2018-01-30 | 中兴通讯股份有限公司 | The method and system of service quality bearer resources control in access negotiation, release |
CN103685200A (en) * | 2012-09-24 | 2014-03-26 | 中兴通讯股份有限公司 | QoS bearer resource control method and system in access negotiation and release |
CN103002567A (en) * | 2012-12-14 | 2013-03-27 | 大唐移动通信设备有限公司 | Logging-off method and system |
CN107666723A (en) * | 2016-07-22 | 2018-02-06 | 华为技术有限公司 | A kind of information transferring method, Convergence gateway and system |
US10958482B2 (en) | 2016-07-22 | 2021-03-23 | Huawei Technologies Co., Ltd. | Information transmission method and system, and convergence gateway |
CN107666723B (en) * | 2016-07-22 | 2021-04-09 | 华为技术有限公司 | An information transmission method, fusion gateway and system |
US11665025B2 (en) | 2016-07-22 | 2023-05-30 | Huawei Technologies Co., Ltd. | Information transmission method and system, and convergence gateway |
CN106411930A (en) * | 2016-11-09 | 2017-02-15 | 腾讯音乐娱乐(深圳)有限公司 | Protocol information execution method and device thereof |
CN106411930B (en) * | 2016-11-09 | 2019-06-07 | 腾讯音乐娱乐(深圳)有限公司 | A kind of protocol information executes method and its equipment |
WO2020069681A1 (en) * | 2018-10-06 | 2020-04-09 | Mediatek Inc. | Handling of collision between pdu session establishment and release procedures |
US11026275B2 (en) | 2018-10-06 | 2021-06-01 | Mediatek Inc. | Handling of collision between PDU session establishment and release procedures |
WO2021082538A1 (en) * | 2019-10-29 | 2021-05-06 | 中国银联股份有限公司 | Session processing method and apparatus, device, and medium |
CN111385358A (en) * | 2020-03-04 | 2020-07-07 | 海南金盘智能科技股份有限公司 | Synchronization method and device of session control object and server |
CN111385358B (en) * | 2020-03-04 | 2023-04-18 | 海南金盘智能科技股份有限公司 | Synchronization method and device of session control object and server |
CN112883184A (en) * | 2021-03-22 | 2021-06-01 | 深圳前海微众银行股份有限公司 | Session management method, device, computer-readable storage medium and program product |
Also Published As
Publication number | Publication date |
---|---|
WO2007098714A1 (en) | 2007-09-07 |
CN101030964B (en) | 2011-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101030964A (en) | Session controller and controlling method | |
CN101053231A (en) | Message-based conveyance of load control information | |
CN1297124C (en) | System and method for carrying service using circuit switching in IP multimedia subsystem | |
CN101052161A (en) | Method and system for realizing IMS business intercommunication | |
JP5606074B2 (en) | Dynamic service trigger in communication networks | |
CN1933478A (en) | Media stream packet assembling time length consultation method | |
EP2150016A1 (en) | Method and system for selective call forwarding based on media attributes in telecommunication network | |
CN101052154A (en) | IP multimedia sub system and its coding and decoding switching control method | |
CN1792104A (en) | Service provisioning in a communication system | |
CN101035068A (en) | Method of providing session mobility | |
JP2008543133A (en) | Method and apparatus for identifying an IMS service | |
CN1870514A (en) | Method for analysing session service quality | |
CN1890931A (en) | System, apparatus, and method for establishing circuit-switched communications via packet switched network signaling | |
CN1925419A (en) | Resource acceptance control handling method | |
CN101371532A (en) | Method and apparatus for handling ims terminal's call request including request for real-time service received over ims domain by csi terminal | |
CN1993947A (en) | A method and device for providing correlation means in hybrid telecommunication networks | |
CN1893427A (en) | Method for conducting business support ability consultation | |
CN1838610A (en) | A Method for Realizing User Registration in Internet Protocol Multimedia Subsystem | |
CN1866880A (en) | Fault detecting method in next generation network | |
CN1722670A (en) | Communication system, communication terminal equipment and conference control unit | |
CN1859395A (en) | Service realizing system and method for IP multimedia subsystem | |
CN100525256C (en) | Transmission method and device for request message in SIP multimedia system | |
CN1655546A (en) | A method for lightening the interface load of home subscriber server | |
CN1913503A (en) | Control method and system of session route path | |
CN1968138A (en) | Subscriber registration information management method and apparatus in IMS network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110720 Termination date: 20130303 |