CN101997856B - Signaling message interaction method and application server - Google Patents
Signaling message interaction method and application server Download PDFInfo
- Publication number
- CN101997856B CN101997856B CN200910167573.2A CN200910167573A CN101997856B CN 101997856 B CN101997856 B CN 101997856B CN 200910167573 A CN200910167573 A CN 200910167573A CN 101997856 B CN101997856 B CN 101997856B
- Authority
- CN
- China
- Prior art keywords
- media
- application server
- session
- message
- type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Telephonic Communication Services (AREA)
Abstract
Description
技术领域 technical field
本发明涉及通信领域,具体而言,涉及一种信令消息的交互方法及应用服务器。The present invention relates to the communication field, in particular, to a method for interacting with signaling messages and an application server.
背景技术 Background technique
IP多媒体子系统(IP Multimedia Subsystem,简称为IMS)是由第三代合作伙伴计划(Third Generation Partner Ship Project,简称为3GPP)定义的3G核心网向全IP网络演进的网络架构,其在分组域之上叠加由业务控制设备、用户数据库、网络互通设备等组成的通信系统,用于提供IP多媒体业务。IP Multimedia Subsystem (IP Multimedia Subsystem, referred to as IMS) is a network architecture defined by the Third Generation Partner Ship Project (3GPP) from the 3G core network to the all-IP network. A communication system composed of service control equipment, user database, and network interworking equipment is superimposed on it to provide IP multimedia services.
在IMS体系中,控制层和业务层是分离的,具体而言:控制层不提供具体业务,只负责向业务层提供必要的触发、路由和计费等控制功能。控制层的控制功能是由呼叫会话控制功能(Call SessionControl Function,简称为CSCF)完成的。CSCF分为代理呼叫会话控制功能(Proxy Call Session Control Function,简称为P-CSCF)、查询呼叫会话控制功能(Interrogating Call Session Control Function,简称为I-CSCF)和服务呼叫会话控制功能(Serving Call SessionControl Function,简称为S-CSCF)三种类型。业务层由一系列应用服务器(Application Server,简称为AS)组成,能提供具体业务服务,AS可以是独立的实体,也可以存在于S-CSCF中。S-CSCF根据用户的签约信息控制业务触发,调用AS上的业务以实现具体业务功能。AS和S-CSCF可以统称为服务设备(Server Equipment,简称为SE)。会话中的端到端设备称为用户设备(User Equipment,简称为UE),负责与使用者的交互。在IMS中各功能实体之间使用初始会话协议(Session Initiation Protocol,简称为SIP)进行通讯。In the IMS system, the control layer and the service layer are separated. Specifically, the control layer does not provide specific services, but is only responsible for providing the necessary control functions such as triggering, routing, and charging to the service layer. The control function of the control layer is completed by a call session control function (Call Session Control Function, referred to as CSCF). CSCF is divided into Proxy Call Session Control Function (P-CSCF for short), Interrogating Call Session Control Function (Interrogating Call Session Control Function, I-CSCF for short) and Serving Call Session Control Function (Serving Call Session Control Function). Function, referred to as S-CSCF) three types. The business layer consists of a series of Application Servers (AS for short), which can provide specific business services. The AS can be an independent entity or exist in the S-CSCF. The S-CSCF controls service triggering according to the user's subscription information, and invokes services on the AS to realize specific service functions. The AS and the S-CSCF may be collectively referred to as Server Equipment (SE for short). The end-to-end device in the session is called User Equipment (UE for short), and is responsible for interacting with the user. Each functional entity in the IMS uses the Session Initiation Protocol (SIP for short) for communication.
SIP是应用层的信令控制协议,用于创建、修改和释放一个或多个参与者的会话。为了描述消息内容的负载情况和特点,SIP使用Internet的会话描述协议(Session Description Protocol,简称为SDP)来描述终端设备的特点。SDP协议能够在媒体会话中传递媒体流信息,允许会话描述的接收者参与会话。在媒体会话中,可分为早期会话(Early Session)和正式会话(Regular Session,简称为Session),使用的媒体分别为早媒体(Early Media),例如回铃音、彩铃音和等待音等,和通话媒体(Regular Media)。SIP is a signaling control protocol at the application layer for creating, modifying and releasing sessions of one or more participants. In order to describe the load and characteristics of the message content, SIP uses the Internet Session Description Protocol (SDP) to describe the characteristics of the terminal device. The SDP protocol can transfer media flow information in a media session, allowing the receiver of the session description to participate in the session. In the media session, it can be divided into early session (Early Session) and formal session (Regular Session, referred to as Session), and the media used are early media (Early Media), such as ring back tone, ring tone and waiting tone, etc. and call media (Regular Media).
以下具体说明Early Media的实现方式,RFC3960针对EarlyMedia定义了两种实现方式,分别为Gateway模式以及ApplicationServer模式,具体而言:The following describes the implementation of Early Media in detail. RFC3960 defines two implementations for Early Media, namely the Gateway mode and the ApplicationServer mode. Specifically:
Gateway模式通过在最终响应之前建立Early Session来完成Early Media的交互,通常媒体交互可以通过临时可靠响应PRACK以及UPDATE来实现,但是,Gateway模式在Forking的时候可能存在Media Clipping,因此,为了达到传统的PSTN网络的效果,主叫端需要有复杂的本地放音策略。除了主叫端不能区分出Early以及Regular媒体的情形,应优选采用Application server模式。The Gateway mode completes the Early Media interaction by establishing an Early Session before the final response. Usually, the media interaction can be achieved by temporarily and reliably responding to PRACK and UPDATE. However, the Gateway mode may have Media Clipping during Forking. Therefore, in order to achieve the traditional For the effect of the PSTN network, the calling end needs to have a complex local playback strategy. Except for the case where the calling end cannot distinguish between Early and Regular media, the Application server mode should be preferred.
Application Server模式通过在用户代理服务器端(User AgentServer,简称为UAS)和用户代理客户端(User Agent Client,简称为UAC)之间建立与Session会话分离的Early Session的会话来完成媒体交互,Early Session与Session分别进行媒体协商,在Session媒体到达时切换到Session媒体,或者,在信令上收到200OK时切换到Session媒体,能够保证不丢失Session媒体。Application Server模式是在同一个Dialog条件下进行Early Session和Session媒体协商,从终端侧的角度来说,是在Early Session和Session媒体端口上分别进行协商和资源预留,从AS侧的角度来说,在同一个Dialog下则可以通过使用不同事务信令消息分别携带两段媒体进行传送和协商。但是如果在SIP协议栈不支持并行多事务,即SIP协议栈在同一时间内只能处理一个事务的情况下,携带两段媒体的信令消息的交互容易产生冲突而导致媒体协商异常。The Application Server mode completes media interaction by establishing an Early Session session separated from the Session session between the User Agent Server (UAS for short) and the User Agent Client (UAC for short). Carry out media negotiation with the Session separately, switch to the Session media when the Session media arrives, or switch to the Session media when receiving 200 OK on the signaling, so as to ensure that the Session media will not be lost. Application Server mode is to carry out Early Session and Session media negotiation under the same Dialog condition. From the perspective of the terminal side, negotiation and resource reservation are performed on the Early Session and Session media ports respectively. From the perspective of the AS side , under the same Dialog, different transaction signaling messages can be used to carry two pieces of media respectively for transmission and negotiation. However, if the SIP protocol stack does not support parallel multi-transactions, that is, the SIP protocol stack can only process one transaction at the same time, the interaction of signaling messages carrying two pieces of media is prone to conflicts, resulting in media negotiation exceptions.
综上所述,针对相关技术中在SIP协议栈不支持并行多事务的情况下携带两段媒体的信令消息的交互容易产生冲突而导致媒体协商异常的问题,目前尚未提出有效的解决方案。To sum up, in the related art, when the SIP protocol stack does not support parallel multi-transactions, the interaction of signaling messages carrying two pieces of media is likely to cause conflicts and lead to abnormal media negotiation, and no effective solution has been proposed yet.
发明内容 Contents of the invention
针对相关技术中存在的在SIP协议栈不支持并行多事务的情况下携带两段媒体的信令消息的交互容易产生冲突而导致媒体协商异常的问题而提出本发明,为此,本发明的主要目的在于提供一种信令消息的交互方法及应用服务器,以解决上述问题至少之一。The present invention is proposed aiming at the problem existing in the related art that the interaction of signaling messages carrying two pieces of media is prone to conflict and lead to abnormal media negotiation when the SIP protocol stack does not support parallel multi-transactions. The purpose is to provide a signaling message interaction method and an application server to solve at least one of the above problems.
为了实现上述目的,根据本发明的一个方面,提供了一种信令消息的交互方法。In order to achieve the above object, according to one aspect of the present invention, a signaling message interaction method is provided.
根据本发明的信令消息的交互方法包括:应用服务器接收来自主叫的第一消息和来自被叫的第二消息,其中,第一消息携带有发送至被叫的第一媒体,第二消息携带有发送至主叫的第二媒体,第一媒体不同于第二媒体;应用服务器判断第一媒体的类型;根据第一媒体的类型对第一媒体进行处理。The signaling message interaction method according to the present invention includes: the application server receives a first message from the calling party and a second message from the called party, wherein the first message carries the first media sent to the called party, and the second message It carries the second media sent to the caller, and the first media is different from the second media; the application server judges the type of the first media; and processes the first media according to the type of the first media.
优选地,应用服务器判断第一媒体的类型包括:判断第一媒体为应答类媒体或为提供类媒体。Preferably, the application server judging the type of the first media includes: judging that the first media is response-type media or providing-type media.
优选地,根据第一媒体的类型对第一媒体进行处理包括:在判断出第一媒体为应答类媒体的情况下,应用服务器缓存第一媒体;或者在判断出第一媒体为提供类媒体的情况下,应用服务器回退第一媒体。Preferably, processing the first media according to the type of the first media includes: if it is judged that the first media is response-type media, the application server caches the first media; In this case, the application server returns the first media.
优选地,应用服务器回退第一媒体包括:应用服务器向第一媒体发送携带有指示等待时间的信息的回退消息,其中,等待时间为主叫被允许再次向应用服务器发起信令请求消息的最短等待时间。Preferably, the application server rolling back the first media includes: the application server sending a rollback message carrying information indicating a waiting time to the first medium, wherein the waiting time is the time when the calling party is allowed to initiate a signaling request message to the application server again Minimum wait time.
优选地,根据第一媒体的类型对第一媒体进行处理之后,上述方法还包括:应用服务器向主叫发送携带有第二媒体的消息。Preferably, after the first media is processed according to the type of the first media, the above method further includes: the application server sends a message carrying the second media to the caller.
优选地,在第一媒体为应答类媒体的情况下,在应用服务器向主叫发送携带有第二媒体的消息之后,上述方法还包括:应用服务器向被叫发送携带有第一媒体的消息。Preferably, in the case that the first media is response media, after the application server sends the message carrying the second media to the calling party, the above method further includes: the application server sends the message carrying the first media to the called party.
优选地,第一媒体为正式会话媒体,第二媒体为早期会话媒体;或者,第一媒体为早期会话媒体,第二媒体为正式会话媒体。Preferably, the first media is formal conversation media, and the second media is early conversation media; or, the first media is early conversation media, and the second media is formal conversation media.
为了实现上述目的,根据本发明的另一个方面,提供了一种应用服务器。In order to achieve the above purpose, according to another aspect of the present invention, an application server is provided.
根据本发明的应用服务器包括:接收模块,用于接收来自主叫的第一消息和来自被叫的第二消息,其中,第一消息携带有发送至被叫的第一媒体,第二消息携带有发送至主叫的第二媒体,第一媒体不同于第二媒体;判断模块,用于判断第一媒体的类型;处理模块,用于根据第一媒体的类型对第一媒体进行处理。The application server according to the present invention includes: a receiving module, configured to receive a first message from the calling party and a second message from the called party, wherein the first message carries the first media sent to the called party, and the second message carries There is a second media sent to the caller, and the first media is different from the second media; a judging module is used to judge the type of the first media; a processing module is used to process the first media according to the type of the first media.
优选地,处理模块包括:第一处理子模块,用于在第一媒体为应答类媒体的情况下缓存第一媒体;第二处理子模块,用于在第一媒体为提供类媒体的情况下回退第一媒体。Preferably, the processing module includes: a first processing submodule, configured to cache the first media when the first media is a response type of media; a second processing submodule, configured to cache the first media when the first media is a provision type of media Fallback to the first medium.
优选地,应用服务器还包括:发送模块,用于处理模块对第一媒体进行处理之后,向主叫发送携带有第二媒体的消息。Preferably, the application server further includes: a sending module, configured to send a message carrying the second media to the caller after the processing module processes the first media.
通过本发明,采用对来自主叫的早期会话/正式会话媒体进行缓存或回退,解决了在SIP协议栈不支持并行多事务的情况下携带两段媒体的信令消息的交互容易产生冲突而导致媒体协商异常的问题,能够在早期会话/正式会话媒体同时进行传送和协商的情况下防止媒体协商异常的发生。Through the present invention, the early session/formal session media from the calling party is cached or rolled back, which solves the problem that the interaction of signaling messages carrying two pieces of media is prone to conflict when the SIP protocol stack does not support parallel multi-transactions The problem of causing media negotiation exceptions can prevent the occurrence of media negotiation exceptions when the early session/formal session media is transmitted and negotiated at the same time.
附图说明 Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:
图1是根据本发明实施例的信令消息的交互方法的流程图;FIG. 1 is a flowchart of a signaling message interaction method according to an embodiment of the present invention;
图2是根据本发明实例的信令消息的交互方法的应用场景示意图;FIG. 2 is a schematic diagram of an application scenario of a signaling message interaction method according to an example of the present invention;
图3是根据本发明实例的信令消息的交互方法的信令流程图;FIG. 3 is a signaling flow chart of a signaling message interaction method according to an example of the present invention;
图4为根据本发明实施例的应用服务器的结构框图;FIG. 4 is a structural block diagram of an application server according to an embodiment of the present invention;
图5为根据本发明实施例的应用服务器处理模块的结构框图。Fig. 5 is a structural block diagram of an application server processing module according to an embodiment of the present invention.
具体实施方式 Detailed ways
功能概述Functional Overview
考虑到现有技术中存在的问题,本发明实施例提供了一种信令消息的交互方案,用于在AS侧对于终端进行媒体协商的信令进行控制从而解决协商中的冲突异常,该方案的处理原则如下:应用服务器接收来自主叫的第一消息和来自被叫的第二消息,其中,第一消息携带有发送至被叫的第一媒体,第二消息携带有发送至主叫的第二媒体,第一媒体和第二媒体不相同;应用服务器判断第一媒体的类型;根据第一媒体的类型对第一媒体进行处理。该方案根据是否存在还需发送给主叫的Session/Early Session被叫媒体和主叫上送的Early Session/Session主叫媒体进行综合决策判断,并进行控制,能够使前转AS在使用Application Server模式进行Early Session和Session媒体分别进行协商时对于信令进行控制从而避免信令冲突。Considering the problems existing in the prior art, the embodiment of the present invention provides a signaling message interaction scheme, which is used to control the signaling of the media negotiation of the terminal on the AS side so as to solve the abnormal conflict in the negotiation. The processing principle is as follows: the application server receives the first message from the calling party and the second message from the called party, wherein the first message carries the first media sent to the called party, and the second message carries the media sent to the calling party The second media is different from the first media; the application server judges the type of the first media; and processes the first media according to the type of the first media. This solution makes comprehensive decisions and judgments based on whether there are Session/Early Session called media that need to be sent to the calling party and the Early Session/Session calling media sent by the calling party, and controls, so that the forwarding AS can use the Application Server In this mode, the Early Session and Session media are negotiated separately to control signaling to avoid signaling conflicts.
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
方法实施例method embodiment
根据本发明的实施例,提供了一种信令消息的交互方法。图1是根据本发明实施例的信令消息的交互方法的流程图,如图1所示,该方法包括如下的步骤S102至步骤S106:According to an embodiment of the present invention, a signaling message interaction method is provided. FIG. 1 is a flow chart of a signaling message interaction method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps S102 to S106:
步骤S102,应用服务器接收来自主叫的第一消息和来自被叫的第二消息,其中,第一消息携带有发送至被叫的第一媒体,第二消息携带有发送至主叫的第二媒体,第一媒体和第二媒体不相同,具体而言,第一媒体为正式会话媒体,第二媒体为早期会话媒体,或者第一媒体为早期会话媒体,第二媒体为正式会话媒体,例如,在实际应用中,AS判断存在还需发送给主叫的Session/Early Session被叫媒体,同时判断存在主叫上送的Early Session/Session主叫媒体。在实际应用中,上述第一消息及第二消息可以为SIP消息,即,上述第一消息及第二消息可以具体为第一SIP消息及第二SIP消息,也可以为其他能够携带上述媒体的消息,本发明实施例对此不作限定。Step S102, the application server receives a first message from the calling party and a second message from the called party, wherein the first message carries the first media sent to the called party, and the second message carries the second media sent to the calling party. The media, the first media and the second media are not the same, specifically, the first media is the formal session media and the second media is the early session media, or the first media is the early session media and the second media is the formal session media, for example , in practical applications, the AS judges that there is a Session/Early Session called media that needs to be sent to the calling party, and at the same time judges that there is an Early Session/Session calling media sent by the calling party. In practical applications, the above-mentioned first message and the second message may be SIP messages, that is, the above-mentioned first message and the second message may specifically be the first SIP message and the second SIP message, or other SIP messages capable of carrying the above-mentioned media. message, which is not limited in this embodiment of the present invention.
步骤S104,应用服务器判断第一媒体的类型,其中,第一媒体的类型可以为应答类媒体或提供类媒体,即AS判断主叫上送的Early Session/Session主叫媒体是Answer媒体或是Offer媒体。Step S104, the application server judges the type of the first media, wherein the type of the first media can be answer media or offer media, that is, the AS judges whether the Early Session/Session calling media sent by the caller is Answer media or Offer media.
步骤S106,根据第一媒体的类型对第一媒体进行处理,具体而言,在应用服务器判断第一媒体为应答类媒体的情况下,应用服务器缓存第一媒体;或者在应用服务器判断第一媒体的类型为提供类媒体的情况下,应用服务器回退第一媒体,应用服务器回退第一媒体具体为:应用服务器向第一媒体发送携带有指示等待时间的信息的回退消息,其中,等待时间为主叫被允许再次向应用服务器发起信令请求消息的最短等待时间。根据第一媒体的类型对第一媒体进行处理之后,应用服务器向主叫发送携带有第二媒体的消息。在实际应用中,若AS判断主叫上送的Early Session/Session主叫媒体是Answer媒体,则缓存此Answer主叫媒体,接着通过合适的SIP事务信令消息携带Session/Early Session被叫媒体发送给主叫,达到同时分别协商两段媒体的要求,或者,若AS判断主叫上送的EarlySession/Session媒体是Offer媒体,则发送500消息给主叫,接着通过合适的SIP事务信令消息携带Session/Early Session被叫媒体发送给主叫,达到同时分别协商两段媒体的要求。上述500消息包含Retry-After头部,时间值为0到10S的可选值,在Retry-After字段指定的时间间隔内,主叫终端不应当传送任何其他的信令请求到该应用服务器AS;当Retry-After头部指示的时间到达时,主叫终端重新发送携带媒体的相应信令请求到AS,此时信令的发送取决于终端侧的决策。Step S106, process the first media according to the type of the first media. Specifically, if the application server judges that the first media is response media, the application server caches the first media; or when the application server judges that the first media is In the case where the type of is the provided media, the application server rolls back the first media, and the application server rolls back the first media specifically: the application server sends a rollback message carrying information indicating the waiting time to the first media, wherein the waiting The time is the minimum waiting time for the caller to be allowed to initiate a signaling request message to the application server again. After processing the first media according to the type of the first media, the application server sends a message carrying the second media to the caller. In practical applications, if the AS judges that the Early Session/Session calling media sent by the calling party is Answer media, it will cache the Answer calling media, and then send the Session/Early Session called media through an appropriate SIP transaction signaling message To the caller, to meet the requirements of negotiating two pieces of media at the same time, or, if the AS judges that the EarlySession/Session media sent by the caller is Offer media, it will send a 500 message to the caller, and then carry it through the appropriate SIP transaction signaling message Session/Early Session The called media is sent to the calling party to meet the requirement of negotiating two media at the same time. The above 500 message contains the Retry-After header, and the time value is an optional value from 0 to 10S. During the time interval specified by the Retry-After field, the calling terminal should not send any other signaling requests to the application server AS; When the time indicated by the Retry-After header arrives, the calling terminal resends the corresponding signaling request carrying the media to the AS, and the sending of the signaling at this time depends on the decision of the terminal side.
进一步地,在第一媒体的类型为应答类媒体的情况下,在应用服务器向主叫发送携带有第二媒体的初始会话协议信令消息之后,应用服务器向被叫发送携带有第一媒体的消息。Further, when the type of the first media is response media, after the application server sends the initial session protocol signaling message carrying the second media to the calling party, the application server sends the message carrying the first media to the called party. information.
下面将结合实例对本发明实施例的实现过程进行详细描述。The implementation process of the embodiment of the present invention will be described in detail below with reference to examples.
图2是根据本发明实例的信令消息的交互方法的应用场景示意图,图3是根据本发明实例的信令消息的交互方法的信令流程图,具体为非并行多事务SIP协议栈情况下使用Application Server模式完成呼叫的过程。下面将以图2所示的场景为基础并结合图3对无应答前转业务的具体实例进行描述,并以此为例说明本发明实施例提供的方法。需要说明的是,图3中省略用户设备B、用户设备C的前转AS和相关消息。Fig. 2 is a schematic diagram of the application scenario of the interaction method of signaling messages according to the example of the present invention, and Fig. 3 is a signaling flowchart of the interaction method of signaling messages according to the example of the present invention, specifically in the case of a non-parallel multi-transaction SIP protocol stack Use the Application Server pattern to complete the call process. Based on the scenario shown in FIG. 2 and in combination with FIG. 3 , a specific example of the forwarding on no answer service will be described below, and the method provided by the embodiment of the present invention will be described by taking this as an example. It should be noted that, in FIG. 3 , forwarding ASs of user equipment B and user equipment C and related messages are omitted.
1.用户设备A呼叫B,向其CSCF发起会话请求(session);1. User equipment A calls B and initiates a session request (session) to its CSCF;
2.用户设备A的CSCF向用于B的CSCF发起会话请求(session);2. The CSCF of user equipment A initiates a session request (session) to the CSCF for B;
3.用户设备B的CSCF向前转AS发起会话请求(session);3. The CSCF of user equipment B initiates a session request (session) to the forwarding AS;
4.前转AS向用户设备B的CSCF发起会话请求(session);4. The forwarding AS initiates a session request (session) to the CSCF of the user equipment B;
5.用户设备B的CSCF向前转AS发起会话180响应(earlysession);5. The CSCF of user equipment B initiates a session 180 response (earlysession) to the forward AS;
6.前转AS向用户设备B的CSCF发起会话180响应(earlysession);6. The forwarding AS initiates a session 180 response (earlysession) to the CSCF of user equipment B;
7.用户设备B的CSCF向用户设备A的CSCF发起会话180响应(early session);7. The CSCF of user equipment B initiates a session 180 response (early session) to the CSCF of user equipment A;
8.用户设备A的CSCF向用户设备A发起会话180响应(earlysession);8. The CSCF of user equipment A initiates a session 180 response (earlysession) to user equipment A;
9.用户设备A向用户设备A的CSCF发起会话prack请求(earlysession);9. User equipment A initiates a session prack request (earlysession) to the CSCF of user equipment A;
10.用户设备A的CSCF向用户设备B的CSCF发起会话prack请求(early session);10. The CSCF of user equipment A initiates a session prack request (early session) to the CSCF of user equipment B;
11.用户设备B的CSCF向前转AS发起会话prack请求(earlysession);11. The CSCF of user equipment B initiates a session prack request (earlysession) to the forward AS;
12.前转AS向用户设备B的CSCF发起会话prack请求(earlysession);12. The forwarding AS initiates a session prack request (earlysession) to the CSCF of user equipment B;
13.前转AS无应答超时后,向用户设备B的CSCF发起会话请求(session),前转到C;13. After the forwarding AS does not respond overtime, initiate a session request (session) to the CSCF of user equipment B, and forward to C;
14.用户设备B的CSCF向用户设备C的CSCF发起会话请求(session);14. The CSCF of user equipment B initiates a session request (session) to the CSCF of user equipment C;
15.用户设备C的CSCF最终向用户设备C发起会话请求(session);15. The CSCF of the user equipment C finally initiates a session request (session) to the user equipment C;
16.用户设备C向用户设备C的CSCF发起会话183响应(earlysession、session);16. The user equipment C initiates a session 183 response (earlysession, session) to the CSCF of the user equipment C;
17.用户设备C的CSCF向用户设备B的CSCF发起会话183响应(early session、session);17. The CSCF of user equipment C initiates a session 183 response (early session, session) to the CSCF of user equipment B;
18.用户设备B的CSCF向用户设备B的前转AS发起会话183响应(early session、session);18. The CSCF of user equipment B initiates a session 183 response (early session, session) to the forwarding AS of user equipment B;
19.Early-Session和Session分别进行媒体协商后,用户设备B的前转AS向用户设备B的CSCF发起会话update请求(earlysession);19. After Early-Session and Session perform media negotiation respectively, the forwarding AS of user equipment B initiates a session update request (earlysession) to the CSCF of user equipment B;
20.用户设备B的CSCF向用户设备A的CSCF发起会话update请求(early session),前转AS(B)通过会话请求消息转发Early-Session的Offer媒体到A;20. The CSCF of user equipment B initiates a session update request (early session) to the CSCF of user equipment A, and the forwarding AS (B) forwards the Early-Session Offer media to A through the session request message;
21.用户设备A的CSCF向用户设备A发起会话update请求(early session);21. The CSCF of user equipment A initiates a session update request (early session) to user equipment A;
22.用户设备A向用户设备A的CSCF发起会话200OK响应(early session);22. User equipment A initiates a session 200OK response (early session) to the CSCF of user equipment A;
23.用户设备A的CSCF向用户设备A发起会话200OK响应(early session);23. The CSCF of user equipment A initiates a session 200OK response (early session) to user equipment A;
24.用户设备B的CSCF向用户设备B的前转AS发起会话200OK响应(early session),即,发起Early-Session的Answer响应消息到前转AS(B),AS缓存此主叫Answer媒体;24. The CSCF of user equipment B initiates a session 200OK response (early session) to the forwarding AS of user equipment B, that is, initiates an Answer response message of the Early-Session to the forwarding AS (B), and the AS caches the calling Answer media;
25.用户设备A向用户设备A的CSCF发起会话update请求(early session);25. User equipment A initiates a session update request (early session) to the CSCF of user equipment A;
26.用户设备A的CSCF向用户设备B的CSCF发起会话update请求(early session);26. The CSCF of user equipment A initiates a session update request (early session) to the CSCF of user equipment B;
27.用户设备B的CSCF向前转AS发起会话update请求(earlysession),具体而言,发起Early-Session的Offer请求消息到前转AS(B);27. The CSCF of user equipment B initiates a session update request (earlysession) to the forwarding AS, specifically, initiates an Early-Session Offer request message to the forwarding AS (B);
28.用户设备B的前转AS向用户设备B的CSCF发起500(Retry-After)消息回退上述Offer请求消息;28. The forwarding AS of user equipment B sends a 500 (Retry-After) message to the CSCF of user equipment B to roll back the above Offer request message;
29.用户设备B的CSCF向用户设备A的CSCF发起500(Retry-After)消息;29. The CSCF of user equipment B initiates a 500 (Retry-After) message to the CSCF of user equipment A;
30.用户设备A的CSCF向用户设备A发起500(Retry-After)消息;30. The CSCF of user equipment A initiates a 500 (Retry-After) message to user equipment A;
31.用户设备B的前转AS向用户设备B的CSCF发起会话183响应(session);31. The forwarding AS of user equipment B initiates a session 183 response (session) to the CSCF of user equipment B;
32.用户设备B的CSCF向用户设备A的CSCF发起会话183响应(session);32. The CSCF of user equipment B initiates a session 183 response (session) to the CSCF of user equipment A;
33.用户设备A的CSCF向用户设备A发起会话183响应(session)。33. The CSCF of user equipment A initiates a session 183 response (session) to user equipment A.
上述步骤31至步骤33为用户设备B的前转AS通过会话响应消息转发Session的Answer媒体到用户设备A。The above step 31 to step 33 is that the forwarding AS of the user equipment B forwards the Answer media of the Session to the user equipment A through the session response message.
而且,主叫终端A在Retry-After时间间隔内,UE不发送请求到原先的服务器端。Moreover, within the Retry-After time interval of the calling terminal A, the UE does not send a request to the original server.
装置实施例Device embodiment
根据本发明的实施例,提供了一种应用服务器。图4为根据本发明实施例的应用服务器的结构框图。如图4所示,上述应用服务器包括:接收模块42,用于接收来自主叫的第一消息和来自被叫的第二消息,其中,第一消息携带有发送至被叫的第一媒体,第二消息携带有发送至主叫的第二媒体,第一媒体不同于第二媒体;判断模块44,连接于接收模块42,用于判断第一媒体的类型;处理模块46,连接于判断模块44,用于根据第一媒体的类型对第一媒体进行处理。According to an embodiment of the present invention, an application server is provided. Fig. 4 is a structural block diagram of an application server according to an embodiment of the present invention. As shown in FIG. 4, the above-mentioned application server includes: a receiving module 42, configured to receive a first message from the calling party and a second message from the called party, wherein the first message carries the first media sent to the called party, The second message carries the second media sent to the caller, and the first media is different from the second media; the judging module 44 is connected to the receiving module 42 for judging the type of the first media; the processing module 46 is connected to the judging module 44, configured to process the first media according to the type of the first media.
图5为根据本发明实施例的应用服务器处理模块的结构框图。如图5所示,处理模块包括:第一处理子模块52,用于在第一媒体为应答类媒体的情况下缓存第一媒体;第二处理子模块54,用于在第一媒体为提供类媒体的情况下回退第一媒体。Fig. 5 is a structural block diagram of an application server processing module according to an embodiment of the present invention. As shown in Figure 5, the processing module includes: a first processing sub-module 52, which is used to buffer the first media when the first media is a response type media; a second processing sub-module 54, which is used to provide Fallback to first media in case of class media.
优选地,应用服务器还可以包括:发送模块,用于处理模块对第一媒体进行处理之后,向主叫发送携带有第二媒体的消息。Preferably, the application server may further include: a sending module, configured to send a message carrying the second media to the caller after the processing module processes the first media.
本发明实施例提供的信令消息的交互方案能够在SIP协议栈不支持并行多事务条件下,同时使用Application Server模式的媒体协商方法,在早期会话/正式会话媒体同时进行传送和协商的情况下可以防止媒体协商异常的发生。The signaling message interaction solution provided by the embodiment of the present invention can use the media negotiation method of the Application Server mode at the same time under the condition that the SIP protocol stack does not support parallel multi-transactions, and in the case of simultaneous transmission and negotiation of early session/formal session media It can prevent the occurrence of abnormal media negotiation.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Optionally, they can be implemented with program codes executable by a computing device, so that they can be stored in a storage device and executed by a computing device, or they can be made into individual integrated circuit modules, or they can be integrated into Multiple modules or steps are fabricated into a single integrated circuit module to realize. As such, the present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910167573.2A CN101997856B (en) | 2009-08-26 | 2009-08-26 | Signaling message interaction method and application server |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910167573.2A CN101997856B (en) | 2009-08-26 | 2009-08-26 | Signaling message interaction method and application server |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101997856A CN101997856A (en) | 2011-03-30 |
| CN101997856B true CN101997856B (en) | 2014-12-10 |
Family
ID=43787444
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200910167573.2A Expired - Fee Related CN101997856B (en) | 2009-08-26 | 2009-08-26 | Signaling message interaction method and application server |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101997856B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1691817A (en) * | 2004-04-30 | 2005-11-02 | 华为技术有限公司 | Session establishing method |
| CN101242564A (en) * | 2007-02-05 | 2008-08-13 | 田蕊 | Broadcasting and receiving method for mobile wireless self-organized network message and applied terminal node |
| CN101340384A (en) * | 2008-08-12 | 2009-01-07 | 中兴通讯股份有限公司 | Method for Realizing One Number Resonance Service and Application Server Used |
| CN101448221A (en) * | 2008-04-02 | 2009-06-03 | 中兴通讯股份有限公司 | Method for call state supporting early-session |
-
2009
- 2009-08-26 CN CN200910167573.2A patent/CN101997856B/en not_active Expired - Fee Related
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1691817A (en) * | 2004-04-30 | 2005-11-02 | 华为技术有限公司 | Session establishing method |
| CN101242564A (en) * | 2007-02-05 | 2008-08-13 | 田蕊 | Broadcasting and receiving method for mobile wireless self-organized network message and applied terminal node |
| CN101448221A (en) * | 2008-04-02 | 2009-06-03 | 中兴通讯股份有限公司 | Method for call state supporting early-session |
| CN101340384A (en) * | 2008-08-12 | 2009-01-07 | 中兴通讯股份有限公司 | Method for Realizing One Number Resonance Service and Application Server Used |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101997856A (en) | 2011-03-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5606074B2 (en) | Dynamic service trigger in communication networks | |
| US8774178B2 (en) | Call transfer with multiple application servers in session initiation protocol-based network | |
| US9392028B2 (en) | Apparatus and method for macro operation involving a plurality of session protocol transactions | |
| US20110225307A1 (en) | Apparatus and method for reducing responses when executing a session initiation protocol operation | |
| US20090240803A1 (en) | Method for copying session information, call control server for executing the same, and computer product | |
| EP1911229B1 (en) | Associating a telephone call with a dialog based on a computer protocol such as sip | |
| KR20110050439A (en) | Method and system for selective call forwarding based on media attributes in telecommunication network | |
| CN100574474C (en) | A method for establishing a communication service connection in a communication system | |
| US7937463B2 (en) | Method and server for invoking application servers in a SIP network | |
| CN100589603C (en) | A method and system for processing an IMS session | |
| EP2587777B1 (en) | Method and system for implementing color ring back tone and multimedia ring alert tone service. | |
| CN102761917A (en) | Processing method for session switching on called side and AS (Application Server) | |
| CN101459872B (en) | Method for updating media after answering by single session customized ring back tone and color video service | |
| CN101827322B (en) | Business control method and device | |
| JP5608748B2 (en) | Method and apparatus in a communication network | |
| CN101383827B (en) | Method, apparatus and system for media transferring | |
| CN101340384A (en) | Method for Realizing One Number Resonance Service and Application Server Used | |
| JP2011049687A (en) | Communication network system, sip signal relay method therefor and sip application server | |
| CN101321081B (en) | Method, device and system for implementing limited business | |
| CN101179458B (en) | A method for realizing caller presence service of multimedia information | |
| CN101997856B (en) | Signaling message interaction method and application server | |
| CN101137104A (en) | A method and system for realizing resource release | |
| CN101316384B (en) | Method for implementing call forwarding service | |
| CN101577883A (en) | Method, device and system for talking connection | |
| JP6234272B2 (en) | Session control method, SIP server, and program for controlling transmission timing of early media |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20141210 Termination date: 20190826 |