CN101005502B - Service scenario obtaining, control method and its control system and medium resource server - Google Patents

Service scenario obtaining, control method and its control system and medium resource server Download PDF

Info

Publication number
CN101005502B
CN101005502B CN 200710000392 CN200710000392A CN101005502B CN 101005502 B CN101005502 B CN 101005502B CN 200710000392 CN200710000392 CN 200710000392 CN 200710000392 A CN200710000392 A CN 200710000392A CN 101005502 B CN101005502 B CN 101005502B
Authority
CN
China
Prior art keywords
script
mrs
operation
service
sid
Prior art date
Application number
CN 200710000392
Other languages
Chinese (zh)
Other versions
CN101005502A (en
Inventor
李颃
禹辉
苏宇
莫晓军
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN 200710000392 priority Critical patent/CN101005502B/en
Publication of CN101005502A publication Critical patent/CN101005502A/en
Application granted granted Critical
Publication of CN101005502B publication Critical patent/CN101005502B/en

Links

Abstract

The method comprises: in media resource server (MRS), setting the corresponding relation between script ID (SID), script type and service script in advance; the control end sends the script operational information carrying the SID, and according to the received SID and said corresponding relation, gets the script type and service script corresponding to the SID. By the invention, there is no needto make multi expansions to the transmission protocol based on different script types so as to reduce the complexity of getting service script by MRS. The invention also reveals a control method, control system and media resource server thereof.

Description

业务脚本获取、控制方法及其控制系统和媒体资源服务器 Business script gets, and its control system and method for controlling a media resource server

技术领域 FIELD

[0001] 本发明涉及网络媒体资源服务技术,具体涉及实现媒体资源服务器中业务脚本的获取方法、控制方法、以及实现业务脚本控制的控制系统和媒体资源服务器。 [0001] The present invention relates to a network media resource service technology, particularly to implement media resource server service acquisition script in a method, control method, and implement control system and the media resource server service control script.

背景技术 Background technique

[0002] 在下一代网络(NGN,Next Generation Net)和网际协议多媒体子系统(IMS,IP Multimedia Subsystem)网络中,媒体资源服务器(MRS,MediaResource Server)为网络的基本业务和增值业务提供了丰富的媒体资源服务。 [0002] In the Next Generation Network (NGN, Next Generation Net) and Internet protocol multimedia subsystem (IMS, IP Multimedia Subsystem) network, the Media Resource Server (MRS, MediaResource Server) provides a wealth of basic services and value-added services network the media resource service. MRS在软交换(Softswitch)设备或应用服务器(AS,AppliCati0n Server)的控制下,获取并执行业务脚本,完成与用户的交互功能,例如放音、收号、录音、视频播放、音/视频会议、流媒体交互等。 MRS under the control of the softswitch (Softswitch) device, or application server (AS, AppliCati0n Server), access and perform business script, complete interactive features with the user, such as playback, digit collection, recording, video playback, audio / video conferencing , streaming media interactions. MRS所执行的业务脚本可以是存储在MRS上,也可以是AS发送给MRS的。 Business MRS script can be executed stored in the MRS, AS may also be sent to the MRS.

[0003] 在NGN网络中,MRS与Softswitch设备、AS之间采用媒体网关控制协议(MGCP, Media Gateway Control Protocol)、H. 248 或会话初女台化协、议(SIP, Session Initiation Protocol)进行信息交互;Softswitch设备和AS可以称为MRS的控制端。 [0003] In the NGN, and the MRS Softswitch equipment, AS between the media gateway control protocol (MGCP, Media Gateway Control Protocol), the beginning of H. 248 or a session stage of female Association, Protocol (SIP, Session Initiation Protocol) for information exchange; Softswitch devices and AS may be referred to a control terminal of MRS. 在IMS网络中, 媒体资源功能(MRF,Media ResourceFunction)实体实现MRS的功能,呼叫会话控制功能(CSCF, Call SessionControl Function)实体实现Softswitch 设备的功能,MRF 与CSCF、 AS之间采用SIP消息进行信息交互。 In the IMS network, the Media Resource Function (MRF, Media ResourceFunction) MRS function entity is implemented, a call session control function (CSCF, Call SessionControl Function) entity apparatus implement the functions Softswitch used between the MRF and the CSCF, AS SIP message information interaction. CSCF和AS可以称为MRS的控制端。 CSCF and AS can be referred to as a control terminal of MRS. 可见,SIP是实现媒体资源服务的较为常用的协议。 Visible, SIP is more commonly used protocol for implementing media resource services.

[0004] 以AS作为MRS的控制端,与MRS采用SIP消息进行信息交互为例,目前,AS在控制MRS执行业务脚本从而实现用户交互时,首先在AS与MRS之间建立会话,然后将脚本类型和业务脚本携带在SIP消息或者扩展SIP消息中发送给MRS。 [0004] When the AS is to the control terminal of the MRS, and MRS information exchange using SIP messages as an example, currently, AS, to enable user interaction in the service script executed MRS control, first establish a session between the AS and MRS, then the script type and service script of SIP messages carried in or extended SIP message is sent to the MRS. AS发送的业务脚本可以是脚本的内容,也可以是脚本的统一资源地址(URL,Uniform Resource Locators),MRS根据脚本类型判断接收的业务脚本是否符合解析要求,即MRS是否能解析该业务脚本,如果能解析才执行接收到的业务脚本,实现与用户的交互。 Business scripts sent by the AS may be the content of the script, can also be a Uniform Resource Locator script (URL, Uniform Resource Locators), MRS meets analytical requirements based on business script script type judge received that MRS whether it can resolve the service script, If you can only perform analytical services received script, interact with the user. 在业务脚本执行完毕后,MRS向AS上报结果。 After the service script is finished, MRS report the result to the AS. AS根据上报结果,执行AS的业务逻辑,然后AS根据业务逻辑的执行结果,确定后续操作。 According to the results reported by AS, the AS performs the business logic and the business logic AS execution result, and determine a subsequent operation. 例如,AS可以向MRS发送下一个业务脚本,或者释放与MRS之间的会话等。 For example, AS may send a service script to the next MRS, or releases the session between the MRS and the like. 这样, MRS在AS的控制下完成与用户的交互。 Thus, MRS complete the interaction with the user under control of the AS.

[0005] 从以上方案可以看出,现有技术中,AS控制MRS执行业务脚本的方法有以下几个缺点: [0005] As can be seen from the above solutions, the prior art, the AS controlling the service script is executed MRS method has the following disadvantages:

[0006] 首先,AS向MRS发送业务脚本时,需要将脚本类型也一起发送给MRS,MRS才能按照业务脚本的脚本类型选取合适的脚本解析器解析执行业务脚本。 [0006] First, when the AS sends a service script to MRS, will need to be sent along to the script type MRS, MRS can select the appropriate script parser script execution services in accordance with the type of business the script the script. 因此AS必须预先知道业务脚本的脚本类型,以及MRS可以解析什么类型的业务脚本。 AS we must therefore know in advance what type of service script script script type business, and MRS can be resolved. 当AS采用SIP消息发送业务脚本时,需要根据脚本类型的不同对SIP消息中的特定参数进行扩展。 When the AS transmits a SIP message service script, different SIP message is extended according to specific parameters of the script type.

[0007] SIP消息包括消息头和消息体。 [0007] SIP message includes a message header and a message body. 当AS将业务脚本携带在SIP消息体发送给MRS 时,需要对SIP消息体的内容类型(Content-Type)参数进行扩展,该Content-Type参数的内容即显示出AS所发送业务脚本的脚本类型。 When the AS the service script to carry to a MRS in the SIP message body, the need for a content type (Content-Type) SIP message body parameter expansion, the contents of the Content-Type parameter, i.e. shows the script type AS transmitted service scripts . 例如,当SIP消息体携带了语音可 For example, when the SIP message body carries the voice can be

6扩展标识语言(VXML,Voice Extensible MarkupLanguage)类型的业务脚本,则应扩展Content-Type参数为application/vxml+xml ;当SIP消息体携带了多媒体会话标识语言(MSML, Media SessionsMarkup Language)类型的业务脚本,则应扩展Content-Type 参数为application/msml+xmlο 6 Extensible Markup Language (VXML, Voice Extensible MarkupLanguage) type of service script, it would extend the Content-Type parameter application / vxml + xml; when the SIP message body carries the multimedia session Markup Language (MSML, Media SessionsMarkup Language) type of business scripts should be extended Content-Type parameter application / msml + xmlο

[0008] 当AS将业务脚本携带在SIP消息头发送给MRS时,需要对SIP消息头的对话参数(dialog-param)进行扩展,该dialog-param参数的内容即显示出AS所发送业务脚本的脚本类型。 [0008] When the AS service script at the SIP message carrying the MRS to the hair, the need for the SIP message header of the session parameters (dialog-param) extended, the content of the dialog-param parameters, i.e. exhibit service script is transmitted AS script type. 例如,扩展dialog-param为vxml或者为msml。 For example, for the extended dialog-param vxml or a msml.

[0009] 因此,每增加一种脚本类型,都需要对SIP消息体的Content-Type参数,或者SIP 消息头的dialog-param参数进行扩展。 [0009] Thus, each additional script types, require Content-Type parameter of the SIP message body, or dialog-param header parameter in the SIP message to be extended. 而且,如果AS只将业务脚本的URL发送给MRS,还需要知道业务脚本的具体位置。 Also, if AS only sends the URL to the service script MRS, also you need to know the specific location of business script. 因此,对于AS来说,目前AS控制MRS获取业务脚本的步骤, 实现起来十分不便,增加了AS的负担。 Thus, for AS, the current AS MRS control procedure to obtain the service script is very inconvenient to implement, increasing the burden of AS.

[0010] 其次,在MRS向AS上报执行结果后,如果AS根据其业务逻辑的执行结果判定,需要MRS继续与用户交互,则AS需要再次向MRS发送业务脚本。 [0010] Next, after the execution result report to the AS MRS, if the AS according to the execution result of the determination of its business logic, user interaction with the need to continue to MRS, the AS needs to re-send a service script MRS. 因此增加了AS和MRS之间的传输负担。 Thus increasing the burden of transmission between the AS and MRS.

[0011] 再次,AS不能主动终止MRS正在执行的业务脚本。 [0011] Again, AS MRS can not take the initiative to terminate the service script being executed. 如果要终止,只能通过SIP的结束(BYE)消息来终止AS与MRS之间的会话。 If you want to terminate, only to terminate the session between the AS and by the end of the MRS (BYE) message of the SIP. 而且,AS与MRS之间的会话不能由MRS释放。 Moreover, the session between the AS and can not be released by the MRS MRS. 因此,对业务脚本的执行过程的控制不够灵活。 Therefore, control of the business process script execution is not flexible enough.

发明内容 SUMMARY

[0012] 有鉴于此,为了避免根据不同脚本类型对传输协议进行多次扩展的不便性,降低控制媒体资源服务器获取业务脚本的复杂程度,本发明实施例提供了一种业务脚本的获取方法,该方法包括: [0012] In view of this, in order to avoid depending on the type of script multiple transport protocol extensions inconvenience, reduce the complexity of the media resource server to obtain the service control script, embodiments of the present invention provides a method for obtaining a service script, the method comprising:

[0013] 在媒体资源服务器MRS中预先设置脚本标识SID、脚本类型与业务脚本的对应关系; [0013] The corresponding relationship set in advance the script identifier SID, and service script of the script type of the media resource server in MRS;

[0014] 控制端向MRS发送携带有SID的脚本操作信息; [0014] sends control script carries SID information to the MRS operation;

[0015] MRS根据接收到的SID和所述对应关系,获取与该SID对应的业务脚本及其脚本类型。 [0015] MRS according to the received SID and the correspondence acquiring service script corresponding to the SID and the script type.

[0016] 本发明实施例还提供了一种业务脚本的控制方法,能够降低控制媒体资源服务器获取业务脚本的复杂程度;进一步的,该控制方法能够提高对业务脚本控制的灵活性。 Embodiment [0016] The present invention further provides a method for controlling a service script, it is possible to reduce the complexity of the media resource server to obtain the service control script; further, the control method can improve flexibility in the service control script.

[0017] 该业务脚本的控制方法包括: [0017] The method of controlling the service script comprising:

[0018] 在媒体资源服务器MRS中预先设置脚本标识SID、脚本类型与业务脚本的对应关系; [0018] The corresponding relationship set in advance the script identifier SID, and service script of the script type of the media resource server in MRS;

[0019] 控制端向MRS发送携带有SID的脚本操作信息; [0019] sends control script carries SID information to the MRS operation;

[0020] 所述MRS根据接收到的SID和所述对应关系,获取与SID对应的业务脚本,并根据接收到的脚本操作信息中的脚本操作类型的指示,对所述对应的业务脚本进行操作控制。 [0020] The MRS according to the received SID and the correspondence with the SID corresponding to the acquired service script, and the script in accordance with the received operation information indicating an operation type of the script, the script corresponding service operation control. [0021 ] 本发明实施例还提供了一种媒体资源服务器,能够降低控制媒体资源服务器获取业务脚本的复杂程度。 Example [0021] The present invention further provides a media resource server, to reduce the complexity of the media resource server to obtain the service control script.

[0022] 该媒体资源服务器包括:脚本解析模块和存储单元; [0022] the media resource server comprising: a script analyzing module and a storage unit;

[0023] 脚本解析模块,用于接收控制端发送的携带有脚本标识SID的脚本操作信息;根 [0023] The script analyzing module, a control terminal for receiving the transmission carries the script identification information SID, the operation script; Root

7据接收到的SID从所述存储单元存储的对应关系中获取对应的业务脚本;并根据接收到的脚本操作信息中的脚本操作类型的指示,对所述对应的业务脚本进行操作控制; 7, according to the received SID to obtain a corresponding service script from the correspondence relationship stored in the storage unit; script according to the received operation information indicating an operation type of the script, the script corresponding service control operation;

[0024] 存储单元,用于存储SID、脚本类型与业务脚本的对应关系;并向所述脚本解析模块返回所述对应的业务脚本。 [0024] The storage unit for storing the SID, the correspondence relationship of the type of script and service script; and return to the service script corresponding to the script analyzing module.

[0025] 本发明实施例还提供了一种业务脚本的控制系统,能够降低控制媒体资源服务器获取业务脚本的复杂程度。 Example [0025] The present invention further provides a control system for a service script, it is possible to reduce the complexity of the media resource server to obtain the service control script.

[0026] 该业务脚本的控制系统包括控制端和媒体资源服务器MRS ; [0026] The control system includes a service script control terminal and the MRS media resource server;

[0027] 控制端,用于向MRS发送携带有脚本标识SID的脚本操作信息; [0027] a control terminal, configured to send the script identifies the script operation carries SID information to the MRS;

[0028] MRS,存储有SID、脚本类型与业务脚本的对应关系,用于接收来自控制端的携带有SID的脚本操作信息,根据接收到的SID从自身存储的对应关系中获取对应的业务脚本;并根据接收到的脚本操作信息中的脚本操作类型的指示,对所述对应的业务脚本进行操作控制。 [0028] MRS, stores a corresponding relationship SID, the script type of the service script for receiving the control terminal carries the script operation information of the SID, obtain the service corresponding to the script from the correspondence relationship stored therein according to the received SID; and the operation according to the script information in the received indication of the type of the operation script, the service script corresponding operation control.

[0029] 与现有技术相比,本发明实施例提供了媒体资源服务器的业务脚本获取和控制方案。 [0029] Compared with the prior art, the service script embodiment the present invention provides a media resource server, and acquire control program. 在媒体资源服务器的业务脚本获取方案中,预先在MRS上设置脚本标识(SID,Script Identifier)、脚本类型和业务脚本的对应关系。 The media resource server service script acquisition scheme is set in advance the script identification (SID, Script Identifier), and the corresponding relationship between the type of a service script of the script on MRS. 在控制媒体资源服务器获取业务脚本时, 控制端不向MRS发送业务脚本及其脚本类型,而只需要将携带有SID的脚本操作信息发送给MRS,MRS根据SID从预先设置的对应关系中,获取SID对应的业务脚本及其脚本类型。 When the control server acquires media resource service script, the control terminal does not send service scripts to the script type and the MRS, and only need to script carries SID information is transmitted to the operation MRS, MRS from the corresponding relation set in advance, according to the acquired SID SID corresponding service script and script type. 由于控制端向MRS发送的脚本操作信息不携带脚本类型,因此控制端不需要预先知道业务脚本的脚本类型甚至业务脚本的位置,也不需要根据不同脚本类型对传输协议进行相应扩展,只需要对传输协议进行一次扩展,使得扩展后的传输协议可以携带脚本操作信息即可。 Since the control script the operation information transmitted to the MRS does not carry the script type, the control terminal need not know the location of a service script of the script type of the service script or even no need to extend the corresponding transmission protocol depending on the type of script, only need to a transport protocol extensions, such that the extended transport protocol may carry the script operation information. 因此降低了控制端控制MRS获取业务脚本的复杂程度,减轻了控制端的负担。 Thus reducing the complexity of the console controls MRS acquired business scripts, reducing the burden on the control side.

[0030] 在媒体资源服务器的业务脚本控制方案中,在MRS获取了业务脚本之后,控制端可以向MRS发送携带有SID的脚本操作信息,MRS根据脚本操作信息中脚本操作类型的指示,对SID对应的业务脚本进行操作。 After [0030] the service script control scheme media resource server, in MRS acquired service script, the control terminal may be sent carries the script operation information SID to MRS, MRS instructions in the script type of operation according to the script operation of SID corresponding service script to operate. 该操作包括主动终止业务脚本的执行,MRS主动释放会话,提高了业务控制的灵活性。 The operations include the implementation of the initiative to terminate the service of the script, MRS initiative to release the session, improve business agility control.

附图说明 BRIEF DESCRIPTION

[0031] 图1为本发明实施例实现业务脚本控制方法的流程图; [0031] Embodiment 1 FIG script flowchart of a control method of the present invention to achieve service;

[0032] 图2为本发明实施例采用脚本操作信息实现业务脚本控制的时序图; [0032] FIG. 2 embodiment uses the script information to achieve the operation timing chart of the present invention, the control service script;

[0033] 图3为本发明实施例业务脚本控制系统的组成结构示意图; [0033] FIG. 3 a schematic diagram illustrating a configuration example of a service script control system embodiment of the invention;

[0034] 图4为本发明实施例媒体资源服务器的组成结构示意图; [0034] FIG. 4 is a schematic configuration example of the composition of the media resource server embodiment of the present invention;

[0035] 图5为本发明第一较佳实施例实现MRS放音脚本控制的方法流程图; [0035] FIG. 5 of the first preferred embodiment method implemented MRS discharge sound script control flowchart of the present invention;

[0036] 图6为本发明第一较佳实施例媒体资源服务器的组成结构示意图; [0036] FIG. 6 is a schematic configuration example of the composition of the media resource server first preferred embodiment of the present invention;

[0037] 图7为本发明第二较佳实施例实现MRS用户鉴权和收号脚本控制的方法流程图。 [0037] FIG 7 a second preferred embodiment of a method implemented MRS user authentication and digit collection script control flowchart of the present invention.

具体实施方式 Detailed ways

[0038] 为使本发明实施例技术方案和优点更加清楚明白,下面结合实施例和附图,对本发明进一步详细说明。 [0038] The embodiments of the present invention to make technical solutions and advantages clearer, the following Examples and accompanying drawings, the present invention is further described in detail.

[0039] 本发明实现业务脚本获取方法的一个实施例为:在MRS中预先设置SID、脚本类型 Example a [0039] The present invention implements a method for obtaining service script is: presetting SID in MRS script type

8与业务脚本的对应关系;在控制端向MRS发送携带有SID的脚本操作信息后;MRS以SID为索引,从预先设置的对应关系中获取对应的业务脚本及其脚本类型。 8 and the corresponding relationship between service scripts; transmitting end to the MRS control script has to carry after the operation information of the SID; SID MRS to as an index to obtain the service type corresponding to the script and script from the correspondence relationship set in advance.

[0040] 获取业务脚本及其脚本类型后,MRS还可以根据脚本操作信息中的脚本操作类型的指示,对业务脚本进行相应的操作控制。 [0040] After obtaining the type of the script and a service script, the MRS can also, for the corresponding service script controlling the operation of scripts in the script operation information indicating an operation type. 脚本操作信息所携带的脚本操作类型,用于指示MRS对获取的业务脚本进行何种操作。 Script type of operation carried script operation information to indicate MRS script acquired business will be what kind of operation. 脚本操作类型包括脚本执行(ScriptRim)操作、脚本信息(ScriptInfor)操作以及脚本关闭(ScriptClose)操作。 Script including script execution type of operation (ScriptRim) operation, the script information (ScriptInfor) and operating off a script (ScriptClose) operation.

[0041] 图1为本发明实施例实现业务脚本控制方法的流程图。 [0041] Embodiment 1 FIG flowchart script control method of the present invention to achieve service. 如图1所示,该方法具体过程包括以下步骤: 1, the method specifically includes the following steps:

[0042] 步骤101,在MRS中,预先设置SID、脚本类型和业务脚本的对应关系。 [0042] Step 101, in MRS, the SID corresponding relationship set in advance, and a service script of the script type.

[0043] 步骤102,控制端向MRS发送携带有SID和脚本操作类型的脚本操作信息。 [0043] Step 102, the control terminal transmits SID carries the script and script type of operational information to the MRS.

[0044] 步骤103,MRS以SID为索引,从预先设置的对应关系中查找对应的业务脚本;并根据脚本操作信息中的脚本操作类型,对查找到的业务脚本进行操作。 [0044] Step 103, MRS SID as the index to find the corresponding service script from the correspondence relationship set in advance; and operation information in accordance with the script type of the operation script, the service script to a lookup operation.

[0045] 本步骤中,MRS对业务脚本具体进行何种操作取决于脚本操作信息所携带的脚本操作类型。 [0045] In this step, MRS to perform the specific service script which the script operation depending on the operation type information carried in the operation script.

[0046] 当脚本操作类型为ScriptRim时,MRS需要分配执行业务脚本的资源,且激活该资源。 [0046] When the operation script type ScriptRim, MRS need to allocate resources for the implementation of the service script, and activates the resource. 除了获取业务脚本,MRS还需要获取SID对应的脚本类型,根据脚本类型调用对应的脚本解析器,并根据ScriptRim的指示,采用调用的脚本解析器解析执行查找到的业务脚本。 In addition to acquiring the service script, MRS also need to obtain the corresponding script type SID, call the corresponding script parser according to the script type, and according to the instructions ScriptRim, the script calls the parser uses to perform a lookup to resolve the service script.

[0047] 当脚本操作类型为ScriptClose时,则指示MRS停止指定的业务脚本。 [0047] When the operation script type ScriptClose, it indicates the MRS to stop the specified service script. 本发明实施例的ScriptClose操作,用于控制端主动停止MRS正在执行的业务脚本。 ScriptClose operation of the embodiment of the present invention, the active control terminal for MRS stops executing the service script. MRS停止执行的业务脚本后,AS并不释放与MRS之间的会话,因此AS可以再次通过发送脚本操作类型为ScriptRun的脚本操作信息,控制MRS执行另一个业务脚本。 MRS stops after execution of the service script, and does not release the AS session between the MRS, thus again by the AS may send the script to the script operation type ScriptRun operation information, the service script execute another control MRS.

[0048] 如果业务脚本在执行过程中没有受到控制端的干预,则当业务脚本执行完毕,该流程还包括步骤104。 [0048] If there is no intervention by a service script control terminal during execution, when the service scripts are executed, the process further comprises the step 104.

[0049] 步骤104,业务脚本执行结束,MRS向控制端发送脚本操作结果。 [0049] Step 104, the service script execution ends, the MRS script is sent to the control terminal of the operation result.

[0050] 本步骤中,返回脚本操作结果也可以属于脚本操作的一种类型,称为脚本事件(ScriptEvent)操作。 [0050] In this step, the script returns the result of the operation script may be belonging to one type of operation, called a script event (ScriptEvent) operation. 这里脚本操作结果包含脚本执行结果。 Here script operations include the results of the script execution results. 本实施例中,MRS通过向控制端发送携带有SID和ScriptEvent的脚本操作信息,通知控制端脚本执行结果。 In this embodiment, by sending the MRS control terminal carries SID information and scripting operations ScriptEvent notifies the control-side script execution result. 如MRS向控制端发送放音完成信息、获得的用户名和密码等内容。 The MRS sends a playback completion information control terminal, content acquired user name and password. 脚本执行结果可以是业务脚本执行完毕后向控制端发送。 Script execution results can be sent to the control terminal business after the implementation of the script. 如果业务脚本的执行过程需要控制端干预,则可以将一个业务脚本设置为包含多个脚本事件,一个脚本事件完成一次用户交互。 If during the execution of the script need to control the business end of the intervention, you can script a business event set to include multiple scripts, a script event to complete a user interaction. 当执行完业务脚本的一个脚本事件,就需要向控制端发送携带有ScriptEvent的脚本操作信息,该脚本操作信息可以还携带当前脚本事件执行后的数据信息。 When a script executing the business event scripts, you need to send to the control terminal carrying ScriptEvent operation information of the script, the script operation information can also carry data information after the execution of the current script event. 此时,MRS执行的业务脚本设置为挂起状态,即暂停该业务脚本,但不终止。 In this case, the business MRS script execution is set to a suspended state, namely to suspend the service script, but not terminated.

[0051] 控制端在接收到携带有ScriptEvent的脚本操作信息后,执行脚本操作信息所携带的SID对应的控制端业务逻辑。 [0051] The control terminal after receiving the message carrying the script operation ScriptEvent executes a control corresponding to the SID-side business logic operation information carried by the script. 根据控制端业务逻辑的执行结果,判断MRS是否需要继续执行业务脚本,如果需要继续执行,则向MRS发送携带Scriptlnfor的脚本操作信息,由MRS执行挂起的业务脚本。 The service logic execution result of the control terminal determines whether to continue the service script needs MRS, if necessary to continue, the operation script is sent to the information carried Scriptlnfor MRS, suspended service script executed by the MRS. 控制端业务逻辑用于控制MRS工作,SID与控制端业务逻辑的对应关系是预先设置在控制端的。 A control terminal for controlling MRS work service logic, and the corresponding relationship between the control-side business logic SID is previously provided at the control terminal.

[0052] 以上四种脚本操作信息结合起来可以完成MRS在控制端控制下的用户信息交互。 [0052] The script above four operation information can be combined to complete the user information interaction MRS control at the control terminal.

9图2为采用脚本操作信息实现业务脚本控制的时序图。 9 FIG. 2 is a timing chart showing a service script implemented using the control script the operation information. 参见图2,其实现业务脚本控制的过程包括以下步骤: Process Referring to Figure 2, which implements the service script control comprises the steps of:

[0053] 步骤201〜202,控制端向MRS发送携带有SID和ScriptRun的脚本操作信息,MRS 以SID为索引查找对应的业务脚本及其脚本类型,并采用脚本类型指示的脚本解析器解析执行查找到的业务脚本。 [0053] Step 201~202, the control script sends the operation information carries the SID and ScriptRun MRS, MRS SID to find the corresponding script and service script index type, and indicates the type of use of the script parser parsing the script execution lookup to the service script.

[0054] 在实际应用中,为了便于MRS获取业务脚本,MRS还可以存储SID与脚本位置的对应关系。 [0054] In practice, in order to facilitate obtaining service script MRS, MRS may also store a correspondence relationship SID script position. 脚本位置表示与SID对应的业务脚本所在位置是本地还是网络上的某个位置,如果不在本地,则SID对应的业务脚本可能是一个URL ;此时MRS需要根据URL在网络上获取业务脚本的具体内容。 Script represents the location where the service script corresponding to the SID is local or somewhere on the network, if not local, the SID corresponding service script may be a URL; this time MRS needs specific URL to obtain the service on the network according to the script content.

[0055] 步骤203,在业务脚本解释执行的过程中,业务脚本的当前脚本事件执行完毕,MRS 通过向控制端发送携带有SID和ScriptEvent的脚本操作信息,上报脚本事件的执行结果。 [0055] Step 203, the script interpreter performed during the service, the current service script of the script event is finished, the MRS by sending control terminal carries SID information ScriptEvent and script, the script execution result report the event.

[0056] 步骤204,控制端判断当前脚本事件是否为业务脚本的最后脚本事件。 [0056] Step 204, the control terminal determines whether the current script is the last event scripted events business script. 如果不是, 则执行步骤206 ;否则,则执行步骤205。 If not, execute step 206; otherwise, step 205 is performed.

[0057] 步骤205,控制端向MRS发送释放会话消息,释放控制端与MRS之间的会话,本流程结束。 [0057] Step 205, the control terminal transmits session release message to the MRS, the release of the session between the control terminal and the MRS, and the flow ends. 该会话是控制端与MRS进行信息交互之前建立起来的。 The session is set up before the end of the MRS control for information exchange.

[0058] 步骤206,控制端根据步骤203中MRS上报的执行结果,执行控制端的业务逻辑。 [0058] Step 206, the control terminal 203 according to the execution result in step MRS reported, performs service logic control terminal. 然后根据该业务逻辑的执行结果判断是否继续执行业务脚本;如果需要继续执行,则执行步骤207 ;否则执行步骤209。 Then according to the execution result of the service logic determines whether to continue the service script; continue if needed, step 207 is executed; otherwise, step 209 is executed.

[0059] 本步骤中,控制端根据脚本操作信息中的SID,查找对应的控制端业务逻辑,并执行。 [0059] In this step, the script according to the control terminal of the SID operation information, to find the corresponding business logic control terminal, and executed. 例如,如果MRS可以将收到的用户名和密码携带在脚本操作信息中发送给控制端,由控制端进行用户鉴权操作,鉴权成功则执行步骤207,否则执行步骤209。 For example, a user name and password if MRS can receive a carry in the script sent to the control terminal of the operational information, the user authentication operation performed by the control terminal, the authentication succeeds, step 207 is performed, otherwise step 209.

[0060] 步骤207,控制端向MRS发送携带SID和ScriptInfor的脚本操作信息,指示MRS 继续执行业务脚本。 [0060] Step 207, the control terminal transmits operation information SID and carrying the script to ScriptInfor MRS, MRS indicating to continue the service script.

[0061] 本步骤中,ScriptInfor信息中还可以携带控制端控制MRS继续执行业务脚本的用户交互信息。 [0061] In this step, ScriptInfor may carry control information further MRS terminal control information of the service user interaction continues script. 例如,MRS需要继续执行的脚本内容为向用户发送提示音,则上述用户交互信息可以用于指示MRS发送何种的提示音。 For example, the script content MRS need to continue to send a tone to the user, the user interaction information described above can be used to indicate what kind of tone to send MRS.

[0062] 步骤208,MRS继续执行业务脚本。 [0062] Step 208, MRS continue business scripts. 返回步骤203。 Returning to step 203.

[0063] 在整个执行业务脚本的过程中,控制端和媒体资源服务器之间可以进行多次交互,即重复执行步骤203、204、206、207和208。 [0063] In the course of the entire execution of the service script, the control may be multiple interactions between the terminal and the media resource server, i.e. steps 203,204,206,207 and 208 are repeatedly performed.

[0064] 步骤209,控制端向MRS发送携带SID和ScriptClose的脚本操作信息,指示MRS 停止执行未执行完的业务脚本。 [0064] Step 209, the control terminal transmits operation information to the MRS carries the script and ScriptClose SID indicating MRS stops executing the service script has not been performed.

[0065] 本步骤中携带SID和ScriptClose的脚本操作信息也可以在MRS执行业务脚本的任意时刻发送,以终止业务脚本的执行。 [0065] In this step, the script operation carries information SID and ScriptClose may also be performed at any time in MRS transmission service script, the service script to terminate execution. 终止执行后,只要控制端与MRS之间的会话未释放,控制端就可以通过发送携带SID和ScriptRim的脚本操作信息,控制MRS执行其它业务脚本。 After completion of the execution, as long as the control session between the client and MRS is not released, the control terminal can carry the operation script information by sending SID and ScriptRim, MRS control script executing other operations. 携带SID和ScriptClose的脚本操作信息解决了现有技术中,在不释放会话的前提下,控制端不能主动终止MRS执行业务脚本的问题。 SID carry and script information ScriptClose solves the problem of the prior art, without the release of the session, the console can not take the initiative to terminate the execution of business MRS script.

[0066] 步骤210,控制端释放会话。 [0066] Step 210, the control terminal to release the session. 本流程结束。 This process ends.

[0067] 为了增加释放会话的灵活性,本发明实施例在脚本操作信息中增加媒体资源服务器释放会话(DisMrf)参数,该参数值为真时,表示允许MRS在结束业务脚本执行时主动释 [0067] In order to increase the flexibility of the release of a session, embodiments of the present invention increases the media resource server to release the session (DisMrf) parameter in the script operation information, when the parameter value is true, this indicates MRS allows active released at the end of the service script executed

10放会话。 10 put the session. 具体实现方式为,控制端向MRS发送的携带SID和ScriptRim的脚本操作信息中, 进一步携带DisMrf参数,假设DisMrf参数表示允许MRS主动释放会话,当MRS执行完业务脚本并将执行结果上报给控制端后,MRS便可以主动释放与控制端之间的会话。 Specific implementation for the script operation carries information SID and ScriptRim control terminal transmits to the MRS, the further carrying DisMrf parameters, assuming DisMrf parameter indicates the MRS to allow release of the active session, and when the service script executing the execution result is reported to the MRS control terminal after, MRS will be able to take the initiative to release the conversation between the control terminal.

[0068] 为了实现本发明实施例的业务脚本控制方法,本发明实施例提供了一种业务脚本的控制系统,图3为本发明实施例业务脚本控制系统的组成结构示意图。 [0068] In order to achieve the service script control method according to the present embodiment of the invention, embodiments of the present invention provides a control system for the service script, a structure diagram of embodiment 3 FIG service script control system according to the present invention. 如图3所示,该系统包括控制端310和媒体资源服务器320。 As shown in FIG. 3, the system 310 comprises a control terminal 320 and the media resource server.

[0069] 其中,控制端310,用于向MRS320发送携带有SID的脚本操作信息。 [0069] wherein a control terminal 310 for carrying the transmitting SID information to the script operation MRS320.

[0070] MRS320,设置有SID、脚本类型与业务脚本的对应关系,用于接收控制端310发来的携带有SID的脚本操作信息,以SID为索引从自身存储的对应中查找对应的业务脚本, 并根据接收到的脚本操作信息中的脚本操作类型的指示,对查找到的业务脚本进行操作控制。 [0070] MRS320, provided with a SID, the correspondence relationship of the type of script and service script, a control terminal 310 for receiving a sent operation information script carries the SID, SID to find the corresponding index from the corresponding service script stored in itself , based on the scenario and the operation information of the received indication of the type of the operation script, the service script to a lookup operation control.

[0071] 图4是本发明实施例媒体资源服务器的组成结构示意图。 [0071] FIG. 4 is a schematic diagram illustrating a configuration example of a media resource server embodiment of the present invention. 如图4所示,该媒体资源服务器320包括存储单元322和脚本操作处理单元321。 As shown in FIG 4, the media resource server 320 includes a storage unit 322 and script processing unit 321.

[0072] 其中,脚本操作处理单元321,用于接收控制端310发送的携带有SID的脚本操作信息,以SID为索引从存储单元321中存储的对应关系中查找对应的业务脚本,并根据脚本操作信息,对查找到的业务脚本进行操作。 [0072] wherein, the script operation processing unit 321, for receiving a control operation carries the script information 310 is transmitted SID to SID as an index to find the corresponding service script from the correspondence relationship stored in the storage unit 321, according to the script and operational information, to find business script to operate.

[0073] 存储单元322,用于存储SID、业务脚本和脚本类型的对应关系,并向脚本操作处理单元321返回与SID对应的业务脚本。 [0073] The storage unit 322 for storing the SID, the service script and script-type correspondence relationship, and returns a service script with the SID corresponding to the script operation processing unit 321. 该单元中的对应关系可以采用一张对应关系表存储,该对应关系表除了SID字段、脚本类型字段和业务脚本字段,还可以包括脚本位置字段。 The correspondence relationship may be employed in the unit table storing a correspondence relationship, the correspondence table in addition to SID field, and field service script script type field may further include a script location field. 这里的业务脚本可能是业务脚本的具体内容,也可能只是一条用于标识业务脚本所在位置的URL。 Here's the script may be the specific content of the business operations of the script, it may just be a URL for the location where the service script logo.

[0074] 本发明实施例的技术方案适用于NGN或者IMS等IP网络。 [0074] The technical solution of the embodiments of the present invention is applicable to IP networks such as IMS or the NGN. 在IMS网络中,控制MRS执行业务脚本,实现与用户交互的控制端可以是AS或者CSCF ;在NGN网络中,控制MRF 执行脚本,实现与用户交互的控制端可以是AS或者Softswitch设备。 In the IMS network, the service script executed MRS control, interaction with users control terminal may be CSCF or AS; in the NGN network, MRF control execution of the script, the control terminal implemented with a user interaction device may be a Softswitch or AS. 以上所列举的各控制端实现业务脚本控制的实现原理都相同。 The principle of the control terminal of the above-listed achieve business scenario control are the same.

[0075] 下面以IMS网络中,实现AS控制MRS执行业务脚本为例,说明本发明实施例的具体实现方法。 [0075] In the following the IMS network, the AS to realize service script executed MRS control as an example, a specific embodiment of the method for implementing the present invention. AS与MRS之间采用SIP协议作为消息传输协议,因此将脚本操作信息携带在SIP消息中,完成AS与MRS之间的信息交互。 Using the SIP protocol between the AS and the MRS as the messaging protocol, so the script operation information carried in the SIP message, to complete the information exchange between the AS and the MRS.

[0076] 脚本操作信息除了携带SID和脚本操作类型这两个脚本参数,还可以携带其它脚本参数。 [0076] In addition to carrying information SID operation script and script types of these two parameters the script, the script may also carry other parameters.

[0077] 下面对以下实施例的脚本操作信息可以携带的脚本参数进行详细说明: [0077] The following script script parameter information carried in the operation of the embodiment described in detail below:

[0078] 1、脚本操作类型(Message Type)参数 [0078] 1, the script operation type (Message Type) parameter

[0079] 例如,Message Type = <message_type> ; [0079] For example, Message Type = <message_type>;

[0080] message-type = "sr'V “se”/ “si”/ “sc” [0080] message-type = "sr'V" se "/" si "/" sc "

[0081] 其中,sr为脚本执行操作,se为脚本事件操作,si为脚本信息操作,sc为脚本关闭操作。 [0081] where, sr script to perform operations, se script event actions, si script information operations, sc script shutdown. AS将脚本操作信息携带在SIP消息体发送给MRS时,可以采用该Message Type参数作为脚本操作信息的脚本操作类型;当将脚本操作信息携带在SIP消息头发送给MRS时, 则需要采用SIP消息头中的dialog-param参数作为脚本操作信息的脚本操作类型。 AS the operation script is transmitted to the information carried in the SIP message body MRS, the Message Type parameter may be used as the script operation type operation script information; script when the operation information is carried in a SIP message to the MRS hair, we need to use SIP messages parameter dialog-param header script as the script operation type operation information. 采用携带MessageType参数或者dialog-param参数作为脚本操作类型,虽然形式有所区别。 Carrying or using MessageType parameter dialog-param script parameters as type of operation, although the forms differ. but

11其目地都是对脚本操作信息所表示的操作类型进行区分。 11 which is the destination indicated by the operation type information distinguishing the operation script.

[0082] 2、脚本标识(SID)参数 [0082] 2, the script identification (SID) parameter

[0083] 例如,SID = <script-id> [0083] For example, SID = <script-id>

[0084] Script-id = 1*(DIGIT) [0084] Script-id = 1 * (DIGIT)

[0085] SID用于标识MRS上的一段业务脚本,MRS以SID为索引,查找对应的业务脚本。 [0085] SID for the period of service script logo MRS, MRS to SID for the index, find the corresponding service script. 同时,MRS还通过SID获取业务脚本的脚本类型,并根据脚本类型调用相应的脚本解析器, 解析执行查找到的业务脚本。 Meanwhile, MRS also get a script by SID type of a service script, and call the appropriate script parser according to the type of script, perform a lookup to resolve the service script.

[0086] 3、最后脚本事件指示(LEInd)参数: [0086] 3, the last event script indication (LEInd) parameters:

[0087] 例如,LEInd = <lastEventIndicator_value> [0087] For example, LEInd = <lastEventIndicator_value>

[0088] lastEventIndicator_value = "true" / "false" [0088] lastEventIndicator_value = "true" / "false"

[0089] LEInd表示MRS向AS上报的脚本事件是否为最后一个脚本事件,在AS向MRS上报脚本执行结果的脚本操作信息中携带。 [0089] LEInd represents MRS AS reported to script a script event is the last event, the information carried in the script AS reported operating results of the script execution in the MRS. 当MRS向AS上报的脚本执行结果为最后一个脚本事件的执行结果,该参数值为true。 When the script execution result to the AS MRS reported a script for the implementation of the results of the last event, the parameter value is true.

[0090] 4、媒体资源服务器释放会话(DisMrf)参数: [0090] 4, media resource server to release the session (DisMrf) parameters:

[0091] 例如,DisMrf = <disconnetFromMRF> [0091] For example, DisMrf = <disconnetFromMRF>

[0092] disconnetFromMRF = “true,,/ "false" [0092] disconnetFromMRF = "true ,, /" false "

[0093] DisMrf缺省值为false。 [0093] DisMrf default is false. 即,在正常情况下禁止MRS主动释放会话参数,必须由AS 来释放会话。 That is, the MRS is prohibited under normal circumstances, take the initiative to release the session parameters, the session must be released by the AS. 该参数在脚本操作类型为ScriptRim的脚本操作信息中携带。 This type of operation parameter in the script to script operations information ScriptRim carries. DisMrf参数可以与LEInd参数配合使用,当DisMrf为true时,且MRS已经获得AS的允许,可以在执行完业务脚本时释放会话,则MRS可以主动释放与AS的会话。 DisMrf parameters can be used with LEInd parameters, when DisMrf is true, and the MRS AS has received permit can be released during the session after executing the service script, you can take the initiative to release the MRS AS session.

[0094] 5、脚本信息数据长度(UiSInf_len)参数: [0094] 5, the data length of the script information (UiSInf_len) parameters:

[0095] 例如,UiSInf_len = <length_value> [0095] For example, UiSInf_len = <length_value>

[0096] length_value = 1*(DIGIT) [0096] length_value = 1 * (DIGIT)

[0097] UiSInf_len标识在脚本操作信息中所携带数据信息的长度。 [0097] UiSInf_len identification data length information in the information carried in the operation script. 只有脚本中携带有数据信息时才有该参数。 This parameter only when the script only carries the data.

[0098] 6、脚本信息数据(UiSInf_data)参数: [0098] 6, the script information data (UiSInf_data) parameters:

[0099] 例如,UiSInf_data = <uiScriptSpecificinformation_value> [0099] For example, UiSInf_data = <uiScriptSpecificinformation_value>

[0100] uiScriptSpecificinformation = byte-string [0100] uiScriptSpecificinformation = byte-string

[0101] Uisinf_data为脚本操作信息中携带的具体数据,该参数可以在脚本操作类型为ScriptRun, ScriptInfor和ScriptClose的脚本操作信息中携带。 [0101] DETAILED Uisinf_data data information is carried in the operation script, the script operation parameter may be carried in the operation script type information ScriptRun, ScriptInfor and in ScriptClose. 当携带在操作类型为ScriptInfor的脚本操作信息时,UiSInf_data参数为控制端向MRS发送的,协助MRS继续执行业务脚本的用户交互信息。 When carried in the operation script type ScriptInfor operational information, UiSInf_data parameters to control sends to the MRS, MRS continue to assist the user interaction information service script.

[0102] UiSInf_data参数由AS的上的业务层指定和发送,由MRS的业务脚本进行接收和解析。 [0102] UiSInf_data parameters received and parsed by the service script MRS specified by the service layer and the transmission on the AS. 该参数为可选参数,只有脚本操作信息中携带有数据时才有,该UiSInf_data参数的长度由UiSInf_len参数表示,UiSInf_data紧跟在UiSInf_len参数之后出现。 When this parameter is optional, information carries only the script only operating data, the length of the UiSInf_data parameter is represented by UiSInf_len parameters, UiSInf_data appears immediately after UiSInf_len parameters.

[0103] UiSInf_data参数为字节-字符串(byte-string)类型,其数据内容可以采用抽象语法编码1(ASN. 1,Abstract Syntax Notation One)的编码方式,框架如表1所示: [0103] UiSInf_data parameter byte - strings (byte-string) type, whose data content can be used Abstract Syntax Notation 1 (ASN 1, Abstract Syntax Notation One.) Encoding the frame as shown in Table 1:

[0104] [0104]

12 12

[0105] 表1 [0105] TABLE 1

[0106] 其中,标签(Tag)表示参数的类型,Tag定义如表2所示: [0106] wherein the tag (Tag) indicates the type of the parameter, Tag defined in Table 2:

[0107] [0107]

[0108]表 2 [0108] TABLE 2

[0109] 例如UiSInf_data = 02512346,表示该数据为一个长度为5的实数,其具体数据为12346。 [0109] For example UiSInf_data = 02512346, indicating that the data length is a real number of 5, the specific data 12346.

[0110] 7、脚本结果数据(UiSReS_data)参数: [0110] 7, the script data of a result (UiSReS_data) parameters:

[0111] 例如,UiSRes_data = <uIScriptResult> [0111] For example, UiSRes_data = <uIScriptResult>

[0112] uiScriptSpecificinformation = byte-string [0112] uiScriptSpecificinformation = byte-string

[0113] UiSRes_data为MRS脚本执行结果,通过脚本操作类型为ScriptEvent的脚本操作信息向AS上报。 [0113] UiSRes_data MRS script execution result by the script of the script operation type is ScriptEvent operation information reported to the AS. 该参数为可选参数,由MRS的业务脚本发送,AS上的业务层进行接收和解析。 This parameter is optional, MRS transmitted by the service script, the service layer on the AS received and parsed. UiSRes_data参数的长度由UiSInf_len参数表示,UiSRes_data参数可以紧跟在UiSInf_len参数之后出现。 UiSRes_data length parameter is represented by UiSInf_len parameter, UiSRes_data parameters may occur immediately after the UiSInf_len parameters. UiSRes_data的数据格式也可采用ASN. 1的数据编解码格式, 由MRS上的业务层构造后,传递给AS,由AS上的业务层进行解析。 UiSRes_data data formats may also be employed ASN. 1 format data codec, the configuration of the business layer on the MRS, is transmitted to the AS, parsed by the service layer each AS.

[0114] 8、业务键标识(SK)参数 [0114] 8, the service key identifier (SK) parameters

[0115]例如,SK = <service-key> [0115] For example, SK = <service-key>

[0116] service-key = (DIGIT) [0116] service-key = (DIGIT)

[0117] SK表示该脚本所属的业务。 [0117] SK represent the business of the script belongs. 例如SK = 200时,表示该脚本属于200电话业务。 Such as SK = 200, indicating that the script belongs to the 200 telephone service. 一个AS业务可以多次调用脚本操作,来完成与MRS的交互,该参数为可选参数。 AS a business can be called many times operate script to complete the interaction with the MRS, which parameter is optional.

[0118] 以上各脚本参数中,脚本操作类型参数和脚本标识参数是每个脚本操作中必须携带的脚本参数类型,其它脚本参数根据脚本操作的类型不同,携带在不同的脚本操作信息中。 [0118] In the above parameters of the script, the script type of operation parameters and the script identification parameter is a script type of each parameter in the operation script must carry the other type of the script according to script parameters different operations, carried in different scripts operation information. 总结起来就是: Summed up:

[0119] 携带有SID和ScriptRun的脚本操作信息,还可以携带SK、DisMrf、UiSInf_len、 UiSInf_data 等参数; [0119] carries the SID and script information ScriptRun may also carry SK, DisMrf, UiSInf_len, UiSInf_data other parameters;

[0120] 携带有SID和ScriptClose的脚本操作信息,还可以携带SK、UiSInf_len、UiSInf_ data等参数;[0121] 携带有SID和ScriptEvent的脚本操作信息,还可以携带SK、LEInd、UiSInf_len、 UiSRes_data 等参数; [0120] carries the SID and script information ScriptClose may also carry SK, UiSInf_len, UiSInf_ data and other parameters; [0121] carries the script operation information with a SID and ScriptEvent may also carry SK, LEInd, UiSInf_len, UiSRes_data parameters ;

[0122] 携带有SID和ScriptInfor的脚本操作信息,还可以携带SK、UiSInf_len、UiSRes_ data等参数。 [0122] carries the SID and script information ScriptInfor may still carry SK, UiSInf_len, UiSRes_ data and other parameters.

[0123] 脚本操作信息可以携带在扩展SIP消息的消息头或者消息体中。 [0123] When the script operation information may be carried in an extended message header of SIP message or a message body. 下面就分别对这两种情况举两个较佳实施例,对本发明实施例的具体实现进行详细说明。 Here are two situations give two preferred embodiments, a specific implementation of the embodiment of the present invention will be described in detail.

[0124] 第一较佳实施例 [0124] First preferred embodiment

[0125] 当脚本操作信息携带在SIP消息头中时,可以携带在SIP消息头请求行中,也可以携带在消息头请求行之后的消息头内容部分。 [0125] When the operation script information is carried in the SIP message header, may be carried in the SIP message header of the request line, may also carry a message header portion after the contents in the message header request line. 本实施例将消息请求行进行扩展,以携带脚本操作信息。 This embodiment will be extended message request line, the script operation to carry information. 本实施例中,具体扩展方式如下: In this embodiment, particularly extended as follows:

[0126] 扩展携带脚本操作信息的扩展巴科斯范式(ABNF)语法表达方式为: (ABNF) Syntax expression [0126] Extended script operations carry information Extended Backus-Naur Form as follows:

[0127] DIAL0G-URL = sip-ind dialog-ind" @" hostport dialog-parameters [0127] DIAL0G-URL = sip-ind dialog-ind "@" hostport dialog-parameters

[0128] sip-ind =〃 sip: “ /" sips:“ [0128] sip-ind = 〃 sip: "/" sips: "

[0129] dialog-ind = " dialog" [0129] dialog-ind = "dialog"

[0130] dialog-parameters =“ ; " dialog-param" [uis-parameters] [0130] dialog-parameters = ";" dialog-param "[uis-parameters]

[0131] dialog-param =" uis. sr" /" uis.se" /" uis.si" /" uis. sc〃 / [0131] dialog-param = "uis. Sr" / "uis.se" / "uis.si" / "uis. Sc〃 /

[0132] uis-parameters = uis-param[uis-parameters] [0132] uis-parameters = uis-param [uis-parameters]

[0133] uis-param = “ ; " uis-keyword" = " uis-value [0133] uis-param = ";" uis-keyword "=" uis-value

[0134] uis-keyword = token [0134] uis-keyword = token

[0135] uis-value = token [0135] uis-value = token

[0136]其中,扩展了 dialog-param 参数为〃 uis. sr '' / '' uis. se '' / '' uis. si “ /" uis. sc/,当SIP 夕肖;窗、头中白勺dialog-param 参数为uis. sr 或uis. se 或uis. si 或uis. sc时,s表示该SIP消息头携带了脚本操作信息。 [0136] wherein the extended dialog-param parameter 〃 uis sr '' / '' uis se '' / '' uis si "/" uis sc /, when SIP Xi Xiao;.... Windows, head white spoon dialog-param parameter uis. sr or uis. se or uis. si or uis. sc when, s represents the SIP message header carries the script operation information. uis. sr表示ScriptRun操作,uis. se 表不ScriptEvent 操作,uis. si 表不ScriptInfor 操作,uis. sc 表不ScriptClose 操作。 uis. sr denotes ScriptRun operation, uis. se table is not ScriptEvent operation, uis. si ScriptInfor table does not operate, uis. sc table is not ScriptClose operation. 脚本操作类型后面可以跟脚本参数,uis-keyword为脚本参数的名称,uis-value为脚本参数具体值。 After the script type of operation can be followed script parameters, uis-keyword script name parameter, uis-value for the specific parameter values ​​of a script.

[0137] SIP消息头中可携带的脚本参数的定义与前面所述的脚本参数2〜8的定义相同。 [0137] Script previously defined parameters SIP message header may carry the same definition script parameters of 2~8. 由于消息头的字段长度比较短,因此可以不包括脚本信息数据长度参数。 Since the field length of the header is relatively short, and therefore may not include the script information data length parameter.

[0138]脚本操作类型为 ScriptRun, Scriptlnfor, ScriptClose 和ScriptEvent 的脚本操作信息都可以携带在信息(INFO)消息的消息头中传送。 [0138] script as the script operation type operation information ScriptRun, Scriptlnfor, ScriptClose ScriptEvent and may carry both information (INFO) message header of the message transmitted. 其中,对于脚本操作类型为ScriptRim的脚本操作信息来说,还可以携带在SIP协议的邀请(INVITE)消息和再邀请(ReINVITE)消息的消息头传送。 Wherein, the operation script for the type of operational information ScriptRim the script, it may also be carried in the SIP invitation (INVITE) message and a re-invitation (ReINVITE) message transmitted message header.

[0139] 下面为INVITE和INFO消息的消息头携带脚本操作类型为uis. sr的脚本操作信息的例子: [0139] The following INFO message and an INVITE message header carries the script type of the operation script uis an example of operation information sr:

[0140] INVITE :sip:dialogimrs. company, com ;uis. sr ;sk = 200 ;sid = 68000001 [0140] INVITE: sip: dialogimrs company, com; uis sr; sk = 200; sid = 68000001..

[0141] INFO :sip:dialogimrs. company, com ;uis. sr ;sk = 200 ;sid = 68000001 [0141] INFO: sip: dialogimrs company, com; uis sr; sk = 200; sid = 68000001..

[0142] 其中,uis. sr为脚本操作类型,表示该脚本操作为脚本执行操作。 [0142] wherein, uis. Sr operation type script, the script indicates that the script operable to perform operations. 脚本操作类型之后紧跟着业务键标识参数SK和脚本标识SID,sk = 200表示该业务属于200电话业务, sid = 68000001标识需要MRS执行SID为68000001的业务脚本。 Immediately after the operation of the script type of the service key SK and the identification parameter script identifier SID, sk = 200 belonging to service 200 indicates the telephone service, sid = 68000001 MRS requires identification SID execution of the service script 68,000,001.

14[0143] AS可以通过在SIP消息体中携带脚本操作信息来控制MRS实现放音、收号、录音、 会议等用户交互功能。 14 [0143] AS the operation script can be carried in the SIP message body information to control the user interaction MRS playback function, digit collection, recording, meetings. 具体实现什么功能由SID确定。 What concrete realization of functions is determined by the SID. 下面以AS通过脚本操作信息指示MRS执行放音脚本流程为例进行说明。 AS MRS instructions below to perform the playback process as an example script by script operational information.

[0144] 图5为本发明第一较佳实施例实现MRS放音脚本控制方法的流程图。 [0144] FIG. 5 of the first preferred embodiment implements a flowchart of a method of controlling tone MRS script put the present invention. 如图5所示, 实现该方法的具体步骤如下: 5, the specific steps to implement the method as follows:

[0145] 步骤500,在MRS中设置SID、业务脚本及其脚本类型的对应关系。 [0145] Step 500, setting the SID, the service script and script-type correspondence relationship in MRS.

[0146] 步骤501,AS向MRS发送携带脚本操作信息的INVITE消息,从而建立AS与MRS的会话。 [0146] Step 501, MRS AS sends an INVITE message carrying the information of the operation script, so that the AS session with MRS. 该脚本操作信息携带的脚本操作类型为ScriptRim。 This type of script action script for the operation information carried ScriptRim.

[0147] 本步骤501,INVITE消息的请求行中携带脚本操作信息,该脚本操作信息包括脚本操作类型,SK和SID;消息体携带用户的会话描述协议(SDP,Session Description Protocol)信息。 [0147] In this step 501, the request line of the INVITE message carries the information of the operation script, the script operation information includes operation type script, SK and the SID; Session Description Protocol (SDP, Session Description Protocol) message body carries the user information. 如果需要控制MRS主动释放会话,脚本操作类型为ScriptRun的脚本操作信息还可以包括参数DisMrf。 If necessary to control the release of MRS active session, the type of the operation script as the script operation information may also include a parameter ScriptRun DisMrf.

[0148] 在实际应用中,也可以先采用INVITE消息建立AS与MRS之间的会话,再将脚本操作类型为ScriptRim的脚本操作信息携带在INFO消息中发送给MRS。 [0148] In practical applications, it can also be employed INVITE message to establish a session between the AS and the MRS, and then the type of the operation script as the script operation information transmitted to the portable ScriptRim MRS in INFO message.

[0149] 本实施例中,INVITE消息的例子如下: [0149] In this embodiment, an example of the INVITE message is as follows:

[0150] INVITE sip:dialogimrs. huawei. com ;uis. sr ;sk = 200 ;sid = 68000001 [0150] INVITE sip: dialogimrs huawei com; uis sr; sk = 200; sid = 68000001...

[0151] Via :SIP/2. 0/UDP client, huawei. com [0151] Via:. SIP / 2 0 / UDP client, huawei com.

[0152] From :<sip:usericlient. huawei. com> ;tag = 8000 [0152] From: <sip:.. Usericlient huawei com>; tag = 8000

[0153] To :<sip:dialogimrs. huawei. com ;uis.sr ;sk = 200 ;sid = 68000001> [0153] To: <sip: dialogimrs huawei com; uis.sr; sk = 200; sid = 68000001..>

[0154] Contact :sip:usericlient. huawei. com [0154] Contact: sip: usericlient huawei com..

[0155] Call-ID : 12345678iclient. huawei. com [0155] Call-ID:.. 12345678iclient huawei com

[0156] CSeq :1 INVITE [0156] CSeq: 1 INVITE

[0157] Content-Length :… [0157] Content-Length: ...

[0158] Content-Type !application/sdp [0158] Content-Type! Application / sdp

[0159] v = 0 [0159] v = 0

[0160] ο = user 2890844526 2890844526 IN IP4 client, huawei. com [0160] ο = user 2890844526 2890844526 IN IP4 client, huawei. Com

[0161] s = Session SDP [0161] s = Session SDP

[0162] c = IN IP4 client, huawei. com [0162] c = IN IP4 client, huawei. Com

[0163] t = 3034423619 0 [0163] t = 3034423619 0

[0164] m = audio 49170 RTP/AVP 0 [0164] m = audio 49170 RTP / AVP 0

[0165] a = rtpmap :0 PCMU/8000 [0165] a = rtpmap: 0 PCMU / 8000

[0166] 其中,uis.sr表示INVITE消息中携带的脚本操作信息的脚本操作类型为ScriptRun, sk = 200表示需要执行的业务脚本所属业务为200电话业务,sid = 68000001 表示需要执行SID为68000001的业务脚本。 [0166] wherein, uis.sr script representing the operation information of the script operation type carried in the INVITE message is ScriptRun, sk = 200 represents service script to be executed, a business telephone service 200, sid = 68000001 68000001 indicates the need to perform a SID business scripts.

[0167] 步骤502,MRS向AS返回200 OK响应消息。 [0167] Step 502, MRS returns a 200 OK response message to the AS.

[0168] 本步骤中,MRS在收到AS发出的INVITE消息后,按照请求/答复机制,根据自己所支持的媒体能力,对INVITE消息中携带的SDP进行修改,修改后的SDP通过200 OK响应返回AS。 [0168] In this step, the MRS AS after receiving the INVITE message sent according to the request / reply mechanism, according to their media capabilities supported, to the INVITE message carries the SDP is modified, the modified SDP 200 OK response by return to AS.

[0169] 本实施例中,200 OK响应消息的例子如下: [0169] In this embodiment, 200 OK message in response to the following examples:

15[0170] SIP/2. 0 200 OK 15 [0170] SIP / 2. 0 200 OK

[0171] From :<sip:usericlient. huawei. com> ;tag = 8000 [0171] From: <sip:.. Usericlient huawei com>; tag = 8000

[0172] To :<sip:dialogimrs. huawei. com ;uis.sr ;sk = 200 ;sid = 68000001) [0172] To: <sip: dialogimrs huawei com; uis.sr; sk = 200; sid = 68000001)..

[0173] CSeq :1 INVITE [0173] CSeq: 1 INVITE

[0174] Call-ID :12345678iclient. huawei. com [0174] Call-ID:.. 12345678iclient huawei com

[0175] Via :SIP/2. 0/UDP client, huawei. com [0175] Via:. SIP / 2 0 / UDP client, huawei com.

[0176] Contact :<sip:dialogimrs. huawei. com ;transport = udp> [0176] Contact: <sip: dialogimrs huawei com; transport = udp..>

[0177] Content-Length :... [0177] Content-Length: ...

[0178] Content-Type !application/sdp [0178] Content-Type! Application / sdp

[0179] v = 0 [0179] v = 0

[0180] ο = mrs 2890844527 2890844527 IN IP4 mrs. huawei. com [0180] ο = mrs 2890844527 2890844527 IN IP4 mrs. Huawei. Com

[0181] s = Session SDP [0181] s = Session SDP

[0182] c = IN IP4 mrs. huawei. com [0182] c = IN IP4 mrs. Huawei. Com

[0183] t = 3034423619 0 [0183] t = 3034423619 0

[0184] m = audio 3456 RTP/AVP 0 [0184] m = audio 3456 RTP / AVP 0

[0185] a = rtpmap :0 PCMU/8000 [0185] a = rtpmap: 0 PCMU / 8000

[0186] 步骤503,AS收到200 OK响应信息后,发送应答(ACK)消息到MRS。 After [0186] Step 503, AS receives a 200 OK response message, transmits acknowledgment (ACK) message to the MRS.

[0187] 本实施例中,ACK消息的例子如下: Examples [0187] In the present embodiment, ACK message implemented as follows:

[0188] ACK sip:dialogimrs. huawei. com ;uis. sr ;sid = 68000001 SIP/2. 0 [0188] ACK sip: dialogimrs huawei com; uis sr; sid = 68000001 SIP / 2 0....

[0189] From :<sip:usericlient. huawei. com> ;tag = 8000 [0189] From: <sip:.. Usericlient huawei com>; tag = 8000

[0190] To :<sip:dialogimrs. huawei. com ;uis. sr ;sk = 200 ;sid = 68000001) ;tag = Iale0al9 [0190] To: <sip:... Dialogimrs huawei com; uis sr; sk = 200; sid = 68000001); tag = Iale0al9

[0191] Call-ID : 12345678iclient. huawei. com [0191] Call-ID:.. 12345678iclient huawei com

[0192] CSeq : 1 ACK [0192] CSeq: 1 ACK

[0193] Via :SIP/2. 0/UDP client, huawei. com [0193] Via:. SIP / 2 0 / UDP client, huawei com.

[0194] Content-Length :0 [0194] Content-Length: 0

[0195] 步骤504,MRS根据脚本操作信息中携带的SID,查找对应的业务脚本,并执行该业务脚本,即放音。 [0195] Step 504, MRS script according to the operation information carried in the SID, find the corresponding service script, and executing the service script, i.e. playback.

[0196] 步骤505,MRS在放音结束后,发送携带脚本操作信息的INFO消息到AS,通知AS放音结束。 [0196] Step 505, MRS at the end of playback, transmits an INFO message carrying the operation information to the script AS, AS playback end notification. 该脚本操作信息中携带的脚本操作类型为ScriptEvent。 This type of script action script operation information is carried in ScriptEvent.

[0197] 本实施例中,MRS执行的业务脚本只有一个脚本事件,因此该脚本事件是当前业务脚本的最后一个脚本事件。 [0197] In this embodiment, the service script MRS execution of a script only event, so the script event is the last event of the current business script script. MRS发送给AS的INFO消息中的LEInd参数值设置为真。 MRS to a parameter value LEInd INFO message to the AS is set true.

[0198] 本实施例中,携带脚本操作类型为ScriptEvent的脚本操作信息的INFO消息头的例子如下: [0198] In this embodiment, the operation type carried in the script as an example of the INFO message ScriptEvent header information of the operation script as follows:

[0199] INFO sip:usericlient. huawei. com ;uis. se ;sid = 68000001 ;LEInd = true ; UiSRes_data = 111SIP/2. 0 [0199] INFO sip: usericlient huawei com; uis se; sid = 68000001; LEInd = true; UiSRes_data = 111SIP / 2 0....

[0200] From :<sip:usericlient. huawei. com> ;tag = 8000 [0200] From: <sip:.. Usericlient huawei com>; tag = 8000

[0201] To :<sip:dialogimrs. huawei. com ;uis. sr ;sk = 200 ;sid = 6800001) ;tag = Iale0al9 [0201] To: <sip:... Dialogimrs huawei com; uis sr; sk = 200; sid = 6800001); tag = Iale0al9

16[0202] CSeq : 1 INFO 16 [0202] CSeq: 1 INFO

[0203] Call-ID : 123456780 client, huawei. com [0203] Call-ID: 123456780 client, huawei com.

[0204] Via :SIP/2. 0/UDP client, huawei. com ;branch = z9hG4bK3e8156831 . [0204] Via:. SIP / 2 0 / UDP client, huawei com; branch = z9hG4bK3e8156831

[0205] Max-Forwards :70 [0205] Max-Forwards: 70

[0206] Content-Length :0 [0206] Content-Length: 0

[0207] 其中,uis.se表示该INFO消息中携带的脚本操作信息的脚本操作类型为ScriptEvent0 UiSRes_data = 111表示MRS放音完成。 [0207] wherein, uis.se script representing the operation type information in the script operation INFO message is carried in MRS ScriptEvent0 UiSRes_data = 111 indicates completion of playback. 该UiSRes_data的值代表的具体内容由AS与MRS协商确定。 Representatives of the specific content of the UiSRes_data value is determined by the MRS AS and consultation. LEInd = true表示当前执行的业务脚本中的所有脚本事件执行完毕。 LEInd = true representation of all scripted events business in the currently executing script is finished.

[0208] 步骤506,AS返回200 OK响应消息。 [0208] Step 506, AS returns a 200 OK response message.

[0209] 本步骤中,AS接收到MRS的INFO消息后,检查INFO消息是否符合SIP信令协议, 检查通过后,发送200响应消息到MRS。 After [0209] In this step, the AS received the INFO message to the MRS, the INFO message to check whether the SIP signaling protocol, after checking by sending 200 a response message to the MRS.

[0210] 本实施例中,AS返回的200 OK响应消息的例子如下: [0210] In this embodiment, 200 OK response message to the AS returns the example below:

[0211] SIP/2. 0 200 OK [0211] SIP / 2. 0 200 OK

[0212] From :<sip:usericlient. huawei. com> ;tag = 8000 [0212] From: <sip:.. Usericlient huawei com>; tag = 8000

[0213] To :<sip:dialogimrs. huawei. com ;uis. se ;sk = 200 ;sid = 06800001) [0213] To: <sip: dialogimrs huawei com; uis se; sk = 200; sid = 06800001)...

[0214] CSeq :1 INFO [0214] CSeq: 1 INFO

[0215] Call-ID :12345678iclient. huawei. com [0215] Call-ID:.. 12345678iclient huawei com

[0216] Via :SIP/2. 0/UDP client, huawei. com [0216] Via:. SIP / 2 0 / UDP client, huawei com.

[0217] Contact :<sip:dialogimrs. huawei. com ;transport = udp> [0217] Contact: <sip: dialogimrs huawei com; transport = udp..>

[0218] Content-Length :0 [0218] Content-Length: 0

[0219] 步骤507,AS根据接收的脚本操作信息指示,向MRS发送BYE消息,释放会话。 [0219] Step 507, AS based on the scenario information indicating the received operation, sends a BYE message to the MRS, to release the session.

[0220] 本步骤中,AS根据INFO消息中脚本操作信息的LEInd = true得知,MRS的已经执行完业务脚本的最后脚本事件,即放音结束,可以释放与MRS的会话。 [0220] In this step, AS INFO message LEInd script based on operational information = true that, MRS event has finished the last script execution service script, that is the end of playback, you can release the MRS session. 因此AS发出BYE消息,释放会话。 Therefore BYE AS issued a news release the session.

[0221] 本实施例中,AS发送的BYE消息的例子如下: Examples [0221] BYE ​​message according to the present embodiment, AS transmitted embodiment is as follows:

[0222] BYE sip: dialogimrs. huawei. com ;uis. sr ;uisID = 06800001 SIP/2.0 [0222] BYE ​​sip: dialogimrs huawei com; uis sr; uisID = 06800001 SIP / 2.0...

[0223] From :<sip :usericlient. huawei. com> ;tag = 8000 [0223] From: <sip:.. Usericlient huawei com>; tag = 8000

[0224] To :<sip:dialogimrs. huawei. com ;uis. se ;sk = 200 ;sid = 06800001) ;tag = Iale0al9 [0224] To: <sip:... Dialogimrs huawei com; uis se; sk = 200; sid = 06800001); tag = Iale0al9

[0225] Call-ID : 12345678iclient. huawei. com [0225] Call-ID:.. 12345678iclient huawei com

[0226] CSeq : 1 BYE [0226] CSeq: 1 BYE

[0227] Via :SIP/2. 0/UDP client, huawei. com [0227] Via:. SIP / 2 0 / UDP client, huawei com.

[0228] Content-Length :0 [0228] Content-Length: 0

[0229] 步骤508,MRS收到BYE请求后,向AS返回200 OK响应消息。 After [0229] Step 508, MRS received BYE request, returns a 200 OK response message to the AS.

[0230] 本实施例中,MRS向AS返回200 OK响应消息的例子如下: [0230] In this embodiment, MRS returns a 200 OK response message to the AS in the following example:

[0231] SIP/2. 0 200 OK [0231] SIP / 2. 0 200 OK

[0232] From :<sip :usericlient. huawei. com> ;tag = 8000 [0232] From: <sip:.. Usericlient huawei com>; tag = 8000

[0233] To :<sip: dialogimrs. huawei. com ;uis. se ;sk = 200 ;sid = 06800001) [0233] To: <sip: dialogimrs huawei com; uis se; sk = 200; sid = 06800001)...

17[0234] CSeq : 1 BYE 17 [0234] CSeq: 1 BYE

[0235] Call-ID : 12345678iclient. huawei. com [0235] Call-ID:.. 12345678iclient huawei com

[0236] Via :SIP/2. 0/UDP client, huawei. com [0236] Via:. SIP / 2 0 / UDP client, huawei com.

[0237] Contact :<sip:dialogimrs. huawei. com ;transport = udp> [0237] Contact: <sip: dialogimrs huawei com; transport = udp..>

[0238] Content-Length :0 [0238] Content-Length: 0

[0239] 以上就完成了一次AS通过脚本操作信息控制MRS的放音的操作。 [0239] more than once to complete the operation by the script AS MRS control playback of operational information.

[0240] 实现本较佳实施例的业务脚本控制方法,可以采用图3所示的业务脚本的控制系统,其中MRS可以采用图6示出的本发明第一较佳实施例媒体资源服务器的组成结构。 Control System [0240] preferred implementation of the service script control method of the embodiment, shown in Figure 3 may be employed in the service script, which may be employed MRS first preferred embodiment of the present invention, media resource server of FIG. 6 shows the composition structure.

[0241] 如图6所示,MRS包括脚本操作处理单元600和存储单元610。 [0241] As shown in FIG 6, MRS including script operation processing unit 600 and a storage unit 610.

[0242] 其中,脚本操作处理单元600包括业务脚本解析模块602、脚本结果上报模块603 和会话释放模块601。 [0242] wherein, the script operation processing unit 600 includes a parsing module 602 service script, the script result reporting module 603 and module 601 releases the session.

[0243] 业务脚本解析模块602,用于接收AS发来的携带有SID的脚本操作信息,以接收到的SID为索引,从存储单元610中存储的对应关系中查找对应的业务脚本,并根据接收到的脚本操作信息中的脚本操作类型的指示,对查找到的业务脚本进行操作控制。 [0243] service script parsing module 602 for receiving AS carries the script sent operation information SID to the SID received as an index to find the corresponding service script from the correspondence relationship stored in the storage unit 610 in accordance Action script script received the operation information indicative of the type of the found service script operation control.

[0244] 当脚本操作信息携带的脚本操作类型为ScriptRim时,业务脚本解析模块602进一步根据SID从存储单元610中,获取查找到的业务脚本的脚本类型,采用脚本类型指示的脚本解析器执行查找到的业务脚本;当脚本操作信息携带的脚本操作类型为ScriptClose 时,业务脚本解析模块602根据ScriptClose的指示,关闭查找到的业务脚本;当脚本操作信息携带的脚本操作类型为Scriptlnfor时,业务脚本解析模块602根据Scriptlnfor的指示,继续执行查找到的业务脚本。 [0244] When the script type of the script operation is carried in the operation information ScriptRim, service script analyzing module 602 is further the SID, the type of the found script acquired service script from the storage unit 610 according to the type of use of the script indicated by the script parser performs a lookup to the service script; when the script operation type script operation information carried as ScriptClose, service script analyzing module 602 according to an instruction ScriptClose and closing the found service script; when the script operation type script operation information carried as Scriptlnfor, service script parsing module 602 according to the instructions Scriptlnfor continue to perform a lookup service script.

[0245] 当业务脚本解析模块602执行完业务脚本中的一个脚本事件后,向脚本结果上报模块603发送脚本执行结果。 [0245] After the completion of service script analyzing module 602 executes a script in the script event service, reporting module 603 transmits the script to the script execution result results. 当执行完业务脚本后,且预先得到AS的允许,业务脚本解析模块602向会话释放模块601发送释放会话命令。 After completion of the service script executed, and AS advance permission, the service script analyzing module 602 releases the session module 601 transmits a command to release the session.

[0246] 脚本结果上报模块603,用于接收业务脚本解析模块602发送的脚本执行结果,根据该脚本执行结果向控制端发送携带SID的脚本操作结果。 [0246] Script result reporting module 603, a script execution result receiving transmitted service script analyzing module 602, the operation result SID message carrying the script to a control terminal in accordance with the script execution result.

[0247] 会话释放模块601,用于接收业务脚本解析模块602发送的释放会话命令,并向控制端发送释放会话消息。 [0247] session release module 601, the command for releasing the session to receive a service transmitted script analyzing module 602, and sends a message to release the session control terminal. 当然,MRS主动释放会话需要有AS的允许,即在AS发送脚本操作类型为ScriptRun的脚本操作信息时,该脚本操作信息中携带的DisMrf参数为true。 Of course, the MRS requires actively releasing the session to allow the AS, i.e., the transmission operation type of script as the script in the operation information ScriptRun AS, the information carried in the operation script DisMrf parameter to true.

[0248] 存储单元610,用于存储SID、业务脚本和脚本类型的对应关系,并向业务脚本解析模块602返回与SID对应的业务脚本。 [0248] storage unit 610 for storing the SID, the service script and script-type correspondence relationship, and 602 corresponding to the SID returns a service script with the service script analyzing module. 这里的存储的业务脚本可以为业务脚本的具体内容,也可以只是URL。 Here's storage business script can be the specific content of the service script, you can also just URL.

[0249] 第二较佳实施例 [0249] Second preferred embodiment

[0250] 本实施例将脚本操作信息携带在SIP消息体中实现,需要扩展SIP消息的Content-Type 参数。 [0250] Content-Type of the present embodiment, the script operation parameter information carried in the SIP message body is implemented, SIP message needs to be extended.

[0251 ] 本实施例中,在SIP消息体中增加一种的内容类型,当Content-Type为application/uis时,表示SIP消息体中携带的为脚本操作信息。 [0251] In this embodiment, to add a content type in the SIP message body, when the Content-Type of application / uis, represents SIP message body carried in the operation script information. 在SIP消息中的定义如下: It is defined in SIP messages as follows:

[0252] Content-Type = 〈Content-type—parameter〉 [0252] Content-Type = <Content-type-parameter>

[0253] Content—type—parameter = “application/uis" [0253] Content-type-parameter = "application / uis"

18[0254] 在SIP消息头中携带的脚本参数的定义与前面所述的脚本参数1〜8的定义相同。 18 [0254] parameters are defined the same as previously defined scripts Script parameters carried in the SIP message header of 1~8.

[0255] 与第一较佳实施例不同之处在于,这种方式下,四种脚本操作信息均需要在INFO 消息的消息体中携带。 [0255] Example differs from the first preferred embodiment in that, in this embodiment, four kinds of operation information is a script needs to carry the message body INFO message.

[0256] 脚本操作类型为sr的脚本操作信息不能携带在INVITE或ReINVITE消息的消息体中的原因是:如果将脚本操作类型为ScriptRim的脚本操作信息携带在INVITE消息的消息体中,则该INVITE消息的Content-Type应该为application/uis ;但是,用于建立会话的INVITE消息的消息体中需要携带用户的SDP信息,因此该INVITE消息的Content-Type 又应该为application/sdp0 而,application/uis 与application/sdp 不能存在于同一SIP消息中,因此,脚本操作类型为sr的脚本操作信息不能携带在INVITE消息的消息体中, 同理也不能携带在ReINVITE消息的消息体中。 [0256] Cause script operation type script operation information sr is not carried in the message body INVITE or ReINVITE message: if the script operation type script operation information ScriptRim is carried in the message body of the INVITE message, the INVITE Content-Type message be application / uis; however, the user carries the SDP information of the message body INVITE message for establishing a session in need, and therefore the INVITE Content-Type message again be application / sdp0 and, application / uis and application / sdp not present in the same SIP message, therefore, the script type of the operation script is not sr operation information carried in the message body of the INVITE message, can not be carried in the same way ReINVITE message in the message body.

[0257] 下面以AS通过脚本操作信息指示MRS执行用户鉴权和收用户号码脚本流程为例进行说明。 [0257] AS indicated below to perform user authentication and MRS received subscriber number script process, for example by script will be explained the operation information. 其中。 among them. 用户鉴权操作由AS完成。 The user authentication operation performed by AS. MRS所存储的实现用户鉴权和收号的业务脚本包括两个脚本事件,分别为从用户获取用户名、密码,和收用户号码。 Implement user authentication and the number receiving the service script MRS includes two scripts stored events, respectively obtain a user name, password, and user number received from the user.

[0258] 图7为本发明第二较佳实施例实现MRS用户鉴权和收号脚本控制方法的流程图。 [0258] FIG 7 a second preferred embodiment of the user authentication and the script control flowchart of the method of the present invention implement receiving No. MRS. 如图7所示,该方法具体实现步骤如下: 7, the specific implementation of the method steps are as follows:

[0259] 步骤700,在MRS中设置SID、业务脚本及其脚本类型的对应关系。 [0259] Step 700, setting the SID, the service script and script-type correspondence relationship in MRS.

[0260] 步骤701,AS向MRS发送INVITE消息,建立会话。 [0260] Step 701, AS sends an INVITE message to the MRS, the establishment of the session.

[0261] 本步骤中,INVITE消息体中携带用户的SDP信息。 [0261] In this step, INVITE message body carries the SDP information of the user.

[0262] 步骤702,MRS向AS返回200 OK响应消息,该200 OK响应消息中携带MRS本地的SDP。 [0262] Step 702, MRS returns a 200 OK response message to the AS, the message carries the SDP of the MRS to the local 200 OK response.

[0263] 步骤703,AS收到200 OK响应后,向MRS发送ACK。 After [0263] Step 703, AS receives a 200 OK response, sends an ACK to the MRS.

[0264] 步骤704,AS向MRS发送INFO消息。 [0264] Step 704, AS sends an INFO message to the MRS. 该INFO消息携带了脚本操作类型为ScriptRun 的脚本操作信息。 The INFO message carries the script action script type of operational information ScriptRun.

[0265] 本步骤中,AS向MRS发送INFO消息,在INFO消息体中携带脚本操作信息。 [0265] In this step, AS sends an INFO message to the MRS, the operation information in the script to carry INFO message body. 该脚本操作信息包括Message Type、SID、SK和DisMrf。 The script operation information includes Message Type, SID, SK and DisMrf. 与第一较佳实施例不同之处在于,本实施例中,脚本操作类型采用Message Type参数表示。 Preferred embodiment differs from the first embodiment in that, in the present embodiment, the script operation using Message Type parameter indicates the type.

[0266] 本实施例中,携带脚本操作类型为ScriptRim的脚本操作信息的INFO消息体如下: [0266] In this embodiment, the script operation type is carried in the INFO message body information ScriptRim operation script as follows:

[0267] Content-Length :… [0267] Content-Length: ...

[0268] Content-Type = application/uis [0268] Content-Type = application / uis

[0269] MessageType = sr [0269] MessageType = sr

[0270] SK = 200 [0270] SK = 200

[0271] SID = 68800001 [0271] SID = 68800001

[0272] DisMrf = true [0272] DisMrf = true

[0273] 其中,Message Type = sr表示INFO消息中携带的脚本操作信息的脚本操作类型为ScriptRun,SK = 200表示需要执行的业务脚本所属业务为200电话业务,sid = 68000001表示需要执行SID为68000001的业务脚本。 [0273] wherein, Message Type = sr script representing the operation type script operation information INFO message carries is ScriptRun, SK = 200 represent service script, a business need to be performed for the 200 telephone service, sid = 68000001 expressed need to perform a SID 68000001 the service script. DisMrf = true表示AS允许MRS在业务脚本执行完毕后,主动释放会话。 DisMrf = true representation AS MRS allows business after the script is finished, take the initiative to release the session.

19[0274] 步骤705,MRS收到INFO消息后,向AS发送200 OK消息。 19 [0274] Step 705, after received the INFO message MRS sends a 200 OK message to the AS.

[0275] 步骤706,MRS以INFO消息中,脚本操作信息携带的SID为索引,从设置在MRS的对应关系中,查找对应的业务脚本及其脚本类型,根据脚本类型调用相应脚本解析器,并根据ScriptRimJAR SID对应的业务脚本,对用户进行帐号、密码的接收。 [0275] Step 706, the INFO message to the MRS, the operation script for the index information is carried in the SID, the MRS is provided in corresponding relation to find the corresponding type of script and service script, the script calls the appropriate script parser according to the type, and the ScriptRimJAR SID corresponding service script, the user receives the account password.

[0276] 本步骤中,业务脚本不仅可以预先设置在MRS中,或者存储在网络上的某个位置, 还可以由AS将业务脚本的具体内容携带在脚本操作信息中,发送给MRS。 [0276] In this step, not only a service script can be preset in MRS or stored somewhere on the network, the AS may also be carried in the specific content service script in the script operation information, sent to the MRS. AS向MRS发送业务脚本时,脚本执行操作信息还需要包括UiSInf_len和UiSInf_data,其中UiSInf_data参数的值为业务脚本,UiSInf_len的值为业务脚本的长度。 When the AS sends to the MRS service script, the script performs the operation information and also need to include UiSInf_len UiSInf_data, wherein the parameter value of the service script UiSInf_data, length of service script UiSInf_len value. UiSInf_data的格式由AS和MRS 预先约订。 UiSInf_data in advance about the format prescribed by the AS and MRS.

[0277] 步骤707,MRS接收用户帐号、密码后,向AS发送INFO消息。 [0277] Step 707, MRS received user account, the password, sends an INFO message to the AS. 该INFO消息携带了脚本操作类型为ScriptEvent的脚本操作信息。 The INFO message carries information about the operation script script type ScriptEvent of operation. 该脚本操作信息中还包括接收到用户密码和帐号。 The script operation information further comprises receiving a user password and account number.

[0278] 本实施例中,携带脚本操作类型为ScriptRim的脚本操作信息的INFO [0278] INFO script operation information ScriptRim embodiment of the present embodiment, the operation type carried in the script

[0279] 消息体如下: [0279] message body as follows:

[0280] Content-Length :... [0280] Content-Length: ...

[0281] Content-Type = application/uis [0281] Content-Type = application / uis

[0282] MessageType = se [0282] MessageType = se

[0283] SK = 200 [0283] SK = 200

[0284] SID = 68800001 [0284] SID = 68800001

[0285] LEInd = false [0285] LEInd = false

[0286] UiSInf_len = 25 [0286] UiSInf_len = 25

[0287] UiSRes data = 1162a68001234562812345678 [0287] UiSRes data = 1162a68001234562812345678

[0288] 其中,LEInd = false表示本脚本事件不是当前业务脚本的最后脚本事件, UiSInf_len = 25表示MRS接收到的用户帐号和密码数据的长度为25,UiSRes_data = 1162a68001234562887654321为MRS接收到的用户密码和帐号的具体内容。 [0288] wherein, LEInd = false indicates that this script event is not the last script event service scripts, UiSInf_len = length of the user ID and password data 25 represents MRS received as 25, UiSRes_data = 1162a68001234562887654321 the user password MRS received and account of the specific content. 本实施例中,用户帐号为6800123456的10位整数,密码为87654321的8位整数,UiSRes_data中的数字116为业务脚本相关的代码,帮助AS解析数据。 In this embodiment, the user account number 6800123456 is an integer of 10, 8-bit integer code 87654321, the digital UiSRes_data 116 related to service script code, to help AS parsed data. UiSReS_data的具体格式和其数据代表的意义由AS和MRS约定。 Significance of specific data format UiSReS_data and their representatives agreed upon by the AS and MRS.

[0289] 步骤708,AS向MRS返回200 OK响应消息。 [0289] Step 708, AS returns a 200 OK response message to the MRS.

[0290] 步骤709,AS从接收到的INFO消息所携带的脚本操作信息中,获取用户帐号和密码,并对用户进行鉴权。 [0290] Step 709, AS receives operation information from the script to the INFO message carried by the acquired user account and password, and authenticate the user.

[0291] 本步骤中,AS将接收的INFO消息中携带的脚本操作信息传递给业务层,由业务层获取脚本操作信息中的用户的帐号和密码,并对用户进行鉴权。 [0291] In this step, the AS received the INFO message carried in the operation script information to the business layer, the script acquiring operation information of the user ID and password from the service layer, and user authentication. 如果鉴权成功,则AS将脚本操作类型为Scriptlnfor的脚本操作信息,携带在INFO消息中发送给MRS,指示MRS继续执行当前业务脚本的流程。 If the authentication is successful, the script AS will operate script type of operation information Scriptlnfor carry INFO message sent to the MRS, MRS instructions to continue the current business process scripts. 如果鉴权失败,则AS将脚本操作类型为ScriptClose的脚本操作信息,携带在INFO消息中发送给MRS,终止MRS对当前业务脚本流程的执行。 If the authentication fails, the script AS will operate as a type of script operation information ScriptClose carry INFO message sent to the MRS, MRS terminate script execution on the current business processes.

[0292] 本实施例中,假设鉴权成功。 [0292] In this embodiment, it assumes that the authentication succeeds.

[0293] 步骤710,AS鉴权成功后,向MRS发送携带脚本操作信息的INFO消息,指示MRS继续执行脚本。 [0293] Step 710, after the authentication succeeds AS, transmits the INFO message carrying the script to the MRS operation information, indicating to continue execution of the script MRS. 这里的脚本操作信息的脚本操作类型为Scriptlnfor,该脚本操作信息还携带 Here's the type of script operations Script operations information for Scriptlnfor, the script also carry operational information

20有脚本结果数据参数UiSReS_data,该参数指示MRS后续动作。 Results 20 scripted parameters UiSReS_data, the parameter indicating MRS subsequent action.

[0294] 本实施例中,携带脚本操作类型为ScriptInfor的脚本操作信息的INFO消息体如下: [0294] In this embodiment, the operation type carried ScriptInfor script of the script operation information INFO message body is as follows:

[0295] Content-Length :... [0295] Content-Length: ...

[0296] Content-Type = application/uis [0296] Content-Type = application / uis

[0297] MessageType = si [0297] MessageType = si

[0298] SK = 200 [0298] SK = 200

[0299] SID = 68800001 [0299] SID = 68800001

[0300] UiSInf_len = 3 [0300] UiSInf_len = 3

[0301] UiSInf_data = 211 [0301] UiSInf_data = 211

[0302]其中,UiSInf_len = 3 是UiSRes_data 数据的长度,UiSRes_data = 211 是AS 指示MRS后续动作的代码,该代码由AS和MRS约定。 [0302] wherein, UiSInf_len = 3 UiSRes_data length data, UiSRes_data = 211 MRS is indicative of the subsequent operation of the AS code that agreed upon by the AS and MRS. 本实施例的211由MRS解析后,表示MRS 继续执行业务逻辑,发送提示音,提示用户拨被叫号码。 211 embodiment is parsed by the MRS, MRS represents continue business logic, tone transmission, the user is prompted to dial the called number.

[0303] 步骤711,MRS接收到INFO消息后,向AS发送200 OK响应消息。 [0303] Step 711, after receiving the MRS INFO message, sends a 200 OK response message to the AS.

[0304] 步骤712,MRS根据接收的INFO消息中携带的脚本操作信息,继续执行业务脚本: MRS向用户发送拨被叫号码的提示音,并接收用户输入的被叫号码。 [0304] Step 712, MRS script according to the received operation information INFO message carried in the service script continues: MRS transmitting the called number dialing tone to the user, and receives the called number input by the user.

[0305] 步骤713,MRS接收到被叫号码后,向AS发送INFO消息。 [0305] Step 713, after receiving the MRS called number, sends an INFO message to the AS. 该INFO消息体携带了脚本操作类型为ScriptEvent的脚本操作信息。 The INFO message body carries the script script operation information of the operation type ScriptEvent. 该脚本操作信息还包括用户输入的被叫号码。 The script called number further comprises the operation information input by the user.

[0306] 本实施例中,MRS接收到被叫号码,则当前脚本事件执行完毕,且该脚本事件是MRS所执行业务脚本的最后脚本事件,则MRS向AS发送的脚本操作信息不仅上报了用户输入的被叫号码,还通知AS该脚本事件是最后脚本事件,即LEInd = true。 [0306] In this embodiment, the MRS received called number, the current script event is finished, the script and script event is the last event executed MRS service script, the script operation information to the AS MRS transmitted only reported to the user the called number entered, also informs the script AS event is the last event script that LEInd = true.

[0307] 本实施例中,携带脚本操作类型为ScriptEvent的脚本操作信息的INFO消息体如下: [0307] In this embodiment, the script operation type is carried in the INFO message body information ScriptEvent operation script as follows:

[0308] Content-Length :... [0308] Content-Length: ...

[0309] Content-Type = application/uis [0309] Content-Type = application / uis

[0310] MessageType = se [0310] MessageType = se

[0311] SK = 200 [0311] SK = 200

[0312] SID = 68800001 [0312] SID = 68800001

[0313] LEInd = ture [0313] LEInd = ture

[0314] UiSInf_len = 25 [0314] UiSInf_len = 25

[0315] UiSRes_data = 2e2c075528970808 [0315] UiSRes_data = 2e2c075528970808

[0316] 其中,UiSRes_data = 2e2c075528970808为用户输入的被叫号码的具体内容。 [0316] wherein, UiSRes_data = 2e2c075528970808 to the specific content of the called number input by the user. 本实施例中,用户被叫号码为075528970808的12位的整数。 In this embodiment, the user of the called number is an integer of 12 bits 075528970808. UiSRes_data中的数字2e为业务脚本相关代码。 UiSRes_data in digital 2e is business-related script code.

[0317] 步骤714,AS接收到INFO消息后,向MRS发送200 OK响应消息。 [0317] Step 714, the AS receives the INFO message, and sends a 200 OK response message to the MRS.

[0318] 步骤715,MRS向AS发出BYE请求,释放会话。 [0318] Step 715, MRS BYE request sent to the AS, to release the session.

[0319] 本步骤中,由于步骤704中AS向MRS发送的脚本操作信息携带DisMrf的值为真, 则允许MRS主动释放会话。 [0319] In this step, since the step script operation information transmitted to the AS carried DisMrf MRS 704 is true, MRS allows release of the active session. 因此在MRS执行完当前业务脚本的最后一个脚本事件后,可以主动释放与AS的会话。 Therefore, after a script MRS completed for the last event of the current business of the script, you can take the initiative to release the AS session.

[0320] 步骤716,AS向MRS返回200 OK响应。 [0320] Step 716, AS returns a 200 OK response to the MRS.

[0321] 以上就完成了一次AS通过脚本操作信息指示MRS的进行用户鉴权和收号操作。 [0321] This completes an AS number for user authentication and receiving operation information indicating a script MRS operation.

[0322] 本实施例是由AS进行鉴权操作。 [0322] The present embodiment is an authentication operation by the AS. 在实际应用中,也可以由MRS进行鉴权操作。 In practical applications, the authentication operation may be performed by the MRS. 例如,步骤707MRS在进行完业务脚本中的脚本事件后,可以只通知AS执行完毕,即MRS向AS 发送的脚本操作类型为ScriptEvent的脚本操作信息中携带执行完毕代码,AS执行控制端业务逻辑,然后向MRS发送用户帐号和密码,由MRS执行鉴权操作。 For example, after performing step 707MRS End service event script in the script, only the AS may be notified executed, i.e., the type of the operation script is sent to the AS MRS script operation information ScriptEvent carries the code is finished, the control executed by the AS-side business logic, then sent to the user account and password MRS, an authentication operation performed by the MRS. 这里控制端向MRS发送的用户帐号和密码就是用户交互信息,可以携带在步骤710脚本操作信息的UiSReS_data 参数中。 Here the control end user account and password is sent to the MRS user interaction information may be carried in step 710 the script operation UiSReS_data parameter information. 当然,用户帐号和密码也可以保存在MRS,则MRS不需要与AS进行交互,即可完成用户鉴权操作。 Of course, user accounts and passwords can be stored in the MRS, the MRS need to interact with AS, to complete the user authentication operation.

[0323] MRS向AS上报的执行结果的内容,以及AS根据执行结果向MRS发送的协助MRS继续执行业务逻辑的用户交互信息的内容,都是由MRS和AS预先约订的,根据所执行的业务逻辑而有所区别。 [0323] MRS content to the results reported by AS, and AS based on the content of user interaction information to assist the implementation of the results sent to the MRS MRS continues to execute business logic, and AS MRS are made in advance about the book, according to the execution of business logic rather different.

[0324] 实现以上第二较佳实施例的业务脚本控制方法,可以采用图3示出的业务脚本的控制系统,以及图6示出的媒体资源服务器。 Service script control method [0324] to achieve the above second preferred embodiment, the control system may be employed in FIG. 3 shown in the service script, and the media resource server 6 shown in FIG.

[0325] 以上各实施例中,在SIP协议中携带脚本操作信息的方案可以在AS和MRS的执行平台层实现,或者在AS和MRS的业务层实现。 Scheme [0325] In the above embodiments, the operation information in the script to carry the SIP AS may be performed and the platform layer implemented MRS, and MRS or in a business layer AS. 在业务层实现时,可以通过AS或MRS的执行平台层对SIP协议的解释后,将SIP消息中携带的脚本操作信息中的数据传递给AS或MRS 的上层业务逻辑,由业务逻辑对数据内容进行解释执行。 After when the service layer, it can be interpreted AS or MRS execution platform layer SIP protocol, the data script operation information in the SIP message carried in the transmitted to the upper layer service logic AS or MRS by the business logic of the data content It is interpreted. 这样AS和MRS之间的业务之间可以自定义相互交互的数据和数据格式,而不需要平台层参与。 Thus between the AS and traffic between each other can be customized MRS data interaction and data formats, without the participation of the platform layer.

[0326] 由以上所述可以看出,本发明所提供的业务脚本的获取方案,提供了一种简单的控制媒体资源服务器获取业务脚本的方法,由于AS不用获取并向MRS发送脚本类型和脚本位置等信息,因此减轻了AS的负担,而且只需对SIP消息进行一次扩展,使得扩展后的SIP 消息可以携带本实施例中的脚本操作信息,避免了现有技术中根据不同脚本类型对传输协议进行多次扩展的复杂程度。 [0326] can be seen from the above, the present invention provides a service script acquisition program, provides a simple method of controlling a media resource server to obtain the service script, because the script and sends AS without obtaining the MRS type and the script location and other information, thus reducing the burden of the AS, but only once extended SIP message, such that the extended SIP message carrying the script to be the operation information in the embodiment, to avoid the prior art transmission type depending on the scripts the complexity of multiple protocol extensions.

[0327] 其次,AS在控制MRS执行业务脚本时,并不限定MRS执行什么类型的脚本,MRS可以执行MSML、VXML、C、C++等业务脚本,或者私有的业务脚本,当MRS扩展了其支持的业务脚本的种类,或者改变了SID对应的业务脚本的类型,只要业务脚本功能不变,与SID的对应关系不变,MRS仍可以根据SID获取所需的业务脚本,完成既定的用户交互功能,因此提高了媒体资源服务器的可扩展性。 [0327] Secondly, AS in controlling MRS execution of business script, is not limited to what type of script MRS execution, MRS can perform MSML, VXML, C, C ++ and other business script, or private business script, when MRS extended its support kind of business script, or change the type of service script corresponding to the SID, as long as the business function the same script, correspondence between the SID unchanged, MRS can still obtain the required service scripts based on SID, complete the set of user interaction thus improving the scalability of the media resource server.

[0328] 此外,本发明所提供的业务脚本控制方案,还能够实现AS在不释放会话的前提下,主动停止MRS所执行的业务脚本;MRS也可以在停止业务脚本执行后主动释放会话,提高了业务控制的灵活性。 [0328] In addition, the service script control scheme of the present invention is provided, further enables AS without session release, active stopping service script MRS performed; MRS also initiates release the session after stopping the service script execution, improved business agility control.

[0329] 综上所述,以上仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。 [0329] In summary, the foregoing is only preferred embodiments of the present invention but are not intended to limit the scope of the present invention. 凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 Any modification within the spirit and principle of the present invention, made, equivalent substitutions, improvements, etc., should be included within the scope of the present invention.

22 twenty two

Claims (24)

  1. 一种业务脚本获取方法,其特征在于,在媒体资源服务器MRS中预先设置脚本标识SID、脚本类型与业务脚本的对应关系;该方法包括:控制端向媒体资源服务器MRS发送携带有SID的脚本操作信息;媒体资源服务器MRS根据接收到的SID和所述对应关系,获取与该SID对应的业务脚本及其脚本类型。 The method of obtaining a service script, wherein setting the corresponding relationship between identification SID script, the script type of the service script in MRS media resource server in advance; the method comprising: a control terminal sends a media resource server carries SID MRS operation script information; MRS media resource server according to the received SID and the correspondence acquiring service script corresponding to the SID and the script type.
  2. 2.如权利要求1所述的方法,其特征在于,所述脚本操作信息携带在扩展对话参数dialog-param的会话初始化协议SIP消息的消息头。 2. The method according to claim 1, wherein said script operation information is carried in the extended session parameters dialog-param Session Initiation Protocol SIP message header of the message.
  3. 3.如权利要求1所述的方法,其特征在于,所述脚本操作信息携带在扩展内容类型Content-type的SIP消息的消息体。 The method according to claim 1, wherein said script operation information is carried in the extended Content-type content type of the message body of the SIP message.
  4. 4.如权利要求1所述的方法,其特征在于,所述脚本操作信息中进一步携带有业务脚本,所述获取与该SID对应的业务脚本及其脚本类型的方法为:所述媒体资源服务器MRS从接收到的脚本操作信息获取业务脚本,并根据接收到的SID和所述对应关系,获取所述从脚本操作信息获得的业务脚本的脚本类型。 4. The method according to claim 1, wherein said script operation information further carries a service script, the service script, and the script acquiring method of the type corresponding to the SID is: the media resource server MRS acquisition service script to script information received from the operation, and according to the received SID and the correspondence, to get the script type of the service script information obtained from the operation script.
  5. 5. 一种业务脚本控制方法,其特征在于,在媒体资源服务器MRS中预先设置脚本标识SID、脚本类型与业务脚本的对应关系;该方法包括:控制端向媒体资源服务器MRS发送携带有SID的脚本操作信息;所述媒体资源服务器MRS根据接收到的SID和所述对应关系,获取与SID对应的业务脚本,并根据接收到的脚本操作信息中的脚本操作类型的指示,对所述对应的业务脚本进行操作控制。 A method for controlling service script, wherein the script identifier SID set in advance, a correspondence relationship with the script type of the service script in MRS media resource server; the method comprising: a control terminal sends a media resource server carries the SID MRS script operation information; MRS media resource server according to the correspondence to the received SID and acquires SID corresponding service script, and the script in accordance with the received operation information indicating an operation type of the script, the corresponding business operation control script.
  6. 6.如权利要求5所述的方法,其特征在于,所述脚本操作类型为脚本执行操作,该方法进一步包括:根据所述接收到的SID和所述对应关系,获取所述对应的业务脚本的脚本类型;所述根据脚本操作类型的指示,对对应的业务脚本进行操作控制的方法为:所述媒体资源服务器MRS根据获得的脚本类型调用脚本解析器,采用调用的脚本解析器执行所述业务脚本。 6. The method according to claim 5, wherein said script is a script execution operation type operation, the method further comprising: according to the received SID and the correspondence, obtaining the corresponding service script script type; according to the script indicating an operation type of the corresponding service script operation control method is performed: the media resource server MRS obtained according to the type of script parser calls the script, the script parser calls performed using the business scripts.
  7. 7.如权利要求5所述的方法,其特征在于,所述脚本操作类型为脚本关闭操作,所述根据脚本操作类型的指示,对对应的业务脚本进行操作控制的方法为:所述媒体资源服务器MRS根据所述脚本关闭操作的指示,关闭所述对应的业务脚本。 7. The method according to claim 5, characterized in that the operation script as the script type closing operation, the operation according to the script type of indication, the corresponding service script of the operation control method is performed as follows: the media resource Close MRS server according to the instructions of the script, the service script corresponding to closing.
  8. 8.如权利要求5所述的方法,其特征在于,在所述控制端预先设置SID与用于控制媒体资源服务器MRS工作的控制端业务逻辑的对应关系;所述媒体资源服务器MRS每执行完所述对应的业务脚本中的一个脚本事件,向所述控制端发送携带有SID的脚本操作结果;所述控制端根据所述脚本操作结果携带的SID,执行SID对应的控制端业务逻辑,并根据所述控制端业务逻辑执行结果,重新向所述媒体资源服务器MRS发送携带有SID的脚本操作信息。 8. The method according to claim 5, wherein the corresponding relationship is provided for controlling the SID MRS media resource server-side business logic for controlling the operation of the control terminal in advance; the media resource server executing the MRS per a script corresponding to the event service script is transmitted to the control terminal carries the script operation result SID; said control terminal carried in the SID to the script operation result, performs a control corresponding to the SID-side business logic, and the service logic of the control terminal the results of re-transmitting to the media resource server MRS carries SID information of the operation script.
  9. 9.如权利要求8所述的方法,其特征在于,若所述业务逻辑执行结果为需要媒体资源服务器MRS继续执行所述对应的业务脚本, 则所述控制端重新发送的所述携带有SID的脚本操作信息的脚本操作类型为脚本信息操作;媒体资源服务器MRS接收到所述携带有SID和脚本操作类型为脚本信息操作的脚本操作信息之后,该方法进一步包括:所述媒体资源服务器MRS继续执行所述业务脚本;若所述业务逻辑执行结果为需要媒体资源服务器MRS停止执行所述对应的业务脚本, 则所述控制端重新发送的所述携带有SID的脚本操作信息的脚本操作类型为脚本关闭操作。 9. The method according to claim 8, wherein, if the service logic execution result MRS media resource server needs to continue the corresponding service script, the control terminal of the retransmitted carries SID script type of the operation script is a script of the operation information of the operation information; MRS media resource server after receiving the SID has script and script type of the operation information of the operation information of the script to carry, the method further comprising: the media resource server to continue MRS executing the service script; if the result of execution of the service logic need MRS media resource server to stop performing the corresponding service script, the control device retransmits carries SID script type of the script operation is operation information script shutdown.
  10. 10.如权利要求9所述的方法,其特征在于,所述携带有SID和脚本操作类型为脚本信息操作的脚本操作信息包括脚本信息数据参数,用于携带控制端向媒体资源服务器MRS发送的协助媒体资源服务器MRS继续执行业务脚本的信息;所述脚本操作结果包括脚本结果数据参数,用于携带媒体资源服务器MRS向控制端上报的执行结果信息。 10. The method according to claim 9, wherein said carrying SID script and script type of the operation information of the operation information of the script data includes script information parameter is used to carry the control terminal sends the media resource server MRS MRS media resource server to assist continue service script information; and the results of the script includes a script operation result data parameters for carrying execution result information reported by the media resource server to the MRS control terminal.
  11. 11.如权利要求10所述的方法,其特征在于,所述脚本结果数据参数和所述脚本信息数据参数采用抽象语法编码1的数据编解码格式。 11. The method according to claim 10, wherein said parameter data and the results of the script data parameter script information using a data codec format Abstract Syntax Notation 1.
  12. 12.如权利要求8所述的方法,其特征在于,所述脚本操作类型为脚本执行操作的脚本操作信息,进一步包括媒体资源服务器释放会话参数;所述脚本操作结果进一步包括最后脚本事件指示参数;所述向媒体资源服务器MRS发送携带有SID的脚本操作信息的方法为:所述控制端向媒体资源服务器MRS发送携带有SID、媒体资源服务器释放会话参数和脚本操作类型为脚本执行操作的脚本操作信息,通知媒体资源服务器MRS允许其主动释放与控制端的会话;当所述媒体资源服务器MRS执行完当前业务脚本的最后脚本事件,所述媒体资源服务器MRS向控制端发送携带有SID的脚本操作结果为:携带有SID和所述最后脚本事件指示参数的脚本操作结果;在所述媒体资源服务器MRS向控制端发送携带有SID和所述最后脚本事件指示参数的脚本操作结果后,该方法进一步包括:所述媒体资 12. The method according to claim 8, wherein said script operation type operation information script execution script operation, further comprising a media resource server to release the session parameter; the script further comprising a final operation result indicating parameter script event ; the MRS sends a media resource server carries SID information operating methods of a script for: transmitting said control terminal carries the SID MRS media resource server, media resource server to release the session script and script type of the parameter script execution operation operation information notification MRS media resource server and allow it to release the active session control terminal; and when the media resource server MRS been performed currently last event service script of the script, the media resource server transmits to the MRS control terminal carries SID script operation result: SID and carrying the last event scripts script operation result indicating parameter; message carrying the SID have scripts and the final result of the operation event indicating the parameters to the script control terminal in the media resource server MRS, the method further comprising: a media resource 源服务器MRS主动释放与控制端之间的会话。 MRS source server actively releases the session between the control terminal.
  13. 13.如权利要求5所述的方法,其特征在于,所述脚本操作信息携带在扩展对话参数dialog-param的会话初始化协议SIP消息的消息头中。 13. The method according to claim 5, wherein said script operation information is carried in the extended session parameters dialog-param Session Initiation Protocol SIP message in the message header.
  14. 14.如权利要求5所述的方法,其特征在于,所述脚本操作信息携带在扩展内容类型Content-type的SIP消息的消息体中。 14. The method according to claim 5, wherein said script operation information is carried in the extended Content-type of the content type of the message body of the SIP message.
  15. 15.如权利要求5所述的方法,其特征在于,在网际协议多媒体子系统IMS网络中,所述控制端为应用服务器AS或呼叫会话控制功能实体CSCF ;在下一代网络NGN中,所述控制端为应用服务器AS或软切换Softswitch设备。 15. The method according to claim 5, characterized in that, in an Internet Protocol Multimedia Subsystem IMS network, the control terminal of the application server AS or call session control function entity CSCF; next generation network NGN, the the control terminal of the application server aS or soft handover Softswitch device.
  16. 16. 一种媒体资源服务器MRS,其特征在于,该媒体资源服务器MRS包括业务脚本解析模块和存储单元;业务脚本解析模块,用于接收控制端发送的携带有脚本标识SID的脚本操作信息;根据接收到的SID从所述存储单元存储的对应关系中获取对应的业务脚本;并根据接收到的脚本操作信息中的脚本操作类型的指示,对所述对应的业务脚本进行操作控制;存储单元,用于存储SID、脚本类型与业务脚本的对应关系;并向所述业务脚本解析模块返回所述对应的业务脚本。 16. A media resource server MRS, wherein the MRS media resource server includes a service script analyzing module and a storage unit; service script analyzing module, for receiving control script sends the operation information carries identification SID in the script; according received SID obtained from the correspondence relationship stored in the storage unit corresponding service script; script according to the received operation information indicating an operation type of the script, the script corresponding service operation control; storage unit, for storing a SID, the correspondence relationship of the type of script and service script; service script to the script analyzing module returns the corresponding service. 3 3
  17. 17.如权利要求16所述的媒体资源服务器MRS,其特征在于,该媒体资源服务器MRS进一步包括脚本结果上报模块,用于接收所述业务脚本解析模块发送的脚本操作结果,并向控制端发送脚本操作结果;所述业务脚本解析模块进一步用于,在每执行完所述对应的业务脚本中的一个脚本事件后,向所述脚本结果上报模块发送携带有SID的脚本操作结果。 17. MRS media resource server according to claim 16, wherein the media resource server further comprises script MRS result reporting module, configured to receive the script operation result sent by the service script analysis module, transmitted to the control terminal script operation result; the service script analyzing module is further configured to, after the completion of a script event corresponding to each service script execution result report to the script module sends the operation result script carries the SID.
  18. 18.如权利要求16所述的媒体资源服务器MRS,其特征在于,该媒体资源服务器MRS进一步包括会话释放模块,用于接收业务脚本解析模块发送的释放会话命令,并向控制端发送释放会话消息;所述业务脚本解析模块进一步用于,在执行完所述对应的业务脚本后,向所述会话释放模块发送释放会话命令。 18. MRS media resource server according to claim 16, wherein the media resource server further comprises a session MRS releasing module configured to release the session command script analyzing module receives traffic transmission, and sends a message to release the session control terminal ; script analyzing the service module is further used for, after performing the corresponding service script, the session sends a release command to release the session module.
  19. 19. 一种业务脚本的控制系统,其特征在于,该系统包括控制端和媒体资源服务器MRS ;控制端,用于向媒体资源服务器MRS发送携带有脚本标识SID的脚本操作信息;媒体资源服务器MRS,存储有SID、脚本类型与业务脚本的对应关系,用于接收来自控制端的携带有SID的脚本操作信息,根据接收到的SID从自身存储的对应关系中获取对应的业务脚本;并根据接收到的脚本操作信息中的脚本操作类型的指示,对所述对应的业务脚本进行操作控制。 19. A control system for a service script, characterized in that the system comprises a control terminal and the media resource server MRS; a control terminal, configured to send the script identifies the script operation carries SID information to the media resource server MRS; MRS media resource server stores SID, corresponding relationship between the type of script and service script for receiving the control terminal carries the script operation information of the SID, obtain a corresponding service script from the correspondence relationship stored therein according to the received SID; based on the received Action script script operation type information indicating, operating control of the corresponding service script.
  20. 20.如权利要求19所述的系统,其特征在于,所述媒体资源服务器MRS包括业务脚本解析模块和存储单元;业务脚本解析模块,用于接收控制端发送的携带有SID的脚本操作信息;根据接收到的SID从所述存储单元存储的对应关系中获取对应的业务脚本;并根据接收到的脚本操作信息中的脚本操作类型的指示,对所述对应的业务脚本进行操作控制;存储单元,用于存储SID、脚本类型与业务脚本的对应关系;并向所述业务脚本解析模块返回所述对应的业务脚本。 20. The system according to claim 19, wherein the media resource server includes a service script MRS parsing module and a storage unit; service script analyzing module, for receiving control operation carries script information sent by the SID; according to the received SID acquired from the correspondence relation storage unit stores the corresponding service script; type of operation according to the script and script received operation information in the indication of the corresponding service operation control script; storage unit for storing the SID, the correspondence relationship of the type of script and service script; service script to the script analyzing module returns the corresponding service.
  21. 21.如权利要求20所述的系统,其特征在于,所述媒体资源服务器MRS进一步包括脚本结果上报模块,用于接收所述业务脚本解析模块发送的脚本操作结果,并向控制端发送脚本操作结果;所述业务脚本解析模块进一步用于,在每执行完所述对应的业务脚本中的一个脚本事件后,向控制端发送携带有SID的脚本操作结果。 21. The system according to claim 20, wherein the media resource server further comprises script MRS result reporting module, configured to receive the script operation result sent by the service script parsing module, and a control terminal transmits operation script results; script analyzing the service module is further configured to, after the completion of a script event corresponding to each of the service script executed, the control terminal transmits to the script operation result carries the SID.
  22. 22.如权利要求21所述的系统,其特征在于,所述媒体资源服务器MRS进一步包括会话释放模块,用于接收业务脚本解析模块发送的释放会话命令,并向控制端发送释放会话消息;所述业务脚本解析模块进一步用于,在执行完所述对应的业务脚本后,向所述会话释放模块发送释放会话命令。 22. The system according to claim 21, wherein the media resource server further comprises a session MRS releasing module configured to release the session command script analyzing module receives traffic transmission, and sends a message to release the session control terminal; the script analyzing said service module is further used for, after executing the service script corresponding to the session release command module sends a session release.
  23. 23.如权利要求20所述的系统,其特征在于,所述控制端与所述媒体资源服务器MRS采用会话初始化协议SIP消息进行信息交互;所述控制端将所述携带有SID的脚本操作信息设置在所述SIP消息的消息体或消息头发送给媒体资源服务器MRS;媒体资源服务器MRS将所述携带有SID的脚本操作结果携带在所述SIP消息的消息体或消息头发送给控制端。 23. The system according to claim 20, wherein said control terminal and the media resource server MRS using a Session Initiation Protocol SIP message information exchange; said control terminal of said operational information carries the script has a SID provided in the SIP message headers to the message or message MRS media resource server; MRS media resource server carries the result of the operation script is carried in the message SID message body or hair of the SIP message to the control terminal.
  24. 24.如权利要求19所述的系统,其特征在于,在网际协议多媒体子系统IMS网络中,所述控制端为应用服务器AS或呼叫会话控制功能实体CSCF ;在下一代网络NGN中,所述控制端为应用服务器AS或软切换Softswitch设备。 24. The system according to claim 19, characterized in that, in an Internet Protocol Multimedia Subsystem IMS network, the control terminal of the application server AS or call session control function entity CSCF; next generation network NGN, the the control terminal of the application server aS or soft handover Softswitch device. 5 5
CN 200710000392 2007-01-25 2007-01-25 Service scenario obtaining, control method and its control system and medium resource server CN101005502B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200710000392 CN101005502B (en) 2007-01-25 2007-01-25 Service scenario obtaining, control method and its control system and medium resource server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200710000392 CN101005502B (en) 2007-01-25 2007-01-25 Service scenario obtaining, control method and its control system and medium resource server

Publications (2)

Publication Number Publication Date
CN101005502A CN101005502A (en) 2007-07-25
CN101005502B true CN101005502B (en) 2010-12-01

Family

ID=38704364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710000392 CN101005502B (en) 2007-01-25 2007-01-25 Service scenario obtaining, control method and its control system and medium resource server

Country Status (1)

Country Link
CN (1) CN101005502B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729491B (en) * 2008-10-17 2014-04-16 华为技术有限公司 Method, device and system for enhancing application reliability of script-based business
CN102385527A (en) * 2010-09-01 2012-03-21 中兴通讯股份有限公司 Device and method for improving execution efficiency of service scripts
CN102270132B (en) * 2011-07-13 2014-03-12 中国人民解放军海军计算技术研究所 Control method for script action in Linux operating system
CN106685965B (en) * 2016-12-29 2019-07-02 河北远东通信系统工程有限公司 A kind of flexible CENTREX business realizing system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1738256A (en) 2004-08-18 2006-02-22 华为技术有限公司 Method for operating media resource in next generation network
CN1756200A (en) 2004-09-28 2006-04-05 中兴通讯股份有限公司 Integrated tester and integrated testing method for media server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1738256A (en) 2004-08-18 2006-02-22 华为技术有限公司 Method for operating media resource in next generation network
CN1756200A (en) 2004-09-28 2006-04-05 中兴通讯股份有限公司 Integrated tester and integrated testing method for media server

Also Published As

Publication number Publication date
CN101005502A (en) 2007-07-25

Similar Documents

Publication Publication Date Title
US7885208B2 (en) IP-based services for circuit-switched networks
CN101507211B (en) Client controlled dynamic call forwarding
CN101617302B (en) Application service invocation
CN101874394B (en) Establishing a multimedia communications session
CN101009572B (en) IMS budget control for media change in the IMS session period
US8576838B2 (en) Method of setting up a call-back
US6961563B2 (en) Optimal gateway discovery while roaming
CN101433036B (en) Method and system of forwarding capability information of user equipment in internet protocol multimedia subsystem network
US20060155814A1 (en) Media client architecture for networked communication devices
US20070121591A1 (en) Internet protocol telephony voice/video message deposit and retrieval
US7693270B2 (en) Method and network for providing service blending to a subscriber
CN1236593C (en) The network system and a network control method
US20070140299A1 (en) Method and network for providing service blending to a subscriber
CN101026616B (en) Multimedia subsystem based interactive media session establishing system and method
US7953068B2 (en) Exchange protocol for combinational multimedia services
US9531817B2 (en) Technique for providing interoperability between different protocol domains
CN101960822B (en) Sip-http correlators
US20070280226A1 (en) Servlet model for media rich applications
US8971344B2 (en) Terminal capabilities set exchange between heterogeneous endpoints
CN1957578B (en) Communications method and apparatus, database information retrieval method and apparatus
JP2008543135A (en) Ip multimedia subsystem (ims) definitive call forwarding
CN102100050A (en) Enhancement to sip forking for improved user services
CN101237333B (en) An universal service platform for supporting multiple services based on multi-network fusion
CN1890931A (en) System, apparatus, and method for establishing circuit-switched communications via packet switched network signaling
CN102326372A (en) Web based access to video associated with calls

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted