[go: up one dir, main page]

CN1838790A - PTT service realizing system and method based on VoIP technique - Google Patents

PTT service realizing system and method based on VoIP technique Download PDF

Info

Publication number
CN1838790A
CN1838790A CN 200510055668 CN200510055668A CN1838790A CN 1838790 A CN1838790 A CN 1838790A CN 200510055668 CN200510055668 CN 200510055668 CN 200510055668 A CN200510055668 A CN 200510055668A CN 1838790 A CN1838790 A CN 1838790A
Authority
CN
China
Prior art keywords
line server
call
ptt
message
media
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
CN 200510055668
Other languages
Chinese (zh)
Other versions
CN100417245C (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2005100556687A priority Critical patent/CN100417245C/en
Publication of CN1838790A publication Critical patent/CN1838790A/en
Application granted granted Critical
Publication of CN100417245C publication Critical patent/CN100417245C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供一种基于VoIP技术的一键通业务实现系统及方法,包括一键通客户端、用户在线服务器,以及宽带网关,首先由客户端向用户在线服务器登记注册,当主叫端向所述在线服务器发送呼叫请求时,在线服务器根据该请求判断呼叫群组内用户的网络属性,根据该属性向被叫端转发呼叫信令,并在用户间建立媒体通道,交换媒体包,对于公网用户,由在线服务器转发呼叫信令,用户之间直接建立媒体通道,对于私网用户,由在线服务器转发呼叫信令,并与宽带网关进行信令协商,经由宽带网关建立媒体通道,本发明可以自适应地区分不同PTT用户,根据用户属性采取不同的媒体处理方案,极大地提高了PTT呼叫的效率,减轻了系统设备的负荷。

Figure 200510055668

The present invention provides a system and method for implementing a push-to-talk service based on VoIP technology, including a push-to-talk client, an online user server, and a broadband gateway. When the above-mentioned online server sends a call request, the online server judges the network attribute of the user in the call group according to the request, forwards the call signaling to the called end according to the attribute, and establishes a media channel between users to exchange media packets. For users, the online server forwards the call signaling, and directly establishes a media channel between users. For private network users, the online server forwards the call signaling, and conducts signaling negotiation with the broadband gateway, and establishes a media channel through the broadband gateway. The present invention can Adaptively distinguish different PTT users, and adopt different media processing schemes according to user attributes, which greatly improves the efficiency of PTT calls and reduces the load on system equipment.

Figure 200510055668

Description

基于VoIP技术的“一键通”业务实现系统及方法"Push to talk" service realization system and method based on VoIP technology

技术领域technical field

本发明涉及即时通讯领域,具体涉及一种基于VoIP技术的一键通业务实现系统及方法。The invention relates to the field of instant messaging, in particular to a VoIP technology-based push-to-talk service realization system and method.

背景技术Background technique

在当今信息化时代,人们总希望一按某一个键就立即可以通话,而不像公众移动电话那样先拨11位数,还要等数ms或更长时间才能通话,若遇对方正在通话还不知何时可以通话,不论你有多么急的事都只有耐心等,而PTT(Push To T主叫端lk),即“一键通”业务,可以快速建立通话,为手机用户提供类似集群系统的“一对一”或“一对多”半双工通话的通讯业务。In today's information age, people always hope to be able to talk immediately when they press a certain key, instead of dialing 11 digits first like public mobile phones, and waiting for several milliseconds or longer to make a call. You don’t know when you can talk, no matter how urgent you are, you can only wait patiently, and PTT (Push To T calling terminal lk), that is, "one-touch talk" service, can quickly establish a call and provide a similar trunking system for mobile phone users Communication services of "one-to-one" or "one-to-many" half-duplex calls.

PTT最早源于北美的CDMA网络,基于CDMA 1x的PTT业务在很短的时间内就吸引了众多的用户。后来各大运营商和制造商相继跟进,推出各类有关的PTT业务。目前,该项技术已被成功的应用到GSM和CDMA网络之中。PTT originated from the CDMA network in North America, and the PTT service based on CDMA 1x has attracted many users in a very short period of time. Later, major operators and manufacturers followed up one after another and launched various related PTT services. At present, this technology has been successfully applied to GSM and CDMA networks.

公众移动网中,不论是GSM还是CDMA,其PTT都是采用全数字VoIP技术,它根据会话发起协议(SIP)和多媒体子系统(IMS)而设计,该技术是基于分组数据网络、存贮交换原理,而不同于集群专业网中的电路直接传输交换。In the public mobile network, no matter it is GSM or CDMA, its PTT adopts all-digital VoIP technology, which is designed according to Session Initiation Protocol (SIP) and Multimedia Subsystem (IMS). This technology is based on packet data network, storage switching The principle is different from the direct transmission and exchange of the circuit in the cluster professional network.

宽带网络技术的不断发展以及宽带网络的普遍应用,为基于VoIP技术的“一键通”业务的实现和规模使用提供了可能。然而,众所周知,IP地址的匮乏造成了网络拓扑结构的复杂性,因而,在现有的基于VoIP技术的PTT实现方案中,都需要解决不同局域网内用户之间的PTT呼叫问题。The continuous development of broadband network technology and the widespread application of broadband network provide the possibility for the realization and large-scale use of the "one-touch" service based on VoIP technology. However, as we all know, the lack of IP addresses has caused the complexity of the network topology. Therefore, in the existing PTT implementation schemes based on VoIP technology, it is necessary to solve the problem of PTT calls between users in different LANs.

为了解决私网用户的网络穿越问题,通常情况下,基于VoIP技术的PTT系统均需要增加一个系统设备来控制和处理媒体包。然而,如何有效地提高PTT呼叫的效率,减少系统设备的负荷,则是基于VoIP技术的PTT系统需要重点解决的问题之一。In order to solve the network traversal problem of private network users, usually, PTT systems based on VoIP technology need to add a system device to control and process media packets. However, how to effectively improve the efficiency of PTT calls and reduce the load on system equipment is one of the key problems to be solved in the PTT system based on VoIP technology.

发明内容Contents of the invention

本发明所要解决的技术问题在于提供一种基于VoIP技术的一键通业务实现方法,在实现不同局域网用户之间的PTT呼叫的同时,提高PTT呼叫的效率,缩短呼叫建立时间,减轻系统设备的负荷,提高媒体传输的实时性。The technical problem to be solved by the present invention is to provide a method for implementing a push-to-talk service based on VoIP technology, which can improve the efficiency of PTT calls while realizing PTT calls between users of different LANs, shorten the call setup time, and reduce the cost of system equipment. Load, improve the real-time performance of media transmission.

本发明提供一种基于VoIP技术的一键通业务实现系统,包括一键通客户端,用于发起/接受一键通呼叫请求,并进行媒体流的编解码,还包括:The present invention provides a PTT service implementation system based on VoIP technology, including a PTT client for initiating/accepting a PTT call request, and encoding and decoding media streams, and also includes:

用户在线服务器,用于接受所述客户端的登记注册,记录客户端的连接属性,并据此转发一键通呼叫请求,在只有公网客户端参与的一键通呼叫中,协助所述客户端之间直接建立媒体通道,交换媒体包;The user online server is used to accept the registration of the client, record the connection attribute of the client, and forward the push-to-talk call request accordingly, and assist the client in the push-to-talk call in which only the public network client participates. directly establish media channels between them, and exchange media packets;

宽带网关设备,通过内部接口与所述用户在线服务器相连,用于在具有网络地址转换设备的私网客户端参与的一键通呼叫中,与所述在线服务器进行信令协商,并作为中介为所述客户端建立媒体通道,交换媒体包。The broadband gateway device is connected to the user online server through an internal interface, and is used to perform signaling negotiation with the online server in a push-to-talk call participated by a private network client with a network address translation device, and acts as an intermediary for The client establishes a media channel and exchanges media packets.

本发明进而提供一种基于VoIP技术的一键通业务实现方法,包括如下步骤:The present invention further provides a method for realizing a push-to-talk service based on VoIP technology, comprising the following steps:

(1)一键通客户端向用户在线服务器登记注册;(1) The push-to-talk client registers with the user's online server;

(2)一键通主叫发起端向所述在线服务器发送呼叫请求;(2) The PTT calling initiator sends a call request to the online server;

(3)所述在线服务器根据该呼叫请求判断呼叫群组内用户的网络属性属于公网用户还是有私网用户;(3) The online server judges whether the network attributes of the users in the calling group belong to public network users or private network users according to the call request;

(4)所述在线服务器根据网络属性向被叫端转发呼叫信令,协助用户间建立媒体通道,交换媒体包,(4) The online server forwards the call signaling to the called end according to the network attribute, assists users in establishing media channels, and exchanges media packets,

其中,对于只有公网用户参与的呼叫,由所述在线服务器转发呼叫信令,用户之间直接建立媒体通道,交换媒体包;Wherein, for the call that only public network users participate in, the call signaling is forwarded by the online server, and a media channel is directly established between users to exchange media packets;

对于具有网络地址转换功能的私网用户参与的呼叫,由所述在线服务器转发呼叫信令,并与宽带网关进行信令协商,经由宽带网关建立媒体通道,交换媒体包。For the call participated by the private network user with the network address translation function, the online server forwards the call signaling, and conducts signaling negotiation with the broadband gateway, establishes a media channel via the broadband gateway, and exchanges media packets.

本发明在现有的网络架构中,实现了一种基于VoIP技术的PTT业务,可以自适应地区分不同PTT用户,根据用户属性采取不同的媒体处理方案,极大地提高了PTT呼叫的效率,进一步缩短了呼叫建立时间,而且还有效地减轻了系统设备的负荷,提高了媒体传输的实时性。In the existing network architecture, the present invention realizes a PTT service based on VoIP technology, can adaptively distinguish different PTT users, adopts different media processing schemes according to user attributes, greatly improves the efficiency of PTT calls, and further It shortens the call establishment time, effectively reduces the load of system equipment, and improves the real-time performance of media transmission.

附图说明Description of drawings

图1是应用本发明的系统组网结构示意图;Fig. 1 is a schematic diagram of a system networking structure applying the present invention;

图2是本发明的实现方法流程图;Fig. 2 is the realization method flowchart of the present invention;

图3是本发明中公网用户“一对一”的PTT呼叫接口及流程说明;Fig. 3 is the PTT call interface and process description of public network user "one-to-one" in the present invention;

图4是本发明中私网用户参与的“一对一”PTT呼叫接口及流程说明;Fig. 4 is the "one-to-one" PTT call interface and process description that private network users participate in in the present invention;

图5是本发明中私网用户参与的“一对多”PTT呼叫接口及流程说明。Fig. 5 is a "one-to-many" PTT call interface and process description in which private network users participate in the present invention.

具体实施方式Detailed ways

本发明提供一种基于VoIP技术的“一键通”业务实现系统及方法,所使用的设备主要包括:PTT客户端,用户在线服务器PS和宽带网关设备BGW。PTT客户端可以发起或接受PTT呼叫请求;用户在线服务器负责PTT呼叫请求的处理,同时,在有私网用户参与的PTT呼叫中,用户在线服务器还负责向宽带网关设备发送PTT呼叫信息,以便宽带网关确定媒体转发准则;宽带网关设备不参与公网用户之间的PTT呼叫,它在有私网用户参与的PTT呼叫过程中发挥重要作用,媒体包的转发将由宽带网关设备来完成。本发明采用Client-Server(客户端-服务器)的架构配置系统,PTT客户端和在线服务器之间以SIP(Session Initiation Protocol)协议进行通讯,在线服务器与宽带网关设备之间使用内部接口。客户端的请求或响应被封装到SIP消息的MESSAGE源语之中进行传输。The present invention provides a system and method for implementing a "push to talk" service based on VoIP technology. The used equipment mainly includes: PTT client, user online server PS and broadband gateway equipment BGW. The PTT client can initiate or accept PTT call requests; the user online server is responsible for processing PTT call requests. The gateway determines the media forwarding criteria; the broadband gateway device does not participate in PTT calls between public network users, it plays an important role in the PTT call process with private network users, and the forwarding of media packets will be completed by the broadband gateway device. The present invention adopts a Client-Server (client-server) architecture configuration system, and the SIP (Session Initiation Protocol) protocol is used for communication between the PTT client and the online server, and an internal interface is used between the online server and the broadband gateway device. The client's request or response is encapsulated into the MESSAGE source language of the SIP message for transmission.

PTT呼叫双方均按照会话描述协议(SDP,Session Description Protocol)描述自己的媒体,然后将该SDP封装到SIP-MESSAGE之中并发送给在线服务器,由在线服务器转发该消息。呼叫双方接收到对方的消息之后,提取对方的SDP描述并进行解码,进一步完成媒体的协商和媒体通道的建立。对于两个公网用户,双方直接通过在线服务器交换各自的SDP描述,以便建立PTT呼叫的媒体通道;而对于具有网络地址转换功能的私网用户,PTT呼叫信令同样由在线服务器来转发,但是,在线服务器与宽带网关还必须进行建立媒体通道的信令协商,由宽带网关建立媒体通道,制定媒体转发机制,实现双方之间的媒体包交换。Both sides of the PTT call describe their own media according to the Session Description Protocol (SDP, Session Description Protocol), then encapsulate the SDP into a SIP-MESSAGE and send it to the online server, and the online server forwards the message. After receiving the other party's message, the calling parties extract and decode the other party's SDP description, further completing the media negotiation and the establishment of the media channel. For two public network users, the two parties directly exchange their SDP descriptions through the online server to establish the media channel of the PTT call; and for the private network users with the network address translation function, the PTT call signaling is also forwarded by the online server, but , the online server and the broadband gateway must also conduct signaling negotiation for establishing a media channel, and the broadband gateway establishes a media channel, formulates a media forwarding mechanism, and realizes the exchange of media packets between the two parties.

本发明可以自适应地区分不同PTT用户,根据用户属性采取不同的媒体处理方案。PTT客户端向在线服务器注册时,需要将自己的连接属性通过SIP协议的MESSAGE源语发送给在线服务器。连接属性主要包括:客户端所在计算机的IP地址以及连接的端口号。在线服务器根据该信息以及PTT客户端向在线服务器注册所使用的地址和端口号,即可对该客户端的网络属性进行判断。在进行PTT呼叫时,即可判断出该PTT呼叫群组内的用户是否是公网用户或者是否位于同一个局域网内。The present invention can adaptively distinguish different PTT users, and adopt different media processing schemes according to user attributes. When the PTT client registers with the online server, it needs to send its own connection attributes to the online server through the MESSAGE source language of the SIP protocol. The connection properties mainly include: the IP address of the computer where the client is located and the port number of the connection. Based on the information and the address and port number used by the PTT client to register with the online server, the online server can judge the network attribute of the client. When making a PTT call, it can be determined whether the users in the PTT call group are public network users or whether they are located in the same local area network.

本发明中PTT呼叫不仅包含音频流,同时还包含视频流。音频和视频的编解码均在PTT客户端来完成。其中,音频处理支持G.711、G.729和G.723标准,视频编解码采用H.263标准。In the present invention, the PTT call includes not only audio stream, but also video stream. Both audio and video encoding and decoding are done on the PTT client. Among them, the audio processing supports G.711, G.729 and G.723 standards, and the video codec adopts the H.263 standard.

本发明中所述的“公网用户”,既指因特网上的公网用户,也包含位于同一个局域网内的用户;“私网用户”是指不在同一个局域网内的用户。The "public network user" mentioned in the present invention not only refers to the public network user on the Internet, but also includes the user located in the same local area network; "private network user" refers to the user who is not in the same local area network.

如图1所示,为应用本发明的系统组网结构示意图。本系统由PTT客户端,用户在线服务器和宽带网关组成,其中,私网客户端具有网络地址转换(NAT)设备。PTT客户端和在线服务器之间可以采用SIP协议进行信令的交互;当PTT呼叫建立起来之后,客户端之间以及客户端与宽带网关之间的媒体传输可以采用RTP/RTCP协议;在线服务器与宽带网关之间可以采用内部自定义的接口。PTT客户端可以发起或接受PTT呼叫请求,同时它还负责音频和视频媒体流的编解码;用户在线服务器负责PTT客户端的登记与注册,同时记录PTT客户端的连接属性,并完成PTT呼叫请求的转发;宽带网关设备用于私网用户参与的PTT呼叫,由它来完成媒体包的控制与分发。公网用户之间的PTT呼叫与宽带网关无关。As shown in FIG. 1 , it is a schematic diagram of a system networking structure applying the present invention. This system is composed of PTT client, user online server and broadband gateway, wherein, the private network client has network address translation (NAT) equipment. The SIP protocol can be used for signaling interaction between the PTT client and the online server; after the PTT call is established, the media transmission between the clients and between the client and the broadband gateway can use the RTP/RTCP protocol; the online server and Internal self-defined interfaces can be used between broadband gateways. The PTT client can initiate or accept PTT call requests, and it is also responsible for the encoding and decoding of audio and video media streams; the user online server is responsible for the registration and registration of the PTT client, while recording the connection attributes of the PTT client, and completing the forwarding of the PTT call request ; The broadband gateway device is used for PTT calls participated by private network users, and it completes the control and distribution of media packets. PTT calls between public network users have nothing to do with broadband gateways.

如图2所示,为本发明的实现方法流程图,首先一键通客户端向用户在线服务器登记注册(步骤201);当一键通主叫发起端向所述在线服务器发送呼叫请求时(步骤202);所述在线服务器根据该呼叫请求判断呼叫群组内用户的网络属性属于公网用户还是有私网用户(步骤203);然后所述在线服务器根据网络属性向被叫端转发呼叫信令,并协助用户间建立媒体通道,交换媒体包(步骤204),对于只有公网用户参与的呼叫,由所述在线服务器转发呼叫信令,用户之间直接建立媒体通道,交换媒体包,对于具有网络地址转换功能的私网用户参与的呼叫,由所述在线服务器转发呼叫信令,并与宽带网关进行信令协商,经由宽带网关建立媒体通道,交换媒体包。As shown in Figure 2, it is the implementation method flowchart of the present invention, at first the push-to-talk client registers with the user online server (step 201); when the push-to-talk calling initiator sends a call request to the online server ( Step 202); The online server judges according to the call request that the network attribute of the user in the call group belongs to the public network user or has a private network user (step 203); then the online server forwards the call signal to the called terminal according to the network attribute order, and assist users to set up media channels and exchange media packets (step 204). For calls that only public network users participate in, the online server forwards the call signaling, directly establishes media channels between users, and exchanges media packets. The online server forwards the call signaling for the private network users with the network address translation function, and conducts signaling negotiation with the broadband gateway, establishes a media channel via the broadband gateway, and exchanges media packets.

在本发明中,由于公网用户之间的PTT呼叫与有私网用户参与的PTT呼叫流程上存在较大差异,所以,必须对各个客户端用户的网络属性进行判断和区分。该项工作可以在PTT客户端向在线服务器注册的过程中来完成。In the present invention, since there is a big difference between the PTT call between public network users and the PTT call flow involving private network users, it is necessary to judge and distinguish the network attributes of each client user. This work can be done during the registration process of the PTT client with the online server.

PTT客户端首先必须向在线服务器登记和注册。登记和注册采用SIP协议完成。当注册成功之后,PTT客户端还需要将自己的连接属性通过SIP协议的MESSAGE源语发送给在线服务器。连接属性主要包括:客户端所在计算机的IP地址以及连接的端口号。同时,在线服务器根据Socket API即可获取PTT客户端向在线服务器注册所使用地址和端口号,二者比较,可对该客户端的网络属性进行判断,确定该用户为私网用户还是公网用户。A PTT client must first register and register with the online server. Registration and registration are done using the SIP protocol. After the registration is successful, the PTT client also needs to send its own connection attributes to the online server through the MESSAGE source language of the SIP protocol. The connection properties mainly include: the IP address of the computer where the client is located and the port number of the connection. At the same time, the online server can obtain the address and port number used by the PTT client to register with the online server according to the Socket API. By comparing the two, the network attribute of the client can be judged to determine whether the user is a private network user or a public network user.

如图3所示,对于公网用户,PTT客户端A和B向在线服务器注册完成之后,A向B发起一个PTT呼叫,过程如下:As shown in Figure 3, for public network users, after PTT clients A and B register with the online server, A initiates a PTT call to B, and the process is as follows:

1、A将自己的媒体信息以SDP描述,并将该SDP封装到SIP-MESSAGE消息之中,发送给在线服务器;1. A describes its own media information in SDP, encapsulates the SDP into a SIP-MESSAGE message, and sends it to the online server;

2、在线服务器检查B的状态,如果B处于非空闲状态,则直接向A发送呼叫失败消息;否则,在线服务器将该PTT呼叫请求转发给B;同时记录目前讲话权的属主(属于A);2. The online server checks the status of B, if B is not idle, then directly sends a call failure message to A; otherwise, the online server forwards the PTT call request to B; and records the owner of the current speaking right (belonging to A) ;

3、B接收到PTT呼叫请求之后,打开媒体通道,准备接收来自于A的媒体包,并解码播放;同时,将PTT呼叫响应封装到SIP-MESSAGE消息之中,回送给在线服务器;3. After receiving the PTT call request, B opens the media channel, prepares to receive the media packet from A, and decodes and plays it; at the same time, encapsulates the PTT call response into a SIP-MESSAGE message and sends it back to the online server;

4、在线服务器将B的呼叫响应消息发送给A;4. The online server sends B's call response message to A;

5、A接收到B的PTT呼叫响应之后,开始采集本地媒体,在压缩编码之后向B发送;5. After receiving B's PTT call response, A starts to collect local media, and sends it to B after compressing and encoding;

6、A讲话结束后,停止媒体包的发送,同时向在线服务器发送消息释放讲话权,在线服务器通知B;6. After A finishes speaking, stop sending the media package, and send a message to the online server to release the right to speak, and the online server notifies B;

7、A和B向在线服务器发送讲话权申请,由在线服务器根据先到“先得原则”分配讲话权,并记录目前讲话权的属主;7. A and B send applications for the right to speak to the online server, and the online server allocates the right to speak on a first-come, first-served basis, and records the current owner of the right to speak;

8、重复步骤1~7;8. Repeat steps 1 to 7;

9、通话结束后,挂机方发送挂机消息给在线服务器,由在线服务器通知另一方挂机。9. After the call ends, the on-hook party sends an on-hook message to the online server, and the online server notifies the other party to hang up.

如图4所示,有私网用户参与的“一对一”PTT呼叫,PTT客户端A和B向在线服务器注册完成之后,A向B发起一个PTT呼叫,过程如下:As shown in Figure 4, for a "one-to-one" PTT call involving private network users, after PTT clients A and B register with the online server, A initiates a PTT call to B, and the process is as follows:

1、A将自己的媒体信息以SDP描述,并将该SDP封装到SIP-MESSAGE消息之中,然后将该消息通过本局域网的NAT(网络地址转换)设备发送给在线服务器;1. A describes his media information with SDP, and encapsulates the SDP into a SIP-MESSAGE message, and then sends the message to the online server through the NAT (Network Address Translation) device of the local area network;

2、在线服务器检查B的状态,如果B处于非空闲状态,则向A发送呼叫失败消息;否则,在线服务器将该PTT呼叫请求转发给B所处局域网的NAT设备,并由该NAT设备发送给B;2. The online server checks the status of B. If B is not idle, it sends a call failure message to A; otherwise, the online server forwards the PTT call request to the NAT device of the LAN where B is located, and the NAT device sends it to A. B;

3、在线服务器向宽带网关发送PTT呼叫信息;3. The online server sends PTT call information to the broadband gateway;

4、宽带网关记录PTT呼叫信息,并准备接收和转发来自于A的媒体包;4. The broadband gateway records the PTT call information, and prepares to receive and forward the media packet from A;

5、B接收到PTT呼叫请求之后,打开媒体通道,准备接收来自于A的媒体包,并解码播放;同时,将PTT呼叫响应封装到SIP-MESSAGE消息之中,通过NAT设备回送给在线服务器;5. After receiving the PTT call request, B opens the media channel, prepares to receive the media packet from A, and decodes and plays it; at the same time, encapsulates the PTT call response into a SIP-MESSAGE message, and sends it back to the online server through the NAT device;

6、B发送UDP报文给宽带网关,以便打通宽带网关向B转发媒体的路由通道;6. B sends a UDP message to the broadband gateway, so as to open up the routing channel for the broadband gateway to forward the media to B;

7、在线服务器将B的呼叫响应消息通过A的NAT设备发送给A;7. The online server sends B's call response message to A through A's NAT device;

8、A接收到B的PTT呼叫响应之后,开始采集本地媒体,在压缩编码之后通过NAT设备向宽带网关发送;8. After receiving B's PTT call response, A starts to collect local media, and sends it to the broadband gateway through the NAT device after compression and encoding;

9、宽带网关向B转发A的媒体包;9. The broadband gateway forwards A's media packet to B;

10、A讲话结束后,停止媒体包的发送,同时向在线服务器发送消息释放讲话权,在线服务器通知B;10. After A finishes speaking, stop sending the media package, and send a message to the online server to release the right to speak, and the online server notifies B;

11、A和B向在线服务器发送讲话权申请,由在线服务器根据先到“先得原则”分配讲话权,并记录目前讲话权的属主;11. A and B send applications for the right to speak to the online server, and the online server allocates the right to speak on a first-come, first-served basis, and records the current owner of the right to speak;

12、重复步骤1~11;12. Repeat steps 1 to 11;

13、通话结束后,挂机方发送挂机消息给在线服务器,由在线服务器通知另一方挂机;同时,在线服务器发送呼叫结束消息给宽带网关,宽带网关删除本次呼叫信息。13. After the call ends, the on-hook party sends an on-hook message to the online server, and the online server notifies the other party to hang up; at the same time, the online server sends a call-end message to the broadband gateway, and the broadband gateway deletes the call information.

如图5所示,私网用户参与的“一对多”PTT呼叫流程,以三方为例,PTT客户端A、B和C向在线服务器注册完成之后,A在线服务器发送PTT呼叫请求,请求召开A到B和C的PTT呼叫,过程如下:As shown in Figure 5, the "one-to-many" PTT call process involving private network users, taking three parties as an example, after PTT clients A, B, and C register with the online server, A online server sends a PTT call request, requesting to hold a PTT call For a PTT call from A to B and C, the process is as follows:

1、A将自己的媒体信息以SDP描述,并将该SDP封装到SIP-MESSAGE消息之中,然后将该消息发送给在线服务器;1. A describes its own media information in SDP, encapsulates the SDP into a SIP-MESSAGE message, and then sends the message to the online server;

2、在线服务器进行在线状态检查,检查通过,将该PTT呼叫请求转发给B和C,同时记录目前讲话权的属主(属于A);2. The online server checks the online status, and if the check is passed, the PTT call request is forwarded to B and C, and the owner of the current speaking right (belonging to A) is recorded at the same time;

3、在线服务器向宽带网关发送PTT呼叫信息;3. The online server sends PTT call information to the broadband gateway;

4、宽带网关记录PTT呼叫信息,并准备接收A的媒体包并向B和C转发;4. The broadband gateway records the PTT call information, and prepares to receive A's media packet and forward it to B and C;

5、B和C接收到PTT呼叫请求之后,打开媒体通道,准备接收来自于宽带网关的A的媒体,并解码播放;5. After B and C receive the PTT call request, they open the media channel, prepare to receive A's media from the broadband gateway, and decode and play it;

6、B和C发送呼叫响应消息给在线服务器,由在线服务器转发给A;6. B and C send a call response message to the online server, and the online server forwards it to A;

7、B和C发送UDP报文给宽带网管,以便打通宽带网关向B和C转发媒体的路由通道;7. B and C send UDP messages to the broadband network management, so as to open up the routing channel for the broadband gateway to forward media to B and C;

8、A接收到B的PTT呼叫响应之后,打开媒体通道,开始采集本地媒体,在压缩编码之后向宽带网关发送;8. After receiving B's PTT call response, A opens the media channel, starts collecting local media, and sends it to the broadband gateway after compressing and encoding;

9、宽带网关分别向B和C转发A的媒体包;9. The broadband gateway forwards the media packet of A to B and C respectively;

101、A讲话结束后,向在线服务器发送消息释放讲话权,在线服务器通知B和C;同时,在线服务器发送消息给宽带网关,宽带网关停止媒体包的转发;101. After A finishes speaking, he sends a message to the online server to release the right to speak, and the online server notifies B and C; at the same time, the online server sends a message to the broadband gateway, and the broadband gateway stops the forwarding of the media packet;

11、A、B和C可以向在线服务器发送讲话权申请,由在线服务器根据先到“先得原则”分配讲话权,并记录目前讲话权的属主;11. A, B, and C can send the application for the right to speak to the online server, and the online server will allocate the right to speak on a first-come, first-served basis, and record the current owner of the right to speak;

12、重复步骤1~11;12. Repeat steps 1 to 11;

13、一方退出时,发送消息给在线服务器,在线服务器通知宽带网关,宽带网关调整媒体包转发机制;当只剩两方通话时,一方挂机,发送消息给在线服务器,由在线服务器通知另一方挂机;同时,在线服务器发送呼叫结束消息给宽带网关,宽带网关删除本次呼叫信息。13. When one party exits, send a message to the online server, and the online server notifies the broadband gateway, and the broadband gateway adjusts the media packet forwarding mechanism; when there are only two parties remaining in the conversation, one party hangs up and sends a message to the online server, and the online server notifies the other party to hang up ; At the same time, the online server sends a call end message to the broadband gateway, and the broadband gateway deletes the call information.

本发明系统结构简单,系统具有良好的实用性和可扩展性。客户端与服务器之间采用SIP-MESSAGE来进行呼叫信令的交互,媒体信息采用标准的SDP协议来描述。在PTT客户端、在线服务器和宽带网关的协作下即可实现不同网域内用户之间“一对一”或“一对多”的PTT呼叫。本发明不仅适用于公网用户之间的PTT呼叫,而且还支持具有网络地址转换功能的私网用户。本发明中,公网用户之间的媒体流彼此间直接发送;对于私网用户,在宽带网关的参与下即可实现媒体流的交互,特别地,当进行“一对多”PTT呼叫时,主叫方只需将媒体流发送到宽带网关,由宽带网关根据PTT呼叫信息向各个被叫转发媒体。The system structure of the invention is simple, and the system has good practicability and expandability. SIP-MESSAGE is used between the client and the server to exchange call signaling, and the media information is described using the standard SDP protocol. Under the cooperation of PTT client, online server and broadband gateway, "one-to-one" or "one-to-many" PTT calls between users in different network domains can be realized. The invention is not only suitable for PTT calls between public network users, but also supports private network users with network address conversion function. In the present invention, media streams between public network users are directly sent to each other; for private network users, the interaction of media streams can be realized with the participation of broadband gateways, especially when performing "one-to-many" PTT calls, The calling party only needs to send the media stream to the broadband gateway, and the broadband gateway will forward the media to each called party according to the PTT call information.

与现有技术相比,本发明继承了PTT呼叫的传统优势,呼叫建立简便快捷。同时,由于本发明中的媒体包传输采用RTP/RTCP协议来实现,极大地提高了媒体传输的实时性,此外,由于宽带网关较高的可靠性,使得PTT呼叫的可靠性得到了有效的保障。Compared with the prior art, the invention inherits the traditional advantages of the PTT call, and the call establishment is simple and quick. Simultaneously, because the media packet transmission among the present invention adopts RTP/RTCP agreement to realize, greatly improved the real-time performance of media transmission, in addition, because the reliability of broadband gateway is higher, the reliability of PTT call is effectively guaranteed .

Claims (10)

1, a kind of PTT business realizing system based on voip technology comprises the PTT client, is used to initiate/accept the PTT call request, and carries out the encoding and decoding of Media Stream, it is characterized in that, also comprises:
User's line server is used to accept the registration of described client, the connection attribute of record client, and transmit the PTT call request in view of the above, in the PTT of having only the public network client to participate in is called out, assist directly to set up between the described client media channel, switched-media bag;
Broadband gateway equipment, link to each other with described user's line server by internal interface, the PTT that is used for participating in the private network client with network address translation apparatus is called out, carrying out signaling with described line server consults, and be that described client is set up media channel as intermediary, the switched-media bag.
2, the PTT business realizing system based on voip technology as claimed in claim 1 is characterized in that described public network client, comprises the public network user on the internet, and is positioned at same local area network users; Described private network client is not in same local area network users.
3, a kind of PTT service implementation method based on voip technology is characterized in that comprising the steps:
(1) the PTT client is registered to user's line server;
(2) PTT caller originating end sends call request to described line server;
(3) described line server belongs to public network user according to user's network attribute in this call request judgement call group still private user;
(4) described line server to called end forwarded call signaling, assists to set up the media channel between the user according to network attribute, the switched-media bag,
Wherein, for the calling of having only public network user to participate in,, directly set up media channel between the user, the switched-media bag by described line server forwarded call signaling;
For the calling that the private user with network address translation function participates in, by described line server forwarded call signaling, and carry out signaling with broadband gateway and consult, set up media channel via broadband gateway, the switched-media bag.
4, the PTT service implementation method based on voip technology as claimed in claim 3, it is characterized in that described step (1), when client is registered to user's line server, the connection attribute of oneself need be sent to line server, connection attribute comprises: the IP address of client place computer and the port numbers of connection.
5, the PTT service implementation method based on voip technology as claimed in claim 3, it is characterized in that described step (3), line server is to register employed address and port numbers according to the connection attribute of client and client to line server, comes the network attribute of user side in the call group is judged.
6, the PTT service implementation method based on voip technology as claimed in claim 3 is characterized in that the described calling of having only public network user to participate in, and its processing procedure comprises the steps:
(1) calling terminal with the SDP protocol description, and is encapsulated into the media information of oneself among the SIP-MESSAGE message with it, sends to line server;
(2) line server is according to the state of this message inspection called end, if called end is in busy state, then directly send call failure message to calling terminal, otherwise, line server is transmitted to called end with this call request, writes down the owner of present speaking right simultaneously;
(3) called end receives after the call request, opens media channel, prepares to receive the medium bag that comes from calling terminal, and the decoding broadcast, simultaneously call is encapsulated among the SIP-MESSAGE message, and line server is given in loopback;
(4) line server sends to calling terminal with the call message of called end;
(5) calling terminal receives after the call of called end, begins to gather local media, sends to called end after compressed encoding;
(6) after the calling terminal speech finishes, stop the transmission of medium bag, send message to line server simultaneously and discharge speaking right, line server notice called end;
(7) calling terminal and called end send the speaking right application to line server, distribute speaking right by line server according to " First come first served " principle, and write down the owner of present speaking right;
(8) repeating step (1)~(7);
(9) behind the end of conversation, on-hook side sends on-hook message to line server, notifies the opposing party on-hook by line server.
7, the PTT service implementation method based on voip technology as claimed in claim 3 is characterized in that the calling that described private user participates in, and its processing procedure comprises the steps:
(1) calling terminal is described the media information of oneself with SDP, and it is encapsulated among the SIP-MESSAGE message, then the network address translation apparatus of this message by this local area network (LAN) is sent to line server, writes down the owner of present speaking right simultaneously;
(2) line server is checked the state of called end, if called end is in busy state, then send call failure message to calling terminal, otherwise, line server is transmitted to the network address translation apparatus of called end local area network (LAN) of living in this call request, and sends to called end by this network address translation apparatus;
(3) line server sends call information to broadband gateway;
(4) broadband gateway metered call information, and prepare to receive and transmit the medium bag that comes from calling terminal;
(5) called end receives after the call request, opens media channel, prepares to receive the medium bag that comes from calling terminal, and the decoding broadcast, simultaneously call is encapsulated among the SIP-MESSAGE message, gives line server by the network address translation apparatus loopback;
(6) called end sends the UDP message to broadband gateway, so that get through broadband gateway is transmitted routing channel from medium to called end;
(7) line server sends to calling terminal with the call message of the called end network address translation apparatus by calling terminal;
(8) calling terminal receives after the call of called end, begins to gather local media, sends to broadband gateway by network address translation apparatus after compressed encoding;
(9) broadband gateway is transmitted the medium bag of calling terminal to called end;
(10) after the calling terminal speech finishes, stop the transmission of medium bag, send message to line server simultaneously and discharge speaking right, line server notice called end;
(11) calling terminal and called end send the speaking right application to line server, distribute speaking right by line server according to arriving first " getting principle earlier ", and write down the owner of present speaking right;
(12) repeating step (1)~(11);
(13) behind the end of conversation, on-hook side sends on-hook message to line server, notifies the opposing party on-hook by line server, and simultaneously, line server sends end of calling message to broadband gateway, and broadband gateway is deleted this call information.
8, as claim 6 or 7 described PTT service implementation method, it is characterized in that described called end can comprise a plurality of PTT clients based on voip technology.
9, the PTT service implementation method based on voip technology as claimed in claim 3 is characterized in that described medium bag, comprises audio stream and video flowing.
10, the PTT service implementation method based on voip technology as claimed in claim 3 is characterized in that described switched-media bag step, uses the RTP/RTCP agreement to finish.
CNB2005100556687A 2005-03-22 2005-03-22 "Push to talk" service realization system and method based on VoIP technology Expired - Fee Related CN100417245C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100556687A CN100417245C (en) 2005-03-22 2005-03-22 "Push to talk" service realization system and method based on VoIP technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100556687A CN100417245C (en) 2005-03-22 2005-03-22 "Push to talk" service realization system and method based on VoIP technology

Publications (2)

Publication Number Publication Date
CN1838790A true CN1838790A (en) 2006-09-27
CN100417245C CN100417245C (en) 2008-09-03

Family

ID=37016019

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100556687A Expired - Fee Related CN100417245C (en) 2005-03-22 2005-03-22 "Push to talk" service realization system and method based on VoIP technology

Country Status (1)

Country Link
CN (1) CN100417245C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247385B (en) * 2007-02-13 2012-07-25 国际商业机器公司 Method , terminal and system for establishing VolP communication by digital video broadcasting network
CN103442454A (en) * 2013-09-12 2013-12-11 杭州绿宇通信技术有限公司 Point-to-point communication system and method suitable for WIFI (Wireless Fidelity) mobile phones
CN104113511A (en) * 2013-04-17 2014-10-22 中国移动通信集团公司 IMS network access method, system, and correlative device
CN111970649A (en) * 2020-08-14 2020-11-20 上海三吉电子工程有限公司 Fusion mobile terminal suitable for front-line police officer and application thereof
CN113079144A (en) * 2021-03-24 2021-07-06 上海井星信息科技有限公司 SIP WebRTC gateway system penetrating DMZ network
CN113315877A (en) * 2020-02-27 2021-08-27 成都鼎桥通信技术有限公司 Call processing method for private network terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8036122B2 (en) * 2003-04-03 2011-10-11 Alcatel Lucent Initiation of network treatment for data packet associated with real-time application different from network treatment applicable to data packet non-associated with the real-time application
CN100473075C (en) * 2004-06-08 2009-03-25 中兴通讯股份有限公司 A wired push-to-talk service terminal and a method for realizing the wired push-to-talk service

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247385B (en) * 2007-02-13 2012-07-25 国际商业机器公司 Method , terminal and system for establishing VolP communication by digital video broadcasting network
CN104113511A (en) * 2013-04-17 2014-10-22 中国移动通信集团公司 IMS network access method, system, and correlative device
CN103442454A (en) * 2013-09-12 2013-12-11 杭州绿宇通信技术有限公司 Point-to-point communication system and method suitable for WIFI (Wireless Fidelity) mobile phones
CN103442454B (en) * 2013-09-12 2017-06-20 杭州绿宇通信技术有限公司 Suitable for the Point-to-Point Communication System and its method of WIFI mobile phones
CN113315877A (en) * 2020-02-27 2021-08-27 成都鼎桥通信技术有限公司 Call processing method for private network terminal
CN111970649A (en) * 2020-08-14 2020-11-20 上海三吉电子工程有限公司 Fusion mobile terminal suitable for front-line police officer and application thereof
CN111970649B (en) * 2020-08-14 2021-05-25 上海三吉电子工程有限公司 Application of integrated mobile terminal suitable for front-line police officer
CN113079144A (en) * 2021-03-24 2021-07-06 上海井星信息科技有限公司 SIP WebRTC gateway system penetrating DMZ network

Also Published As

Publication number Publication date
CN100417245C (en) 2008-09-03

Similar Documents

Publication Publication Date Title
CN1985489B (en) Method and arrangement for providing different services in multimedia communication system
CN100505864C (en) Multi-spot video conference system and media processing method
CN1553676A (en) Method for Multiple Protocol Terminals to Conduct Same Audio-Video Conference
CN1611084A (en) Circuit Switched Communications and Packet Switched Communications
CN1849795A (en) Activation of a communication session in a communication system
CN1663187A (en) Method and apparatus for speaker arbitration in a multi-participant communication session
CN1134944C (en) System and method for providing mobile switching and multiparty service over packet-switched network
CN100352295C (en) Realization Method of IP Multimedia Subsystem Session Falling Back to Circuit Switching Call
CN1914854A (en) Method and system for push-to-talk service
CN101061682A (en) Push-to-X over cellular coordinated floor and packet scheduling
CN1293736C (en) System and method for network address translation and session management
CN1266885C (en) Method for realizing monitoring based on soft switch
CN1461574A (en) One-to-one communication
CN101043691A (en) Legal monitor method for IMS network
CN1809037A (en) Method of implementing end-to-end information interaction
CN1556645A (en) A system and method for providing personalized ring back tone service in next generation network
CN1898941A (en) VoIP gateway device and calling and called control method of call in VoIP gateway device
CN100417245C (en) "Push to talk" service realization system and method based on VoIP technology
CN101056174A (en) A system, device and method for realizing the network log service
CN1691817A (en) Session establishing method
CN1604535A (en) Method for implementing network conference in control and bearing separated network
CN100409701C (en) Method for controlling speaking right in wireless push-to-talk mode in trunking system
CN1750505A (en) Method for identifying sender based on real-time transmission protocol
CN101159787B (en) Softswitch communication system and method for realizing conference service
CN100471290C (en) Method for realizing half-duplex IP voice communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080903

Termination date: 20150322

EXPY Termination of patent right or utility model