CN1964344B - Method and device for call session control - Google Patents
Method and device for call session control Download PDFInfo
- Publication number
- CN1964344B CN1964344B CN200610123890A CN200610123890A CN1964344B CN 1964344 B CN1964344 B CN 1964344B CN 200610123890 A CN200610123890 A CN 200610123890A CN 200610123890 A CN200610123890 A CN 200610123890A CN 1964344 B CN1964344 B CN 1964344B
- Authority
- CN
- China
- Prior art keywords
- request message
- message
- session request
- session
- called
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Telephonic Communication Services (AREA)
Abstract
本发明公开了一种呼叫会话控制功能装置,包括:消息接收单元,用于接收呼叫会话请求消息;检测单元,用于检测所述消息接收单元接收到的会话请求消息中是否包括被叫标识,并输出相应的检测结果;第一控制单元,用于当接收到所述检测单元输出的所述会话请求消息中包括被叫标识时,控制会话流程执行被叫流程;第二控制单元,用于当接收到所述检测单元输出的所述会话请求消息中不包括被叫标识时,为所述会话请求消息添加被叫标识,并控制会话流程执行主叫流程。本发明还公开了一种呼叫会话流程控制方法。采用本发明,实现用较简单的方式进行呼叫会话流程控制的目的。
The invention discloses a call session control function device, comprising: a message receiving unit, used to receive a call session request message; a detection unit, used to detect whether the session request message received by the message receiving unit includes a called party identifier, And output the corresponding detection results; the first control unit is used to control the session process to execute the called process when the session request message output by the detection unit includes the called party identifier; the second control unit is used to When it is received that the session request message output by the detection unit does not include the called party ID, add the called party ID to the session request message, and control the session process to execute the calling process. The invention also discloses a call session flow control method. By adopting the invention, the purpose of controlling the call session flow in a relatively simple manner is realized.
Description
技术领域technical field
本发明涉及通信领域,尤其涉及一种移动通信领域中呼叫会话控制功能的方法及装置。The invention relates to the communication field, in particular to a method and device for calling session control functions in the mobile communication field.
背景技术Background technique
IP多媒体子系统(IMS,IP Multimedia Subsystem)是下一代网络演进的关键技术,是由所有能提供多媒体服务的功能实体组成,包括与信令和承载相关的功能实体的集合,支持固定接入和移动接入,把互联网的发展和无线通信发展结合起来,提供基于的应用、服务和协议的多媒体业务。在下一代网络的发展过程中,是网络融合和业务融合的新手段和发展方向。IP Multimedia Subsystem (IMS, IP Multimedia Subsystem) is a key technology for the evolution of next-generation networks. It is composed of all functional entities that can provide multimedia services, including a collection of functional entities related to signaling and bearer. It supports fixed access and Mobile access combines the development of the Internet with the development of wireless communication to provide multimedia services based on applications, services and protocols. In the development process of the next generation network, it is a new means and development direction of network convergence and service convergence.
目前,IMS是基于第三代移动通信标准(3GPP,3G Partnership Project)核心网分组域(PS,Packet Switched Domain)上的,用来传输会话初始化协议(SIP,Session Initiation Protocol)呼叫控制信令以及通信数据业务。其中,SIP呼叫控制信令将在IMS架构中的呼叫会话控制功能(CSCF,Call Session ControlFunction)间根据用户配置进行传送。当前,根据功能和在网络中所处位置的不同,CSCF分为三个网元,代理CSCF(P-CSCF,Proxy-Call Session ControlFunction)、查询CSCF(I-CSCF,Interrogation-Call Session Control Function)以及服务CSCF(S-CSCF,Serving-Call Session Control Function),其中:At present, IMS is based on the core network packet domain (PS, Packet Switched Domain) of the third generation mobile communication standard (3GPP, 3G Partnership Project), and is used to transmit the session initiation protocol (SIP, Session Initiation Protocol) call control signaling and communication data business. Wherein, the SIP call control signaling will be transmitted between Call Session Control Functions (CSCF, Call Session Control Function) in the IMS architecture according to user configuration. Currently, according to different functions and locations in the network, CSCF is divided into three network elements, proxy CSCF (P-CSCF, Proxy-Call Session Control Function), query CSCF (I-CSCF, Interrogation-Call Session Control Function) And Serving CSCF (S-CSCF, Serving-Call Session Control Function), where:
P-CSCF是IMS中与用户的第一个连接点,提供代理功能,即接受呼叫会话请求并转发它们,也可提供用户代理功能,即在异常情况下中断和独立产生呼叫会话;S-CSCF在IMS核心网中处于核心的控制地位,负责对用户的注册鉴权和会话控制,执行针对主叫端及被叫端IMS用户的基本会话路由功能,并根据用户签约的IMS触发规则,在条件满足时进行到增值业务路由触发及业务控制交互;I-CSCF类似IMS的关口节点,提供用户服务节点S-CFCS的分配、路由查询以及IMS域间拓扑隐藏功能;规定在主叫端执行的呼叫会话流程为主叫流程,在被叫端执行的呼叫会话流程为被叫流程。P-CSCF is the first connection point with users in IMS, providing proxy function, that is, accepting call session requests and forwarding them, and also providing user agent function, that is, interrupting and independently generating call sessions under abnormal circumstances; S-CSCF In the core control position in the IMS core network, it is responsible for user registration authentication and session control, and performs basic session routing functions for calling and called IMS users. When it is satisfied, trigger value-added service routing and service control interaction; I-CSCF is similar to the gateway node of IMS, providing user service node S-CFCS distribution, routing query and IMS inter-domain topology hiding functions; stipulates the call executed at the calling end The session process is the calling process, and the call session process performed at the called end is the called process.
当前,利用CSCF对呼叫会话流程进行控制,完成会话路由功能和用户签约业务的执行的方法包括:At present, the method of using CSCF to control the call session flow and complete the session routing function and user subscription service includes:
注册流程:P-CSCF向S-CSCF发送注册Register信息,在该注册信息中带一个被叫标识Term;在I-CSCF归属下的S-CSCF接收到所述注册信息时,将保存该被叫标识Term,并在回复给P-CSCF的注册响应消息中带上一个主叫标识Orig;P-CSCF保存来自S-CSCF的主叫标识Orig。Registration process: P-CSCF sends registration information to S-CSCF, with a called identifier Term in the registration information; when the S-CSCF under the I-CSCF receives the registration information, it will save the called Identify the Term, and bring a caller ID Orig in the registration response message sent back to the P-CSCF; the P-CSCF saves the caller ID Orig from the S-CSCF.
呼叫流程:当P-CSCF接收到呼叫会话请求消息时,判断接收的消息中是否包括被叫标识Term,如果不包括,控制会话流程执行主叫流程,并在转发所述会话消息出去时带上注册阶段保存的主叫标识Orig;否则,控制会话流程执行被叫流程;当S-CSCF接收到会话请求消息时,判断接收的消息中是否包括主叫标识Orig,如果不包括,控制会话流程执行主叫流程,否则,控制会话流程执行被叫流程,并在转发所述会话消息出去时带上注册阶段保存的被叫标识Term.Call flow: When the P-CSCF receives a call session request message, it judges whether the received message includes the called identifier Term, if not, controls the session flow to execute the calling process, and carries it when forwarding the session message. The caller ID Orig saved in the registration phase; otherwise, control the session process to execute the called process; when the S-CSCF receives the session request message, judge whether the received message includes the caller ID Orig, if not, control the session process execution The calling process, otherwise, control the session process to execute the called process, and when forwarding the session message, bring the called party identification Term saved in the registration phase.
现有技术通过P-CSCF、I-CSCF以及S-CSCF三个CSCF共同协作,在会话过程中通过检测主被叫标识,能正确判断会话流程是主叫流程还是被叫流程,然后根据判断结果,控制会话流程执行主叫流程或者控制会话流程执行被叫流程。但是,该现有技术呼叫会话控制功能的实现需要P-CSCF、I-CSCF以及S-CSCF三个CSCF网元的共同参与,实现方式过于复杂,并且网络维护和管理的难度大。In the prior art, three CSCFs, P-CSCF, I-CSCF and S-CSCF, work together to detect the identity of the calling party and the called party during the conversation, and can correctly judge whether the conversation flow is the calling flow or the called flow, and then according to the judgment result , control the session process to execute the calling process or control the session process to execute the called process. However, the implementation of the call session control function in the prior art requires the joint participation of three CSCF network elements, P-CSCF, I-CSCF and S-CSCF, and the implementation method is too complicated, and network maintenance and management are difficult.
发明内容Contents of the invention
本发明实施例所要解决的技术问题在于,提供一种呼叫会话控制功能装置及呼叫会话流程的控制方法,以较简单的方式实现呼叫会话流程控制。The technical problem to be solved by the embodiments of the present invention is to provide a call session control function device and a call session flow control method, so as to implement call session flow control in a relatively simple manner.
为了解决上述技术问题,本发明实施例提出的一种呼叫会话控制功能装置,包括:In order to solve the above technical problems, a call session control function device proposed in an embodiment of the present invention includes:
消息接收单元,用于接收呼叫会话请求消息;a message receiving unit, configured to receive a call session request message;
检测单元,用于检测所述消息接收单元接收到的所述会话请求消息中是否包括被叫标识,并输出相应的检测结果;A detection unit, configured to detect whether the session request message received by the message receiving unit includes the called party identifier, and output a corresponding detection result;
第一控制单元,用于当所述检测单元检测到所述会话请求消息中包括被叫标识时,控制会话流程执行被叫流程;A first control unit, configured to control the session process to execute the called process when the detection unit detects that the session request message includes the called party identifier;
第二控制单元,用于当所述检测单元检测到所述会话请求消息中不包括被叫标识时,为所述会话请求消息添加被叫标识,并控制会话流程执行主叫流程。The second control unit is configured to, when the detecting unit detects that the called party ID is not included in the session request message, add the called party ID to the session request message, and control the session process to execute the calling process.
其中,所述检测单元包括第一判断单元和第二判断单元,其中:Wherein, the detection unit includes a first judging unit and a second judging unit, wherein:
第一判断单元,用于判断所述消息接收单元接收的会话请求消息中是否包括用于携带用户标识的消息域并输出第一判断结果或第二判断结果,所述第一判断结果指示所述会话请求消息中不包括被叫标识,所述第二判断结果指示所述会话请求消息中包括所述消息域;A first judging unit, configured to judge whether the session request message received by the message receiving unit includes a message field for carrying a user identifier and output a first judging result or a second judging result, the first judging result indicating the The called party identifier is not included in the session request message, and the second judgment result indicates that the message field is included in the session request message;
第二判断单元,用于接收所述第二判断结果,判断所述消息域中是否包括被叫标识并输出第三判断结果或第四判断结果,所述第三判断结果指示所述会话请求消息中包括被叫标识,所述第四判断结果指示所述会话请求消息中不包括被叫标识。A second judging unit, configured to receive the second judging result, judging whether the message field includes the called identifier and outputting a third judging result or a fourth judging result, the third judging result indicating the session request message The called party ID is included in the message, and the fourth determination result indicates that the called party ID is not included in the session request message.
其中,所述第二控制单元包括第一补充单元、第二补充单元以及主叫控制单元,其中:Wherein, the second control unit includes a first supplementary unit, a second supplementary unit, and a calling control unit, wherein:
第一补充单元,用于当接收到所述第一判断结果时,在所述会话请求消息中添加所述消息域并输出第一补充结果,所述第一补充结果为包括所述消息域的会话请求消息;A first supplementary unit, configured to add the message field to the session request message and output a first supplementary result when the first judgment result is received, the first supplementary result is a message field including the message field session request message;
第二补充单元,用于当接收到所述第一补充结果和/或所述第二判断结果时,在所述会话请求消息的所述消息域中添加被叫标识;A second supplementary unit, configured to add the called party identifier in the message field of the session request message when the first supplementary result and/or the second judgment result is received;
主叫控制单元,与所述第二补充单元相连,用于控制会话流程执行主叫流程。The calling control unit is connected with the second supplementary unit and is used to control the conversation flow and execute the calling flow.
相应地,本发明实施例还提供了利用所述呼叫会话控制功能装置控制呼叫会话流程的方法,包括:Correspondingly, an embodiment of the present invention also provides a method for controlling a call session process by using the call session control function device, including:
接收呼叫会话请求消息,判断所述会话请求消息中是否包括被叫标识,如果包括所述被叫标识则控制会话流程执行被叫流程,如果不包括所述被叫标识则为所述会话请求消息添加被叫标识,并控制会话流程执行主叫流程。Receiving a call session request message, judging whether the session request message includes the called identifier, if including the called identifier, then controlling the session process to execute the called procedure, if not including the called identifier, then the session request message Add the called ID, and control the session process to execute the calling process.
其中,确定所述会话请求消息中包括被叫标识的条件包括:Wherein, the conditions for determining that the called party identification is included in the session request message include:
所述会话请求消息中包括用于携带用户标识的消息域且所述消息域的地址消息中包括被叫标识。The session request message includes a message field for carrying the user identifier, and the address message in the message field includes the called identifier.
其中,确定所述会话请求消息中不包括被叫标识的条件包括:Wherein, the conditions for determining that the called party identification is not included in the session request message include:
所述会话请求消息中不包括用于携带用户标识的消息域,和/或The session request message does not include a message field for carrying the user identifier, and/or
所述会话请求消息中包括所述消息域且所述消息域的地址消息中不包括被叫标识。The session request message includes the message field, and the address message of the message field does not include the called identifier.
其中,为所述会话请求消息添加被叫标识的步骤具体包括:Wherein, the step of adding the called party identification for the session request message specifically includes:
当所述会话请求消息中不包括用于携带用户标识的消息域时,生成所述消息域并在所述消息域中添加被叫标识;When the session request message does not include a message field for carrying a user ID, generating the message field and adding the called party ID in the message field;
当所述会话请求消息中包括所述消息域时,在所述消息域中添加被叫标识。When the message field is included in the session request message, the called party identifier is added in the message field.
其中,所述用于携带用户标识的消息域为路由头域。Wherein, the message field used to carry the user identifier is a routing header field.
其中,所述控制会话流程执行主叫流程包括控制执行主叫签约业务以及控制所述会话请求消息的主叫路由;所述控制会话流程执行被叫流程包括控制执行被叫签约业务以及控制所述会话请求消息的被叫路由。Wherein, the execution of the calling process of the control session flow includes controlling the execution of the caller subscription service and controlling the caller route of the session request message; the execution of the callee flow of the control session flow includes control The called route for session request messages.
其中,所述呼叫会话请求消息为会话初始化协议消息。Wherein, the call session request message is a session initiation protocol message.
实施本发明实施例,具有如下有益效果:Implementing the embodiment of the present invention has the following beneficial effects:
本发明实施例通过检测接收到的呼叫会话请求消息中是否包括被叫标识,能正确判断会话流程是主叫流程还是被叫流程,然后根据判断结果,控制会话流程执行主叫流程或者被叫流程,以较简单的方式实现了呼叫会话流程控制。The embodiment of the present invention can correctly judge whether the conversation flow is the calling flow or the called flow by detecting whether the received call session request message includes the called identifier, and then control the conversation flow to execute the calling flow or the called flow according to the judgment result. , implementing call session flow control in a relatively simple manner.
附图说明Description of drawings
图1是本发明实施例呼叫会话控制功能装置的简化结构示意图;FIG. 1 is a simplified structural diagram of a call session control function device according to an embodiment of the present invention;
图2是本发明实施例呼叫会话控制功能装置的详细结构示意图;Fig. 2 is a detailed structural diagram of a call session control function device according to an embodiment of the present invention;
图3是本发明实施例呼叫会话流程的控制方法流程图;FIG. 3 is a flowchart of a control method for a call session flow in an embodiment of the present invention;
图4是本发明实施例呼叫会话系统简化结构示意图。Fig. 4 is a schematic diagram of a simplified structure of a call session system according to an embodiment of the present invention.
具体实施方式Detailed ways
IMS是基于第三代移动通信标准3GPP核心网分组域PS上的,用来传输会话初始化协议SIP的呼叫会话控制信令以及通信数据业务。其中,呼叫会话控制信令在IMS架构中的呼叫会话控制功能CSCF上根据用户配置进行传送。本发明实施例提供一种呼叫会话控制功能装置以及利用所述装置进行呼叫会话控制的方法,通过检测接收到的呼叫会话请求消息中是否包括被叫标识,能正确判断会话流程是主叫流程还是被叫流程,然后根据判断结果,控制会话流程执行主叫流程或者被叫流程,以较简单的方式实现了呼叫会话流程控制。IMS is based on the third-generation mobile communication standard 3GPP core network packet domain PS, and is used to transmit call session control signaling and communication data services of the session initiation protocol SIP. Wherein, the call session control signaling is transmitted on the call session control function CSCF in the IMS architecture according to user configuration. Embodiments of the present invention provide a call session control function device and a method for using the device to control a call session. By detecting whether the received call session request message includes the called identifier, it can be correctly judged whether the session flow is a calling flow or a calling flow. The called process then controls the session process to execute the calling process or the called process according to the judgment result, and realizes the call session process control in a relatively simple manner.
下面将结合附图对本发明实施例作详细描述。Embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.
图1,是本发明实施例呼叫会话控制功能装置的简化结构示意图。本实施例中呼叫会话控制功能装置包括消息接收单元10、检测单元20、第一控制单元30以及第二控制单元40,其中:FIG. 1 is a schematic diagram of a simplified structure of a call session control function device according to an embodiment of the present invention. The call session control function device in this embodiment includes a
消息接收单元10,用于接收呼叫会话请求消息;在具体实现中,消息接收单元10接收的会话请求消息可能来自呼叫终端或者另一端的呼叫会话控制功能装置.由于IMS业务控制统一采用基于IP的SIP控制协议,该消息接收单元10能与支持SIP移动终端直接通信并通过媒体网关控制功能(MGCF,MediaGateway Control Function)和IP多媒体-媒体网关(IM-MGW,IMS-Media GatewayFunction)与H.323/BICC/ISUP终端互通。The
检测单元20,用于检测所述消息接收单元10接收到的会话请求消息中是否包括被叫标识,并输出相应的检测结果;被叫标识为一个标记符,用于表征当前会话流程的流程状态,在本实施例中,当所述检测单元20检测到所述会话请求消息中包括被叫标识时,表明会话流程为被叫流程;当所述检测单元20检测到所述会话请求消息中不包括被叫标识时,表明会话流程为主叫流程。在3GPP协议中,采用标记Term表示被叫标识。The
第一控制单元30,用于当所述检测单元20检测到所述会话请求消息中包括被叫标识时,控制会话流程执行被叫流程;当所述检测单元20检测到所述会话请求消息中包括被叫标识时,表明会话流程为被叫流程,此时,第一控制单元30将控制会话流程执行被叫流程。所述控制会话流程执行被叫流程包括控制执行被叫签约业务以及控制所述会话请求消息的被叫路由。所述被叫签约业务包括被叫用户注册的各种呼叫会话增值业务;所述控制所述会话请求消息的被叫路由为将所述会话请求消息正确发送给被叫终端。The
第二控制单元40,用于所述检测单元20检测到所述会话请求消息中不包括被叫标识时,为所述会话请求消息添加被叫标识,并控制会话流程执行主叫流程;当所述检测单元20检测到所述会话请求消息中不包括被叫标识时,表明会话流程为主叫流程,此时,第二控制单元40将为所述会话请求消息添加被叫标识,然后控制会话流程执行主叫流程。所述控制会话流程执行主叫流程包括控制执行主叫签约业务以及控制所述会话请求消息的主叫路由。所述主叫签约业务包括主叫用户注册的各种呼叫会话增值业务;所述控制所述会话请求消息的主叫路由为将所述会话请求消息正确发送给对端呼叫会话控制功能装置。The
图2,是本发明实施例呼叫会话控制功能装置的详细结构示意图;如图所示,在本实施例中,检测单元20包括第一判断单元201和第二判断单元202,第二控制单元40包括第一补充单元401、第二补充单元402以及主叫控制单元403,其中:FIG. 2 is a detailed structural diagram of a call session control function device according to an embodiment of the present invention; It includes a first
第一判断单元201,用于判断所述消息接收单元10接收的会话请求消息中是否包括用于携带用户标识的消息域,并输出第一判断结果或第二判断结果,所述第一判断结果指示所述会话请求消息中不包括被叫标识,所述第二判断结果指示所述会话请求消息中包括所述消息域。所述用户标识包括被叫标识和/或主叫标识。根据SIP协议,呼叫会话请求消息定义为Invite消息,同时,在3GPP协议中,采用标记Term表示被叫标识,一种携带被叫标识Term的方式为:把被叫标识Term置于Invite消息中的Route域携带的域名地址的用户名部分,因此,当所述消息接收单元10接收到所述呼叫会话请求消息Invite消息时,该第一判断单元201判断该消息中是否存在Route域就可以确定该消息中是否包括用于携带用户标识的消息域了。The
第二判断单元202,用于接收所述第二判断结果,判断所述消息域中是否包括被叫标识并输出第三判断结果或第四判断结果,所述第三判断结果指示所述会话请求消息中包括被叫标识,所述第四判断结果指示所述会话请求消息中不包括被叫标识.当所述第一判断单元201判断所述接收到的Invite消息中包括Route域时,表明所述会话请求消息Invite消息中包括用于携带用户标识的消息域了,第二判断单元202用于进一步判断该消息域Route域中是否包括被叫标识Term,如果判断为是,表明会话流程为被叫流程,将判断结果发送给所述第一控制单元30,如果判断为否,表明会话流程为主叫流程,将判断结果发送给所述第二补充单元402,由于被叫标识Term被置于Route域携带的域名地址的用户名部分,因此,该第二判断单元202判断域名地址的用户名是否为Term,就可以判断所述消息域Route域中是否包括被叫标识了.The
第一补充单元401,用于当接收到所述第一判断结果时,在所述会话请求消息中添加所述消息域并输出第一补充结果,所述第一补充结果为包括所述消息域的会话请求消息;The first
当所述第一判断单元201判断所述会话请求消息Invite消息中不包括Route域,表明该消息中不包括用于携带用户标识的消息域,所述第一补充单元401接收到所述第一判断单元201的判断所述会话请求消息中不包括Route域的判断结果时,用于为所述会话请求消息Invite消息添加Route域,并将所述带有所述消息域Route域的会话请求消息Invite消息发送给第二补充单元402。添加Route域也就为所述会话请求消息添加了用于携带用户标识的消息域了。When the
第二补充单元402,用于当接收到所述第一补充结果和/或所述第二判断结果时,在所述会话请求消息的所述消息域中添加被叫标识;当所述第二判断单元202判断会话请求消息Invite消息的消息域Route域中不包括被叫标识Term时,表明会话流程为主叫流程,会将判断结果发送给第二补充单元402,第二补充单元402接收到所述第二判断单元202的判断结果时,用于在所述会话请求消息Invite消息的Route域中添加被叫标识Term,具体做法为:Invite消息中的Route域携带的域名地址的用户名部分使用被叫标识Term;当所述第一补充单元401为所述会话请求消息Invite消息添加Route域,将所述带有所述消息域Route域的会话请求消息Invite消息发送给第二补充单元402后,该第二补充单元402也在Invite消息中的Route域携带的域名地址的用户名部分使用Term,实现将被叫标识Term添加到消息域Route中。The second
主叫控制单元403,与所述第二补充单元402相连,用于控制会话流程执行主叫流程。所述控制会话流程执行主叫流程包括控制执行主叫签约业务以及控制所述会话请求消息的主叫路由。所述主叫签约业务包括主叫用户注册的各种呼叫会话增值业务;所述控制所述会话请求消息的主叫路由为将所述会话请求消息正确发送给对端呼叫会话控制功能装置。The
图3,是本发明实施例呼叫会话流程的控制方法流程图;该实施例的方法采用上述的呼叫会话控制功能装置控制呼叫会话流程,本实施例中该方法的具体实施步骤如下:Fig. 3 is a flow chart of a control method for a call session process in an embodiment of the present invention; the method of this embodiment uses the above-mentioned call session control function device to control a call session process, and the specific implementation steps of the method in this embodiment are as follows:
步骤S100,接收呼叫会话请求消息;由于IMS业务控制统一采用基于IP的SIP控制协议,该步骤接收到的会话请求消息可以为支持SIP协议的设备发送的会话请求消息,也可以来为支持H.323/BICC/ISUP协议的设备发送的经过媒体网关控制功能(MGCF,Media Gateway Control Function)和IP多媒体-媒体网关(IM-MGW,IMS-Media Gateway Function)转换为SIP协议消息的会话请求消息。根据SIP协议,呼叫会话请求消息定义为Invite消息。Step S100, receiving a call session request message; since the IMS service control uniformly adopts the IP-based SIP control protocol, the session request message received in this step can be a session request message sent by a device supporting the SIP protocol, or a session request message that supports H. 323/BICC/ISUP protocol equipment sent by the Media Gateway Control Function (MGCF, Media Gateway Control Function) and IP Multimedia-Media Gateway (IM-MGW, IMS-Media Gateway Function) is converted into a session request message of the SIP protocol message. According to the SIP protocol, a call session request message is defined as an Invite message.
步骤S101,判断所述接收到的会话请求消息中是否包括用于携带用户标识的消息域,如果判断为是,执行步骤S102;否则执行步骤S103.在3GPP协议中,采用标记Term表示被叫标识,一种携带被叫标识Term的方式为:把被叫标识Term置于Invite消息中的Route域携带的域名地址的用户名部分,因此,当步骤S100接收到所述呼叫会话请求消息Invite消息时,该步骤S101判断该消息中是否包括Route域就可以确定该消息中是否包括用于携带用户标识的消息域了.Step S101, judging whether the received session request message includes a message field for carrying the user ID, if it is judged to be yes, go to step S102; otherwise go to step S103. In the 3GPP protocol, the tag Term is used to represent the called logo A method of carrying the called identification Term is: placing the called identification Term in the username part of the domain name address carried in the Route domain in the Invite message, therefore, when step S100 receives the call session request message Invite message , the step S101 judges whether the message includes the Route field to determine whether the message includes the message field for carrying the user ID.
步骤S102,判断所述消息域中是否包括被叫标识,如果判断为是,执行步骤S106,终止;否则,执行步骤S104。当所述步骤S101判断所述接收到的Invite消息中包括Route域时,表明所述会话请求消息Invite消息中包括用于携带用户标识的消息域了,该步骤S102用于进一步判断所述消息域Route域中是否包括被叫标识Term,由于被叫标识Term被置于Route域携带的域名地址的用户名部分,因此,该步骤S102判断域名地址的用户名是否为Term,就可以判断所述消息域Route域中是否包括被叫标识了。Step S102, judging whether the message field includes the called identifier, if it is judged yes, go to step S106, and terminate; otherwise, go to step S104. When the step S101 judges that the received Invite message includes the Route field, it indicates that the session request message Invite message includes the message field for carrying the user identifier, and the step S102 is used to further judge the message field Whether comprise called identification Term in the Route domain, because called identification Term is placed in the user name part of the domain name address that Route domain carries, therefore, this step S102 judges whether the user name of domain name address is Term, just can judge described message Whether the called party ID is included in the domain Route.
步骤S103,为所述会话请求消息添加用于携带用户标识的消息域;当步骤S101判断所述会话请求消息Invite消息中不包括Route域,表明该消息中不包括用于携带用户标识的消息域,该步骤S103用于为所述会话请求消息Invite消息添加Route域,添加Route域也就为所述会话请求消息添加了用于携带用户标识的消息域了。Step S103, adding a message field for carrying a user identifier to the session request message; when step S101 judges that the session request message Invite message does not include a Route field, it indicates that the message does not include a message field for carrying a user identifier The step S103 is to add a Route field to the session request message Invite message, adding a Route field also adds a message field for carrying a user ID to the session request message.
步骤S104,在所述消息域中添加被叫标识;当所述步骤S102判断会话请求消息Invite消息的消息域Route域中不包括被叫标识Term时,表明会话流程为主叫流程,该步骤S104用于在所述会话请求消息Invite消息的Route域中添加被叫标识Term,具体做法为:Invite消息中的Route域携带的域名地址的用户名部分使用被叫标识Term;当步骤S103为所述会话请求消息Invite消息添加Route域后,该步骤S104也会在Invite消息中的Route域携带的域名地址的用户名部分使用Term,实现将被叫标识Term添加到消息域Route中。Step S104, adding the called identifier in the message domain; when the step S102 judges that the message domain Route domain of the session request message Invite message does not include the called identifier Term, it indicates that the conversation flow is a calling flow, the step S104 For adding called identification Term in the Route domain of described session request message Invite message, concrete method is: the user name part of the domain name address that the Route domain in the Invite message carries uses called identification Term; When step S103 is described After the Route field is added to the Invite message of the session request message, the step S104 also uses Term in the username part of the domain name address carried in the Route field in the Invite message, so as to add the called identifier Term to the message field Route.
步骤S105,控制会话流程执行主叫流程,终止;所述控制会话流程执行主叫流程包括控制执行主叫签约业务以及控制所述会话请求消息的主叫路由。所述主叫签约业务包括主叫用户注册的各种呼叫会话增值业务;所述控制所述会话请求消息的主叫路由为将所述会话请求消息正确发送给对端呼叫会话控制功能装置。Step S105, controlling the session process to execute the calling process, and terminating; the controlling the session process to execute the calling process includes controlling the execution of the calling subscription service and controlling the calling route of the session request message. The calling subscription service includes various call session value-added services registered by the calling user; the calling route for controlling the session request message is to correctly send the session request message to the peer call session control function device.
步骤S106,控制会话流程执行被叫流程;所述控制会话流程执行被叫流程包括控制执行被叫签约业务以及控制所述会话请求消息的被叫路由。所述被叫签约业务包括被叫用户注册的各种呼叫会话增值业务;所述控制所述会话请求消息的被叫路由为将所述会话请求消息正确发送给被叫终端。Step S106, controlling the session process to execute the called process; the controlling the session process to execute the called process includes controlling the execution of the called party's subscription service and controlling the called party's routing of the session request message. The called subscription service includes various call session value-added services registered by the called user; the called routing for controlling the session request message is to correctly send the session request message to the called terminal.
与现有技术相比,本发明实施例仅通过检测被叫标识的有无即可正确判断主被叫流程,实现方式简单。Compared with the prior art, the embodiment of the present invention can correctly judge the calling and calling process only by detecting the presence or absence of the called identifier, and the implementation method is simple.
下面结合一个简单的会话流程系统进一步对会话流程中如何进行呼叫会话控制进行说明。How to control the call session in the session process will be further described below in combination with a simple session process system.
图4,是本发明实施例呼叫会话系统简化结构示意图。如图所示,本实施例中呼叫会话系统包括终端1、呼叫会话控制功能装置1、终端2以及呼唤会话控制功能装置2,其中,终端1和终端2用于发起呼叫会话请求,呼叫会话控制功能装置1和呼叫会话控制功能2用于控制呼叫会话流程的执行。FIG. 4 is a schematic diagram of a simplified structure of a call session system according to an embodiment of the present invention. As shown in the figure, the call session system in this embodiment includes a terminal 1, a call session control function device 1, a terminal 2 and a call session control function device 2, wherein the terminal 1 and the terminal 2 are used to initiate a call session request, and the call session control The function means 1 and the call session control function 2 are used to control the execution of the call session flow.
以终端1向终端2发起呼叫会话请求为例,当终端1向终端2发起呼叫会话请求时,根据预先注册信息,呼叫会话控制功能装置1首先接收到该会话请求消息,呼叫会话控制功能装置1接收到会话请求消息时,判断所述会话请求消息中是否包括被叫标识,如果包括,控制会话流程执行被叫流程;否则,为所述会话请求消息添加被叫标识,并控制会话流程执行主叫流程;Taking terminal 1 initiating a call session request to terminal 2 as an example, when terminal 1 initiates a call session request to terminal 2, according to pre-registered information, call session control function device 1 first receives the session request message, and calls session control function device 1 When receiving the session request message, judge whether the called party identification is included in the session request message, if so, control the session process to execute the called process; otherwise, add the called party ID for the session request message, and control the session process to execute the main call process;
在本例中,该会话请求消息来源于终端1,并未携带被叫标识,所以呼叫会话控制装置1判断的结果为会话请求消息中不包括被叫标识,则所述呼叫会话控制功能装置1会为所述会话请求消息添加被叫标识,并控制会话流程执行主叫流程;所述控制会话流程执行主叫流程包括控制执行主叫签约业务以及控制所述会话请求消息的主叫路由,在本例中,所述主叫签约业务包括主叫用户注册的各种呼叫会话增值业务;所述控制所述会话请求消息的主叫路由为将所述会话请求消息正确发送给对端呼叫会话控制功能装置2。In this example, the session request message originates from terminal 1 and does not carry the called party identifier, so the result of judgment by the call session control device 1 is that the called party identifier is not included in the session request message, then the call session control function device 1 will add the called identifier to the session request message, and control the session process to execute the calling process; the control of the session process to execute the calling process includes controlling the execution of the calling subscription service and controlling the calling route of the session request message. In this example, the calling subscription service includes various call session value-added services registered by the calling user; the calling route for controlling the session request message is to correctly send the session request message to the peer call session control Functional device 2.
在所述呼叫会话控制功能装置1的控制下,所述终端1获得注册的各种呼叫会话增值业务数据,所述会话控制功能装置2接收到所述会话请求消息,呼叫会话控制功能装置2接收到所述消息时,同样判断所述消息中是否包括被叫标识,如果包括,控制会话流程执行被叫流程;否则,为所述会话请求消息添加被叫标识,并控制会话流程执行主叫流程;Under the control of the call session control function device 1, the terminal 1 obtains registered various call session value-added service data, the session control function device 2 receives the session request message, and the call session control function device 2 receives When the message is received, it is also judged whether the called party ID is included in the message, and if so, the control session process executes the called process; otherwise, the called party ID is added to the session request message, and the session process is controlled to execute the calling process ;
在本例中,该会话请求消息来源于呼叫会话控制装置1,携带有被叫标识,所以呼叫会话控制功能装置2判断的结果为所述会话请求消息中包括被叫标识,则所述呼叫会话控制功能装置2会控制会话流程执行被叫流程;所述控制会话流程执行被叫流程包括控制执行被叫签约业务以及控制所述会话请求消息的被叫路由。在本例中,所述被叫签约业务包括被叫用户注册的各种呼叫会话增值业务;所述控制所述会话请求消息的被叫路由为将所述会话请求消息正确发送给被叫终端2。In this example, the session request message originates from the call session control device 1 and carries the called party identifier, so the judgment result of the call session control function device 2 is that the session request message includes the called party's identification, then the call session The control function device 2 controls the session flow to execute the called flow; the control of the session flow to execute the called flow includes controlling the execution of the called subscription service and controlling the called routing of the session request message. In this example, the called subscription service includes various call session value-added services registered by the called user; the called route that controls the session request message is to correctly send the session request message to the called terminal 2 .
在所述呼叫会话控制功能装置2的控制下,终端2最终接收到所述会话请求消息,并获得注册的各种呼叫会话增值业务数据。Under the control of the call session control function device 2, the terminal 2 finally receives the session request message, and obtains various registered call session value-added service data.
以上所披露的仅为本发明较佳实施例而已,不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, which cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200610123890A CN1964344B (en) | 2006-11-30 | 2006-11-30 | Method and device for call session control |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200610123890A CN1964344B (en) | 2006-11-30 | 2006-11-30 | Method and device for call session control |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1964344A CN1964344A (en) | 2007-05-16 |
| CN1964344B true CN1964344B (en) | 2010-05-12 |
Family
ID=38083234
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200610123890A Expired - Fee Related CN1964344B (en) | 2006-11-30 | 2006-11-30 | Method and device for call session control |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1964344B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1581900A (en) * | 2003-08-07 | 2005-02-16 | 微软公司 | Dynamic photo caller identification |
| CN1741557A (en) * | 2004-08-23 | 2006-03-01 | 华为技术有限公司 | Method for querying called in block area |
-
2006
- 2006-11-30 CN CN200610123890A patent/CN1964344B/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1581900A (en) * | 2003-08-07 | 2005-02-16 | 微软公司 | Dynamic photo caller identification |
| CN1741557A (en) * | 2004-08-23 | 2006-03-01 | 华为技术有限公司 | Method for querying called in block area |
Non-Patent Citations (2)
| Title |
|---|
| 王雨岗,徐家恺,隆志华.SIP协议的消息过程.微处理机 4.2004,(4),58-60. |
| 王雨岗,徐家恺,隆志华.SIP协议的消息过程.微处理机 4.2004,(4),58-60. * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1964344A (en) | 2007-05-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101371532B (en) | Method and apparatus for handling ims terminal's call request including request for real-time service received over ims domain by csi terminal | |
| KR100886548B1 (en) | Method and system of forwarding capability information of user equipment in internet protocol multimedia subsystem network | |
| CN101292489B (en) | Multimedia subsystem service control for circuit-switched subsystem calls | |
| CN101160808B (en) | A Method for Implementing User Registration Trigger in IP Multimedia Subsystem | |
| CN101142833B (en) | Equipment for controlling user terminals in the circuit switching domain to access IMS communication network services | |
| US8825875B2 (en) | Session establishment in a communication network | |
| CN101317492A (en) | Emergency call method and system | |
| EP2583476B1 (en) | Methods and apparatuses for using a vplmn infrastructure by an hplmn to terminate an ims session set-up for a roaming user | |
| EP1672866A1 (en) | Method and system to the instant transfer of multimedia files between mobile radio users within the scope of combinational services | |
| CN1327680C (en) | Method of establishing circuit exchange network to IMS network calling route | |
| JP5593304B2 (en) | Method for terminating call and voice over IP terminal | |
| CN101743733B (en) | IP multimedia subsystem (IMS) and method for routing an HTTP message via an IMS | |
| CN102804820A (en) | Methods and apparatus in a telecommunications network | |
| CN101361346A (en) | Method and device for providing IMS services to circuit-switched controlled terminals | |
| WO2008040171A1 (en) | A method, system of circuit switching domain apperceiving multi-media session media information of ims domain | |
| EP2702742B1 (en) | Method, network node and application service for making available call detail records in an ip multimedia subsystem type network | |
| WO2007085154A1 (en) | A method and system for implementing isdn service in the packet network | |
| CN101102615B (en) | An implementation method for final call in IP multimedia subsystem centrally controlled service | |
| CN100495988C (en) | The method for detecting the signaling bearer availability | |
| CN103141068B (en) | Service-based release of subscriber registration server from signaling path in internet protocol communication network | |
| CN1964344B (en) | Method and device for call session control | |
| CN100499469C (en) | Off-line charging method | |
| CN102340490B (en) | A kind of method and system realizing anchor of media | |
| CN101330638A (en) | A method for associating session control path and bearer control path | |
| CN101800948B (en) | Method, device and system for implementing call deflection service |
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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100512 Termination date: 20151130 |
|
| EXPY | Termination of patent right or utility model |