Nothing Special   »   [go: up one dir, main page]

CN105813228A - Communication method and related device based on SIP over TCP/TLS - Google Patents

Communication method and related device based on SIP over TCP/TLS Download PDF

Info

Publication number
CN105813228A
CN105813228A CN201610143258.6A CN201610143258A CN105813228A CN 105813228 A CN105813228 A CN 105813228A CN 201610143258 A CN201610143258 A CN 201610143258A CN 105813228 A CN105813228 A CN 105813228A
Authority
CN
China
Prior art keywords
association
sbc
terminal
network
media stream
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610143258.6A
Other languages
Chinese (zh)
Other versions
CN105813228B (en
Inventor
徐永国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610143258.6A priority Critical patent/CN105813228B/en
Publication of CN105813228A publication Critical patent/CN105813228A/en
Priority to PCT/CN2017/074382 priority patent/WO2017157144A1/en
Application granted granted Critical
Publication of CN105813228B publication Critical patent/CN105813228B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1083In-session procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本申请涉及通信领域,尤其涉及基于SIP over TCP/TLS的通信技术。在一种通信方法中,网络中断后,移动终端和SBC均保持呼叫业务不挂断,SBC也不释放为移动终端分配的会话资源。在网络恢复后,SBC使用移动终端提供的关联信息进行关联合法性检测,若检测成功,SBC使用网络中断前为移动终端分配的会话资源向CSCF发起周期性注册。在网络恢复后,移动终端还向SBC发送媒体流数据,以便检测成功后,SBC进行首包学习。这样,终端无需重新发起呼叫就可以实现呼叫业务接续,并减少了业务中断时间,提升了业务体验。

The present application relates to the communication field, in particular to the communication technology based on SIP over TCP/TLS. In one communication method, after the network is interrupted, both the mobile terminal and the SBC keep the call service on and the SBC does not release the session resources allocated for the mobile terminal. After the network recovers, the SBC uses the association information provided by the mobile terminal to check the validity of the association. If the detection is successful, the SBC uses the session resources allocated for the mobile terminal before the network interruption to initiate periodic registration with the CSCF. After the network recovers, the mobile terminal also sends media stream data to the SBC, so that the SBC can learn the first packet after the detection is successful. In this way, the terminal can implement the call service connection without re-initiating the call, which reduces service interruption time and improves service experience.

Description

基于SIP over TCP/TLS的通信方法及相关装置Communication method and related device based on SIP over TCP/TLS

技术领域technical field

本发明涉及通信技术领域,更具体地说,涉及基于SIPoverTCP/TLS的通信技术。The present invention relates to the technical field of communication, and more specifically, relates to a communication technology based on SIPoverTCP/TLS.

背景技术Background technique

随着智能终端和VoIP的迅速发展,基于IMS(IPMultimediaSystemIP多媒体子系统)SIP呼叫的应用越来越多。With the rapid development of intelligent terminals and VoIP, there are more and more applications of SIP calls based on IMS (IP Multimedia System IP Multimedia Subsystem).

智能终端的移动性,数据安全以及耗电要求,需要使用SIPOverTCP/TLS。SIPOverTCP/TLS技术还涉及会话边界控制器(SBC)和呼叫会话控制功能(CSCF)网元。The mobility, data security, and power consumption requirements of smart terminals require the use of SIPOverTCP/TLS. SIPOverTCP/TLS technology also involves Session Border Controller (SBC) and Call Session Control Function (CSCF) network elements.

在终端移动的过程中,闪断、切换(Wifi、3G/4G互切)、从Wifi边缘回到Wifi覆盖区等情况(可统称为网络中断)均会引起TCP中断,对于SIPOverTCP的音视频呼叫业务,TCP中断后,终端向SBC重新发起注册、重新发起业务。SBC会使用新的联系地址Contact头域向CSCF注册,CSCF发现是新的ContactID,认为是异地登录,拆除已有呼叫业务及其会话资源。如果需要呼叫业务接续,终端需要重新发起呼叫,这样既耗流量,又增加了业务时延,大大降低用户体验。During the mobile process of the terminal, situations such as flash disconnection, switching (Wifi, 3G/4G mutual switching), returning to the Wifi coverage area from the edge of Wifi (collectively referred to as network interruption) will cause TCP interruption. For SIPOverTCP audio and video calls For services, after TCP is interrupted, the terminal re-initiates registration and services to the SBC. The SBC will use the new contact address Contact header field to register with the CSCF. The CSCF finds out that it is a new ContactID, considers it a remote login, and deletes the existing call service and its session resources. If the call service needs to be continued, the terminal needs to re-initiate the call, which not only consumes traffic, but also increases service delay and greatly reduces user experience.

发明内容Contents of the invention

有鉴于此,本发明实施例的目的在于提供基于SIPoverTCP/TLS的通信方法及相关装置,以实现呼叫业务接续,减少业务时延。In view of this, the purpose of the embodiments of the present invention is to provide a communication method and related devices based on SIPoverTCP/TLS, so as to realize call service connection and reduce service delay.

一方面,本申请的实施例提供基于SIPoverTCP/TLS的通信方法中,在该方法中,网络中断后,移动终端和SBC均保持呼叫业务不挂断,SBC也不释放为移动终端分配的会话资源。在网络恢复后,SBC使用移动终端提供的关联信息进行关联合法性检测,若检测成功,SBC使用网络中断前为移动终端分配的会话资源向CSCF发起周期性注册。在网络恢复后,移动终端还向SBC发送媒体流数据,以便检测成功后,SBC进行首包学习。由于恢复后进行周期性注册采用的会话资源与中断前的相同,这使得CSCF感知不到网络变化,不会释放已有的呼叫业务。网络恢复后可以立即传送媒体流,通过首包学习得到网络恢复后的新地址,后续SBC往终端侧发送的媒体流的目的地址,也是该新地址。由于在超时前不会释放呼叫业务,并重新进行了首包学习,所以无需重新发起呼叫就可以实现呼叫业务接续,并且减少了业务中断时间,提升了业务体验。On the one hand, the embodiment of the present application provides a communication method based on SIPoverTCP/TLS. In this method, after the network is interrupted, both the mobile terminal and the SBC keep the call service from hanging up, and the SBC does not release the session resources allocated for the mobile terminal. . After the network recovers, the SBC uses the association information provided by the mobile terminal to check the validity of the association. If the detection is successful, the SBC uses the session resources allocated for the mobile terminal before the network interruption to initiate periodic registration with the CSCF. After the network recovers, the mobile terminal also sends media stream data to the SBC, so that the SBC can learn the first packet after the detection is successful. Since the session resources used for periodic registration after recovery are the same as those before the interruption, the CSCF cannot perceive network changes and will not release existing call services. After the network is restored, the media stream can be transmitted immediately, and the new address after the network restoration is obtained through the first packet learning, and the destination address of the media stream sent by the subsequent SBC to the terminal side is also the new address. Since the call service will not be released before the timeout, and the first packet learning is performed again, the call service can be continued without re-initiating the call, and the service interruption time is reduced, and the service experience is improved.

在一个可能的设计中,SBC在关联合法性检测失败后,为终端重新分配会话资源,使用重新分配的会话资源向CSCF发起周期性注册。之后,SBC将使用重新分配的会话资源向CSCF发起周期性注册。这样可更好得实现通信。In a possible design, after the association validity detection fails, the SBC reallocates session resources for the terminal, and uses the reallocated session resources to initiate periodic registration with the CSCF. Afterwards, the SBC will use the reallocated session resources to initiate periodic registration with the CSCF. This enables better communication.

在一个可能的设计中,无论关联合法性检测是否成功,SBC均生成并返回在下一次关联合法性检测中使用的关联ID。更具体的,用于下一次关联合法性检测的关联ID可携带于由SBC返回的成功响应消息。进一步的,以成功响应消息为例,可在成功响应消息的Contact头域中增加nextAssociateId字段,在nextAssociateId字段中的值为关联ID。通过在现有的SIP消息中新增字段来携带关联ID,SBC处理简单不耗性能,并且也没有额外增加信令开销。或者,上述用于下一次关联合法性检测的关联ID亦可携带于由SBC返回的新增SIP消息中,这种设计可不必改变原有SIP消息的格式。在一个示例中,关联ID可为callID或servicecookie。在另一个示例中,关联ID可由SBC根据设定的生成规则生成。In a possible design, no matter whether the association validity detection is successful or not, the SBC generates and returns an association ID used in the next association validity detection. More specifically, the association ID used for the next association validity check may be carried in the successful response message returned by the SBC. Further, taking the successful response message as an example, a nextAssociateId field may be added in the Contact header field of the successful response message, and the value in the nextAssociateId field is an association ID. By adding a new field in the existing SIP message to carry the association ID, the SBC process is simple and does not consume performance, and there is no additional signaling overhead. Alternatively, the above-mentioned association ID used for the next association legality detection may also be carried in the newly added SIP message returned by the SBC. This design does not need to change the format of the original SIP message. In one example, the association ID may be callID or servicecookie. In another example, the association ID may be generated by the SBC according to a set generation rule.

在一个可能的设计中,SBC通过接收携带关联信息的注册消息或携带关联信息的新增SIP消息来获取关联信息。更具体的,可在注册消息或新增SIP消息中具有associateId字段,字段值为关联信息。这样可更好得实现呼叫接续。In a possible design, the SBC obtains the associated information by receiving a registration message carrying the associated information or a newly added SIP message carrying the associated information. More specifically, there may be an associateId field in the registration message or the new SIP message, and the field value is associated information. In this way, call connection can be realized better.

在一个可能的设计中,上述关联合法性检测可包括:根据关联ID查找相应的会话资源,若查找到,关联合法性检测成功,否则关联合法性检测失败。这样可更好得实现呼叫接续。In a possible design, the above association legality detection may include: searching for a corresponding session resource according to the association ID, if found, the association legality detection is successful, otherwise, the association legality detection fails. In this way, call connection can be realized better.

在一个可能的设计中,关联信息还包括MD5值;该MD5值是所述终端对随机密码进行MD5Hash运算得到的,所述随机密码是所述SBC在网络中断前连同所述关联ID一同分配给所述终端的。SBC则通过接收携带关联信息的RTCP消息来获取关联信息。本实施例使用RTCP消息激活SBC重新对媒体流的首包进行学习,可以减少网络闪断恢复后呼叫的断话时间。In a possible design, the associated information also includes an MD5 value; the MD5 value is obtained by the terminal performing MD5Hash operation on a random password, and the random password is assigned to the SBC together with the associated ID before the network is interrupted. of the terminal. The SBC obtains the association information by receiving the RTCP message carrying the association information. In this embodiment, the RTCP message is used to activate the SBC to relearn the first packet of the media stream, which can reduce the disconnection time of the call after the recovery of the network flash disconnection.

在一个可能的设计中,上述关联合法性检测可包括:根据关联ID查找相应的会话资源;对上述RTCP消息中的MD5值进行MD5校验;若查找到相应的会话资源并且MD5校验成功,则关联合法性检测成功,否则关联合法性检测失败。引入MD5校验,可提高呼叫接续的安全性。In a possible design, the above association legality detection may include: searching for the corresponding session resource according to the association ID; performing MD5 verification on the MD5 value in the above RTCP message; if the corresponding session resource is found and the MD5 verification is successful, Then the association legality detection is successful, otherwise the association legality detection fails. The introduction of MD5 verification can improve the security of call connection.

在一个可能的设计中,SBC还将生成并返回在下一次关联合法性检测中使用的关联ID和随机密码。作为一个示例,关联ID和随机密码可承载在SBC返回的SIP消息中,例如,成功响应消息(200OK消息)或新增SIP消息。更具体的,可在200OK的Contact头域中增加nextAssociateId字段,在nextAssociateId字段中的值为关联ID。通过在现有的SIP消息中新增字段来携带关联ID,SBC处理简单不耗性能,并且也没有额外增加信令开销。In one possible design, the SBC will also generate and return an association ID and a random password to be used in the next association legitimacy check. As an example, the association ID and the random password may be carried in a SIP message returned by the SBC, for example, a successful response message (200OK message) or a new SIP message. More specifically, a nextAssociateId field may be added to the Contact header field of 200OK, and the value in the nextAssociateId field is an association ID. By adding a new field in the existing SIP message to carry the association ID, the SBC process is simple and does not consume performance, and there is no additional signaling overhead.

另一方面,本发明实施例提供了一种SBC,该SBC具有实现上述方法实际中SBC行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。On the other hand, an embodiment of the present invention provides an SBC, and the SBC has a function of realizing the behavior of the SBC in practice of the above method. The functions described above may be implemented by hardware, or may be implemented by executing corresponding software on the hardware. The hardware or software includes one or more modules corresponding to the above functions.

在一个可能的设计中,SBC的结构包括:处理器、存储器、所述处理器通过运行存储在所述存储器内的软件程序、调用存储在所述存储器内的数据,执行上述方法。In a possible design, the structure of the SBC includes: a processor and a memory, and the processor executes the above method by running a software program stored in the memory and calling data stored in the memory.

又一方面,本发明实施例提供了一种终端,该终端具有实现上述方法实际中CSU行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。In yet another aspect, an embodiment of the present invention provides a terminal, and the terminal has a function of implementing the CSU behavior in practice of the above method. The functions described above may be implemented by hardware, or may be implemented by executing corresponding software on the hardware. The hardware or software includes one or more modules corresponding to the above functions.

在一个可能的设计中,终端的结构包括:处理器、存储器、所述处理器通过运行存储在所述存储器内的软件程序、调用存储在所述存储器内的数据,至少执行:在网络中断后,保持终端侧的呼叫业务不释放;在网络恢复后,向SBC发送关联信息;所述关联信息用于所述SBC进行关联合法性检测,其中,所述关联信息至少包括关联ID,所述关联ID指示了所述SBC在网络中断前分配给所述终端的会话资源,在关联合法性检测成功后,所述关联ID指示的会话资源将被所述SBC用于向CSCF发起周期性注册;在网络恢复后,向所述SBC传输与所述呼叫业务对应的媒体流数据,所述媒体流数据以新地址发送,所述媒体流数据中的首包用于所述SBC学习所述新地址。In a possible design, the structure of the terminal includes: a processor, a memory, and the processor executes the software program stored in the memory and calls the data stored in the memory to at least execute: after the network is interrupted , keep the call service on the terminal side from being released; after the network recovers, send association information to the SBC; the association information is used for the SBC to perform association legality detection, wherein the association information includes at least an association ID, and the association The ID indicates the session resource allocated by the SBC to the terminal before the network interruption, and after the association validity detection succeeds, the session resource indicated by the association ID will be used by the SBC to initiate periodic registration with the CSCF; After the network recovers, transmit the media stream data corresponding to the call service to the SBC, the media stream data is sent with a new address, and the first packet in the media stream data is used for the SBC to learn the new address.

再一方面,本发明实施例提供了一种计算机存储介质,用于储存为上述SBC所用的计算机软件指令,其包含用于执行上述方面所设计的程序。In yet another aspect, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by the above-mentioned SBC, which includes a program designed to execute the above-mentioned aspect.

再一方面,本发明实施例提供了一种计算机存储介质,用于储存为上述终端所用的计算机软件指令,其包含用于执行上述方面所设计的程序。In another aspect, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by the above-mentioned terminal, which includes a program designed for executing the above-mentioned aspect.

在本发明实施例中,网络中断后,移动终端和SBC均保持呼叫业务不挂断,SBC也不释放为移动终端分配的会话资源。在网络恢复后,移动终端向SBC提供关联信息,SBC使用关联信息进行关联合法性检测,若检测成功,SBC使用网络中断前为移动终端分配的会话资源向CSCF发起周期性注册。由于恢复后进行周期性注册采用的会话资源与中断前的相同,这使得CSCF感知不到网络变化,不会释放已有的呼叫业务。网络恢复后可以立即传送媒体流,通过首包学习得到网络恢复后的新地址,后续SBC往终端侧发送的媒体流的目的地址,也是该新地址。由于在超时前不会释放呼叫业务,并重新进行了首包学习,所以无需重新发起呼叫就可以实现呼叫业务接续,并且减少了业务中断时间,提升了业务体验。In the embodiment of the present invention, after the network is interrupted, both the mobile terminal and the SBC keep the call service without hanging up, and the SBC does not release the session resource allocated for the mobile terminal. After the network is restored, the mobile terminal provides association information to the SBC, and the SBC uses the association information to perform association legality detection. If the detection is successful, the SBC uses the session resources allocated for the mobile terminal before the network interruption to initiate periodic registration with the CSCF. Since the session resources used for periodic registration after recovery are the same as those before the interruption, the CSCF cannot perceive network changes and will not release existing call services. After the network is restored, the media stream can be transmitted immediately, and the new address after the network restoration is obtained through the first packet learning, and the destination address of the media stream sent by the subsequent SBC to the terminal side is also the new address. Since the call service will not be released before the timeout, and the first packet learning is performed again, the call service can be continued without re-initiating the call, and the service interruption time is reduced, and the service experience is improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明实施例提供的应用场景示意图;FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present invention;

图2a-2b、图3、图4a-4c、图5a-5b、图6为本发明实施例提供的基于SIPoverTCP/TLS的通信方法的交互示例图;Fig. 2a-2b, Fig. 3, Fig. 4a-4c, Fig. 5a-5b, Fig. 6 are interactive example diagrams of the communication method based on SIPoverTCP/TLS provided by the embodiment of the present invention;

图7a和图7b为本发明实施例提供的SBC的可能的结构示意图;Figure 7a and Figure 7b are schematic diagrams of a possible structure of an SBC provided by an embodiment of the present invention;

图8为本发明实施例提供的终端的可能的结构示意图;FIG. 8 is a schematic diagram of a possible structure of a terminal provided by an embodiment of the present invention;

图9为本发明实施例提供的SBC或终端的另一种可能的结构示意图。FIG. 9 is a schematic diagram of another possible structure of an SBC or a terminal provided by an embodiment of the present invention.

具体实施方式detailed description

本发明实施例提供了基于SIPoverTCP/TLS的通信方法及相关装置,以实现网络恢复后的呼叫业务接续,同时,不降低SBC或其他IMS网元的处理性能。The embodiment of the present invention provides a communication method and a related device based on SIPoverTCP/TLS, so as to realize the call service connection after the network recovery, and at the same time, do not reduce the processing performance of the SBC or other IMS network elements.

本发明实施例所涉及到的相关装置包括移动终端、SBC和CSCF。The related devices involved in the embodiment of the present invention include a mobile terminal, an SBC and a CSCF.

图1给出了上述移动终端(MB)、SBC和CSCF的一种应用场景:移动终端在移动过程中,发生中断后又恢复,例如网络闪断、网络切换,其公网地址由IP1变为IP2。Figure 1 shows an application scenario of the above-mentioned mobile terminal (MB), SBC and CSCF: the mobile terminal recovers after being interrupted during the movement process, such as network disconnection or network switching, and its public network address changes from IP1 to IP2.

需要说明的是,图1示例性的显示了一个移动终端,在实际应用场景中,移动终端的数目并不仅局限于一个,其可以更多。此外,移动终端所接入的IP网络的变更也可认为是网络切换。It should be noted that FIG. 1 exemplarily shows one mobile terminal, and in an actual application scenario, the number of mobile terminals is not limited to one, and there may be more. In addition, the change of the IP network accessed by the mobile terminal can also be considered as network switching.

其中,移动终端主要负责登录服务器,发起呼叫,发送音视频RTP媒体流。Among them, the mobile terminal is mainly responsible for logging in to the server, initiating a call, and sending audio and video RTP media streams.

SBC主要负责终端接入的信令和媒体代理。The SBC is mainly responsible for terminal access signaling and media agency.

CSCF主要负责用户登录、处理多媒体呼叫会话过程中的信令控制。The CSCF is mainly responsible for user login and signaling control during multimedia call session processing.

需要说明的是,SIP协议是一个Client/Sever协议,因此SIP消息具体可分两种:请求消息和响应消息。It should be noted that the SIP protocol is a Client/Server protocol, so SIP messages can be specifically divided into two types: request messages and response messages.

本发明涉及的SIP请求消息如下:The SIP request message that the present invention relates to is as follows:

INVITE:表示主叫用户发起会话请求,邀请其他用户加入一个会话。也可以用在呼叫建立后用于更新会话(此时该INVITE又称为Re-invite);INVITE: Indicates that the calling user initiates a session request and invites other users to join a session. It can also be used to update the session after the call is established (the INVITE is also called Re-invite at this time);

ACK:证实已经收到了对INVITE请求的最终响应;ACK: confirms that the final response to the INVITE request has been received;

REGISTER:表示注册列在To字段中的地址信息。REGISTER: Indicates to register the address information listed in the To field.

SIP协议中的响应消息用于对请求消息进行响应,指示呼叫的成功或失败状态。本发明中涉及到的响应消息如下:The response message in the SIP protocol is used to respond to the request message, indicating the success or failure status of the call. The response message involved in the present invention is as follows:

200:成功响应(OK);200: Successful response (OK);

401:未授权(Unauthorized)。401: Unauthorized (Unauthorized).

下面将基于上面所述的本发明涉及的共性方面,对本发明实施例进一步详细说明。The embodiments of the present invention will be further described in detail below based on the above-mentioned common aspects involved in the present invention.

本发明的一个实施例提供一种基于SIPoverTCP/TLS的通信方法,和基于这个方法的移动终端、BSC、CSCF。An embodiment of the present invention provides a communication method based on SIPoverTCP/TLS, and a mobile terminal, BSC, and CSCF based on this method.

下面结合附图2a和图3,对本发明的实施例提供的方案进行说明。The solution provided by the embodiment of the present invention will be described below with reference to Fig. 2a and Fig. 3 .

图2a为本发明实施例提供的通信方法的交互示意图,其大体可包括几个子过程:初始注册过程、呼叫过程、网络中断处理过程、网络恢复后的重注册过程以及呼叫接续过程。Figure 2a is an interactive schematic diagram of the communication method provided by the embodiment of the present invention, which generally includes several sub-processes: initial registration process, call process, network interruption process, re-registration process after network recovery, and call connection process.

图3体现的是信令交互。Figure 3 shows signaling interaction.

其中,初始注册过程可包括如下部分:Among them, the initial registration process may include the following parts:

200部分:终端(UE)按照标准流程,使用SipOverTcp/TLS进行注册。Part 200: The terminal (UE) uses SipOverTcp/TLS to register according to the standard procedure.

图3中的SYN、ACK消息体现的是TCP的建链过程。The SYN and ACK messages in Figure 3 reflect the TCP link building process.

在初始注册部分,SBC会为终端分配会话资源,会话资源中包括contactID(图3中以contactID1表示),并向CSCF发起周期性注册(发起REGISTER消息,该消息中包括contactID1)。In the initial registration part, the SBC will allocate session resources for the terminal, the session resources include contactID (represented by contactID1 in Figure 3), and initiate periodic registration to the CSCF (initiate a REGISTER message, which includes contactID1).

需要说明的是,周期性注册是保持注册会话用的,相当于心跳。It should be noted that periodic registration is used to maintain the registration session, which is equivalent to heartbeat.

初始注册期间,三者交互的信令涉及到REGISTER消息、401响应消息和200OK消息。During the initial registration, the signaling for the interaction among the three involves the REGISTER message, 401 response message and 200OK message.

201部分:注册成功后,SBC向终端返回关联标识(ID)。Part 201: After the registration is successful, the SBC returns the association identification (ID) to the terminal.

具体的,关联ID可承载在SBC返回的SIP消息中,例如,成功响应消息(200OK消息)。具体的,可在200OK的Contact头域中增加nextAssociateId字段,在nextAssociateId字段中的值为关联ID。通过在现有的SIP消息中新增字段来携带关联ID,SBC处理简单不耗性能,并且也没有额外增加信令开销。Specifically, the association ID may be carried in a SIP message returned by the SBC, for example, a successful response message (200OK message). Specifically, a nextAssociateId field may be added to the Contact header field of 200OK, and the value in the nextAssociateId field is an association ID. By adding a new field in the existing SIP message to carry the association ID, the SBC process is simple and does not consume performance, and there is no additional signaling overhead.

此外,关联ID也可承载在新增的SIP消息中,进一步的,可在新增的SIP消息的Contact头域中设置nextAssociateId字段,在nextAssociateId字段中的值为关联ID。此时,需要重新定义检测接口和关联信息。这样可不改变原来的SIP消息格式。In addition, the association ID can also be carried in the newly added SIP message. Further, the nextAssociateId field can be set in the Contact header field of the newly added SIP message, and the value in the nextAssociateId field is the association ID. At this point, it is necessary to redefine the detection interface and associated information. In this way, the original SIP message format will not be changed.

关联ID可指示SBC为终端分配的会话资源,或者说,关联ID表征了终端与SBC为其分配的会话资源之间的对应关系。The association ID may indicate the session resource allocated by the SBC to the terminal, or in other words, the association ID represents the correspondence between the terminal and the session resource allocated by the SBC.

关联ID可用于下一次的关联合法性检测,本文后续将对关联合法性检测进行介绍。The association ID can be used for the next association legality detection, which will be introduced later in this article.

SBC可根据设定的生成规则生成关联ID并返回给终端。事实上,终端对关联ID仅是透传,SBC可自定义关联ID的内容。The SBC can generate an association ID according to the set generation rules and return it to the terminal. In fact, the terminal only transparently transmits the association ID, and the SBC can customize the content of the association ID.

呼叫过程体现在202部分。可参考现有的呼叫建立、媒体流数据发送等技术,在此不作赘述。需要说明的是,媒体流数据当前的地址为IP1。后续发生网络中断再恢复后,其地址将变更为IP2。The calling process is reflected in the 202 part. Reference may be made to existing technologies such as call establishment and media stream data transmission, and details are not described here. It should be noted that the current address of the media stream data is IP1. After a subsequent network outage and recovery, its address will be changed to IP2.

这里的地址具体指终端对应的公网NAT的IP地址。实际上,终端大都是在wifi场景下发送消息,所使用的IP地址为私有网络IP地址,终端发送的媒体流或数据到达公网后,会对应公网NAT的IP地址,这个地址起初SBC和终端都不知道。SBC需要学习媒体流或数据的IP头(也即初始的几个IP包),获得终端对应的公网NAT的IP地址并记录下来。The address here specifically refers to the IP address of the public network NAT corresponding to the terminal. In fact, most terminals send messages in the wifi scenario, and the IP address used is a private network IP address. After the media stream or data sent by the terminal reaches the public network, it will correspond to the IP address of the public network NAT. This address is initially SBC and The terminal does not know. The SBC needs to learn the IP header of the media stream or data (that is, the initial few IP packets), obtain the IP address of the public network NAT corresponding to the terminal, and record it.

呼叫过程信令至少涉及INVITE消息和200OK消息。Call procedure signaling involves at least an INVITE message and a 200OK message.

网络中断处理过程可包括如下部分:The network interrupt handling process may include the following parts:

203部分:在网络中断后,终端不立即释放终端侧的呼叫(保持VoIP),其目的是让呼叫不挂断。Part 203: After the network is interrupted, the terminal does not immediately release the call on the terminal side (holding VoIP), the purpose of which is to keep the call from hanging up.

更具体的,终端可在15-30秒的时间内(也可更长或更短)保持终端侧已有的呼叫业务不释放。More specifically, the terminal can keep the existing call service on the terminal side for 15-30 seconds (or longer or shorter) without releasing it.

204部分:SBC检测到终端侧TCP异常后,在等待超时前,不释放相应的会话资源,同时保持终端对应的呼叫业务不释放(也即让呼叫不挂断)。Section 204: After the SBC detects an abnormal TCP on the terminal side, it does not release the corresponding session resources before waiting for a timeout, and at the same time keeps the call service corresponding to the terminal from being released (that is, the call does not hang up).

在204部分,在等待超时前,也不释放终端对应的关联ID。In part 204, the association ID corresponding to the terminal is not released before the waiting timeout.

在本发明其他实施例中,若等待超时,SBC将释放与终端相应的关联ID、会话资源和释放呼叫业务。In other embodiments of the present invention, if the wait times out, the SBC will release the associated ID, session resource and call service corresponding to the terminal.

具体的,由于在正常呼叫过程中,终端一般会发送媒体流,因此,SBC可在无媒体流超时后再释放关联ID、会话资源和呼叫业务,在无媒体流超时之前,则不释放关联ID、会话资源和呼叫业务。Specifically, since the terminal generally sends media streams during a normal call, the SBC can release the associated ID, session resource, and call service after no media stream times out, and does not release the associated ID before no media stream times out , session resources and call services.

当然,若SBC未检测到异常,则保持关联ID不变。Of course, if the SBC detects no abnormality, the association ID remains unchanged.

网络恢复后的重注册过程可包括如下部分:The re-registration process after network recovery may include the following parts:

205部分:在网络恢复后,终端发起注册。Part 205: After the network is restored, the terminal initiates the registration.

在一个示例中,请参见图3,可在注册消息中携带SBC为其分配的关联ID。更具体的,可在REGISTER消息中新增associateId字段,字段值为201部分nextAssociateId字段中的值。In an example, referring to FIG. 3 , the association ID allocated by the SBC may be carried in the registration message. More specifically, an associateId field may be added in the REGISTER message, and the value of the field is the value in the nextAssociateId field of part 201.

在另一个示例中,也可使用新增的SIP请求消息携带关联ID。更具体的,可在新增的SIP消息中设置associateId字段,字段值为201部分nextAssociateId字段中的值。In another example, a newly added SIP request message may also be used to carry the association ID. More specifically, the associateId field can be set in the newly added SIP message, and the value of the field is the value in the nextAssociateId field of the 201 part.

206部分:SBC使用关联ID进行关联合法性检测。Part 206: SBC uses association ID for association legality detection.

更具体的,SBC可根据关联ID查找相应的会话资源,若查找到,则关联合法性检测成功,否则关联合法性检测失败。More specifically, the SBC can search for the corresponding session resource according to the association ID. If found, the association legality detection is successful; otherwise, the association legality detection fails.

207部分:若关联合法性检测成功,SBC使用关联ID指示的会话资源向CSCF发起周期性注册。Part 207: If the association legality detection is successful, the SBC initiates periodic registration with the CSCF using the session resource indicated by the association ID.

更具体的,SBC将使用之前的ContactID1向CSCF发起周期性注册。由于网络中断前后均保持ContactID1不变,CSCF感知不到网络变化,不会释放已有的呼叫。More specifically, the SBC will use the previous ContactID1 to initiate periodic registration with the CSCF. Because the ContactID1 remains unchanged before and after the network interruption, the CSCF cannot perceive the network change and will not release the existing call.

在本发明其他实施例中,请参见图2b,若关联合法性检测失败,则SBC将为终端重新分配会话资源(2071部分)。前已述及,会话资源包括contactID,重新分配的contactID可称为contactID2。In other embodiments of the present invention, referring to FIG. 2 b , if the detection of association validity fails, the SBC will re-allocate session resources for the terminal (section 2071 ). As mentioned above, the session resource includes contactID, and the reallocated contactID may be called contactID2.

之后,SBC将使用重新分配的会话资源(contactID2)向CSCF发起周期性注册(2072部分)。Afterwards, the SBC will use the reallocated session resource (contactID2) to initiate a periodic registration with the CSCF (section 2072).

208部分:SBC生成并返回在下一次关联合法性检测中使用的关联ID。Section 208: The SBC generates and returns an association ID to be used in the next association validity check.

在一个示例中,SBC可在注册的200OK的nextAssociateId中携带在下一次关联合法性检测中使用的关联ID。此外,200OK还可携带关联合法性检测标识assFlag,用于通知终端关联合法性检测是否成功。In an example, the SBC may carry the association ID used in the next association validity check in the nextAssociateId of the registered 200OK. In addition, 200OK may also carry an association legality detection flag assFlag, which is used to notify the terminal whether the association legality detection is successful.

需要说明的是,无论关联合法性检测是否成功,SBC均会生成并返回在下一次关联合法性检测中使用的关联ID。It should be noted that no matter whether the association legality detection is successful or not, the SBC will generate and return the association ID used in the next association legality detection.

呼叫接续过程可包括如下部分:The call connection process may include the following parts:

209部分:终端传输与呼叫业务对应的媒体流数据。Part 209: The terminal transmits the media stream data corresponding to the call service.

在一个示例中,终端可在确认关联合法性检测成功后,传输与呼叫业务对应的媒体流数据。In an example, the terminal may transmit the media stream data corresponding to the call service after confirming that the detection of association validity is successful.

前述提及了,200OK中可携带关联合法性检测标识assFlag,用于通知终端关联合法性检测是否成功。终端可根据该assFlag确认关联合法性检测是否成功。As mentioned above, the 200OK may carry the association legality detection flag assFlag, which is used to notify the terminal whether the association legality detection is successful. The terminal can confirm whether the association legality detection is successful according to the assFlag.

在另一个示例中,终端也可同时发送关联信息与媒体流数据,在确认关联合法性检测失败后,终端再停止发送媒体流数据。本领域技术人员可根据实际需要进行灵活设计。In another example, the terminal may also send the association information and the media stream data at the same time, and the terminal stops sending the media stream data after confirming that the detection of association validity fails. Those skilled in the art can flexibly design according to actual needs.

需要说明的是,网络中断前,媒体流数据当前的地址为IP1,在209部分,地址变更为IP2,也即新地址。It should be noted that before the network interruption, the current address of the media streaming data is IP1, and in part 209, the address is changed to IP2, which is the new address.

210部分:SBC对媒体流数据的首包进行学习,得到新地址。Part 210: SBC learns the first packet of media stream data to obtain a new address.

更具体的,SBC会根据移动终端的当前用户号码找到相关的呼叫业务,支持从新的地址上接收该呼叫业务的媒体流数据,对媒体流数据的首包进行学习,得到新地址。More specifically, the SBC will find the relevant call service according to the current user number of the mobile terminal, support receiving the media stream data of the call service from the new address, learn the first packet of the media stream data, and obtain the new address.

之后,SBC将以该新地址接收上述呼叫业务的相关数据。SBC往终端侧发送的媒体流的目的地址,也是该新地址。Afterwards, the SBC will receive the relevant data of the above-mentioned call service at the new address. The destination address of the media stream sent by the SBC to the terminal side is also the new address.

首包学习是比较成熟的技术,在此不作赘述。The first package learning is a relatively mature technology, so I won't repeat it here.

211部分:终端发起re-Invite,保持原有呼叫。Part 211: The terminal initiates a re-Invite and maintains the original call.

发起re-invite是为了维持呼叫的会话心跳,尽量保持终端与服务器侧的信息一致。The re-invite is initiated to maintain the session heartbeat of the call, and try to keep the information on the terminal and the server side consistent.

需要说明的是,现有技术中也有re-Invite流程,但是由定时器驱动,可能要等很长。本实施例中则是网络恢复后就发起re-Invite。It should be noted that there is also a re-Invite process in the prior art, but it is driven by a timer and may have to wait for a long time. In this embodiment, the re-Invite is initiated after the network recovers.

需要说明的是,关联合法性检测失败后,SBC将不再进行首包学习,呼叫中断。因此,请参见图2b,在确认关联合法性检测失败后,终端将不会发起re-Invite。It should be noted that after the association validity detection fails, the SBC will no longer perform the first packet learning, and the call will be interrupted. Therefore, referring to FIG. 2 b , after confirming that the association validity detection fails, the terminal will not initiate a re-Invite.

在本发明实施例中,网络中断后,移动终端和SBC均保持呼叫业务不挂断,也不释放为移动终端分配的会话资源。在网络恢复后,移动终端向SBC提供关联信息,SBC使用关联信息进行关联合法性检测,若检测成功,SBC使用网络中断前为移动终端分配的会话资源向CSCF发起周期性注册。由于恢复后进行周期性注册采用的会话资源与中断前的相同,这使得CSCF感知不到网络变化,不会释放已有的呼叫业务。网络恢复后可以立即传送媒体流,通过首包学习得到网络恢复后的新地址,后续SBC往终端侧发送的媒体流的目的地址,也是该新地址。由于在超时前不会释放呼叫业务,并重新进行了首包学习,所以无需重新发起呼叫就可以实现呼叫业务接续,并且减少了业务中断时间,提升了业务体验。In the embodiment of the present invention, after the network is interrupted, both the mobile terminal and the SBC keep the call service without hanging up, and do not release the session resources allocated for the mobile terminal. After the network is restored, the mobile terminal provides association information to the SBC, and the SBC uses the association information to perform association legality detection. If the detection is successful, the SBC uses the session resources allocated for the mobile terminal before the network interruption to initiate periodic registration with the CSCF. Since the session resources used for periodic registration after recovery are the same as those before the interruption, the CSCF will not be aware of network changes and will not release existing call services. After the network is restored, the media stream can be transmitted immediately, and the new address after the network restoration is obtained through the first packet learning, and the destination address of the media stream sent by the SBC to the terminal side is also the new address. Since the call service will not be released before the timeout, and the first packet learning is performed again, the call service can be continued without re-initiating the call, and the service interruption time is reduced, and the service experience is improved.

在本发明其他实施例中,还可将会话信息作为关联ID,例如将CallID(CallID是按一定规则生成的随机字符串)或servicecookie(服务侧会话映射信息)作为关联ID。In other embodiments of the present invention, session information can also be used as the associated ID, for example, CallID (CallID is a random character string generated according to certain rules) or servicecookie (server-side session mapping information) can be used as the associated ID.

请参见图4a和图4b所示的另一种交互流程:Please refer to another interaction flow shown in Figure 4a and Figure 4b:

在400部分:终端(UE)按照标准流程,使用SipOverTcp/TLS进行注册。In part 400: the terminal (UE) uses SipOverTcp/TLS to register according to the standard procedure.

图4b体现的是信令交互。Figure 4b shows signaling interaction.

400部分与200部分相类似,在此不作赘述。Section 400 is similar to Section 200 and will not be repeated here.

需要说明的是,如将CallID作为关联ID,SBC将不用专门生成关联ID,也无需如图2a、2b和图3所示的实施例(201部分)那样,在返回的SIP消息中增加nextAssociateId字段。It should be noted that, if CallID is used as the association ID, the SBC does not need to generate the association ID specifically, nor does it need to add the nextAssociateId field in the returned SIP message as in the embodiment (part 201) shown in Figure 2a, 2b and Figure 3 .

401部分:终端发起呼叫。Section 401: The terminal initiates the call.

可参考现有的呼叫建立、媒体流数据发送等技术,在此不作赘述。Reference may be made to existing technologies such as call establishment and media stream data transmission, and details are not described here.

402部分:在网络中断后,终端不立即释放终端侧的呼叫(保持VoIP),其目的是让呼叫不挂断。Part 402: After the network is interrupted, the terminal does not immediately release the call on the terminal side (holding VoIP), the purpose of which is to keep the call from hanging up.

402部分与203部分相类似,在此不作赘述。Part 402 is similar to part 203, and will not be repeated here.

403部分:SBC检测到终端侧TCP异常后,在等待超时前,不释放相应的会话资源,同时保持终端对应的呼叫业务不释放(也即让呼叫不挂断)。Part 403: After the SBC detects that the TCP on the terminal side is abnormal, it does not release the corresponding session resources before waiting for a timeout, and at the same time keeps the call service corresponding to the terminal from being released (that is, the call does not hang up).

403部分与204部分相类似,在此不作赘述。Part 403 is similar to part 204, and will not be repeated here.

404部分:在网络恢复后,终端发起注册。Part 404: After the network is restored, the terminal initiates registration.

在重注册过程,由于本来就需要将CallID携带在REGISTER消息中,因此,也无需如图2a、2b和图3所示的实施例(205部分)那样,在REGISTER消息中新增associateId字段,这样可进一步简化SBC的处理。In the re-registration process, since the CallID needs to be carried in the REGISTER message originally, there is no need to add an associateId field in the REGISTER message as in the embodiment (205 part) shown in Figure 2a, 2b and Figure 3, so Processing of the SBC can be further simplified.

405部分:SBC使用关联ID(也即callID)进行关联合法性检测。Section 405: the SBC uses the association ID (namely callID) to perform association legality detection.

更具体的,SBC可根据关联ID查找相应的会话资源,若查找到,则关联合法性检测成功,否则关联合法性检测失败。More specifically, the SBC can search for the corresponding session resource according to the association ID. If found, the association legality detection is successful; otherwise, the association legality detection fails.

406部分:若关联合法性检测成功,SBC使用关联ID指示的会话资源向CSCF发起周期性注册。Section 406: If the detection of the validity of the association is successful, the SBC uses the session resource indicated by the association ID to initiate periodic registration with the CSCF.

406部分与207部分相类似,在此不作赘述。Section 406 is similar to Section 207 and will not be repeated here.

在本发明其他实施例中,请参见图4c,若关联合法性检测失败,则SBC将为终端重新分配会话资源(2061部分)。前已述及,会话资源包括contactID,重新分配的contactID可称为contactID2。In other embodiments of the present invention, referring to Fig. 4c, if the detection of association validity fails, the SBC will re-allocate session resources for the terminal (section 2061). As mentioned above, the session resource includes contactID, and the reallocated contactID may be called contactID2.

之后,SBC将使用重新分配的会话资源(contactID2)向CSCF发起周期性注册(2062部分)。Afterwards, the SBC will use the reallocated session resource (contactID2) to initiate periodic registration with the CSCF (section 2062).

407部分:SBC返回SIP消息。Section 407: The SBC returns a SIP message.

该SIP消息可携带关联合法性检测标识assFlag,用于通知终端关联合法性检测是否成功。The SIP message may carry an association legality detection flag assFlag, which is used to notify the terminal whether the association legality detection is successful.

408部分:终端传输与呼叫业务对应的媒体流数据。Part 408: the terminal transmits the media stream data corresponding to the call service.

在一个示例中,终端可在确认关联合法性检测成功后,传输与呼叫业务对应的媒体流数据,而在确认关联合法性检测失败后,终端将不启动传输与呼叫业务对应的媒体流数据的操作(图4c)。In an example, the terminal may transmit the media stream data corresponding to the call service after confirming that the association legality detection is successful, and after confirming that the association legality detection fails, the terminal will not start transmitting the media stream data corresponding to the call service operation (Fig. 4c).

在另一个示例中,终端也可同时发送关联信息与媒体流数据,并在确认关联合法性检测失败后,终端再停止发送媒体流数据。本领域技术人员可根据实际需要进行灵活设计。In another example, the terminal may also send the association information and the media stream data at the same time, and after confirming that the association validity detection fails, the terminal stops sending the media stream data. Those skilled in the art can flexibly design according to actual needs.

409部分:若关联合法性检测成功,SBC对媒体流数据的首包进行学习,得到新地址。Part 409: If the association legality detection is successful, the SBC learns the first packet of the media stream data to obtain a new address.

409部分与210部分相类似,在此不作赘述。Section 409 is similar to Section 210 and will not be repeated here.

410部分:若关联合法性检测成功,终端发起re-Invite,保持原有呼叫。Part 410: If the association legality detection is successful, the terminal initiates a re-Invite and maintains the original call.

410部分与211部分相类似,在此不作赘述。Section 410 is similar to Section 211, and will not be repeated here.

图5a和图6示出了上述通信方法又一种示例性交互流程(图6体现了图5a所示交互流程中涉及的信令交互),其大体可包括几个子过程:初始注册过程、呼叫过程、网络中断处理过程、网络恢复后的首包重学习过程以及呼叫接续过程。图6体现的是信令交互。需要说明的是,SBC与CSCF的交互与前述所有实施例相同,因此,在图5a和6中省略了SBC与CSCF的交互,相关细节请参见前述所有实施例。Figure 5a and Figure 6 show another exemplary interaction flow of the above-mentioned communication method (Figure 6 embodies the signaling interaction involved in the interaction flow shown in Figure 5a), which generally includes several sub-processes: initial registration process, call process, network interruption processing process, first packet re-learning process after network recovery, and call connection process. Figure 6 shows signaling interaction. It should be noted that the interaction between the SBC and the CSCF is the same as that of all the foregoing embodiments, therefore, the interaction between the SBC and the CSCF is omitted in FIGS. 5 a and 6 , and for relevant details, refer to all the foregoing embodiments.

其中,初始注册过程可包括如下部分:Among them, the initial registration process may include the following parts:

500部分:终端(UE)按照标准流程,使用SipOverTcp/TLS进行注册。Part 500: The terminal (UE) uses SipOverTcp/TLS to register according to the standard procedure.

在初始注册部分,SBC会为终端分配会话资源,并向CSCF发起周期性注册(发起REGISTER消息,该消息中包括contactID)。In the initial registration part, the SBC will allocate session resources for the terminal, and initiate periodic registration to the CSCF (initiate a REGISTER message, which includes contactID).

周期性注册成功后,SBC会返回200OK消息。After the periodic registration is successful, the SBC will return a 200OK message.

与图2a、2b和图3所示初始注册过程不同的是,在本实施例的初始注册过程中,并不返回关联ID,而是在呼叫过程中返回关联ID。Different from the initial registration process shown in Fig. 2a, 2b and Fig. 3, in the initial registration process of this embodiment, the association ID is not returned, but the association ID is returned during the calling process.

呼叫过程至少包括如下部分:The call process includes at least the following parts:

501部分:注册成功后,终端向SBC发送INVITE消息,以建立呼叫;Part 501: After successful registration, the terminal sends an INVITE message to the SBC to establish a call;

502部分:SBC生成并向终端返回关联ID和随机密码(pwd)。Section 502: The SBC generates and returns an association ID and a random password (pwd) to the terminal.

关联ID和随机密码可承载在SBC返回的SIP消息中,例如,成功响应消息(200OKforinvite消息)。具体的,可在200OK的Contact头域中增加nextAssociateId字段,在nextAssociateId字段中的值为关联ID和随机密码(pwd)。通过在现有的SIP消息中新增字段来携带关联ID和随机密码(pwd),SBC处理简单不耗性能,并且也没有额外增加信令开销。The association ID and the random password can be carried in the SIP message returned by the SBC, for example, a successful response message (200 OK for invite message). Specifically, a nextAssociateId field may be added to the Contact header field of 200OK, and the value in the nextAssociateId field is an association ID and a random password (pwd). By adding a new field in the existing SIP message to carry the association ID and the random password (pwd), the SBC process is simple without consuming performance, and there is no additional signaling overhead.

此外,关联ID和随机密码也可承载在新增的SIP消息中,进一步的,可在新增的SIP消息的Contact头域中设置nextAssociateId字段,在nextAssociateId字段中的值为关联ID和随机密码。此时,需要重新定义检测接口和关联信息。这样可不改变原来的SIP消息格式。In addition, the association ID and the random password can also be carried in the newly added SIP message. Further, the nextAssociateId field can be set in the Contact header field of the newly added SIP message, and the values in the nextAssociateId field are the association ID and the random password. At this point, it is necessary to redefine the detection interface and associated information. In this way, the original SIP message format will not be changed.

SBC可根据设定的生成规则生成关联ID。终端对关联ID仅是透传,SBC可自定义关联ID的内容,在本实施例中,关联ID为server-cookie。关联ID的其他相关内容请参见前述201部分的介绍,在此不作赘述。The SBC can generate an associated ID according to a set generation rule. The terminal only transparently transmits the association ID, and the SBC can customize the content of the association ID. In this embodiment, the association ID is server-cookie. For other related content of the association ID, please refer to the introduction of the aforementioned section 201, and details are not repeated here.

网络中断处理过程可包括如下部分:The network interrupt handling process may include the following parts:

503部分:在网络中断后,终端不立即释放终端侧的呼叫(保持VoIP),其目的是让呼叫不挂断。Part 503: After the network is interrupted, the terminal does not immediately release the call on the terminal side (holding VoIP), the purpose of which is to keep the call from hanging up.

504部分:SBC检测到终端侧TCP异常后,在等待超时前,不释放相应的会话资源、关联ID,同时保持与终端对应的呼叫业务不释放(也即让呼叫不挂断)。Section 504: After the SBC detects an abnormal TCP on the terminal side, it does not release the corresponding session resource and associated ID before waiting for a timeout, and at the same time keeps the call service corresponding to the terminal from being released (that is, the call does not hang up).

503-504部分与203-204部分相同,在此不作赘述。Parts 503-504 are the same as parts 203-204, and will not be repeated here.

需要说明的是,为简单起见,图6省略了网络中断处理过程。It should be noted that, for the sake of simplicity, the network interruption processing process is omitted in FIG. 6 .

网络恢复后的首包重学习过程至少包括如下部分:The first packet relearning process after the network recovery includes at least the following parts:

505部分:终端向SBC发送携带关联信息的RTCP(实时传输控制协议)消息。Section 505: the terminal sends an RTCP (Real-Time Transport Control Protocol) message carrying associated information to the SBC.

图6所示的首包重学习过程中的第1、2、4为标准协议流程,其中的Nonce和nextnonce是在注册中鉴权用的。第3过程则与“终端向SBC发送携带关联信息的RTCP消息”对应。Steps 1, 2, and 4 in the first packet relearning process shown in FIG. 6 are standard protocol flows, where Nonce and nextnonce are used for authentication during registration. The third process corresponds to "the terminal sends an RTCP message carrying associated information to the SBC".

关联信息包括关联ID和MD5值(也即MD5-Auth)。其中,MD5值是终端对呼叫过程中获取的随机密码进行MD5Hash运算得到的。Association information includes association ID and MD5 value (that is, MD5-Auth). Wherein, the MD5 value is obtained by the terminal performing MD5Hash operation on the random password obtained during the calling process.

更具体的,可在RTCP消息中新增associateId字段,字段值为502部分返回的关联ID和MD5值。More specifically, an associateId field can be added in the RTCP message, and the field value is the associated ID and MD5 value returned in the 502 part.

506部分:与此同时,终端向SBC发送与呼叫业务对应的媒体流。Section 506: At the same time, the terminal sends the media stream corresponding to the calling service to the SBC.

需要说明的是,网络中断前,媒体流数据当前的地址为IP1,恢复后,地址变更为IP2。It should be noted that, before the network is interrupted, the current address of the media stream data is IP1, and after recovery, the address is changed to IP2.

这里的地址具体指终端对应的公网NAT的IP地址。实际上,终端大都是在wifi场景下发送消息,所使用的IP地址为私有网络IP地址,终端发送的媒体流或数据到达公网后,会对应公网NAT的IP地址,这个地址起初SBC和终端都不知道。SBC需要学习媒体流或数据的IP头(也即首包),获得终端对应的公网NAT的IP地址。The address here specifically refers to the IP address of the public network NAT corresponding to the terminal. In fact, most terminals send messages in the wifi scenario, and the IP address used is a private network IP address. After the media stream or data sent by the terminal reaches the public network, it will correspond to the IP address of the public network NAT. This address is initially SBC and The terminal does not know. The SBC needs to learn the IP header (that is, the first packet) of the media stream or data, and obtain the IP address of the public network NAT corresponding to the terminal.

507部分:SBC使用关联ID和MD5值进行关联合法性检测。Part 507: SBC uses association ID and MD5 value to perform association legality detection.

具体的,SBC根据关联ID查找相应的会话资源,并对RTCP消息中的MD5值进行MD5校验;若查找到相应的会话资源并且MD5校验成功,则关联合法性检测成功,否则关联合法性检测失败。Specifically, the SBC searches for the corresponding session resource according to the association ID, and performs MD5 verification on the MD5 value in the RTCP message; if the corresponding session resource is found and the MD5 verification is successful, the association validity detection is successful; otherwise, the association validity Detection failed.

其中,MD5校验可包括:Among them, MD5 verification can include:

SBC使用之前分配给终端的随机密码进行MD5Hash运算得到的MD5值。为与终端发送的MD5值相区分,可将终端生成并发送给SBC的MD5值称为第一MD5值,将SBC生成的MD5称为第二MD5值。The SBC uses the random password previously assigned to the terminal to perform MD5 Hash calculation to obtain the MD5 value. To distinguish it from the MD5 value sent by the terminal, the MD5 value generated by the terminal and sent to the SBC may be called the first MD5 value, and the MD5 generated by the SBC may be called the second MD5 value.

SBC将第一MD5值和第二MD5值进行比较,如二者相等,则MD5校验成功,否则MD5校验失败。The SBC compares the first MD5 value with the second MD5 value, and if the two are equal, the MD5 verification succeeds, otherwise the MD5 verification fails.

508部分:若关联合法性检测成功,SBC支持从新的地址接收媒体流数据,对媒体流数据的首包重新学习,得到新地址。Part 508: If the association legality detection is successful, the SBC supports receiving media stream data from a new address, relearns the first packet of the media stream data, and obtains a new address.

在一个示例中,在关联合法性检测成功后,SBC还会使用关联ID指示的会话资源向CSCF发起周期性注册。In an example, after the association validity detection is successful, the SBC will also use the session resource indicated by the association ID to initiate periodic registration with the CSCF.

在本发明其他实施例中,请参见图5b,若关联合法性检测失败,则SBC将为终端重新分配会话资源(5081部分)。前已述及,会话资源包括contactID,重新分配的contactID可称为contactID2。之后,SBC将使用重新分配的会话资源(contactID2)向CSCF发起周期性注册(5082部分)。In other embodiments of the present invention, please refer to FIG. 5 b , if the detection of association validity fails, the SBC will re-allocate session resources for the terminal (section 5081 ). As mentioned above, the session resource includes contactID, and the reallocated contactID may be called contactID2. Afterwards, the SBC will use the reallocated session resource (contactID2) to initiate a periodic registration with the CSCF (section 5082).

需要说明的是,若关联合法性检测失败,SBC将不进行首包学习,对接收到的与该终端的呼叫业务对应的媒体流进行丢弃(5083部分)。It should be noted that if the association legality detection fails, the SBC will not perform the first packet learning, and discard the received media stream corresponding to the call service of the terminal (section 5083).

509部分:终端发起re-Invite,保持原有呼叫。Section 509: The terminal initiates a re-Invite and maintains the original call.

510部分:SBC生成并向终端返回在下一次关联合法性检测中使用的关联ID和随机密码(pwd)。Section 510: SBC generates and returns to the terminal the association ID and random password (pwd) used in the next association legality detection.

关联ID和随机密码可承载在SBC返回的SIP消息中,例如,成功响应消息(200OKforinvite消息)。具体的,可在200OK的Contact头域中增加nextAssociateId字段,在nextAssociateId字段中的值为关联ID和随机密码(pwd)。通过在现有的SIP消息中新增字段来携带关联ID和随机密码(pwd),SBC处理简单不耗性能,并能也没有额外增加信令开销。The association ID and the random password can be carried in the SIP message returned by the SBC, for example, a successful response message (200 OK for invite message). Specifically, a nextAssociateId field may be added to the Contact header field of 200OK, and the value in the nextAssociateId field is an association ID and a random password (pwd). By adding new fields in the existing SIP message to carry the association ID and the random password (pwd), the SBC process is simple and does not consume performance, and can and does not increase signaling overhead.

此外,关联ID和随机密码也可承载在新增的SIP消息中,进一步的,可在新增的SIP消息的Contact头域中设置nextAssociateId字段,在nextAssociateId字段中的值为关联ID和随机密码。此时,需要重新定义检测接口和关联信息。这样可不改变原来的SIP消息格式。In addition, the association ID and the random password can also be carried in the newly added SIP message. Further, the nextAssociateId field can be set in the Contact header field of the newly added SIP message, and the values in the nextAssociateId field are the association ID and the random password. At this point, it is necessary to redefine the detection interface and associated information. In this way, the original SIP message format will not be changed.

需要说明的是,无论关联合法性检测是否成功,SBC均会生成并返回在下一次关联合法性检测中使用的关联ID。It should be noted that no matter whether the association legality detection is successful or not, the SBC will generate and return the association ID used in the next association legality detection.

在本实施例中,使用RTCP消息激活SBC重新对媒体流的首包进行学习,可以减少网络闪断恢复后呼叫的断话时间。此外,本实施例引入MD5校验,可提高呼叫接续的安全性。In this embodiment, the RTCP message is used to activate the SBC to relearn the first packet of the media stream, which can reduce the disconnection time of the call after the recovery of the network flash disconnection. In addition, this embodiment introduces MD5 verification, which can improve the security of call connection.

需要说明的是,为实现网络闪断呼叫的连续性。现有一般采用STG隧道方案,此方案需要移动终端和STG服务器之间建立隧道。其中,STG服务器单独部署或者SBC内置STG服务器,移动终端侧则需嵌入STG客户端。在程序启动后,移动终端和STG服务器之间建立一条或多条隧道,SIP消息和媒体流数据都传输在隧道之上。It should be noted that, in order to realize the continuity of the network flash call. Currently, the STG tunnel solution is generally adopted, and this solution requires the establishment of a tunnel between the mobile terminal and the STG server. Among them, the STG server is deployed separately or the SBC has a built-in STG server, and the mobile terminal side needs to be embedded with the STG client. After the program starts, one or more tunnels are established between the mobile terminal and the STG server, and SIP messages and media stream data are transmitted over the tunnels.

当网络恢复后,移动终端内嵌的STG客户端重新建立隧道。STG客户端提供给业务的虚拟IP和端口等信息保持和之前一致,对业务不体现网络中断。这样,SIP消息和媒体流数据可以继续传输,不会感知网络中断的过程,从而实现呼叫的连续性。When the network recovers, the STG client embedded in the mobile terminal re-establishes the tunnel. The information such as the virtual IP and port provided by the STG client to the service remains the same as before, and the service does not reflect network interruption. In this way, the SIP message and media stream data can continue to be transmitted without being aware of the process of network interruption, thereby achieving call continuity.

然而,单独部署STG服务器,成本很高。而在SBC内置STG服务器,会严重影响SBC的性能,使得SBC支持的能力急剧下降。并且,采用STG隧道的方案,需要等隧道建立成功后才可以接续,增加了业务中断的时间。However, the cost of deploying the STG server alone is very high. However, the built-in STG server in the SBC will seriously affect the performance of the SBC, causing the ability of the SBC to support it to drop sharply. In addition, in the solution of adopting the STG tunnel, it is necessary to wait for the tunnel to be successfully established before the connection can be made, which increases the time for service interruption.

而本发明所提供的技术方案无需建立隧道,也不需要额外部署STG服务器或在SBC内部署STG服务器,CSCF等IMS网元也无需进行额外处理,SBC也不会增加太多的处理,从而不会导致SBC的处理性能下降。However, the technical solution provided by the present invention does not need to establish a tunnel, and does not need to deploy an additional STG server or deploy an STG server in the SBC. IMS network elements such as CSCF do not need to perform additional processing, and the SBC does not increase too much processing, so that It will cause the processing performance of the SBC to degrade.

需要说明的是,上述技术方案也同样适用于TLS。It should be noted that the above technical solutions are also applicable to TLS.

上述主要从各个装置之间交互的角度对本发明实施例提供的方案进行了介绍。可以理解的是,各个装置,例如SBC、终端等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。The foregoing mainly introduces the solutions provided by the embodiments of the present invention from the perspective of interaction between various devices. It can be understood that, in order to realize the above-mentioned functions, each device, such as SBC, terminal, etc., includes a corresponding hardware structure and/or software module for performing each function. Those skilled in the art should easily realize that the present invention can be realized in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

图7a示出了上述实施例中所涉及的SBC的一种可能的结构示意图,包括:Figure 7a shows a possible structural schematic diagram of the SBC involved in the above embodiment, including:

保持单元701,用于在检测到网络中断后、等待超时之前,保持终端对应的会话资源不释放,并保持上述终端对应的呼叫业务不释放;The holding unit 701 is configured to keep the session resource corresponding to the terminal from being released and keep the call service corresponding to the terminal from being released after the network interruption is detected and before the waiting timeout;

其中,上述会话资源是SBC在网络中断前分配给终端的;而终端在网络中断后,也将保持终端侧的呼叫业务不释放。Wherein, the above-mentioned session resource is allocated to the terminal by the SBC before the network is interrupted; and the terminal will keep the call service on the terminal side from being released after the network is interrupted.

第一接收单元702,用于接收来自上述终端的关联信息,上述关联信息至少包括关联ID,上述关联ID指示了上述SBC在网络中断前分配给上述终端的会话资源;The first receiving unit 702 is configured to receive association information from the above-mentioned terminal, where the above-mentioned association information includes at least an association ID, and the above-mentioned association ID indicates the session resources allocated by the above-mentioned SBC to the above-mentioned terminal before the network interruption;

关联合法性检测单元703,用于使用上述关联信息进行关联合法性检测;An association legality detection unit 703, configured to use the above association information to perform association legality detection;

注册单元704,用于在关联合法性检测成功时,使用上述关联ID指示的会话资源向CSCF发起周期性注册;A registration unit 704, configured to use the session resource indicated by the above-mentioned association ID to initiate periodic registration with the CSCF when the association legality detection is successful;

第二接收单元705,用于接收与上述呼叫业务对应的媒体流数据;上述媒体流数据以新地址发送;The second receiving unit 705 is configured to receive the media stream data corresponding to the above call service; the above media stream data is sent with a new address;

学习单元706,用于对上述媒体流数据的首包进行学习,得到上述新地址。The learning unit 706 is configured to learn the first packet of the media stream data to obtain the new address.

在本发明其他实施例中,请参见图7b,上述SBC还可包括生成单元707,用于生成并返回在下一次关联合法性检测中使用的关联ID。In other embodiments of the present invention, referring to FIG. 7 b , the SBC may further include a generation unit 707 configured to generate and return an association ID used in the next association validity check.

其中,保持单元701可用于执行图2a和2b所示的204部分,图4a和4c所示的403部分、图5a和5b所示的504部分。Wherein, the holding unit 701 can be used to execute part 204 shown in Figures 2a and 2b, part 403 shown in Figures 4a and 4c, and part 504 shown in Figures 5a and 5b.

第一接收单元702可用于接收终端在图2a和2b所示的205部分、图4a和4c所示的404部分、图5a和5b所示的505部分发送的关联信息。The first receiving unit 702 may be configured to receive association information sent by the terminal in part 205 shown in Figures 2a and 2b, part 404 shown in Figures 4a and 4c, and part 505 shown in Figures 5a and 5b.

第二接收单元705可用于接收终端在图2a所示的209部分、图4a所示的408部分、图5a和5b所示的506部分发送的媒体流数据,以及在其他实施例中接收终端发送的媒体流数据。The second receiving unit 705 can be used to receive the media stream data sent by the terminal in part 209 shown in Figure 2a, part 408 shown in Figure 4a, and part 506 shown in Figures 5a and 5b, and receive the media stream data sent by the terminal in other embodiments media stream data.

关联合法性检测单元703可用于执行图2a和2b所示的206部分,图4a和4c所示的405部分、图5a和5b所示的507部分。The association legality detection unit 703 can be used to execute part 206 shown in Figures 2a and 2b, part 405 shown in Figures 4a and 4c, and part 507 shown in Figures 5a and 5b.

注册单元704可用于执行图2a所示的200部分和207部分、图2b所示的200部分、2071部分和2072部分,图4a所示的400部分和406部分、图4c所示的400部分、4061部分和4062部分、图5a所示的500部分、图5b所示的500部分、5081部分和5082部分。The registration unit 704 can be used to execute part 200 and part 207 shown in Figure 2a, part 200, part 2071 and part 2072 shown in Figure 2b, part 400 and part 406 shown in Figure 4a, part 400 shown in Figure 4c, Part 4061 and part 4062, part 500 shown in Figure 5a, part 500, part 5081 and part 5082 shown in Figure 5b.

学习单元706可用于执行图2a所示的210部分、图4a所示的409部分、图5a所示的508部分、图5b所示的5084部分。The learning unit 706 can be used to execute part 210 shown in FIG. 2a, part 409 shown in FIG. 4a, part 508 shown in FIG. 5a, and part 5084 shown in FIG. 5b.

生成单元707可用于执行图2a和2b所示的201部分和208部分,图5a所示的502部分和510部分、图5b所示的502部分和5083部分,此外,生成单元还可用于执行图4a和4c所示的407部分。The generating unit 707 can be used to execute part 201 and part 208 shown in Figure 2a and 2b, part 502 and part 510 shown in Figure 5a, part 502 and part 5083 shown in Figure 5b, in addition, the generating unit can also be used to execute Section 407 shown in 4a and 4c.

图8示出了上述实施例中所涉及的终端的一种可能的结构示意图,包括:Fig. 8 shows a possible structural schematic diagram of a terminal involved in the above embodiment, including:

保持单元801,用于在网络中断后,保持终端侧的呼叫业务不释放;The holding unit 801 is configured to keep the call service on the terminal side from being released after the network is interrupted;

第一发送单元802,用于在网络恢复后,向SBC发送关联信息;The first sending unit 802 is configured to send associated information to the SBC after the network is restored;

上述关联信息用于上述SBC进行关联合法性检测,其中,上述关联信息至少包括关联ID,上述关联ID指示了上述SBC在网络中断前分配给上述终端的会话资源,在关联合法性检测成功后,上述关联ID指示的会话资源将被上述SBC用于向CSCF发起周期性注册;The above-mentioned association information is used for the above-mentioned SBC to perform association legality detection, wherein the above-mentioned association information includes at least an association ID, and the above-mentioned association ID indicates the session resources allocated by the above-mentioned SBC to the above-mentioned terminal before the network is interrupted. After the association legality detection is successful, The session resource indicated by the above-mentioned association ID will be used by the above-mentioned SBC to initiate periodic registration with the CSCF;

第二发送单元803,用于在网络恢复后,向上述SBC传输与上述呼叫业务对应的媒体流数据,上述媒体流数据以新地址发送,上述媒体流数据中的首包用于上述SBC学习上述新地址。The second sending unit 803 is configured to transmit the media stream data corresponding to the above-mentioned call service to the above-mentioned SBC after the network is restored, the above-mentioned media stream data is sent with a new address, and the first packet in the above-mentioned media stream data is used for the above-mentioned SBC to learn the above-mentioned new address.

其中,保持单元801可用于执行图2a和2b所示的203部分、图4a和4c所示的402部分、图5a和5b所示的503部分。Wherein, the holding unit 801 can be used to execute part 203 shown in Figures 2a and 2b, part 402 shown in Figures 4a and 4c, and part 503 shown in Figures 5a and 5b.

第一发送单元802可用于执行图2a所示的209部分、图4a和4c所示的404部分、图5a和5b所示的505部分。The first sending unit 802 may be configured to execute part 209 shown in FIG. 2a, part 404 shown in FIGS. 4a and 4c, and part 505 shown in FIGS. 5a and 5b.

第二发送单元803可用于执行图2a和2b所示的205部分、图4a所示的408部分、图5a和5b所示的506部分,以及,图5b所示的5085部分。The second sending unit 803 may be used to execute part 205 shown in Figures 2a and 2b, part 408 shown in Figure 4a, part 506 shown in Figures 5a and 5b, and part 5085 shown in Figure 5b.

在本发明其他实施例中,上述终端还可包括呼叫单元,用于完成呼叫建立,以及呼叫过程中的媒体流数据发送等。呼叫单元可用于执行图2a所示的202部分和211部分、图2b所示的202部分、图4a所示的401部分和410部分、图4c所示的401部分、图5a所示的501部分和509部分、图5b所示的501部分。In other embodiments of the present invention, the above-mentioned terminal may further include a call unit, configured to complete call establishment and send media stream data during the call. The call unit can be used to implement part 202 and part 211 shown in Figure 2a, part 202 shown in Figure 2b, part 401 and 410 shown in Figure 4a, part 401 shown in Figure 4c, part 501 shown in Figure 5a and part 509, part 501 shown in Figure 5b.

图9示出了上述实施例中所涉及的SBC/终端的另一种可能的结构示意图,包括:Fig. 9 shows another possible structural diagram of the SBC/terminal involved in the above embodiment, including:

总线、控制器/处理器1、存储器2、通信接口3、输入设备4和输出设备5。处理器1、存储器2、通信接口3、输入设备4和输出设备5通过总线相互连接。其中:bus, controller/processor 1, memory 2, communication interface 3, input device 4 and output device 5. The processor 1, the memory 2, the communication interface 3, the input device 4 and the output device 5 are connected to each other through a bus. in:

总线可包括一通路,在计算机系统各个部件之间传送信息。A bus may include a pathway that carries information between various components of a computer system.

控制器/处理器1可以是通用处理器,例如通用中央处理器(CPU)、网络处理器(NetworkProcessor,简称NP)、微处理器等,也可以是特定应用集成电路(application-specificintegratedcircuit,ASIC),或一个或多个用于控制本发明方案程序执行的集成电路。还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。控制器/处理器1也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。The controller/processor 1 may be a general-purpose processor, such as a general-purpose central processing unit (CPU), a network processor (Network Processor, NP for short), a microprocessor, etc., or an application-specific integrated circuit (ASIC). , or one or more integrated circuits for controlling the program execution of the solution of the present invention. It can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components. The controller/processor 1 can also be a combination that realizes computing functions, for example, a combination of one or more microprocessors, a combination of DSP and a microprocessor, and the like.

存储器2中保存有执行本发明技术方案的程序,还可以保存有操作系统和其他应用程序。具体地,程序可以包括程序代码,程序代码包括计算机操作指令。更具体的,存储器2可以是只读存储器(read-onlymemory,ROM)、可存储静态信息和指令的其他类型的静态存储设备、随机存取存储器(randomaccessmemory,RAM)、可存储信息和指令的其他类型的动态存储设备、磁盘存储器等等。The program for executing the technical solution of the present invention is stored in the memory 2, and an operating system and other application programs may also be stored. Specifically, the program may include program code, and the program code includes computer operation instructions. More specifically, the memory 2 may be a read-only memory (read-only memory, ROM), other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM), or other types that can store information and instructions. Types of dynamic storage devices, disk storage, and so on.

输入设备4可包括接收用户输入的数据和信息的装置,例如键盘、鼠标、摄像头、扫描仪、光笔、语音输入装置、触摸屏等。The input device 4 may include a device for receiving data and information input by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, and the like.

输出设备5可包括允许输出信息给用户的装置,例如显示屏、打印机、扬声器等。The output device 5 may comprise a device that allows information to be output to a user, such as a display screen, a printer, a speaker, and the like.

通信接口3可包括使用任何收发器一类的装置,以便与其他设备或通信网络通信,如以太网,无线接入网(RAN),无线局域网(WLAN)等。The communication interface 3 may include using any means such as transceivers to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN) and the like.

SBC的控制器/处理器可用于执行图2a-2b、图3、图4a-4c、图5a-5b、图6中涉及SBC的处理过程和/或用于本申请所描述的技术的其他过程。控制器/处理器也可用于实现保持单元701、第一接收单元702、关联合法性检测单元703、注册单元704、第二接收单元705、学习单元706和生成单元707的功能。The controller/processor of the SBC may be used to perform the processes in FIGS. . The controller/processor can also be used to realize the functions of the maintaining unit 701 , the first receiving unit 702 , the association legality detecting unit 703 , the registering unit 704 , the second receiving unit 705 , the learning unit 706 and the generating unit 707 .

SBC的通信接口则用于支持SBC与其他装置进行通信。例如,用于支持OBU与图2a-2b、图3、图4a-4c、图5a-5b、图6中示出的其他装置进行通信。The communication interface of the SBC is used to support the communication between the SBC and other devices. For example, to support the OBU to communicate with other devices shown in Figures 2a-2b, Figure 3, Figures 4a-4c, Figures 5a-5b, Figure 6.

终端的控制器/处理器可用于执行图2a-2b、图3、图4a-4c、图5a-5b、图6中涉及终端的处理过程和/或用于本申请所描述的技术的其他过程。RSU的控制器/处理器也可用于实现保持单元801、第一发送单元802、第二发送单元803和呼叫单元的功能。The terminal's controller/processor can be used to perform the processes in FIGS. . The controller/processor of the RSU can also be used to realize the functions of the holding unit 801, the first sending unit 802, the second sending unit 803 and the calling unit.

终端的通信接口则用于支持终端与其他装置进行通信。例如,用于支持终端与图2a-2b、图3、图4a-4c、图5a-5b、图6中示出的其他装置进行通信。The communication interface of the terminal is used to support the terminal to communicate with other devices. For example, it is used to support the terminal to communicate with other devices shown in FIGS. 2a-2b, 3, 4a-4c, 5a-5b, and 6.

可以理解的是,图9仅仅示出了SBC或终端的简化设计。在实际应用中,SBC或终端可以包含任意数量的发射器,接收器,处理器,控制器,存储器,通信接口等,而所有可以实现本发明的SBC或终端都在本发明的保护范围之内。It can be understood that Fig. 9 only shows a simplified design of an SBC or a terminal. In practical application, SBC or terminal can contain any number of transmitters, receivers, processors, controllers, memories, communication interfaces, etc., and all SBC or terminals that can realize the present invention are within the protection scope of the present invention .

结合本发明公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于用户设备中。当然,处理器和存储介质也可以作为分立组件存在于用户设备中。The steps of the methods or algorithms described in conjunction with the disclosure of the present invention may be implemented in the form of hardware, or may be implemented in the form of a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, mobile hard disk, CD-ROM or any other form of storage known in the art medium. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be a component of the processor. The processor and storage medium can be located in the ASIC. Additionally, the ASIC may be located in the user equipment. Of course, the processor and the storage medium may also exist in the user equipment as discrete components.

本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that, in the above one or more examples, the functions described in the present invention may be implemented by hardware, software, firmware or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.

以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, any modification, equivalent replacement, improvement, etc. made on the basis of the technical solution of the present invention shall be included in the protection scope of the present invention.

Claims (26)

1.一种基于SIPoverTCP/TLS的通话方法,其特征在于,包括:1. A call method based on SIPoverTCP/TLS, characterized in that, comprising: SBC在检测到网络中断后、等待超时之前,保持终端对应的会话资源不释放,并保持所述终端对应的呼叫业务不释放;其中,所述会话资源是所述SBC在网络中断前分配给所述终端的;所述终端在网络中断后,保持终端侧的呼叫业务不释放;After the SBC detects that the network is interrupted and before waiting for a timeout, the session resource corresponding to the terminal is not released, and the call service corresponding to the terminal is not released; wherein, the session resource is allocated by the SBC to the terminal before the network is interrupted. the terminal; the terminal keeps the call service on the terminal side from being released after the network is interrupted; 所述SBC接收来自所述终端的关联信息,所述关联信息至少包括关联ID,所述关联ID指示了所述SBC在网络中断前分配给所述终端的会话资源;The SBC receives association information from the terminal, the association information includes at least an association ID, and the association ID indicates the session resources allocated by the SBC to the terminal before the network interruption; 所述SBC使用所述关联信息进行关联合法性检测;The SBC uses the association information to perform association legality detection; 若关联合法性检测成功,所述SBC使用所述关联ID指示的会话资源向CSCF发起周期性注册;If the association legality detection is successful, the SBC initiates periodic registration to the CSCF using the session resource indicated by the association ID; 所述SBC接收与所述呼叫业务对应的媒体流数据;所述媒体流数据以新地址发送;The SBC receives media stream data corresponding to the call service; the media stream data is sent with a new address; 所述SBC对所述媒体流数据的首包进行学习,得到所述新地址。The SBC learns the first packet of the media stream data to obtain the new address. 2.如权利要求1所述的方法,其特征在于,还包括:2. The method of claim 1, further comprising: 若关联合法性检测失败,所述SBC为所述终端重新分配会话资源,使用重新分配的会话资源向CSCF发起周期性注册。If the association validity detection fails, the SBC reallocates session resources for the terminal, and uses the reallocated session resources to initiate periodic registration with the CSCF. 3.如权利要求1所述的方法,其特征在于,所述关联合法性检测包括:根据所述关联ID查找相应的会话资源,若查找到,关联合法性检测成功,否则关联合法性检测失败。3. The method according to claim 1, wherein the association legality detection comprises: searching for a corresponding session resource according to the association ID, if found, the association legality detection is successful, otherwise the association legality detection fails . 4.如权利要求3所述的方法,其特征在于,所述接收来自所述终端的关联信息包括:接收携带所述关联信息的注册消息或新增SIP消息。4. The method according to claim 3, wherein the receiving the association information from the terminal comprises: receiving a registration message or a new SIP message carrying the association information. 5.如权利要求1所述的方法,其特征在于,还包括:所述SBC生成并返回在下一次关联合法性检测中使用的关联ID。5. The method according to claim 1, further comprising: the SBC generates and returns an association ID used in the next association legality detection. 6.如权利要求1所述的方法,其特征在于,所述接收来自所述终端的关联信息包括:6. The method according to claim 1, wherein the receiving associated information from the terminal comprises: 接收携带所述关联信息的RTCP消息,所述关联信息还包括MD5值;所述MD5值是所述终端对随机密码进行MD5Hash运算得到的,所述随机密码是所述SBC在网络中断前连同所述关联ID一同分配给所述终端的。receiving the RTCP message carrying the associated information, the associated information also includes an MD5 value; the MD5 value is obtained by the terminal performing MD5Hash operation on a random password, and the random password is obtained by the SBC together with the The association ID is assigned to the terminal together. 7.如权利要求6所述的方法,其特征在于,所述关联合法性检测包括:7. The method according to claim 6, wherein the association legality detection comprises: 根据所述关联ID查找相应的会话资源;Searching for a corresponding session resource according to the association ID; 对所述RTCP消息中的MD5值进行MD5校验;Carry out MD5 verification to the MD5 value in the RTCP message; 若查找到相应的会话资源并且MD5校验成功,则关联合法性检测成功,否则关联合法性检测失败。If the corresponding session resource is found and the MD5 verification is successful, then the association legality check is successful; otherwise, the association legality check fails. 8.如权利要求7所述的方法,其特征在于,还包括:所述SBC生成并返回在下一次关联合法性检测中使用的关联ID和随机密码。8. The method according to claim 7, further comprising: the SBC generates and returns an association ID and a random password used in the next association validity check. 9.如权利要求5或8所述的方法,其特征在于,9. The method of claim 5 or 8, wherein, 所述用于下一次关联合法性检测的关联ID携带于由所述SBC返回的成功响应消息或新增SIP消息中;或者,The association ID used for the next association legality detection is carried in the success response message returned by the SBC or in the new SIP message; or, 所述用于下一次关联合法性检测的关联ID和随机密码携带于由所述SBC返回的成功响应消息或新增SIP消息中。The association ID and random password used for the next association legality detection are carried in the success response message or the new SIP message returned by the SBC. 10.如权利要求1所述的方法,其特征在于,所述关联ID为callID或servicecookie。10. The method according to claim 1, wherein the association ID is callID or servicecookie. 11.一种基于SIPoverTCP/TLS的通信方法,其特征在于,包括:11. A communication method based on SIPoverTCP/TLS, characterized in that, comprising: 终端在网络中断后,保持终端侧的呼叫业务不释放;After the terminal is disconnected from the network, the call service on the terminal side will not be released; 在网络恢复后,所述终端向SBC发送关联信息;所述关联信息用于所述SBC进行关联合法性检测,其中,所述关联信息至少包括关联ID,所述关联ID指示了所述SBC在网络中断前分配给所述终端的会话资源,在关联合法性检测成功后,所述关联ID指示的会话资源将被所述SBC用于向CSCF发起周期性注册;After the network recovers, the terminal sends association information to the SBC; the association information is used by the SBC to perform association legality detection, wherein the association information includes at least an association ID, and the association ID indicates that the SBC is in The session resource allocated to the terminal before the network interruption, after the association legality detection is successful, the session resource indicated by the association ID will be used by the SBC to initiate periodic registration with the CSCF; 在网络恢复后,所述终端向所述SBC传输与所述呼叫业务对应的媒体流数据,所述媒体流数据以新地址发送,所述媒体流数据中的首包用于所述SBC学习所述新地址。After the network recovers, the terminal transmits media stream data corresponding to the call service to the SBC, the media stream data is sent with a new address, and the first packet in the media stream data is used by the SBC to learn the State the new address. 12.如权利要求11所述的方法,其特征在于,所述向SBC发送关联信息包括:向所述SBC发送携带所述关联信息的注册消息或新增SIP消息。12. The method according to claim 11, wherein the sending the association information to the SBC comprises: sending a registration message or a new SIP message carrying the association information to the SBC. 13.如权利要求11所述的方法,其特征在于,所述向SBC发送关联信息包括:13. The method according to claim 11, wherein the sending associated information to the SBC comprises: 所述终端向所述SBC发送携带所述关联信息的RTCP消息;The terminal sends an RTCP message carrying the association information to the SBC; 所述关联信息还包括MD5值;所述MD5值是所述终端对随机密码进行MD5Hash运算得到的,所述随机密码是所述SBC在网络中断前连同所述关联ID一同分配给所述终端的。The associated information also includes an MD5 value; the MD5 value is obtained by the terminal performing an MD5Hash operation on a random password, and the random password is assigned to the terminal together with the associated ID by the SBC before the network is interrupted . 14.一种会话边界控制器SBC,其特征在于,包括:14. A session border controller SBC, characterized in that, comprising: 保持单元,用于在检测到网络中断后、等待超时之前,保持终端对应的会话资源不释放,并保持所述终端对应的呼叫业务不释放;其中,所述会话资源是所述SBC在网络中断前分配给所述终端的;所述终端在网络中断后,保持终端侧的呼叫业务不释放;The holding unit is configured to keep the session resources corresponding to the terminal from being released after the network interruption is detected and before waiting for a timeout, and keep the call service corresponding to the terminal from being released; previously assigned to the terminal; the terminal keeps the call service on the terminal side from being released after the network is interrupted; 第一接收单元,用于接收来自所述终端的关联信息,所述关联信息至少包括关联ID,所述关联ID指示了所述SBC在网络中断前分配给所述终端的会话资源;A first receiving unit, configured to receive association information from the terminal, where the association information includes at least an association ID, and the association ID indicates the session resource allocated to the terminal by the SBC before the network interruption; 关联合法性检测单元,用于使用所述关联信息进行关联合法性检测;An association legality detection unit, configured to use the association information to perform association legality detection; 注册单元,用于在关联合法性检测成功时,使用所述关联ID指示的会话资源向CSCF发起周期性注册;A registration unit, configured to use the session resource indicated by the association ID to initiate periodic registration to the CSCF when the association legality detection is successful; 第二接收单元,用于接收与所述呼叫业务对应的媒体流数据;所述媒体流数据以新地址发送;The second receiving unit is configured to receive media stream data corresponding to the call service; the media stream data is sent with a new address; 学习单元,用于对所述媒体流数据的首包进行学习,得到所述新地址。The learning unit is configured to learn the first packet of the media stream data to obtain the new address. 15.如权利要求14所述的SBC,其特征在于,所述注册单元还用于:15. The SBC according to claim 14, wherein the registration unit is also used for: 在关联合法性检测失败时,为所述终端重新分配会话资源,使用重新分配的会话资源向CSCF发起周期性注册。When the association legitimacy detection fails, re-allocate session resources for the terminal, and use the re-allocated session resources to initiate periodic registration with the CSCF. 16.如权利要求15所述的SBC,其特征在于,在关联合法性检测的方面,所述关联合法性检测单元用于:根据所述关联ID查找相应的会话资源,若查找到,关联合法性检测成功,否则关联合法性检测失败。16. The SBC according to claim 15, wherein, in terms of association legality detection, the association legality detection unit is configured to: search for a corresponding session resource according to the association ID, if found, the association is legal If the validity check is successful, otherwise the association validity check fails. 17.如权利要求16所述的SBC,其特征在于,在所述接收来自所述终端的关联信息的方面,所述第一接收单元用于:接收携带所述关联信息的注册消息或新增SIP消息。17. The SBC according to claim 16, wherein, in terms of receiving associated information from the terminal, the first receiving unit is configured to: receive a registration message carrying the associated information or a newly added SIP messages. 18.如权利要求14所述的SBC,其特征在于,还包括:18. The SBC of claim 14, further comprising: 生成单元,用于生成并返回在下一次关联合法性检测中使用的关联ID。The generation unit is used to generate and return the association ID used in the next association legality detection. 19.如权利要求18所述的SBC,其特征在于,在所述接收来自所述终端的关联信息的方面,所述第一接收单元用于:接收携带所述关联信息的RTCP消息,所述关联信息还包括MD5值;所述MD5值是所述终端对随机密码进行MD5Hash运算得到的,所述随机密码是所述生成单元在网络中断前连同所述关联ID一同分配给所述终端的。19. The SBC according to claim 18, wherein, in terms of receiving associated information from the terminal, the first receiving unit is configured to: receive an RTCP message carrying the associated information, the The associated information also includes an MD5 value; the MD5 value is obtained by the terminal performing MD5 Hash operation on a random password, and the random password is assigned to the terminal together with the associated ID by the generating unit before the network is interrupted. 20.如权利要求19所述的SBC,其特征在于,在关联合法性检测的方面,所述关联合法性检测单元用于:20. The SBC according to claim 19, characterized in that, in terms of association legality detection, the association legality detection unit is used for: 根据所述关联ID查找相应的会话资源;Searching for a corresponding session resource according to the association ID; 对所述RTCP消息中的MD5值进行MD5校验;Carry out MD5 verification to the MD5 value in the RTCP message; 若查找到相应的会话资源并且MD5校验成功,则关联合法性检测成功,否则关联合法性检测失败。If the corresponding session resource is found and the MD5 verification is successful, then the association legality check is successful; otherwise, the association legality check fails. 21.如权利要求18或19所述的SBC,其特征在于,21. The SBC of claim 18 or 19, wherein, 用于下一次关联合法性检测的关联ID携带于由所述生成单元返回的成功响应消息或新增SIP消息中;或者,The association ID used for the next association legality detection is carried in the success response message or the new SIP message returned by the generating unit; or, 用于下一次关联合法性检测的关联ID和随机密码携带于由所述生成单元返回的成功响应消息或新增SIP消息中。The association ID and random password used for the next association legality detection are carried in the success response message or the newly added SIP message returned by the generating unit. 22.一种终端,其特征在于,包括:22. A terminal, characterized in that it comprises: 保持单元,用于在网络中断后,保持终端侧的呼叫业务不释放;The holding unit is used to keep the call service on the terminal side from being released after the network is interrupted; 第一发送单元,用于在网络恢复后,向SBC发送关联信息;所述关联信息用于所述SBC进行关联合法性检测,其中,所述关联信息至少包括关联ID,所述关联ID指示了所述SBC在网络中断前分配给所述终端的会话资源,在关联合法性检测成功后,所述关联ID指示的会话资源将被所述SBC用于向CSCF发起周期性注册;The first sending unit is configured to send association information to the SBC after the network recovers; the association information is used by the SBC to perform association legality detection, wherein the association information includes at least an association ID, and the association ID indicates The session resources allocated by the SBC to the terminal before the network interruption, after the association legality detection is successful, the session resources indicated by the association ID will be used by the SBC to initiate periodic registration with the CSCF; 第二发送单元,用于在网络恢复后,向所述SBC传输与所述呼叫业务对应的媒体流数据,所述媒体流数据以新地址发送,所述媒体流数据中的首包用于所述SBC学习所述新地址。The second sending unit is configured to transmit media stream data corresponding to the call service to the SBC after the network is restored, the media stream data is sent with a new address, and the first packet in the media stream data is used for all The SBC learns the new address. 23.如权利要求22所述的终端,其特征在于,在所述向SBC发送关联信息的方面,所述第一发送单元用于:向所述SBC发送携带所述关联信息的注册消息或新增SIP消息。23. The terminal according to claim 22, wherein, in terms of sending associated information to the SBC, the first sending unit is configured to: send a registration message or a new registration message carrying the associated information to the SBC Add SIP message. 24.如权利要求22所述的终端,其特征在于,在所述向SBC发送关联信息的方面,所述第一发送单元用于:24. The terminal according to claim 22, wherein, in terms of sending associated information to the SBC, the first sending unit is configured to: 向所述SBC发送携带所述关联信息的RTCP消息;sending an RTCP message carrying the associated information to the SBC; 所述关联信息还包括MD5值;所述MD5值是所述终端对随机密码进行MD5Hash运算得到的,所述随机密码是所述SBC在网络中断前连同所述关联ID一同分配给所述终端的。The associated information also includes an MD5 value; the MD5 value is obtained by the terminal performing an MD5Hash operation on a random password, and the random password is assigned to the terminal together with the associated ID by the SBC before the network is interrupted . 25.一种会话边界控制器SBC,其特征在于,包括处理器和存储器,其中,所述处理器通过运行存储在所述存储器内的软件程序、调用存储在所述存储器内的数据,至少执行如下步骤:25. A session border controller SBC, characterized in that it includes a processor and a memory, wherein the processor executes at least Follow the steps below: 在检测到网络中断后、等待超时之前,保持终端对应的会话资源不释放,并保持所述终端对应的呼叫业务不释放;其中,所述会话资源是所述SBC在网络中断前分配给所述终端的;所述终端在网络中断后,保持终端侧的呼叫业务不释放;After detecting network interruption and before waiting for timeout, keep the session resource corresponding to the terminal from being released, and keep the call service corresponding to the terminal from being released; wherein, the session resource is allocated by the SBC to the of the terminal; the terminal keeps the call service on the terminal side from being released after the network is interrupted; 接收来自所述终端的关联信息,所述关联信息至少包括关联ID,所述关联ID指示了所述SBC在网络中断前分配给所述终端的会话资源;receiving association information from the terminal, where the association information includes at least an association ID, and the association ID indicates the session resource allocated to the terminal by the SBC before the network interruption; 使用所述关联信息进行关联合法性检测;Using the association information to perform association legality detection; 在关联合法性检测成功时,使用所述关联ID指示的会话资源向CSCF发起周期性注册;When the association legality detection is successful, use the session resource indicated by the association ID to initiate periodic registration with the CSCF; 接收与所述呼叫业务对应的媒体流数据;所述媒体流数据以新地址发送;receiving media stream data corresponding to the call service; sending the media stream data with a new address; 对所述媒体流数据的首包进行学习,得到所述新地址。Learning the first packet of the media stream data to obtain the new address. 26.一种终端,其特征在于,包括处理器和存储器,其中,所述处理器通过运行存储在所述存储器内的软件程序、调用存储在所述存储器内的数据,至少执行如下步骤:26. A terminal, characterized by comprising a processor and a memory, wherein the processor executes at least the following steps by running a software program stored in the memory and calling data stored in the memory: 在网络中断后,保持终端侧的呼叫业务不释放;After the network is interrupted, the call service on the terminal side will not be released; 在网络恢复后,向SBC发送关联信息;所述关联信息用于所述SBC进行关联合法性检测,其中,所述关联信息至少包括关联ID,所述关联ID指示了所述SBC在网络中断前分配给所述终端的会话资源,在关联合法性检测成功后,所述关联ID指示的会话资源将被所述SBC用于向CSCF发起周期性注册;After the network is restored, send association information to the SBC; the association information is used for the SBC to perform association legality detection, wherein the association information includes at least an association ID, and the association ID indicates that the SBC was before the network interruption The session resource allocated to the terminal, after the association validity detection is successful, the session resource indicated by the association ID will be used by the SBC to initiate periodic registration with the CSCF; 在网络恢复后,向所述SBC传输与所述呼叫业务对应的媒体流数据,所述媒体流数据以新地址发送,所述媒体流数据中的首包用于所述SBC学习所述新地址。After the network is restored, transmit the media stream data corresponding to the call service to the SBC, the media stream data is sent with a new address, and the first packet in the media stream data is used for the SBC to learn the new address .
CN201610143258.6A 2016-03-14 2016-03-14 Communication method and related device based on SIP over TCP/TLS Active CN105813228B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610143258.6A CN105813228B (en) 2016-03-14 2016-03-14 Communication method and related device based on SIP over TCP/TLS
PCT/CN2017/074382 WO2017157144A1 (en) 2016-03-14 2017-02-22 Sip over tcp/tls-based communication method and associated device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610143258.6A CN105813228B (en) 2016-03-14 2016-03-14 Communication method and related device based on SIP over TCP/TLS

Publications (2)

Publication Number Publication Date
CN105813228A true CN105813228A (en) 2016-07-27
CN105813228B CN105813228B (en) 2019-04-26

Family

ID=56468264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610143258.6A Active CN105813228B (en) 2016-03-14 2016-03-14 Communication method and related device based on SIP over TCP/TLS

Country Status (2)

Country Link
CN (1) CN105813228B (en)
WO (1) WO2017157144A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017157144A1 (en) * 2016-03-14 2017-09-21 华为技术有限公司 Sip over tcp/tls-based communication method and associated device
CN108617037A (en) * 2017-01-10 2018-10-02 大唐移动通信设备有限公司 A kind of method for releasing resource and device based on LTE system
CN110351224A (en) * 2018-04-03 2019-10-18 成都鼎桥通信技术有限公司 A kind of dissemination method and device of SIP status service
CN110809014A (en) * 2018-08-06 2020-02-18 中兴通讯股份有限公司 Service request, negotiation and response method, device, network equipment and system
CN114124907A (en) * 2020-08-14 2022-03-01 中国移动通信集团浙江有限公司 SIP signaling front-end processor, service upgrading method, device, equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979980B (en) * 2021-12-14 2023-07-21 中移互联网有限公司 Communication method of SIP message, terminal equipment and network equipment thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070002764A1 (en) * 2005-06-30 2007-01-04 Siemens Aktiengesellschaft Network arrangement and method for handling sessions in a telecommunications network
CN102577510A (en) * 2011-12-28 2012-07-11 华为技术有限公司 Method and device for maintaining call continuity
CN103166766A (en) * 2011-12-12 2013-06-19 中国移动通信集团北京有限公司 A billing method, device and system
CN104767751A (en) * 2015-04-02 2015-07-08 大唐移动通信设备有限公司 Session control method and device
US20150350983A1 (en) * 2014-05-29 2015-12-03 T-Mobile Usa, Inc. Wi-Fi Calling Using SIP-IMS Handset and Evolved Packet Data Gateway

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9197674B1 (en) * 2006-03-27 2015-11-24 Alcatel Lucent Inter-domain user and service mobility in SIP/SIMPLE systems
US8572255B2 (en) * 2007-01-31 2013-10-29 Broadsoft M6, Llc System and method for reestablishing, with a client device, a signaling session associated with a call in progress
US20140079023A1 (en) * 2012-09-20 2014-03-20 D2 Technologies Inc. Method of Internet Protocol (IP) to IP handover
JP5681772B1 (en) * 2013-09-24 2015-03-11 株式会社Nttドコモ IP multimedia subsystem, proxy session control device, and communication control method
CN105813228B (en) * 2016-03-14 2019-04-26 华为技术有限公司 Communication method and related device based on SIP over TCP/TLS

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070002764A1 (en) * 2005-06-30 2007-01-04 Siemens Aktiengesellschaft Network arrangement and method for handling sessions in a telecommunications network
CN103166766A (en) * 2011-12-12 2013-06-19 中国移动通信集团北京有限公司 A billing method, device and system
CN102577510A (en) * 2011-12-28 2012-07-11 华为技术有限公司 Method and device for maintaining call continuity
US20150350983A1 (en) * 2014-05-29 2015-12-03 T-Mobile Usa, Inc. Wi-Fi Calling Using SIP-IMS Handset and Evolved Packet Data Gateway
CN104767751A (en) * 2015-04-02 2015-07-08 大唐移动通信设备有限公司 Session control method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017157144A1 (en) * 2016-03-14 2017-09-21 华为技术有限公司 Sip over tcp/tls-based communication method and associated device
CN108617037A (en) * 2017-01-10 2018-10-02 大唐移动通信设备有限公司 A kind of method for releasing resource and device based on LTE system
CN108617037B (en) * 2017-01-10 2020-08-18 大唐移动通信设备有限公司 Resource release method and device based on LTE system
CN110351224A (en) * 2018-04-03 2019-10-18 成都鼎桥通信技术有限公司 A kind of dissemination method and device of SIP status service
CN110809014A (en) * 2018-08-06 2020-02-18 中兴通讯股份有限公司 Service request, negotiation and response method, device, network equipment and system
CN110809014B (en) * 2018-08-06 2023-03-03 中兴通讯股份有限公司 Service request, negotiation and response method, device, network equipment and system
CN114124907A (en) * 2020-08-14 2022-03-01 中国移动通信集团浙江有限公司 SIP signaling front-end processor, service upgrading method, device, equipment and storage medium
CN114124907B (en) * 2020-08-14 2023-07-21 中国移动通信集团浙江有限公司 SIP signaling front-end processor and service upgrade method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2017157144A1 (en) 2017-09-21
CN105813228B (en) 2019-04-26

Similar Documents

Publication Publication Date Title
CN105813228B (en) Communication method and related device based on SIP over TCP/TLS
US10862863B2 (en) Session identifier for a communication session
US8374079B2 (en) Proxy server, communication system, communication method and program
US9923827B2 (en) Load balancing and migration of transport connections
US20160380966A1 (en) Media Relay Server
US9357014B2 (en) Service-based networking
WO2011006324A1 (en) Method and terminal for file transmission
US9906568B2 (en) Hybrid cloud media architecture for media communications
US10367856B2 (en) Failover management of SIP based multimedia communication sessions
US9451018B2 (en) SCTP endpoint migration
US9864856B2 (en) Efficient hardware trust verification in data communication systems that comprise network interface cards, central processing units, and data memory buffers
US12184737B2 (en) Minimizing connection delay for a data session
CN117097702A (en) High concurrency WebRTC gateway processing method based on SIP protocol, gateway system, electronic device and storage medium
JP2015154360A (en) Call incoming control apparatus, call incoming control method, and program
CN101510901B (en) Communication method, communication apparatus and system between distributed equipment
US10972514B2 (en) Reestablishment of session initiation protocol (SIP) dialogs
CN104811426B (en) User Agent Client sends the method and User Agent Client of registration request
CN106921624B (en) Session boundary controller and data transmission method
WO2014101159A1 (en) Method, device and server for setting and processing interactive connectivity establishment address
CN102957674B (en) A kind of resource control method and system for broadband network
WO2015131533A1 (en) Recording method, call control server and recording system
WO2024108900A1 (en) Electronic signature verification method and apparatus
CN103179680B (en) A kind of link keeping method, system, IAD and SBC
CN115696325A (en) Session method, device, server and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant