WO2015172454A1 - 一种在浏览器和电信网络之间进行通信的方法和网关 - Google Patents

一种在浏览器和电信网络之间进行通信的方法和网关 Download PDF

Info

Publication number
WO2015172454A1
WO2015172454A1 PCT/CN2014/084856 CN2014084856W WO2015172454A1 WO 2015172454 A1 WO2015172454 A1 WO 2015172454A1 CN 2014084856 W CN2014084856 W CN 2014084856W WO 2015172454 A1 WO2015172454 A1 WO 2015172454A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
link
ngn
browser
ims network
Prior art date
Application number
PCT/CN2014/084856
Other languages
English (en)
French (fr)
Inventor
丁岩
梅君君
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP14891875.8A priority Critical patent/EP3145129B1/en
Priority to US15/129,898 priority patent/US10348520B2/en
Publication of WO2015172454A1 publication Critical patent/WO2015172454A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • 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/10Architectures or entities
    • H04L65/1016IP multimedia subsystem [IMS]
    • 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/10Architectures or entities
    • H04L65/102Gateways
    • H04L65/1033Signalling gateways
    • H04L65/104Signalling gateways in the network
    • 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/1069Session establishment or de-establishment
    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • 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/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/765Media network packet handling intermediate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/04Large scale networks; Deep hierarchical networks
    • H04W84/042Public Land Mobile systems, e.g. cellular systems

Definitions

  • the present invention relates to web page real-time communication technologies, and more particularly to a method and gateway for communicating between a browser and a telecommunications network.
  • Web real-time communication CWeb Real-Time Communication (referred to as Webrtc) is a technology for real-time language, video, and data communication between browsers.
  • Webrtc is a technology for real-time language, video, and data communication between browsers.
  • Webrtc technology is open sourced, browser vendors can build Webrtc technology to encapsulate various functions required for real-time communication, such as audio and video engines, Network Address Translation (NAT) traversal, etc., so that Web application development People can implement real-time communication between browsers simply by using the HyperText Markup Language (HTML) tag and the JavaScript API.
  • Webrtc technology is embedded in browsers such as Chrome, Firefox, and IE.
  • the prior art has the following problems: Next Generation Network / IP Multimedia Subsystem (Next Generation
  • the Network/IP Multimedia Subsystem (referred to as NGN/IMS) network implements language, video, and data communication based on the Session Initiation Protocol (SIP).
  • the terminal can only be a traditional SIP software and hardware terminal.
  • Embodiments of the present invention provide a method and a gateway for communicating between a browser and a telecommunication network, so as to at least solve the problem that the telecommunication network in the prior art, especially the next generation network/IP multimedia subsystem network, cannot support the webpage.
  • Real-time communication Webrtc technology terminal browser for real-time communication defects.
  • an embodiment of the present invention provides a method for communicating between a browser and a telecommunication network, which is applied to a gateway, and the method includes: establishing a first link with a browser, establishing an NGN/IMS network a second link; receiving first data from the browser on the first link, and converting the first data to second data when the first data is call related SIP signaling, Second data is sent to the NGN/IMS network on a second link; and third is received on the second link from the NGN/IMS network Data, when the third data is call related SIP signaling, converting the third data to fourth data, and transparently transmitting the fourth data to the browser on the first link.
  • establishing the first link with the browser comprises: establishing a webpage socket link between the gateway and the browser as the first link.
  • establishing the second link with the NGN/IMS network includes: establishing a user datagram protocol/transmission control protocol/transport layer security protocol link between the gateway and the NGN/IMS network as the second chain road.
  • receiving first data from the browser on the first link, and when the first data is call related SIP signaling the method further includes: when the first data is non-call related SIP signaling The first data is directly transparently transmitted to the NGN/IMS network.
  • sending the second data to the NGN/IMS network on the second link specifically includes: after analyzing the related information of the second data, generating a second instruction according to the distribution rule, where the second instruction indicates Transmitting the second data to the NGN/IMS network.
  • directly transmitting the first data to the NGN/IMS network specifically: when the first data is non-call related SIP signaling, analyzing related information of the first data, according to The distribution rule generates a third instruction, the third instruction instructing to send the first data to the NGN/IMS network.
  • converting the first data to the second data includes:: media related to a webpage real-time communication protocol in a session description protocol packet of the first data The parameter is changed to the NGN/IMS network related media parameter to obtain the second data.
  • changing the media parameter related to the webpage real-time communication protocol in the session description protocol package of the first data to the media parameter related to the NGN/IMS network, and obtaining the second data includes: transmitting based on the datagram Layer security and encrypted real-time transport protocol, audio encoding alphabet/g.711 protocol and video encoding VP8/H.264 protocol first data, converted to the NGN/IMS network-supported real-time transport protocol, audio encoding g.711 The protocol and video encode the second data of the H.263/H.264 protocol.
  • converting the third data to the fourth data includes: changing a media parameter related to the NGN/IMS network in the third data to a webpage real-time The communication protocol related media parameters obtain the fourth data.
  • the method before converting the third data to the fourth data, the method further includes: after analyzing the related information of the third data, generating a fourth instruction according to the distribution rule, where the fourth instruction indicates that the third data is to be Sending to the location where the data conversion is performed; after converting the third data to the fourth data, the method further includes: analyzing the fourth The information related to the data generates a fifth instruction according to the distribution rule, the fifth instruction instructing to send the fourth data to the browser.
  • the method when receiving the third data from the NGN/IMS network on the second link, the method further includes: when the third data is non-call related SIP signaling, the non-call related SIP message After the correlation information of the fourth data is analyzed as the fourth data without being converted, a sixth instruction is generated according to the distribution rule, where the sixth instruction indicates that the fourth data is directly transparently transmitted to the browsing. Device.
  • the method after receiving the first data from the browser on the first link, the method further includes: performing mask decryption on the first data.
  • the method before receiving the first data from the browser on the first link, the method further includes: acquiring a public network address and a port of the browser receiving the media, and then using the public network address and port Carrying in the session description protocol packet, and carrying the session description protocol packet in the first data.
  • An apparatus for communicating between a browser and a telecommunications network comprising: a link unit configured to establish a first link with a browser, establish a second link with the NGN/IMS network; a unit, configured to receive first data from a browser on the first link, and convert the first data to second data when the first data is call related SIP signaling, Data is sent to the NGN/IMS network on a second link; and a second direction change transmitting unit is configured to receive third data from the NGN/IMS network on the second link, when When the third data is call related SIP signaling, the third data is converted into fourth data, and the fourth data is transparently transmitted to the browser on the first link.
  • the link unit includes: a first link module, configured to establish a webpage socket link between the gateway and the browser as the first link; and a second link module, A user datagram protocol/transmission control protocol/transport layer security protocol link between the gateway and the NGN/IMS network is established as the second link.
  • a method for communicating between a browser and a telecommunications network is applied to a webpage socket converter set in a gateway, the webpage socket converter is connected to a session initiation protocol stack, and the other end is supported by a webpage in real time.
  • a webpage real-time communication browser connection of the communication protocol comprising: establishing a webpage socket link between the webpage socket converter and the webpage real-time communication browser; establishing the webpage socket conversion a transmission control protocol/transport layer security protocol TCP/TLS link between the session and the session initiation protocol stack, the webpage socket link and the TCP/TLS link have a corresponding relationship;
  • the webpage a socket converter receives first data from the webpage real-time communication browser on the webpage socket link, and sends the session initiation protocol stack through the TCP/TLS link, such that The session initiation protocol stack can send the first data to the media server when the first data is call related SIP signaling, and the receiving the media server
  • the second data that can be identified by the telecom NGN/IMS network is sent to the NGN/IMS network, and when the first data is non-call related SIP signaling, the first data is Transmitting directly to the NGN/IMS network;
  • the web page socket converter receives a fourth from the session initiation protocol stack that can be
  • the method further includes: maintaining the webpage socket link; establishing the webpage sleeve
  • the transmission control protocol/transport layer security protocol TCP/TLS link between the socket converter and the session initiation protocol stack further includes: preserving the TCP/TLS link.
  • the sending the first data to the media server includes: when the first data is call related SIP signaling, the session initiation protocol stack uses the internal interface to The related information is sent to the distribution control unit in the gateway.
  • the first instruction is generated according to the distribution rule, and the first instruction reaches the session initiation protocol stack through the internal interface. Instructing the session initiation protocol stack to send the first data to the media server; sending to the NGN/IMS network specifically includes: the session initiation protocol stack receiving the first data after receiving the media server After the converted second data that can be recognized by the NGN/IMS network, the related information of the second data is sent to the distribution control unit through the internal interface, and the distribution control unit analyzes the related information. Generating a second instruction according to the distribution rule, where the second instruction reaches the session initiation protocol stack by using the internal interface, indicating the location The session initiation protocol stack sends the second data to the NGN/IMS network.
  • the session initiation protocol stack is configured by using an internal interface.
  • the related information of the first data is sent to the distribution control unit in the gateway, after the distribution control unit analyzes the related information, saves the related information, and generates a third instruction according to the distribution rule, where the third instruction passes through the
  • the internal interface arrives at the session initiation protocol stack, instructing the session initiation protocol stack to send the first data to the NGN/IMS network.
  • the session initiation protocol stack is configured to: after the first data is call related SIP signaling, send the first data to the media server, further comprising:
  • the second data is obtained by changing a media parameter related to a webpage real-time communication protocol in a session description protocol packet of the data to a media parameter related to the NGN/IMS network.
  • the determining, by the media server, the media parameter related to the webpage real-time communication protocol in the session description protocol packet of the first data to the media parameter related to the NGN/IMS network, and obtaining the second data includes: The media server converts the first data based on the datagram transport layer security and the encrypted real-time transport protocol, the audio coded alphabet/g.711 protocol and the video coding VP8/H.264 protocol to the NGN/IMS network support based on Real-time transport protocol, audio encoding g.711 protocol and video encoding the second data of the H.263/H.264 protocol.
  • the fourth data is converted by the media server by using the call-related SIP signaling from the NGN/IMS network as the third data, and the method includes: the session initiation protocol stack is connected to the media server. Sending the third data to the media server; by the media server, the third data
  • the fourth data is obtained by changing the media parameters related to the NGN/IMS network to the media parameters related to the webpage real-time communication protocol.
  • the method further includes: when the third data is a call-related SIP
  • the signaling initiation protocol stack sends the third data related information to the distribution control unit in the gateway through the internal interface, and after the distribution control unit analyzes the related information, generates a fourth according to the distribution rule.
  • the fourth instruction reaches the session initiation protocol stack by using the internal interface, indicating that the session initiation protocol stack sends the third data to the media server; and the fourth data is used by the media server
  • the method further includes: the session initiation protocol stack is capable of being converted by the media server to obtain the third data.
  • the related information of the fourth data is sent to the a distribution control unit, after the distribution control unit analyzes the related information, generates a fifth instruction according to the distribution rule, where the fifth instruction reaches the session initiation protocol stack through the internal interface, indicating the session initiation protocol stack
  • Transmitting the fourth data to the webpage real-time communication browser comprises: the non-call related SIP signaling as the fourth data,
  • the session initiation protocol stack sends the fourth data related information to the distribution control unit in the gateway through the internal interface, and after the distribution control unit analyzes the related information, generates a sixth instruction according to the distribution rule, where the The six instructions reach the session initiation protocol stack through the internal interface, and instruct the session initiation protocol stack to transparently transmit the fourth data to the webpage real-time communication browser.
  • the webpage socket converter further includes: masking the first data Decrypt.
  • the webpage socket converter before receiving the first data from the webpage real-time communication browser on the webpage socket link, the webpage socket converter further includes: a real-time communication browser and a webpage by the webpage Interacting with the ICE server in the gateway to obtain the public network address and port of the webpage real-time communication browser receiving the media, The public network address and port are then carried in a session description protocol packet, and the session description protocol packet is carried in the first data.
  • a gateway for communicating between a browser and a telecommunications network comprising: a web socket converter and a session initiation protocol stack, the web socket converter and the session initiation protocol stack are connected, and the other end supports the webpage in real time.
  • a webpage real-time communication browser connection of the communication protocol wherein the webpage socket converter is configured to establish a webpage socket link between the webpage real-time communication browser and establish a session with the session initiation protocol stack Transmission control protocol/transport layer security protocol TCP/TLS link, the webpage socket link has a corresponding relationship with the TCP/TLS link; and, received on the webpage socket link
  • the session initiation protocol stack is set to be when the first data is a call-related SIP message Sending the first data to the media server, and receiving the first data converted by the media server to be recognized by the telecommunication NGN/IMS network.
  • the second data is sent to the NGN/IMS network, and when the first data is non-call related SIP signaling, the first data is directly transparently transmitted to the NGN/IMS network.
  • a session initiation protocol stack further configured to receive call related SIP signaling from the NGN/IMS network as third data; to send the third data to the media server, and to receive the media server
  • the fourth data is sent to the webpage socket converter, or is received from the NGN/IMS network.
  • Non-call related SIP signaling and transmitting non-call related SIP signaling as the fourth data to the webpage socket converter;
  • a webpage socket converter is further set to be in the TCP/TLS chain
  • the fourth data from the session initiation protocol stack is received on the road, and is carried on the corresponding webpage socket link and sent to the webpage real-time communication browser.
  • the gateway is connected to the media server, and the media server is configured to: when the first data is call-related SIP signaling, the media parameter related to the webpage real-time communication protocol in the session description protocol package of the first data Converting the NGN/IMS network related media parameters to obtain the second data; and, when the third data is call related SIP signaling, correlating the NGN/IMS network in the third data
  • the media parameter is changed to the media parameter related to the webpage real-time communication protocol to obtain the fourth data.
  • the gateway further includes: a distribution control unit, configured to receive related information sent by the session initiation protocol stack through the internal interface; in the process of processing the first data, when the related information indicates:
  • a distribution control unit configured to receive related information sent by the session initiation protocol stack through the internal interface; in the process of processing the first data, when the related information indicates:
  • the first data is call related SIP signaling, generating a first instruction according to a distribution rule, where the first instruction can reach the session initiation protocol stack by using the internal interface, indicating that the session initiation protocol stack is to be Sending, to the media server, the first data, and generating, by the distribution rule, a second instruction, where the second instruction can reach the session initiation protocol stack by using the internal interface, indicating that the session initiation protocol stack is to be the first Transmitting the data to the NGN/IMS network; when the first data is non-call related SIP signaling, saving the related information, and generating a third instruction according to the distribution rule, where the third instruction can reach the location through the
  • the first function integration unit includes a webpage socket converter and an ICE server
  • the second function integration unit includes a session initiation protocol stack, a distribution control unit, and a media server
  • Connected to the second functional integration unit the first function integration unit includes a webpage socket converter and an ICE server
  • the second function integration unit includes a session initiation protocol stack, a distribution control unit, and a media server
  • a second functional integration unit is connected.
  • the first function integration unit includes a webpage socket converter and an ICE server
  • the second function integration unit includes a session initiation protocol stack, a distribution control unit, and a media server
  • the webpage socket converters are connected, and the plurality of webpage socket converters are further connected to a second function integration unit.
  • the first function integration unit includes a webpage socket converter and an ICE server
  • the second function integration unit includes a session initiation protocol stack, a distribution control unit, and a media server
  • Each of the plurality of web socket converters is further coupled to one or more second functional integration units.
  • a webpage real-time communication system comprising a gateway, and a webpage real-time communication browser, configured to establish, maintain, and delete a webpage socket link with the gateway, and generate the first data
  • an NGN/IMS terminal Connected to the NGN/IMS network, set to generate the third data.
  • FIG. 1 is a schematic diagram showing the architecture of real-time communication between a webpage real-time communication browser and an NGN/IMS network according to the present invention
  • FIG. 2 is a schematic flowchart showing a method for communicating between a browser and a telecommunication network; Schematic diagram of the process of registering the communication browser with the NGN/IMS network;
  • Figure 4 is a schematic diagram showing the flow of the webpage real-time communication browser and the NGN/IMS terminal;
  • Figure 5 is a schematic diagram of the internal networking of the Webrtc2 SIP gateway;
  • Figure 6 shows the internal of the Webrtc2 SIP gateway.
  • Figure 7 shows the internal networking diagram of the Webrtc2 SIP gateway.
  • Figure 8 shows the internal networking diagram of the Webrtc2 SIP gateway.
  • the Webrtc (Web Real-Time Communication) browser (Webrtc browser for short) is a real-time communication system with the telecom network.
  • the Webrtc browser embeds real-time audio and video, data communication and Network Address Translation (NAT) function, as a Websocket client located at one end of the Webrtc2SIP gateway, can establish, maintain and delete WebSocket links, and generate call-related SIPs required for real-time communication.
  • NAT Network Address Translation
  • Signaling and non-call related SIP signaling, call related SIP signaling and non-call related SIP signaling are all signaling level data.
  • Webrtc2SIP gateway using Websocket link transmission with Webrtc browser, using user datagram protocol/transmission control protocol/transport layer security protocol (UDP/TCP/TLS, User Datagram Protocol/Transmission Control Protocol/Transport Layer) Security) transmission.
  • UDP/TCP/TLS User Datagram Protocol/Transmission Control Protocol/Transport Layer
  • the Webrtc2 SIP gateway is a Webrtc server.
  • the Webrtc2 SIP gateway is a proxy for a traditional SIP soft/hard terminal, and the telnet network is connected to the traditional SIP soft/hard terminal based on UDP/TCP/TLS.
  • the embodiment of the present invention provides a method for communicating between a browser and a telecommunication network, and is applied to a gateway.
  • the method includes: Step 201: Establish a first link with a browser, and establish an NGN/ a second link of the IMS network; Step 202, receiving first data from the browser on the first link, and converting the first data when the first data is call related SIP signaling Second data, sending the second data to the NGN/IMS network on the second link; and step 203, receiving third data from the NGN/IMS network on the second link, When the third data is call related SIP signaling, the third data is converted into fourth data, and the fourth data is transparently transmitted to the browser on the first link.
  • the technology provided by the application can establish real-time communication between the Webrtc-based browser and the SIP-based NGN/IMS network, realize the integration of Internet technology and communication technology, and expand the users of the telecom operators for the telecom operators. For Internet users, you can enjoy the services provided by the telecommunications field.
  • the telecommunications network is specifically a Next Generation Network/IP Multimedia Subsystem (NGN/IMS) network.
  • NNN/IMS Next Generation Network/IP Multimedia Subsystem
  • the browser is specifically a webpage real-time communication browser.
  • establishing the first link with the browser comprises: establishing a webpage socket link between the gateway and the browser as the first link.
  • establishing the second link with the NGN/IMS network comprises: establishing a User Datagram Protocol/Transmission Control Protocol/Transport Layer Security Protocol link between the gateway and the NGN/IMS network as Second link. And, in the gateway, a TCP/TLS link is established between the Websocket converter and the SIP protocol stack as the third link. In a preferred embodiment, receiving the first data from the browser on the first link, further comprising: directly transmitting the first data when the first data is non-call related SIP signaling Give the NGN/IMS network.
  • sending the second data to the NGN/IMS network on the second link specifically includes: after analyzing the related information of the second data, generating a second instruction according to the distribution rule, where The second instruction indicates that the second data is sent to the NGN/IMS network.
  • directly transmitting the first data to the NGN/IMS network specifically: analyzing, when the first data is non-call related SIP signaling, analyzing related information of the first data Thereafter, generating a third instruction according to the distribution rule, the third instruction instructing to send the first data to the NGN/IMS network.
  • converting the first data to the second data comprises: using a webpage real-time communication protocol in a session description protocol packet of the first data Related media parameters are changed to the stated
  • the second data is obtained by NGN/IMS network related media parameters.
  • changing the media parameter related to the webpage real-time communication protocol in the session description protocol package of the first data to the media parameter related to the NGN/IMS network to obtain the second data includes: Datagram transport layer security and encrypted real-time transport protocol, audio encoding alphabet/g.711 protocol and video encoding VP8/H.264 protocol first data, converted to the NGN/IMS network-supported real-time transport protocol, audio encoding The second data of the g.711 protocol and video encoding H.263/H.264 protocol.
  • converting the third data to the fourth data includes: changing media parameters related to the NGN/IMS network in the third data.
  • the fourth data is obtained by media parameters related to the webpage real-time communication protocol.
  • the method before converting the third data to the fourth data, further includes: after analyzing the related information of the third data, generating a fourth instruction according to the distribution rule, where the fourth instruction indicates that the The third data is sent to the location where the data conversion is performed; after converting the third data to the fourth data, the method further includes: And analyzing the related information of the fourth data, generating a fifth instruction according to the distribution rule, the fifth instruction instructing to send the fourth data to the browser; in a preferred embodiment, in the second chain Receiving the third data from the NGN/IMS network on the road further includes: when the third data is non-call related SIP signaling, directly using the non-call related SIP signaling as the fourth data After analyzing the related information of the fourth data, generating a sixth instruction according to the distribution rule, where the sixth instruction indicates that the fourth data is directly transparently transmitted to the browser.
  • the method further includes: performing mask decryption on the first data.
  • the method before receiving the first data from the browser on the first link, the method further includes: acquiring a public network address and a port of the browser receiving the media, and then using the public network The address and port are carried in a session description protocol packet, and the session description protocol packet is carried in the first data.
  • the telecommunications network is specifically a Next Generation Network/IP Multimedia Subsystem (NGN/IMS) network.
  • the browser is specifically a webpage real-time communication browser. As shown in FIG.
  • the real-time communication browser and the NGN/IMS telecommunication network realize real-time communication, including: Webrtc browser, Websocket converter, SIP protocol stack, distribution control unit, media server, and interactive connection establishment (ICE, Interactive Connectivity Establishment) servers and NGN/IMS networks.
  • the direct interaction between the Webrtc browser and the media server, and the direct interaction between the media server and the traditional SIP hardware and software terminal refers to the interaction of the underlying media data, which is in the Webrtc browser, media server, SIP hardware and software. Performed between the terminal/media gateway MGW.
  • the Webrtc2 SIP gateway includes: a Websocket converter, a SIP protocol stack, a distribution control unit, a media server, and an ICE server, located between the Webrtc browser and the NGN/IMS network.
  • the present invention provides a method for communicating between a browser and an NGN/IMS network, which is applied to a Webrtc2 SIP gateway, and the Webrtc2 SIP gateway includes a Websocket converter, a SIP protocol stack, and a media server, The Websocket converter is connected to the SIP protocol stack, and the other end is connected to the Webrtc browser supporting the Webrtc protocol.
  • the method includes the following steps: Step 1: Establish a webpage socket between the webpage socket converter and the webpage real-time communication browser Word link Establishing a Transmission Control Protocol/Transport Layer Security (TCP/TLS) link between the webpage socket converter and the session initiation protocol stack, the webpage socket chain Corresponding relationship between the path and the TCP/TLS link; Step 2, the webpage socket converter receives the first data from the webpage real-time communication browser on the webpage socket link Transmitting, by the TCP/TLS link, the session initiation protocol stack, so that the session initiation protocol stack can send the first data to the first data when the first data is call related SIP signaling a media server, after receiving the second data that is converted by the media server and can be recognized by the next generation network/IP multimedia subsystem NGN/IMS network, sent to the NGN/IMS network, and When the first data is non-call related SIP signaling, the first data is directly transparently transmitted to the NGN/IMS network; Step 3, the webpage socket converter is on the TCP/TLS link.
  • the fourth data is transparently transmitted to the webpage real-time communication browser, wherein the fourth data is
  • the media server converts call-related SIP signaling from the NGN/IMS network as third data, or non-call related SIP signaling from the NGN/IMS network.
  • the /IMS network establishes real-time communication, which realizes the integration of Internet technology and communication technology. For telecom operators, it expands the users of telecom operators, and for Internet users, it can enjoy the services provided by the telecommunications field.
  • the Websocket converter is located between the Webrtc browser and the SIP protocol stack, and acts as a Websocket server to establish a Websocket link with the Webrtc browser.
  • TCP/TLS client TCP/TCP is established between the SIP protocol stack and the SIP protocol stack. TLS link.
  • the method further includes : maintaining the webpage socket link; after establishing a transmission control protocol/transport layer security protocol TCP/TLS link between the webpage socket converter and the session initiation protocol stack, the method further includes: keeping alive The TCP/TLS link.
  • the Websocket converter maintains a Websocket link with the Webrtc browser, including: link keep-alive, link deletion; maintains a TCP/TLS link with the SIP stack, including: link keep-alive, link-deleted When the link with any end is broken, the link with the other end is actively broken.
  • the SIP signaling at the signaling level is carried on the Websocket link and the TCP/TLS link.
  • call related SIP signaling such as INVITE dialog related signaling
  • non-call related SIP signaling such as Register, Message ⁇ Publish, and NOTIFY
  • the first data is a Register message requesting registration from the Webrtc browser
  • the third data is a 200 Register message, Register message and the registration success from the NGN/IMS network received by the SIP protocol stack.
  • the 200 Register messages are all non-call related SIP signaling; or, the first data is call related SIP signaling from the Webrtc browser, and the third data is call related SIP signaling from the NGN/IMS network received by the SIP protocol stack.
  • the first data sent by the Webrtc browser to the Websocket server is encrypted by a mask operation, and the second data sent by the Websocket server to the Webrtc browser does not need to be mask encrypted. Therefore, in a preferred embodiment, after receiving the first data from the webpage real-time communication browser on the webpage socket link, the webpage socket converter further comprises: masking and decrypting the first data .
  • One end of the SIP protocol stack is connected to the Websocket converter, and the other end is connected to the NGN/IMS network to implement SIP signaling.
  • the Websocket converter receives the SIP signaling sent by the Webrtc browser, it needs to perform mask decryption and then transparent transmission.
  • To the SIP protocol stack when the Websocket converter receives the SIP signaling sent by the SIP protocol stack, it is directly transmitted to the Webrtc browser.
  • the SIP protocol stack and the Websocket converter are transmitted based on a TCP/TLS link, and the SIP protocol stack and the NGN/IMS network are transmitted based on a UDP/TCP/TLS link; and the distribution control is received through the internal interface. Instructing to forward SIP signaling according to the distribution control indication. And, the SIP protocol stack is connected to the media server, and the media server converts the media surface.
  • the SIP protocol stack After receiving the message, the SIP protocol stack first reports the message to the distribution control unit through the internal interface, and the distribution control unit performs logical analysis to determine who to forward the message to. For example, for a SIP message related to a call such as INVITE, the call control module instructs the SIP protocol stack to be sent to the media server, and the media server processes the packet to the SIP protocol stack, and the SIP protocol stack reports the call control module, and the call control module instructs the SIP.
  • the protocol stack is sent to the core network; for non-call related SIP messages such as Register, the call control module instructs the SIP protocol stack to be sent directly to the core network without going through the media server.
  • the sending the first data to the media server includes: When the first data is call related SIP signaling, the session initiation protocol stack sends related information of the first data to a distribution control unit in the gateway through an internal interface, and the distribution control unit analyzes the After the related information, the first instruction is generated according to the distribution rule, and the first instruction reaches the session initiation protocol stack by using the internal interface, and the session initiation protocol stack is sent to send the first data to the media server;
  • the sending to the NGN/IMS network specifically includes: the session initiation protocol stack, after receiving the second data that is converted by the media server and can be recognized by the NGN/IMS network, passes through the internal The interface sends the related information of the second data to the distribution control unit, and after the distribution control unit analyzes the related information, generates a second instruction according to the distribution rule, where the second instruction arrives through the internal interface
  • the session initiation protocol stack instructs the session initiation protocol stack to send the second data to the NGN/IMS network.
  • the session initiation protocol stack directly transmitting the first data to the NGN/IMS network, specifically: when the first data is non-call related SIP signaling, the session initiation protocol stack passes an internal interface. Transmitting the related information of the first data to a distribution control unit in the gateway, after analyzing the related information by the distribution control unit, saving the related information, and generating a third instruction according to the distribution rule, the third The instruction reaches the session initiation protocol stack through the internal interface, instructing the session initiation protocol stack to send the first data to the NGN/IMS network.
  • the session initiation protocol stack is capable of: after the first data is call related SIP signaling, sending the first data to the media server, further comprising: by the media server Transmitting, in the first data, a media parameter related to a webpage real-time communication protocol to the
  • the second data is obtained by NGN/IMS network related media parameters.
  • the media data changed by the media server to the media parameter related to the webpage real-time communication protocol in the first data to the media parameter related to the NGN/IMS network includes:
  • the media server converts the first data based on the datagram transport layer security and the encrypted real-time transport protocol, the audio encoded alphabet/g.711 protocol and the video encoding VP8/H.264 protocol into a real-time transmission supported by the NGN/IMS network. Protocol, audio encoding g.711 protocol and video encoding the second data of the H.263/H.264 protocol.
  • the fourth data is converted by the media server by using the call-related SIP signaling from the NGN/IMS network as the third data to obtain:
  • the session initiation protocol stack is connected to the media server, and sends the third data to the media server.
  • the media server changes the media parameter related to the NGN/IMS network in the third data to a webpage real-time.
  • the communication protocol related media parameters obtain the fourth data.
  • the fourth data is converted by the media server by using the call-related SIP signaling from the NGN/IMS network as the third data, and further includes: when the third data is When the related SIP signaling is called, the session initiation protocol stack sends the third data related information to the distribution control unit in the gateway through the internal interface, and after the distribution control unit analyzes the related information, according to the distribution rule Generating a fourth instruction, the fourth instruction reaching the session initiation protocol stack by using the internal interface, instructing the session initiation protocol stack to send the third data to the media server; After the media server converts the call-related SIP signaling from the NGN/IMS network as the third data, the method further includes: the session initiation protocol stack receiving the third data from the media server After the fourth data that can be recognized by the webpage real-time communication browser, the fourth data related information is sent through the internal interface The information is sent to the distribution control unit, and after the distribution control unit analyzes the related information, generates a fifth instruction according to the distribution rule, where the fifth instruction
  • the sixth instruction receives the session initiation protocol stack through the internal interface, and instructs the session initiation protocol stack to transparently transmit the fourth data to the webpage real-time communication browser.
  • the first part is to take out the payload part of the data frame according to the Websocket protocol, and solve the payload data.
  • Masking operation and then transmitting the decoded payload data to the SIP protocol stack through the TCP/TLS link; when the web socket converter receives the data sent by the SIP protocol stack on the TCP/TLS link, the data is After the payload is encoded according to the Websocket protocol, the encoded Websocket data frame is sent to the web browser.
  • the Webrtc browser registers with the NGN/IMS network, including: Step 301: The Webrtc browser sends a Websocket link request to the Websocket converter.
  • Step 302 After receiving the Websocket link request, the Websocket converter sends a TCP/TLS link establishment request to the SIP protocol stack in the Webrtc2 SIP gateway.
  • Step 303 the SIP protocol stack receives the TCP/TLS link establishment request, and the Websocket converter The TCP/TLS link is successfully established; in step 304, the Websocket converter receives the Websocket link request of the Webrtc browser, and establishes
  • the response is successful.
  • the correspondence between the Websocket link and the TCP/TLS link is established inside the Websocket converter. Because of this correspondence, when the Websocket converter receives data from the Websocket link, it knows to forward it to the corresponding TCP/ The TLS link forwards the data to the SIP protocol stack; when receiving data from the TCP/TLS link, it knows to forward it to the corresponding Websocket link, thereby forwarding the data to the corresponding Webrtc
  • the Websocket converter maintains a Websocket link with the Webrtc browser, such as link keep-alive, link deletion, etc.; maintains TCP/TLS links between the SIP protocol stack, such as link keep-alive, link deletion, etc.
  • the Websocket converter When the Websocket converter is disconnected from the link at either end, it actively disconnects the link with the other end. Step 305, the Webrtc browser sends the registered Register message to the established Websocket link to
  • Step 306 The Websocket converter performs mask decryption on the Register message carried on the Websocket link, finds a TCP/TLS link corresponding to the Websocket link, and then transparently transmits the Register message to the corresponding TCP/TLS link. Reach the SIP protocol stack in the Webrtc2 SIP gateway.
  • Step 307 The SIP protocol stack parses the Register message to obtain the second data-parsed Register message, and reports the related information to the distribution control unit through the internal interface; the distribution control unit saves the related information, queries the distribution rule, and then instructs the SIP protocol by using the internal interface.
  • the stack distributes the parsed Register message to the NGN/IMS core network. Among them, the Register message has some headers, such as From, to, contact, etc., the SIP protocol needs to parse these headers.
  • Step 308 After receiving the indication of the distribution control unit, the SIP protocol stack sends the parsed Register message to
  • Step 309 the registration is successful, and the NGN/IMS core network replies 300 Register messages to the SIP protocol stack.
  • the SIP protocol stack forwards the 200 Register message to the Websocket converter.
  • the Websocket converter finds the corresponding Websocket link, forwards the 200 Register message to the Webrtc browser, and completes registration. After the Webrtc browser is successfully registered, it can initiate a call with the NGN/IMS terminal.
  • the third data and the fourth data should be the same.
  • the media side refers to the user plane, set to transmit voice codec, DTMF in-band transmission, etc.
  • the bearer can be IP, etc.
  • IP can use AMR, G.71 K G.723 and G729 encoding, in-band transmission DTMF using RFC2833 /4833 0
  • the interaction between the signaling plane and the media plane uses the H248 protocol for media related control.
  • the media server implements interworking and conversion of the Webrtc media plane with the NGN/IMS media plane.
  • the media server converts the first media stream from the Webrtc browser to a protocol supported by the NGN/IMS telecommunications network. a second media stream; and, converting the second media stream from the NGN/IMS telecommunications network to a first media stream based on a protocol supported by the Webrtc browser.
  • the specific media includes:
  • the first media stream with the Webrtc browser is transmitted based on Datagram Transport Layer Security (DTLS) and Secure Real-time Transport Protocol (SRTP), and supports
  • the audio encoding uses the alphabet/g.711 protocol, the video encoding uses the VP8/H.264 protocol;
  • the second media stream with the NGN/IMS telecommunications network is based on the Real-time Transport Protocol (RTP) and supports audio.
  • RTP Real-time Transport Protocol
  • the encoding uses the g.711 protocol, and the video encoding uses the H.263/H.264 protocol.
  • DTLS guarantees the security of UDP transmission, and SRTP guarantees the encryption of media. It is two different protocols.
  • the ICE server unit provides the NAT traversal function of the media plane for the Webrtc browser.
  • the method before the web socket converter receives the first data from the webpage real-time communication browser on the webpage socket link, the method further comprises: interacting with the ICE server in the gateway by the webpage real-time communication browser Obtaining, by the webpage real-time communication browser, an address and a port of the receiving media, and then carrying the address and port in a session description protocol, and carrying the session description protocol in the first data.
  • An embodiment of the present invention provides an apparatus for performing communication between a browser and a communication network, including: a link unit, configured to establish a first link with a browser, and establish a second link with the NGN/IMS network; a first direction switching sending unit, configured to receive first data from the browser on the first link, and convert the first data into a second when the first data is call related SIP signaling Data, transmitting second data to the NGN/IMS network on a second link; and a second direction change transmitting unit configured to receive a third from the NGN/IMS network on the second link Data, when the third data is call related SIP signaling, converting the third data to fourth data, and transparently transmitting the fourth data to the browser on the first link.
  • the link unit includes: a first link module, configured to establish a webpage socket link between the gateway and the browser as the first link; and a second link module, A user datagram protocol/transmission control protocol/transport layer security protocol link between the gateway and the NGN/IMS network is set as the second link.
  • An embodiment of the present invention provides a gateway for communicating between a browser and a telecommunications network, including: a webpage socket converter and a session initiation protocol stack, wherein the webpage socket converter is connected to a session initiation protocol stack, The other end is connected to a webpage real-time communication browser supporting a webpage real-time communication protocol; wherein the webpage socket converter is configured to establish a webpage socket link with the webpage real-time communication browser, establishing the session with the webpage Initiating a Transmission Control Protocol/Transport Layer Security Protocol (TCP/TLS) link between the protocol stacks, the webpage socket link and the TCP/TLS link have a corresponding relationship; and, in the webpage socket And when the first data from the webpage real-time communication browser is received on the word link, sent to the session initiation protocol stack by using the TCP/TLS link; and the session initiation protocol stack is set to be the first data.
  • TCP/TLS Transmission Control Protocol/Transport Layer Security Protocol
  • the first data is sent to the media server, and the first data is converted by the receiving media server to be obtained by the NGN/IMS network.
  • the second data is sent to the NGN/IMS network, and when the first data is non-call related SIP signaling, the first data is directly transparently transmitted to the NGN/IMS network; a session initiation protocol stack, further configured to receive call related SIP signaling from the NGN/IMS network as third data; to send the third data to the media server, and to receive the third
  • the fourth data is sent to the webpage socket converter, or the non-call related SIP signaling from the NGN/IMS network is received.
  • a web socket converter further configured to receive the fourth data from the session initiation protocol stack on a TCP/TLS link, and carry the same on the corresponding web socket link to send to the Web page real-time communication browser.
  • the Webrtc2 SIP gateway includes: Websocket converter, SIP protocol stack, distribution control unit, media server and ICE server, located between the Webrtc browser and the NGN/IMS network, using Websocket link transmission with the Webrtc browser, and NGN/IMS UDP/TCP/TLS transmissions are used between networks.
  • the Webrtc2 SIP gateway is a Webrtc terminal.
  • the Webrtc2 SIP gateway is a proxy for a traditional SIP terminal.
  • the NGN/IMS network is based on UDP/TCP/TLS transmission between the traditional SIP soft/hard terminal.
  • the media server is configured to change the media parameter related to the webpage real-time communication protocol in the third data to the media parameter related to the NGN/IMS telecommunication network to obtain the fourth data; and, In the third data, the media parameters related to the NGN/IMS telecommunication network are changed to the media parameters related to the real-time communication protocol of the webpage to obtain the fourth data.
  • the gateway further includes: a distribution control unit, configured to receive related information sent by the session initiation protocol stack through the internal interface; in the process of processing the first data, when the related information
  • the first instruction is generated according to the distribution rule, where the first instruction can reach the session initiation protocol stack by using the internal interface, indicating that the session initiation protocol stack is Sending the first data to the media server; and generating a second instruction according to the distribution rule, the second instruction being able to reach the session initiation protocol stack through the internal interface, indicating that the session initiation protocol stack is to be Transmitting the second data to the NGN/IMS network; when the first data is non-call related SIP signaling, saving the related information, and generating a third instruction according to the distribution rule, the third instruction being able to pass the internal interface Reaching the session initiation protocol stack, instructing the session initiation protocol stack to send the first data to the NGN/IM S network; in the process of processing the third data, when the third data is the call-related SIP signaling, the first instruction is generated
  • the fourth data is transparently transmitted to the webpage real-time communication browser.
  • the first function integration unit includes a Websocket converter and an ICE server
  • the second function integration unit includes a SIP protocol stack, a distribution control unit, and a media server;
  • the function integration unit is connected to the second function integration unit. Suitable for situations with low load. As shown in FIG. 6, the load of the SIP protocol stack is shared.
  • the first function integration unit includes a Websocket converter and an ICE server
  • the second function integration unit includes a SIP protocol stack and distribution control.
  • the unit and the media server; the first function integration unit is connected to the plurality of second function integration units. Suitable for distributed deployment of SIP protocol stack + distribution control + media server. As shown in FIG. 7, the load of the Websocket converter is shared.
  • the first function integration unit includes a Websocket converter and an ICE server
  • the second function integration unit includes a SIP protocol stack and distribution control.
  • the unit and the media server; the first function integration unit is connected to the plurality of Web socket converters, and the plurality of Web socket converters are further connected to a second function integration unit.
  • the ICE server can be one. As shown in FIG. 8, the load of the SIP protocol stack and the Websocket converter are shared.
  • the first function integration unit includes a Websocket converter and an ICE server
  • the second function integration unit includes a SIP. a protocol stack, a distribution control unit, and a media server;
  • the first function integration unit is connected to a plurality of Web socket converters, and each of the plurality of Web socket converters is further connected to one or more second function integration units.
  • ICE server can be one, and SIP protocol stack + distribution control + media server distributed deployment.
  • the embodiments illustrate the flexibility of each unit module network in the present invention, because each module bears a certain workload, and in the process of networking, flexible deployment can be performed according to the processing capabilities of each unit module. 5 to the different network structures shown in FIG.
  • the first data is an INVITE1 message
  • the second data is an INVITE2 message
  • the fourth data is an answerl message
  • the third data is an answer2 message.
  • the Websocket converter receives the INVITE1 message from the Webrtc browser on the Websocket link.
  • the session description protocol SDP carried in the INVITE1 message is recorded as offerl, and the offerl contains the public network address and port of the receiving media.
  • the media server after receiving the INVITE1 message, changes the Webrtc-related media parameter in the offerl to the media parameter that can be recognized by the NGN/IMS network, and generates a new INVITE2, and the INVITE2 carries the modified SDP as the offer2.
  • the INVITE2 is sent to the SIP protocol stack; the media server changes the NGN/IMS related media parameter in the answerl to the Webrtc related media parameter, generates a new 180 response, the 180 response carries the modified SDP as the answer2, and the answer2 is sent to the SIP. Protocol stack. As shown in FIG.
  • the Webrtc browser in the process of the Webrtc browser talking to the client (UE)-NGN/IMS terminal, the Webrtc browser first interacts with the ICE server in the Webrtc2 SIP gateway before sending the INVITE1 message, and obtains the receiving media.
  • the network address and port are then carried in the Session Description Protocol (SDP).
  • SDP Session Description Protocol
  • the process of the Webrtc browser talking to the NGN/IMS terminal includes: Step 401: The Webrtc browser sends an INVITE1 message on the Websocket link, and the SDP carried in the INVITE1 message is recorded as offerl; Step 402, after receiving the INVITE1, the Websocket converter performs the Mask decryption, find the corresponding TCP/TLS link, and then forward INVITE1 to the SIP protocol stack in the Webrtc2 SIP gateway.
  • Step 403 After receiving and parsing the INVITE1 message, the SIP protocol stack reports the related information to the distribution control unit through the internal interface.
  • the distribution control unit instructs the SIP protocol stack to forward the INVITE1 message to the media server through the internal interface.
  • Step 404 the SIP protocol stack forwards the INVITE1 message to the media server, and the carried SDP is offerl;
  • Step 405 After receiving the INVITE1, the media server changes the media parameter related to the Webrtc in the offerl to the media parameter that can be identified by the NGN/IMS network, such as modifying the audio and video coding parameters, changing the SRTP/DTLS related parameters to the RTP parameters, and then A new INVITE2 is generated, and the modified SDP is recorded as offer2 and sent to the SIP protocol stack.
  • Step 406 The SIP protocol stack receives the INVITE2 that carries the offer2 sent by the media server, and parses the related information to the distribution control unit through the internal interface. After the distribution control unit performs the related query, the SIP protocol stack is instructed by the internal interface to forward the message to the SIP protocol stack.
  • Step 407 the SIP protocol stack forwards the INVITE2 carrying the offer2 to the NGN/IMS network;
  • Step 408 the NGN/IMS network forwards the INVITE2 carrying the offer2 to the NGN/IMS terminal;
  • Step 409 the NGN/IMS terminal rings, Returning the 180 response message to the NGN/IMS network, the carried SDP is recorded as answer 1;
  • Step 410 the NGN/IMS network forwards the 180 response message carrying the answer1 to the SIP protocol stack;
  • Step 411 the SIP protocol stack forwards the 180 carrying the answerl Sending a response message to the media server;
  • Step 412 The media server changes the NGN/IMS related media parameter in the answer1 to the Webrtc related media parameter, such as modifying the audio and video encoding parameter, modifying the RTP related parameter to the SRTP/DTLS parameter, and then generating a new 180 response, carrying the modified SDP as answer2, sent to the SIP protocol stack.
  • Step 413 The SIP protocol stack sends the 180 response message carrying the answer2 to the Websocket switch on the TCP/TLS link.
  • Step 414 the Websocket converter finds the corresponding Websocket link, and forwards the 180 response message carrying the answer2 to the Webrtc browser.
  • Step 415 20 the Webrtc browser completes the PRACK/200 PRACK signaling interaction with the NGN/IMS terminal; Steps 421 to 426, the NGN/IMS terminal responds, and completes the 200 INVITE/ACK signaling interaction with the Webrtc browser; Step 427 ⁇ Step 428, the Webrtc browser establishes a Webrtc media stream with the media server, the media server establishes an RTP media stream with the NGN/IMS terminal, and the media server performs the conversion of the two media streams. At this point, the Webrtc browser establishes a call with the NGN/IMS terminal. Step 429 to step 434, the Webrtc browser completes the call with the NGN/IMS terminal, and performs BYE/200 BYE.
  • An embodiment of the present invention provides a webpage real-time communication system, including a gateway for communicating between a browser and a telecommunications network, where the gateway includes: a webpage socket converter and a session initiation protocol stack, and the webpage socket conversion The device is connected to the session initiation protocol stack, and the other end is connected to a webpage real-time communication browser supporting the webpage real-time communication protocol; wherein the web socket converter is set to establish and maintain a webpage socket chain with the webpage real-time communication browser.
  • the web socket converter is set to be in a webpage set Receiving the first data from the webpage real-time communication browser on the link link, sending the session initiation protocol stack through the TCP/TLS link; and the session initiation protocol stack is configured to send the first data to the a media server, and after receiving the second data that the media server converts the first data to be recognized by the NGN/IMS network, Sent to the NGN/IMS network; the session initiation protocol stack is further configured to receive third data from the NGN/IMS network; send the third data to the media server, and send the third data to the receiving media server
  • the converted fourth data that can be recognized by the webpage real-time communication browser is sent to the web socket converter; the web socket converter is further configured to receive the session initiation protocol stack on the TCP/TLS link.
  • the fourth data is transparently transmitted to the webpage real-time communication browser, and the webpage real-time
  • the NGN/IMS terminal connected to the NGN/IMS network, is configured to generate the third data.
  • the advantage after adopting this scheme is:
  • the Websocket converter is located between the Webrtc browser and the SIP protocol stack, and establishes a Websocket link between the Websocket server and the Webrtc browser, and is established between the TCP/TLS client and the SIP protocol stack. TCP/TLS link.
  • the data sent by the Websocket client to the server is encrypted by a mask operation, and the data sent by the Websocket server to the client does not need to be mask encrypted.
  • a method and a gateway for communicating between a browser and a telecommunication network provided by an embodiment of the present invention have the following beneficial effects: Realizing the integration of Internet technology and communication technology, for a telecom operator , expanding the users of telecom operators, for Internet users, can enjoy the services provided by the telecommunications field.

Landscapes

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

Abstract

本发明实施例提供一种在浏览器和电信网络之间进行通信的方法和网关,应用于网关,方法包括:建立与浏览器的第一链路,建立与电信NGN/IMS网络的第二链路;在所述第一链路上接收来自浏览器的第一数据,当所述第一数据是呼叫相关SIP信令时,将所述第一数据转换得到第二数据,将第二数据在第二链路上发送给所述NGN/IMS网络;以及在所述第二链路上接收来自所述NGN/IMS网络的第三数据,当所述第三数据是呼叫相关SIP信令时,将所述第三数据转换得到的第四数据在第一链路上透传给所述浏览器。实现了互联网技术与通信技术的融合,对电信运营商而言,拓展了电信运营商的用户,对互联网用户而言,可以享受到电信领域提供的业务。

Description

一种在浏览器和电信网络之间进行通信的方法和网关 技术领域 本发明涉及网页实时通信技术, 特别是指一种在浏览器和电信网络之间进行通信 的方法和网关。 背景技术 网页实时通信 CWeb Real-Time Communication, 简称为 Webrtc)是一种在浏览器之 间进行实时语言、 视频、 数据通信的技术。 该技术出现之前, 浏览器之间要实现实时 通信需要私有技术, 如通过安装插件来实现, 对用户而言, 插件的下载、 安装和更新 是一个繁琐的过程; 对应用开发而言, 插件的调测、 维护也很麻烦。 Webrtc技术开源 之后, 各浏览器厂家能够内建 Webrtc技术来封装实时通信所需的各种功能, 如音视频 引擎、 网络地址转换 (Network Address Translation, 简称为 NAT)穿越等, 从而使得 Web 应用开发人员能够简单地通过超文本标记语言 (HyperText Markup Language, 简称为 HTML)标签和 JavaScript API就能实现浏览器之间的实时通信。 目前已有 Chrome、 Firefox和 IE等浏览器内嵌了 Webrtc技术。 现有技术存在如下问题: 在下一代网络 /IP 多媒体子系统 (Next Generation
Network/IP Multimedia Subsystem, 简称为 NGN/IMS)网络中, 基于会话初始化协议 (Session Initiation Protocol, 简称为 SIP)实现语言、 视频和数据通信, 其面向的终端只 能是传统 SIP软硬件终端, 无法与支持网页实时通信技术的终端进行实时通信。 发明内容 本发明实施例提供了一种在浏览器和电信网络之间进行通信的方法和网关, 以至 少解决现有技术中电信网络,特别是下一代网络 /IP多媒体子系统网络无法与支持网页 实时通信 Webrtc技术的终端浏览器进行实时通信的缺陷。 为解决上述技术问题, 本发明的实施例提供一种在浏览器和电信网络之间进行通 信的方法, 应用于网关, 方法包括: 建立与浏览器的第一链路, 建立与 NGN/IMS 网 络的第二链路; 在所述第一链路上接收来自浏览器的第一数据, 当所述第一数据是呼 叫相关 SIP信令时, 将所述第一数据转换得到第二数据, 将第二数据在第二链路上发 送给所述 NGN/IMS网络;以及在所述第二链路上接收来自所述 NGN/IMS网络的第三 数据, 当所述第三数据是呼叫相关 SIP信令时, 将所述第三数据转换得到第四数据, 将第四数据在第一链路上透传给所述浏览器。 可选地, 建立与浏览器的第一链路包括: 建立网关与所述浏览器之间的网页套接 字链路作为所述第一链路。 可选地, 建立与 NGN/IMS网络的第二链路包括: 建立网关与所述 NGN/IMS网络 之间的用户数据报协议 /传输控制协议 /传输层安全协议链路作为所述第二链路。 可选地, 在所述第一链路上接收来自浏览器的第一数据, 当所述第一数据是呼叫 相关 SIP信令时, 还包括: 当所述第一数据是非呼叫相关 SIP信令时, 将所述第一数 据直接透传给所述 NGN/IMS网络。 可选地, 将第二数据在第二链路上发送给所述 NGN/IMS 网络具体包括: 分析所 述第二数据的相关信息后, 根据分发规则生成第二指令, 所述第二指令指示将所述第 二数据发送给所述 NGN/IMS网络。 可选地, 将所述第一数据直接透传给所述 NGN/IMS 网络, 具体包括: 当所述第 一数据是非呼叫相关 SIP信令时, 分析所述第一数据的相关信息后, 根据分发规则生 成第三指令, 所述第三指令指示将所述第一数据发送给所述 NGN/IMS网络。 可选地, 当所述第一数据是呼叫相关 SIP信令时, 将所述第一数据转换得到第二 数据包括: 将所述第一数据的会话描述协议包中网页实时通信协议相关的媒体参数改 成所述 NGN/IMS网络相关的媒体参数而得到所述第二数据。 可选地, 将所述第一数据的会话描述协议包中网页实时通信协议相关的媒体参数 改成所述 NGN/IMS 网络相关的媒体参数而得到所述第二数据包括: 将基于数据报传 输层安全和加密实时传输协议, 音频编码 opus/g.711协议和视频编码 VP8/H.264协议 的第一数据, 转换为所述 NGN/IMS网络支持的基于实时传输协议, 音频编码 g.711协 议和视频编码 H.263/H.264协议的所述第二数据。 可选地, 当所述第三数据是呼叫相关 SIP信令时, 将所述第三数据转换得到第四 数据包括: 将所述第三数据中 NGN/IMS 网络相关的媒体参数改成网页实时通信协议 相关的媒体参数得到所述第四数据。 可选地, 将所述第三数据转换得到第四数据之前还包括: 分析所述第三数据的相 关信息后, 根据分发规则生成第四指令, 所述第四指令指示将所述第三数据发送至进 行数据转换的位置处; 将所述第三数据转换得到第四数据之后还包括: 分析所述第四 数据的相关信息, 根据分发规则生成第五指令, 所述第五指令指示将所述第四数据发 送给所述浏览器。 可选地, 在所述第二链路上接收来自所述 NGN/IMS 网络的第三数据时还包括: 当所述第三数据是非呼叫相关 SIP信令时, 将所述非呼叫相关 SIP信令不经过转换直 接作为所述第四数据, 分析所述第四数据的相关信息后,根据分发规则生成第六指令, 所述第六指令指示将所述第四数据直接透传给所述浏览器。 可选地, 在所述第一链路上接收来自浏览器的第一数据之后, 还包括: 对所述第 一数据进行掩码解密。 可选地, 在所述第一链路上接收到来自所述浏览器的第一数据之前还包括: 获取 所述浏览器接收媒体的公共网络地址和端口, 然后将所述公共网络地址和端口携带在 会话描述协议包中, 并将所述会话描述协议包携带在所述第一数据中。 一种在浏览器和电信网络之间进行通信的装置, 包括: 链路单元, 设置为建立与 浏览器的第一链路, 建立与 NGN/IMS 网络的第二链路; 第一方向转换发送单元, 设 置为在所述第一链路上接收来自浏览器的第一数据, 当所述第一数据是呼叫相关 SIP 信令时, 将所述第一数据转换得到第二数据, 将第二数据在第二链路上发送给所述 NGN/IMS网络; 以及第二方向转换发送单元, 设置为在所述第二链路上接收来自所述 NGN/IMS网络的第三数据, 当所述第三数据是呼叫相关 SIP信令时, 将所述第三数据 转换得到第四数据, 将第四数据在第一链路上透传给所述浏览器。 所述的装置中, 链路单元包括: 第一链路模块, 设置为建立网关与所述浏览器之 间的网页套接字链路作为所述第一链路; 第二链路模块, 设置为建立网关与所述 NGN/IMS网络之间的用户数据报协议 /传输控制协议 /传输层安全协议链路作为所述第 二链路。 一种在浏览器和电信网络之间进行通信的方法, 应用于一网关中设置的网页套接 字转换器, 所述网页套接字转换器与会话发起协议栈连接, 另一端与支持网页实时通 信协议的网页实时通信浏览器连接, 所述方法包括: 建立所述网页套接字转换器与所 述网页实时通信浏览器之间的网页套接字链路; 建立所述网页套接字转换器与所述会 话发起协议栈之间的传输控制协议 /传输层安全协议 TCP/TLS链路, 所述网页套接字 链路与所述 TCP/TLS链路之间具有对应关系;所述网页套接字转换器在所述网页套接 字链路上接收到来自所述网页实时通信浏览器的第一数据,通过所述 TCP/TLS链路发 送给所述会话发起协议栈, 使得所述会话发起协议栈能够当所述第一数据是呼叫相关 SIP 信令时, 将所述第一数据发送给所述媒体服务器, 在接收所述媒体服务器将所述 第一数据转换得到的能够被电信 NGN/IMS 网络识别的第二数据后, 发送给所述 NGN/IMS网络, 以及当所述第一数据是非呼叫相关 SIP信令时, 将所述第一数据直接 透传给所述 NGN/IMS网络; 所述网页套接字转换器在所述 TCP/TLS链路上接收来自 所述会话发起协议栈的能够被所述网页实时通信浏览器识别的第四数据后, 将所述第 四数据透传给所述网页实时通信浏览器, 其中, 所述第四数据由所述媒体服务器将来 自所述 NGN/IMS网络的呼叫相关 SIP信令作为第三数据进行转换后得到, 或者是来 自所述 NGN/IMS网络的非呼叫相关 SIP信令。 可选地, 建立所述网页套接字转换器与所述网页实时通信浏览器之间的网页套接 字链路之后还包括: 保活所述网页套接字链路; 建立所述网页套接字转换器与所述会 话发起协议栈之间的传输控制协议 /传输层安全协议 TCP/TLS链路之后还包括: 保活 所述 TCP/TLS链路。 可选地, 将所述第一数据发送给所述媒体服务器, 具体包括: 当所述第一数据是 呼叫相关 SIP信令时, 所述会话发起协议栈通过内部接口将所述第一数据的相关信息 发送给网关中的分发控制单元, 由所述分发控制单元分析所述相关信息后, 根据分发 规则生成第一指令, 所述第一指令通过所述内部接口到达所述会话发起协议栈, 指示 所述会话发起协议栈将所述第一数据发送给所述媒体服务器; 发送给所述 NGN/IMS 网络具体包括: 所述会话发起协议栈在接收到所述媒体服务器将所述第一数据转换得 到的能够被 NGN/IMS 网络识别的第二数据后, 通过所述内部接口将所述第二数据的 相关信息发送给所述分发控制单元, 由所述分发控制单元分析所述相关信息后, 根据 分发规则生成第二指令, 所述第二指令通过所述内部接口到达所述会话发起协议栈, 指示所述会话发起协议栈将所述第二数据发送给所述 NGN/IMS网络。 可选地, 将所述第一数据直接透传给所述 NGN/IMS 网络, 具体包括: 当所述第 一数据是非呼叫相关 SIP信令时, 所述会话发起协议栈通过内部接口将所述第一数据 的相关信息发送给网关中的分发控制单元,由所述分发控制单元分析所述相关信息后, 保存所述相关信息, 以及根据分发规则生成第三指令, 所述第三指令通过所述内部接 口到达所述会话发起协议栈, 指示所述会话发起协议栈将所述第一数据发送给所述 NGN/IMS网络。 可选地, 所述会话发起协议栈能够当所述第一数据是呼叫相关 SIP信令时, 将所 述第一数据发送给所述媒体服务器之后还包括: 由所述媒体服务器将所述第一数据的 会话描述协议包中网页实时通信协议相关的媒体参数改成所述 NGN/IMS 网络相关的 媒体参数而得到所述第二数据。 可选地, 由所述媒体服务器将所述第一数据的会话描述协议包中网页实时通信协 议相关的媒体参数改成所述 NGN/IMS网络相关的媒体参数而得到所述第二数据包括: 所述媒体服务器将基于数据报传输层安全和加密实时传输协议, 音频编码 opus/g.711 协议和视频编码 VP8/H.264协议的第一数据, 转换为所述 NGN/IMS网络支持的基于 实时传输协议, 音频编码 g.711协议和视频编码 H.263/H.264协议的所述第二数据。 可选地, 所述第四数据由所述媒体服务器将来自所述 NGN/IMS 网络的呼叫相关 SIP 信令作为第三数据进行转换后得到包括: 所述会话发起协议栈与所述媒体服务器 相连, 将所述第三数据发送给所述媒体服务器; 由所述媒体服务器将所述第三数据中
NGN/IMS 网络相关的媒体参数改成网页实时通信协议相关的媒体参数得到所述第四 数据。 可选地, 所述第四数据由所述媒体服务器将来自所述 NGN/IMS 网络的呼叫相关 SIP 信令作为第三数据进行转换后得到之前还包括: 当所述第三数据是呼叫相关 SIP 信令时, 所述会话发起协议栈通过内部接口将所述第三数据的相关信息发送给网关中 的分发控制单元, 由所述分发控制单元分析所述相关信息后, 根据分发规则生成第四 指令, 所述第四指令通过所述内部接口到达所述会话发起协议栈, 指示所述会话发起 协议栈将所述第三数据发送给所述媒体服务器; 所述第四数据由所述媒体服务器将来 自所述 NGN/IMS网络的呼叫相关 SIP信令作为第三数据进行转换后得到之后还包括: 所述会话发起协议栈在接收到所述媒体服务器将所述第三数据转换得到的能够被所述 网页实时通信浏览器识别的第四数据后, 通过所述内部接口将所述第四数据的相关信 息发送给所述分发控制单元, 由所述分发控制单元分析所述相关信息后, 根据分发规 则生成第五指令, 所述第五指令通过所述内部接口到达所述会话发起协议栈, 指示所 述会话发起协议栈将所述第四数据发送给所述网页实时通信浏览器; 将所述第四数据 透传给所述网页实时通信浏览器包括: 所述非呼叫相关 SIP信令作为所述第四数据, 所述会话发起协议栈通过内部接口将所述第四数据的相关信息发送给网关中的分发控 制单元, 由所述分发控制单元分析所述相关信息后, 根据分发规则生成第六指令, 所 述第六指令通过所述内部接口到达所述会话发起协议栈, 指示所述会话发起协议栈将 所述第四数据直接透传给所述网页实时通信浏览器。 可选地, 所述网页套接字转换器在所述网页套接字链路上接收到来自所述网页实 时通信浏览器的第一数据之后, 还包括: 对所述第一数据进行掩码解密。 可选地, 所述网页套接字转换器在所述网页套接字链路上接收到来自所述网页实 时通信浏览器的第一数据之前还包括: 由所述网页实时通信浏览器与所述网关中的 ICE服务器交互, 获取所述网页实时通信浏览器接收媒体的公共网络地址和端口, 然 后将所述公共网络地址和端口携带在会话描述协议包中, 并将所述会话描述协议包携 带在所述第一数据中。 一种在浏览器和电信网络之间进行通信的网关, 包括: 网页套接字转换器和会话 发起协议栈, 所述网页套接字转换器与会话发起协议栈连接, 另一端与支持网页实时 通信协议的网页实时通信浏览器连接; 其中, 网页套接字转换器, 设置为建立与所述 网页实时通信浏览器之间的网页套接字链路, 建立与所述会话发起协议栈之间的传输 控制协议 /传输层安全协议 TCP/TLS链路, 所述网页套接字链路与所述 TCP/TLS链路 之间具有对应关系; 以及, 在所述网页套接字链路上接收到来自所述网页实时通信浏 览器的第一数据时, 通过所述 TCP/TLS链路发送给所述会话发起协议栈; 会话发起协 议栈, 设置为当所述第一数据是呼叫相关 SIP信令时, 将所述第一数据发送给所述媒 体服务器,并在接收所述媒体服务器将所述第一数据转换得到的能够被电信 NGN/IMS 网络识别的第二数据后, 将所述第二数据发送给所述 NGN/IMS 网络, 以及当所述第 一数据是非呼叫相关 SIP信令时, 将所述第一数据直接透传给所述 NGN/IMS网络; 会话发起协议栈, 还设置为接收来自所述 NGN/IMS网络的呼叫相关 SIP信令作为第 三数据; 将所述第三数据发送给所述媒体服务器, 并在接收所述媒体服务器将所述第 三数据转换得到的能够被所述网页实时通信浏览器识别的第四数据后, 将所述第四数 据发送给所述网页套接字转换器, 或者是接收来自所述 NGN/IMS 网络的非呼叫相关 SIP信令, 并将非呼叫相关 SIP信令作为所述第四数据发送给所述网页套接字转换器; 网页套接字转换器,还设置为在所述 TCP/TLS链路上接收来自所述会话发起协议栈的 所述第四数据, 并承载在对应的所述网页套接字链路上发送给所述网页实时通信浏览 器。 所述的网关中, 与媒体服务器连接; 媒体服务器, 设置为当所述第一数据是呼叫 相关 SIP信令时, 将所述第一数据的会话描述协议包中网页实时通信协议相关的媒体 参数改成所述 NGN/IMS 网络相关的媒体参数而得到所述第二数据; 以及, 当所述第 三数据是呼叫相关 SIP信令时, 将所述第三数据中所述 NGN/IMS网络相关的媒体参 数改成所述网页实时通信协议相关的媒体参数得到第四数据。 所述的网关中, 还包括: 分发控制单元, 设置为接收来自所述会话发起协议栈通 过内部接口发送来的相关信息; 在对第一数据进行处理的过程中, 当所述相关信息表 明: 所述第一数据是呼叫相关 SIP信令时, 根据分发规则生成第一指令, 所述第一指 令能够通过所述内部接口到达所述会话发起协议栈, 指示所述会话发起协议栈将所述 第一数据发送给所述媒体服务器; 以及, 根据分发规则生成第二指令, 所述第二指令 能够通过所述内部接口到达所述会话发起协议栈, 指示所述会话发起协议栈将所述第 二数据发送给 NGN/IMS网络; 所述第一数据是非呼叫相关 SIP信令时, 保存所述相 关信息, 以及根据分发规则生成第三指令, 所述第三指令能够通过所述内部接口到达 所述会话发起协议栈, 指示所述会话发起协议栈将所述第一数据发送给 NGN/IMS 网 络; 在对第三数据进行处理的过程中, 当所述相关信息表明: 所述第三数据是呼叫相 关 SIP信令时, 根据分发规则生成第四指令, 所述第四指令通过所述内部接口到达所 述会话发起协议栈,指示所述会话发起协议栈将所述第三数据发送给所述媒体服务器; 以及, 根据分发规则生成第五指令, 所述第五指令通过所述内部接口到达所述会话发 起协议栈,指示所述会话发起协议栈将所述第四数据发送给所述网页实时通信浏览器; 所述非呼叫相关 SIP信令作为所述第四数据时, 根据分发规则生成第六指令, 所述第 六指令通过所述内部接口到达所述会话发起协议栈, 指示所述会话发起协议栈将所述 第四数据透传给所述网页实时通信浏览器。 所述的网关中,第一功能集成单元包括一个网页套接字转换器和一个 ICE服务器, 第二功能集成单元包括一个会话发起协议栈、 分发控制单元和媒体服务器; 所述第一 功能集成单元与第二功能集成单元连接。 所述的网关中,第一功能集成单元包括一个网页套接字转换器和一个 ICE服务器, 第二功能集成单元包括一个会话发起协议栈、 分发控制单元和媒体服务器; 第一功能 集成单元与多个第二功能集成单元连接。 所述的网关中,第一功能集成单元包括一个网页套接字转换器和一个 ICE服务器, 第二功能集成单元包括一个会话发起协议栈、 分发控制单元和媒体服务器; 第一功能 集成单元与多个网页套接字转换器连接, 所述多个网页套接字转换器再与一个第二功 能集成单元连接。 所述的网关中,第一功能集成单元包括一个网页套接字转换器和一个 ICE服务器, 第二功能集成单元包括一个会话发起协议栈、 分发控制单元和媒体服务器; 第一功能 集成单元与多个网页套接字转换器连接, 所述多个网页套接字转换器中的每一个再与 一个或者多个第二功能集成单元连接。 一种网页实时通信系统, 包括网关, 以及网页实时通信浏览器, 设置为与所述网 关之间建立、 维护和删除网页套接字链路, 以及产生所述第一数据; NGN/IMS终端, 与 NGN/IMS网络连接, 设置为产生所述第三数据。 本发明的上述技术方案的有益效果如下: 在 Webrtc浏览器与 SIP协议栈之间, 与 Webrtc浏览器建立 Websocket链路, 与 SIP协议栈建立 TCP/TLS链路, 能够将基于 Webrtc技术的浏览器与基于 SIP的 NGN/IMS网络建立实时通信, 实现了互联网技术 与通信技术的融合, 对电信运营商而言, 拓展了电信运营商的用户, 可以创造新的盈 利模式; 对互联网用户而言, 可以享受到电信领域提供的业务。 附图说明 图 1表示本发明实现网页实时通信浏览器与 NGN/IMS网络实时通信的架构示意 图; 图 2表示一种在浏览器和电信网络之间进行通信的方法流程示意图; 图 3表示网页实时通信浏览器向 NGN/IMS网络注册的流程示意图; 图 4表示网页实时通信浏览器与 NGN/IMS终端通话的流程示意图; 图 5表示 Webrtc2SIP网关的内部组网示意图一; 图 6表示 Webrtc2SIP网关的内部组网示意图二; 图 7表示 Webrtc2SIP网关的内部组网示意图三; 图 8表示 Webrtc2SIP网关的内部组网示意图四。 具体实施方式 为使本发明要解决的技术问题、 技术方案和优点更加清楚, 下面将结合附图及具 体实施例进行详细描述。 如图 1所示, 网页实时通信 (Webrtc, Web Real-Time Communication)浏览器 (;简称 Webrtc 浏览器)与电信网络实现实时通信的架构中, Webrtc 浏览器内嵌了实时音频视 频、 数据通信和网络地址转换 (NAT, Network Address Translation)穿越功能, 作为 Websocket 客户端位于 Webrtc2SIP 网关的一个端, 能建立、 维护和删除网页套接字 (Websocket)链路, 以及产生实时通信所需要的呼叫相关 SIP信令和非呼叫相关 SIP信 令, 呼叫相关 SIP信令和非呼叫相关 SIP信令均是信令层面的数据。
Webrtc2SIP网关, 与 Webrtc浏览器之间使用 Websocket链路传输, 与电信网络间 使用用户数据报协议 /传输控制协议 /传输层安全协议 (UDP/TCP/TLS, User Datagram Protocol/Transmission Control Protocol/Transport Layer Security)传输。 对 Webrtc浏览器 (Websocket客户端)而言, Webrtc2SIP网关是一个 Webrtc服务端, 对电信网络而言, Webrtc2SIP网关则是一个传统 SIP软 /硬终端的代理,电信网络与传统 SIP软 /硬终端之 间基于 UDP/TCP/TLS传输。 本发明实施例提供一种在浏览器和电信网络之间进行通信的方法, 应用于网关, 如图 2所示, 方法包括: 步骤 201, 建立与浏览器的第一链路, 建立与 NGN/IMS网络的第二链路; 步骤 202, 在所述第一链路上接收来自浏览器的第一数据, 当所述第一数据是呼 叫相关 SIP信令时, 将所述第一数据转换得到第二数据, 将第二数据在第二链路上发 送给所述 NGN/IMS网络; 以及 步骤 203, 在所述第二链路上接收来自所述 NGN/IMS网络的第三数据, 当所述第 三数据是呼叫相关 SIP信令时, 将所述第三数据转换得到第四数据, 将第四数据在第 一链路上透传给所述浏览器。 应用所提供的技术, 能够将基于 Webrtc技术的浏览器与基于 SIP的 NGN/IMS网 络建立实时通信, 实现了互联网技术与通信技术的融合, 对电信运营商而言, 拓展了 电信运营商的用户, 对互联网用户而言, 可以享受到电信领域提供的业务。 电信网络具体是下一代网络 /IP多媒体子系统 (简称 NGN/IMS)网络。浏览器具体是 网页实时通信浏览器。 在一个优选实施例中, 建立与浏览器的第一链路包括: 建立网关与所述浏览器之 间的网页套接字链路作为所述第一链路。 在一个优选实施例中, 建立与 NGN/IMS网络的第二链路包括: 建立网关与所述 NGN/IMS网络之间的用户数据报协议 /传输控制协议 /传输层安全 协议链路作为所述第二链路。 以及, 在网关中, 在 Websocket转换器与 SIP协议栈之间建立 TCP/TLS链路作为 第三链路。 在一个优选实施例中, 在所述第一链路上接收来自浏览器的第一数据, 还包括: 当所述第一数据是非呼叫相关 SIP信令时,将所述第一数据直接透传给所述 NGN/IMS 网络。 在一个优选实施例中, 将第二数据在第二链路上发送给所述 NGN/IMS 网络具体 包括: 分析所述第二数据的相关信息后, 根据分发规则生成第二指令, 所述第二指令 指示将所述第二数据发送给所述 NGN/IMS网络。 在一个优选实施例中, 将所述第一数据直接透传给所述 NGN/IMS 网络, 具体包 括: 当所述第一数据是非呼叫相关 SIP信令时, 分析所述第一数据的相关信息后, 根 据分发规则生成第三指令, 所述第三指令指示将所述第一数据发送给所述 NGN/IMS 网络。 在一个优选实施例中, 当所述第一数据是呼叫相关 SIP信令时, 将所述第一数据 转换得到第二数据包括: 将所述第一数据的会话描述协议包中网页实时通信协议相关的媒体参数改成所述
NGN/IMS网络相关的媒体参数而得到所述第二数据。 在一个优选实施例中, 将所述第一数据的会话描述协议包中网页实时通信协议相 关的媒体参数改成所述 NGN/IMS网络相关的媒体参数而得到所述第二数据包括: 将基于数据报传输层安全和加密实时传输协议, 音频编码 opus/g.711协议和视频 编码 VP8/H.264协议的第一数据, 转换为所述 NGN/IMS网络支持的基于实时传输协 议, 音频编码 g.711协议和视频编码 H.263/H.264协议的所述第二数据。 在一个优选实施例中, 当所述第三数据是呼叫相关 SIP信令时, 将所述第三数据 转换得到第四数据包括: 将所述第三数据中 NGN/IMS 网络相关的媒体参数改成网页实时通信协议相关的 媒体参数得到所述第四数据。 在一个优选实施例中, 将所述第三数据转换得到第四数据之前还包括: 分析所述第三数据的相关信息后, 根据分发规则生成第四指令, 所述第四指令指 示将所述第三数据发送至进行数据转换的位置处; 将所述第三数据转换得到第四数据之后还包括: 分析所述第四数据的相关信息, 根据分发规则生成第五指令, 所述第五指令指示 将所述第四数据发送给所述浏览器; 在一个优选实施例中, 在所述第二链路上接收来自所述 NGN/IMS 网络的第三数 据还包括: 当所述第三数据是非呼叫相关 SIP信令时, 将所述非呼叫相关 SIP信令不 经过转换直接作为所述第四数据, 分析所述第四数据的相关信息后, 根据分发规则生 成第六指令, 所述第六指令指示将所述第四数据直接透传给所述浏览器。 在一个优选实施例中, 在所述第一链路上接收来自浏览器的第一数据之后, 还包 括: 对所述第一数据进行掩码解密。 在一个优选实施例中, 在所述第一链路上接收到来自所述浏览器的第一数据之前 还包括: 获取所述浏览器接收媒体的公共网络地址和端口, 然后将所述公共网络地址和端 口携带在会话描述协议包中, 并将所述会话描述协议包携带在所述第一数据中。 电信网络具体是下一代网络 /IP多媒体子系统 (简称 NGN/IMS)网络。浏览器具体是 网页实时通信浏览器。 如图 1所示, 网页实时通信浏览器与 NGN/IMS电信网络实现实时通信的架构中, 包括: Webrtc浏览器、 Websocket转换器、 SIP协议栈、 分发控制单元、 媒体服务器、 交互式连接建立 (ICE, Interactive Connectivity Establishment)服务器和 NGN/IMS网络 等。图 1中, Webrtc浏览器与媒体服务器之间的直接交互, 以及媒体服务器与传统 SIP 软硬件终端之间的直接交互是指底层媒体数据的交互, 是在 Webrtc浏览器、媒体服务 器、 SIP软硬件终端 /媒体网关 MGW之间进行的。
Webrtc2SIP网关中包括了: Websocket转换器、 SIP协议栈、 分发控制单元、 媒体 服务器和 ICE服务器, 位于 Webrtc浏览器和 NGN/IMS网络之间。 基于之前各个实施例提供的技术, 本发明提供一种在浏览器和 NGN/IMS 网络之 间进行通信的方法,应用于 Webrtc2SIP网关, Webrtc2SIP网关包括 Websocket转换器、 SIP协议栈和媒体服务器, 所述 Websocket转换器与 SIP协议栈连接, 另一端与支持 Webrtc协议的 Webrtc浏览器连接, 方法包括: 步骤一, 建立所述网页套接字转换器与所述网页实时通信浏览器之间的网页套接 字链路; 建立所述网页套接字转换器与所述会话发起协议栈之间的传输控制协议 /传输层 安全协议 (TCP/TLS, Transmission Control Protocol/Transport Layer Security)链路, 所述 网页套接字链路与所述 TCP/TLS链路之间具有对应关系; 步骤二, 所述网页套接字转换器在所述网页套接字链路上接收到来自所述网页实 时通信浏览器的第一数据, 通过所述 TCP/TLS链路发送给所述会话发起协议栈, 使得 所述会话发起协议栈能够当所述第一数据是呼叫相关 SIP信令时, 将所述第一数据发 送给所述媒体服务器, 在接收所述媒体服务器将所述第一数据转换得到的能够被下一 代网络 /IP多媒体子系统 NGN/IMS网络识别的第二数据后, 发送给所述 NGN/IMS网 络, 以及当所述第一数据是非呼叫相关 SIP信令时, 将所述第一数据直接透传给所述 NGN/IMS网络; 步骤三,所述网页套接字转换器在所述 TCP/TLS链路上接收来自所述会话发起协 议栈的能够被所述网页实时通信浏览器识别的第四数据后, 将所述第四数据透传给所 述网页实时通信浏览器,其中, 所述第四数据由所述媒体服务器将来自所述 NGN/IMS 网络的呼叫相关 SIP信令作为第三数据进行转换后得到, 或者是来自所述 NGN/IMS 网络的非呼叫相关 SIP信令。 应用所提供的技术, 在 Webrtc浏览器与 SIP协议栈之间, 与 Webrtc浏览器建立 Websocket链路, 与 SIP协议栈建立 TCP/TLS链路, 能够将基于 Webrtc技术的浏览器 与基于 SIP的 NGN/IMS网络建立实时通信, 实现了互联网技术与通信技术的融合, 对电信运营商而言, 拓展了电信运营商的用户, 对互联网用户而言, 可以享受到电信 领域提供的业务。
Webrtc2SIP网关中, Websocket转换器位于 Webrtc浏览器与 SIP协议栈之间, 作 为 Websocket服务端, 与 Webrtc浏览器之间建立 Websocket链路; 作为 TCP/TLS客户 端, 与 SIP协议栈之间建立 TCP/TLS链路。
Webrtc浏览器与 NGN/IMS网络进行通信的流程中, 在一个优选实施例中, 建立 所述网页套接字转换器与所述网页实时通信浏览器之间的网页套接字链路之后还包 括: 保活所述网页套接字链路; 建立所述网页套接字转换器与所述会话发起协议栈之 间的传输控制协议 /传输层安全协议 TCP/TLS链路之后还包括: 保活所述 TCP/TLS链 路。 Websocket转换器维护与 Webrtc浏览器之间的 Websocket链路, 包括: 链路保活、 链路删除; 维护与 SIP协议栈之间的 TCP/TLS链路, 包括: 链路保活、 链路删除; 当 与任意一端的链路断掉后, 主动断掉与另一端的链路。 在 Websocket链路、 TCP/TLS链路上承载信令层面的 SIP信令。本发明实施例中, 将呼叫相关的 SIP信令-如 INVITE对话相关的信令, 转发给媒体服务器处理; 将非呼 叫相关的 SIP信令-如 Register、 Message^ Publish和 NOTIFY等,直接转发给 NGN/IMS 网络核心网。 在一个优选实施例中,第一数据是来自 Webrtc浏览器的请求注册的 Register消息, 第三数据是由 SIP协议栈接收到的来自 NGN/IMS网络的注册成功后的 200 Register消 息, Register消息和 200 Register消息均是非呼叫相关 SIP信令; 或者, 第一数据是来自 Webrtc浏览器的呼叫相关 SIP信令, 第三数据是由 SIP协 议栈接收到的来自 NGN/IMS网络的呼叫相关 SIP信令。 按照 Websocket协议, Webrtc浏览器发送给 Websocket服务端的第一数据是经过 掩码操作加密的, Websocket服务端发送给 Webrtc浏览器的第二数据则不需要经过掩 码加密。 因此, 在一个优选实施例中, 网页套接字转换器在网页套接字链路上接收到 来自网页实时通信浏览器的第一数据之后, 还包括: 对所述第一数据进行掩码解密。
SIP协议栈一端与 Websocket转换器, 另一端与 NGN/IMS网络相连, 实现对 SIP 信令的收发, 当 Websocket转换器接收到 Webrtc浏览器发送的 SIP信令时, 需要进行 掩码解密然后透传给 SIP协议栈; Websocket转换器接收 SIP协议栈发送的 SIP信令时, 直接透传给 Webrtc浏览器。 在一个优选实施例中, SIP协议栈与 Websocket转换器之间基于 TCP/TLS链路传 输, SIP协议栈与 NGN/IMS网络之间基于 UDP/TCP/TLS链路传输; 通过内部接口接收分发控制指示, 根据分发控制指示来转发 SIP信令。 以及, SIP协议栈与媒体服务器相连, 由媒体服务器实现媒体面的转换。
SIP 协议栈收到消息后, 首先将消息通过内部接口上报给分发控制单元, 由分发 控制单元进行逻辑分析, 决定将消息转发给谁。 比如对于诸如 INVITE等呼叫相关的 SIP消息, 呼叫控制模块会指示 SIP协议栈发给媒体服务器, 媒体服务器处理后再发 给 SIP协议栈, SIP协议栈再上报呼叫控制模块, 呼叫控制模块再指示 SIP协议栈发给 核心网; 而对诸如 Register等非呼叫相关的 SIP消息, 呼叫控制模块会指示 SIP协议 栈直接发给核心网, 不需要经过媒体服务器处理。 在一个优选实施例中, 将所述第一数据发送给所述媒体服务器, 具体包括: 当所述第一数据是呼叫相关 SIP信令时, 所述会话发起协议栈通过内部接口将所 述第一数据的相关信息发送给网关中的分发控制单元, 由所述分发控制单元分析所述 相关信息后, 根据分发规则生成第一指令, 所述第一指令通过所述内部接口到达所述 会话发起协议栈, 指示所述会话发起协议栈将所述第一数据发送给所述媒体服务器; 发送给所述 NGN/IMS网络具体包括: 所述会话发起协议栈在接收到所述媒体服务器将所述第一数据转换得到的能够被 NGN/IMS网络识别的第二数据后,通过所述内部接口将所述第二数据的相关信息发送 给所述分发控制单元, 由所述分发控制单元分析所述相关信息后, 根据分发规则生成 第二指令, 所述第二指令通过所述内部接口到达所述会话发起协议栈, 指示所述会话 发起协议栈将所述第二数据发送给 NGN/IMS网络。 在一个优选实施例中, 将所述第一数据直接透传给所述 NGN/IMS 网络, 具体包 括: 当所述第一数据是非呼叫相关 SIP信令时, 所述会话发起协议栈通过内部接口将 所述第一数据的相关信息发送给网关中的分发控制单元, 由所述分发控制单元分析所 述相关信息后, 保存所述相关信息, 以及根据分发规则生成第三指令, 所述第三指令 通过所述内部接口到达所述会话发起协议栈, 指示所述会话发起协议栈将所述第一数 据发送给 NGN/IMS网络。 在一个优选实施例中, 所述会话发起协议栈能够当所述第一数据是呼叫相关 SIP 信令时, 将所述第一数据发送给所述媒体服务器之后还包括: 由所述媒体服务器将所述第一数据中网页实时通信协议相关的媒体参数改成所述
NGN/IMS网络相关的媒体参数而得到所述第二数据。 在一个优选实施例中, 由所述媒体服务器将所述第一数据中网页实时通信协议相 关的媒体参数改成所述 NGN/IMS网络相关的媒体参数而得到所述第二数据包括: 所述媒体服务器将基于数据报传输层安全和加密实时传输协议, 音频编码 opus/g.711协议和视频编码 VP8/H.264协议的第一数据,转换为所述 NGN/IMS网络支 持的基于实时传输协议,音频编码 g.711协议和视频编码 H.263/H.264协议的所述第二 数据。 在一个优选实施例中, 所述第四数据由所述媒体服务器将来自所述 NGN/IMS 网 络的呼叫相关 SIP信令作为第三数据进行转换后得到包括: 所述会话发起协议栈与所述媒体服务器相连, 将所述第三数据发送给所述媒体服 务器; 由所述媒体服务器将所述第三数据中 NGN/IMS 网络相关的媒体参数改成网页 实时通信协议相关的媒体参数得到所述第四数据。 在一个优选实施例中, 所述第四数据由所述媒体服务器将来自所述 NGN/IMS 网 络的呼叫相关 SIP信令作为第三数据进行转换后得到之前还包括: 当所述第三数据是呼叫相关 SIP信令时, 所述会话发起协议栈通过内部接口将所 述第三数据的相关信息发送给网关中的分发控制单元, 由所述分发控制单元分析所述 相关信息后, 根据分发规则生成第四指令, 所述第四指令通过所述内部接口到达所述 会话发起协议栈, 指示所述会话发起协议栈将所述第三数据发送给所述媒体服务器; 所述第四数据由所述媒体服务器将来自所述 NGN/IMS网络的呼叫相关 SIP信令 作为第三数据进行转换后得到之后还包括: 所述会话发起协议栈在接收到所述媒体服务器将所述第三数据转换得到的能够被 所述网页实时通信浏览器识别的第四数据后, 通过所述内部接口将所述第四数据的相 关信息发送给所述分发控制单元, 由所述分发控制单元分析所述相关信息后, 根据分 发规则生成第五指令, 所述第五指令通过所述内部接口到达所述会话发起协议栈, 指 示所述会话发起协议栈将所述第四数据发送给所述网页实时通信浏览器; 将所述第四数据透传给所述网页实时通信浏览器包括: 所述非呼叫相关 SIP信令作为所述第四数据, 所述会话发起协议栈通过内部接口 将所述第四数据的相关信息发送给网关中的分发控制单元, 由所述分发控制单元分析 所述相关信息后, 根据分发规则生成第六指令, 所述第六指令通过所述内部接口到达 所述会话发起协议栈, 指示所述会话发起协议栈将所述第四数据透传给所述网页实时 通信浏览器。 需要注意的是, 网页套接字转换器在网页套接字链路上收到网页浏览器发送的数 据时, 首先要按照 Websocket协议取出数据帧中的净荷部分、 并对净荷数据进行解掩 码操作, 然后才将解码后的净荷数据通过 TCP/TLS链路发送给 SIP协议栈; 网页套接 字转换器在 TCP/TLS 链路上收到 SIP 协议栈发送的数据时, 把数据作为净荷按照 Websocket协议编码后, 再将编码后的 Websocket数据帧发送给网页浏览器。在一个应 用场景中, 如图 3所示, Webrtc浏览器向 NGN/IMS网络注册包括: 步骤 301, Webrtc浏览器向 Websocket转换器发送建立 Websocket链路请求; 步骤 302, Websocket转换器收到建立 Websocket链路请求后, 向 Webrtc2SIP网关 中的 SIP协议栈发送 TCP/TLS建链请求; 步骤 303, SIP协议栈接收 TCP/TLS建链请求,与 Websocket转换器之间的 TCP/TLS 链路建立成功; 步骤 304, Websocket转换器接收 Webrtc 浏览器的 Websocket建链请求, 建立
Websocket链路成功后, 回复成功响应。 此时, 在 Websocket转换器内部建立了 Websocket链路与 TCP/TLS链路的对应关 系, 由于存在这种对应关系, 当 Websocket转换器从 Websocket链路收到数据时, 知 道转发给对应的 TCP/TLS链路, 从而将数据转发至 SIP协议栈; 当从 TCP/TLS链路 收到数据时, 知道转发给对应的 Websocket链路, 从而将数据转发给对应的 Webrtc浏
Websocket转换器维护与 Webrtc浏览器之间的 Websocket链路, 如链路保活、 链 路删除等; 维护与 SIP协议栈之间的 TCP/TLS链路, 如链路保活、 链路删除等, 当 Websocket转换器与任意一端的链路断掉后, 主动断掉与另一端的链路。 步骤 305, Webrtc浏览器在建好的 Websocket链路上发送注册的 Register消息到
Websocket转换器。 步骤 306, Websocket转换器对 Websocket链路上承载的 Register消息进行掩码解 密, 找到该 Websocket链路对应的 TCP/TLS链路, 然后将该 Register消息透传至对应 的 TCP/TLS链路, 从而到达 Webrtc2SIP网关中的 SIP协议栈。 步骤 307, SIP协议栈解析 Register消息得到第二数据-解析后 Register消息, 通过 内部接口将相关信息上报给分发控制单元; 分发控制单元保存相关信息, 查询其分发 规则,然后用内部接口指示 SIP协议栈将此解析后 Register消息分发给 NGN/IMS核心 网。 其中, Register消息有一些头部, 如 From、 to、 contact等, SIP协议需要把这些 头部解析出来。 步骤 308, SIP协议栈收到分发控制单元的指示后, 将解析后 Register消息发送给
NGN/IMS核心网。 步骤 309, 注册成功, NGN/IMS核心网给 SIP协议栈回复 300 Register消息。 步骤 310, SIP协议栈将注册成功信息通过内部接口上报给分发控制单元。 步骤 311, SIP协议栈将 200 Register消息转发给 Websocket转换器。 步骤 312, Websocket转换器找对应的 Websocket链路, 将 200 Register消息转发 给 Webrtc浏览器, 完成注册。 Webrtc浏览器注册成功后, 就可以发起与 NGN/IMS终 端的通话。 需要注意的是, 对于 200 Register消息, 由于 SIP协议栈和 Websocket转换 器并未对其进行处理, 因此第三数据和第四数据应是相同的。 媒体面是指用户面, 设置为传送语音编解码、 DTMF带内传送等, 承载可以是 IP 等, 使用 IP可以使用 AMR、 G.71 K G.723和 G729等编码, 带内传送 DTMF使用 RFC2833/48330 信令面和媒体面之间的交互使用 H248协议, 用于进行媒体相关的控 制。 媒体服务器实现 Webrtc媒体面与 NGN/IMS媒体面的互通和转换, 在一个优选实 施例中, 媒体服务器将来自 Webrtc浏览器的第一媒体流转换为基于 NGN/IMS电信网 络所支持的协议的第二媒体流; 以及, 将来自 NGN/IMS 电信网络的第二媒体流转换 为基于 Webrtc浏览器所支持的协议的第一媒体流。 其中, 具体包括: 与 Webrtc 浏览器之间的第一媒体流基于数据报传输层安全 (DTLS, Datagram Transport Layer Security)和加密实时传输协议(SRTP, Secure Real-time Transport Protocol)进行传输, 且支持音频编码使用 opus/g.711 协议, 视频编码使用 VP8/H.264 协议; 与 NGN/IMS 电信网络之间的第二媒体流基于实时传输协议 (RTP, Real-time Transport Protocol),且支持音频编码使用 g.711协议,视频编码使用 H.263/H.264协议。 DTLS是保证 UDP传输的安全性, SRTP是保证媒体的加密, 是两种不同的协议。 ICE服务器单元为 Webrtc浏览器提供媒体面的 NAT穿越功能。 在一个优选实施 例中, 网页套接字转换器在网页套接字链路上接收到来自网页实时通信浏览器的第一 数据之前还包括: 由网页实时通信浏览器与网关中的 ICE服务器交互, 获取所述网页实时通信浏览 器接收媒体的地址和端口, 然后将所述地址和端口携带在会话描述协议中, 并将所述 会话描述协议携带在第一数据中。
本发明实施例提供一种在浏览器和通信网络之间进行通信的装置, 包括: 链路单元, 设置为建立与浏览器的第一链路, 建立与 NGN/IMS网络的第二链路; 第一方向转换发送单元, 设置为在所述第一链路上接收来自浏览器的第一数据, 当所述第一数据是呼叫相关 SIP信令时, 将所述第一数据转换得到第二数据, 将第二 数据在第二链路上发送给所述 NGN/IMS网络; 以及 第二方向转换发送单元, 设置为在所述第二链路上接收来自所述 NGN/IMS 网络 的第三数据, 当所述第三数据是呼叫相关 SIP信令时, 将所述第三数据转换得到第四 数据, 将第四数据在第一链路上透传给所述浏览器。 在一个优选实施例中, 链路单元包括: 第一链路模块, 设置为建立网关与所述浏览器之间的网页套接字链路作为所述第 一链路; 第二链路模块, 设置为建立网关与所述 NGN/IMS网络之间的用户数据报协议 /传 输控制协议 /传输层安全协议链路作为所述第二链路。 本发明实施例提供还一种在浏览器和电信网络之间进行通信的网关, 包括: 网页套接字转换器和会话发起协议栈, 所述网页套接字转换器与会话发起协议栈 连接, 另一端与支持网页实时通信协议的网页实时通信浏览器连接; 其中 网页套接字转换器, 设置为建立与所述网页实时通信浏览器之间的网页套接字链 路, 建立与所述会话发起协议栈之间的传输控制协议 /传输层安全协议 TCP/TLS链路, 所述网页套接字链路与所述 TCP/TLS链路之间具有对应关系; 以及, 在所述网页套接字链路上接收到来自所述网页实时通信浏览器的第一数据 时, 通过所述 TCP/TLS链路发送给所述会话发起协议栈; 会话发起协议栈, 设置为当所述第一数据是呼叫相关 SIP信令时, 将所述第一数 据发送给所述媒体服务器, 并在接收媒体服务器将所述第一数据转换得到的能够被 NGN/IMS网络识别的第二数据后, 将所述第二数据发送给 NGN/IMS网络, 以及当所 述第一数据是非呼叫相关 SIP信令时, 将所述第一数据直接透传给 NGN/IMS网络; 会话发起协议栈, 还设置为接收来自 NGN/IMS网络的呼叫相关 SIP信令作为第 三数据; 将所述第三数据发送给所述媒体服务器, 并在接收所述媒体服务器将所述第 三数据转换得到的能够被网页实时通信浏览器识别的第四数据后, 将所述第四数据发 送给所述网页套接字转换器, 或者是接收来自 NGN/IMS网络的非呼叫相关 SIP信令, 并将非呼叫相关 SIP信令作为所述第四数据发送给所述网页套接字转换器; 网页套接字转换器,还设置为在 TCP/TLS链路上接收来自所述会话发起协议栈的 所述第四数据, 并承载在对应的所述网页套接字链路上发送给所述网页实时通信浏览 器。
Webrtc2SIP网关包括: Websocket转换器、 SIP协议栈、 分发控制单元、 媒体服务 器和 ICE服务器,位于 Webrtc浏览器和 NGN/IMS网络之间,与 Webrtc浏览器之间使 用 Websocket链路传输、 与 NGN/IMS网络之间使用 UDP/TCP/TLS传输。 对 Webrtc 浏览器而言, Webrtc2SIP网关就是一个 Webrtc终端,对 NGN/IMS网络而言, Webrtc2SIP 网关就是一个传统 SIP 终端的代理。 NGN/IMS 网络与传统 SIP 软 /硬终端之间基于 UDP/TCP/TLS传输。 在一个优选实施例中, 与媒体服务器连接; 媒体服务器, 设置为将第三数据中网页实时通信协议相关的媒体参数改成 NGN/IMS电信网络相关的媒体参数而得到第四数据; 以及, 将第三数据中 NGN/IMS 电信网络相关的媒体参数改成网页实时通信协议 相关的媒体参数得到第四数据。 在一个优选实施例中, 网关还包括: 分发控制单元, 设置为接收来自所述会话发起协议栈通过内部接口发送来的相关 信息; 在对第一数据进行处理的过程中, 当所述相关信息表明: 所述第一数据是呼叫相关 SIP信令时, 根据分发规则生成第一指令, 所述第一指 令能够通过所述内部接口到达所述会话发起协议栈, 指示所述会话发起协议栈将所述 第一数据发送给所述媒体服务器; 以及, 根据分发规则生成第二指令, 所述第二指令能够通过所述内部接口到达所 述会话发起协议栈, 指示所述会话发起协议栈将所述第二数据发送给 NGN/IMS网络; 所述第一数据是非呼叫相关 SIP信令时, 保存所述相关信息, 以及根据分发规则 生成第三指令, 所述第三指令能够通过所述内部接口到达所述会话发起协议栈, 指示 所述会话发起协议栈将所述第一数据发送给 NGN/IMS网络; 在对第三数据进行处理的过程中, 当所述相关信息表明: 所述第三数据是呼叫相关 SIP信令时, 根据分发规则生成第四指令, 所述第四指 令通过所述内部接口到达所述会话发起协议栈, 指示所述会话发起协议栈将所述第三 数据发送给所述媒体服务器; 以及, 根据分发规则生成第五指令, 所述第五指令通过所述内部接口到达所述会 话发起协议栈, 指示所述会话发起协议栈将所述第四数据发送给所述网页实时通信浏
所述非呼叫相关 SIP信令作为所述第四数据时, 根据分发规则生成第六指令, 所 述第六指令通过所述内部接口到达所述会话发起协议栈, 指示所述会话发起协议栈将 所述第四数据透传给所述网页实时通信浏览器。 如图 5所示, 在一个优选实施例中, 第一功能集成单元包括一个 Websocket转换 器和一个 ICE服务器, 第二功能集成单元包括一个 SIP协议栈、 分发控制单元和媒体 服务器; 所述第一功能集成单元与第二功能集成单元连接。 适用于负荷较小的情形。 如图 6所示, 对 SIP协议栈的负荷进行分担, 在一个优选实施例中, 第一功能集 成单元包括一个 Websocket转换器和一个 ICE服务器,第二功能集成单元包括一个 SIP 协议栈、 分发控制单元和媒体服务器; 第一功能集成单元与多个第二功能集成单元连接。 适用于 SIP协议栈 +分发控制 + 媒体服务器的分布式部署。 如图 7所示, 对 Websocket转换器的负荷进行分担, 在一个优选实施例中, 第一 功能集成单元包括一个 Websocket转换器和一个 ICE服务器, 第二功能集成单元包括 一个 SIP协议栈、 分发控制单元和媒体服务器; 第一功能集成单元与多个 Websocket转换器连接, 所述多个 Websocket转换器再 与一个第二功能集成单元连接。 适用于 Websocket转换器 +ICE服务器的分布式部署, ICE服务器可以是一个。 如图 8所示, 对 SIP协议栈和 Websocket转换器的负荷均进行分担, 在一个优选 实施例中, 第一功能集成单元包括一个 Websocket转换器和一个 ICE服务器, 第二功 能集成单元包括一个 SIP协议栈、 分发控制单元和媒体服务器; 第一功能集成单元与多个 Websocket转换器连接, 所述多个 Websocket转换器中 的每一个再与一个或者多个第二功能集成单元连接。适用于 Websocket转换器 +ICE服 务器的分布式部署, ICE服务器可以是一个, 以及 SIP协议栈 +分发控制 +媒体服务器 分布式部署。 各个实施例说明了本发明内部各单元模块组网具有灵活性, 因为每个模块都承担 了一定的工作负荷, 组网的过程中, 可以根据各单元模块的处理能力进行灵活部署, 形成如图 5〜图 8中所示的不同的网络结构。 在一个优选实施例中, 第一数据是 INVITE1消息, 第二数据是 INVITE2消息, 第四数据是 answerl消息, 第三数据是 answer2消息。 Websocket转换器在 Websocket 链路上接收来自 Webrtc浏览器的 INVITE1消息, INVITE1消息携带的会话描述协议 SDP记为 offerl, offerl中包含接收媒体的公网地址和端口。 在一个优选实施例中, 媒体服务器收到 INVITE1消息后, 将 offerl中 Webrtc相 关的媒体参数改成 NGN/IMS 网络能识别的媒体参数, 产生新的 INVITE2, INVITE2 携带修改后的 SDP记为 offer2, 将 INVITE2发送给 SIP协议栈; 媒体服务器将 answerl中 NGN/IMS相关的媒体参数改成 Webrtc相关的媒体参数, 产生新的 180响应, 180响应携带修改后的 SDP记为 answer2, 将 answer2发送给 SIP 协议栈。 如图 4所示, Webrtc浏览器与客户端 (UE)-NGN/IMS终端通话的流程中, Webrtc 浏览器在发送 INVITE1消息前, 会先与 Webrtc2SIP网关中的 ICE服务器交互, 获取 接收媒体的公网地址和端口, 然后将其携带在会话描述协议 (SDP, Session Description Protocol)中。 Webrtc浏览器与 NGN/IMS终端通话的过程包括: 步骤 401, Webrtc浏览器在 Websocket链路上发送 INVITE1消息, INVITE1消息 携带的 SDP记为 offerl ; 步骤 402, Websocket转换器收到此 INVITE1 后, 进行掩码解密, 找到对应的 TCP/TLS链路, 然后将 INVITE1转发给 Webrtc2SIP网关中的 SIP协议栈。 步骤 403, SIP协议栈收到、 解析此 INVITE1消息后, 通过内部接口给分发控制 单元上报相关信息; 分发控制单元进行相关查询后, 通过内部接口指示 SIP协议栈转 发此 INVITE1消息给媒体服务器。 步骤 404, SIP协议栈转发此 INVITE1消息给媒体服务器, 携带的 SDP是 offerl ; 步骤 405, 媒体服务器收到此 INVITE1后, 将 offerl中 Webrtc相关的媒体参数改 成 NGN/IMS网络能识别的媒体参数, 如修改音视频编码参数、将 SRTP/DTLS相关参 数改成 RTP参数, 然后产生新的 INVITE2, 携带修改后的 SDP记为 offer2, 发送给 SIP协议栈。 步骤 406, SIP协议栈收到媒体服务器发送的携带 offer2的 INVITE2, 解析后将 相关信息通过内部接口上报给分发控制单元, 分发控制单元进行相关查询后, 通过内 部接口指示 SIP协议栈转发此消息给 NGN/IMS网络; 步骤 407, SIP协议栈转发携带 offer2的 INVITE2给 NGN/IMS网络; 步骤 408, NGN/IMS网络转发携带 offer2的 INVITE2给 NGN/IMS终端; 步骤 409, NGN/IMS终端振铃,返回 180响应消息给 NGN/IMS网络,携带的 SDP 记为 answer 1; 步骤 410, NGN/IMS网络转发该携带 answerl的 180响应消息给 SIP协议栈; 步骤 411, SIP协议栈转发该携带 answerl的 180响应消息给媒体服务器; 步骤 412, 媒体服务器将 answerl中 NGN/IMS相关的媒体参数改成 Webrtc相关 的媒体参数, 如修改音视频编码参数、 将 RTP相关参数修改 SRTP/DTLS参数, 然后 产生新的 180响应, 携带修改后的 SDP记为 answer2, 发送给 SIP协议栈。 步骤 413, SIP协议栈在 TCP/TLS链路上发送此携带 answer2的 180响应消息给 Websocket转换器; 步骤 414, Websocket转换器找到对应的 Websocket链路, 转发此携带 answer2的 180响应消息给 Webrtc浏览器; 步骤 415 20, Webrtc浏览器与 NGN/IMS终端完成 PRACK/200 PRACK信令交互; 步骤 421〜步骤 426, NGN/IMS终端应答,与 Webrtc浏览器完成 200 INVITE/ACK 信令交互; 步骤 427〜步骤 428, Webrtc浏览器与媒体服务器建立 Webrtc媒体流,媒体服务器 与 NGN/IMS终端建立 RTP媒体流,由媒体服务器进行两种媒体流的转换。此时, Webrtc 浏览器与 NGN/IMS终端建立通话。 步骤 429〜步骤 434, Webrtc浏览器与 NGN/IMS终端完成通话,进行 BYE/200 BYE
本发明实施例提供一种网页实时通信系统, 包括一种在浏览器和电信网络之间进 行通信的网关, 网关包括: 网页套接字转换器和会话发起协议栈, 所述网页套接字转换器与会话发起协议栈 连接, 另一端与支持网页实时通信协议的网页实时通信浏览器连接; 其中网页套接字 转换器, 设置为与网页实时通信浏览器之间建立以及维护网页套接字链路, 与会话发 起协议栈之间建立以及维护 TCP/TLS链路, 所述网页套接字链路与 TCP/TLS链路之 间具有对应关系; 网页套接字转换器, 设置为在网页套接字链路上接收到来自网页实时通信浏览器 的第一数据时, 通过所述 TCP/TLS链路发送给会话发起协议栈; 会话发起协议栈, 设置为将所述第一数据发送给所述媒体服务器, 并在接收媒体 服务器将所述第一数据转换得到的能够被 NGN/IMS 网络识别的第二数据后, 发送给 NGN/IMS网络; 会话发起协议栈, 还设置为接收来自 NGN/IMS 网络的第三数据; 将所述第三数 据发送给所述媒体服务器, 并在接收媒体服务器将所述第三数据转换得到的能够被网 页实时通信浏览器识别的第四数据后, 发送给网页套接字转换器; 网页套接字转换器,还设置为在 TCP/TLS链路上接收来自会话发起协议栈的第四 数据, 并透传给所述网页实时通信浏览器, 以及 网页实时通信浏览器,设置为与所述网页实时通信到会话发起协议网关之间建立、 维护和删除网页套接字链路, 以及产生所述第一数据;
NGN/IMS终端, 与 NGN/IMS网络连接, 设置为产生所述第三数据。 采用本方案之后的优势是: Websocket转换器位于 Webrtc浏览器与 SIP协议栈之 间, 作为 Websocket服务端与 Webrtc浏览器之间建立 Websocket链路, 作为 TCP/TLS 客户端与 SIP协议栈之间建立 TCP/TLS链路。 按照 Websocket协议, Websocket客户 端发送给服务端的数据是经过掩码操作加密的, Websocket服务端发送给客户端的数 据不需要经过掩码加密。 所以, 当 Websocket转换器接收到 Webrtc浏览器发送的 SIP 信令时, 需要进行掩码解密然后透传给后面的 SIP协议栈; Websocket转换器接收 SIP 协议栈发送的 SIP信令时, 直接透传给前面的 Webrtc浏览器。 以上所述是本发明的优选实施方式, 应当指出, 对于本技术领域的普通技术人员 来说, 在不脱离本发明所述原理的前提下, 还可以作出若干改进和润饰, 这些改进和 润饰也应视为本发明的保护范围。 工业实用性 如上所述, 本发明实施例提供的一种在浏览器和电信网络之间进行通信的方法和 网关具有以下有益效果: 实现了互联网技术与通信技术的融合, 对电信运营商而言, 拓展了电信运营商的用户, 对互联网用户而言, 可以享受到电信领域提供的业务。

Claims

权 利 要 求 书
1. 一种在浏览器和电信网络之间进行通信的方法, 应用于网关, 所述方法包括: 建立与浏览器的第一链路, 建立与电信 NGN/IMS网络的第二链路; 在所述第一链路上接收来自浏览器的第一数据, 当所述第一数据是呼叫相 关 SIP信令时, 将所述第一数据转换得到第二数据, 将第二数据在第二链路上 发送给所述电信 NGN/IMS网络; 以及
在所述第二链路上接收来自所述电信 NGN/IMS 网络的第三数据, 当所述 第三数据是呼叫相关 SIP信令时, 将所述第三数据转换得到第四数据, 将第四 数据在第一链路上透传给所述浏览器。
2. 根据权利要求 1所述的方法, 其中, 建立与浏览器的第一链路包括:
建立网关与所述浏览器之间的网页套接字链路作为所述第一链路。
3. 根据权利要求 2所述的方法, 其中, 建立与电信 NGN/IMS网络的第二链路包 括:
建立网关与所述 NGN/IMS 网络之间的用户数据报协议 /传输控制协议 /传 输层安全协议链路作为所述第二链路。
4. 根据权利要求 1所述的方法, 其中, 在所述第一链路上接收来自浏览器的第一 数据, 还包括:
当所述第一数据是非呼叫相关 SIP信令时, 将所述第一数据直接透传给所 述 NGN/IMS网络。
5. 根据权利要求 1所述的网关, 其中, 将第二数据在第二链路上发送给所述电信 NGN/IMS网络具体包括: 分析所述第二数据的相关信息后, 根据分发规则生成第二指令, 所述第二 指令指示将所述第二数据发送给所述 NGN/IMS网络。
6. 根据权利要求 4所述的方法,其中,将所述第一数据直接透传给所述 NGN/IMS 网络, 具体包括: 当所述第一数据是非呼叫相关 SIP信令时, 分析所述第一数据的相关信息 后, 根据分发规则生成第三指令, 所述第三指令指示将所述第一数据发送给所 述 NGN/IMS网络。
7. 根据权利要求 1所述的方法, 其中, 当所述第一数据是呼叫相关 SIP信令时, 将所述第一数据转换得到第二数据包括: 将所述第一数据的会话描述协议包中网页实时通信协议相关的媒体参数改 成所述 NGN/IMS网络相关的媒体参数而得到所述第二数据。
8. 根据权利要求 7所述的方法, 其中, 将所述第一数据的会话描述协议包中网页 实时通信协议相关的媒体参数改成所述 NGN/IMS 网络相关的媒体参数而得到 所述第二数据包括:
将基于数据报传输层安全和加密实时传输协议, 音频编码 opus/g.711协议 和视频编码 VP8/H.264协议的第一数据, 转换为所述 NGN/IMS网络支持的基 于实时传输协议,音频编码 g.711协议和视频编码 H.263/H.264协议的所述第二 数据。
9. 根据权利要求 1所述的方法, 其中, 当所述第三数据是呼叫相关 SIP信令时, 将所述第三数据转换得到第四数据包括:
将所述第三数据中 NGN/IMS 网络相关的媒体参数改成网页实时通信协议 相关的媒体参数得到所述第四数据。
10. 根据权利要求 1所述的方法, 其中, 将所述第三数据转换得到第四数据之前还包括:
分析所述第三数据的相关信息后, 根据分发规则生成第四指令, 所述第四 指令指示将所述第三数据发送至进行数据转换的位置处;
将所述第三数据转换得到第四数据之后还包括:
分析所述第四数据的相关信息, 根据分发规则生成第五指令, 所述第五指 令指示将所述第四数据发送给所述浏览器。
11. 根据权利要求 4所述的方法,其中,在所述第二链路上接收来自所述 NGN/IMS 网络的第三数据还包括: 当所述第三数据是非呼叫相关 SIP信令时, 将所述非呼叫相关 SIP信令不 经过转换直接作为所述第四数据, 分析所述第四数据的相关信息后, 根据分发 规则生成第六指令,所述第六指令指示将所述第四数据直接透传给所述浏览器。
12. 根据权利要求 1所述的方法, 其中, 在所述第一链路上接收来自浏览器的第一 数据之后, 还包括: 对所述第一数据进行掩码解密。
13. 根据权利要求 1所述的方法, 其中, 在所述第一链路上接收到来自所述浏览器 的第一数据之前还包括:
获取所述浏览器接收媒体的公共网络地址和端口, 然后将所述公共网络地 址和端口携带在会话描述协议包中, 并将所述会话描述协议包携带在所述第一 数据中。
14. 一种在浏览器和电信网络之间进行通信的装置, 包括: 链路单元, 设置为建立与浏览器的第一链路, 建立与 NGN/IMS 网络的第 二链路;
第一方向转换发送单元, 设置为在所述第一链路上接收来自浏览器的第一 数据, 当所述第一数据是呼叫相关 SIP信令时, 将所述第一数据转换得到第二 数据, 将第二数据在第二链路上发送给所述 NGN/IMS网络; 以及
第二方向转换发送单元,设置为在所述第二链路上接收来自所述 NGN/IMS 网络的第三数据, 当所述第三数据是呼叫相关 SIP信令时, 将所述第三数据转 换得到第四数据, 将第四数据在第一链路上透传给所述浏览器。
15. 根据权利要求 14所述的装置, 其中, 链路单元包括: 第一链路模块, 设置为建立网关与所述浏览器之间的网页套接字链路作为 所述第一链路;
第二链路模块, 设置为建立网关与所述 NGN/IMS 网络之间的用户数据报 协议 /传输控制协议 /传输层安全协议链路作为所述第二链路。
16. 一种在浏览器和电信网络之间进行通信的网关, 其中, 包括: 网页套接字转换 器和会话发起协议栈, 所述网页套接字转换器与会话发起协议栈连接, 另一端 与支持网页实时通信协议的浏览器连接; 其中, 网页套接字转换器, 设置为建立与所述浏览器之间的网页套接字链路, 建 立与所述会话发起协议栈之间的传输控制协议 /传输层安全协议 TCP/TLS链路, 所述网页套接字链路与所述 TCP/TLS链路之间具有对应关系;
以及, 在所述网页套接字链路上接收到来自所述浏览器的第一数据时, 通 过所述 TCP/TLS链路发送给所述会话发起协议栈; 会话发起协议栈, 设置为当所述第一数据是呼叫相关 SIP信令时, 将所述 第一数据发送给所述媒体服务器, 并在接收所述媒体服务器将所述第一数据转 换得到的能够被电信 NGN/IMS 网络识别的第二数据后, 将所述第二数据发送 给所述电信 NGN/IMS网络, 以及当所述第一数据是非呼叫相关 SIP信令时, 将所述第一数据直接透传给所述电信 NGN/IMS网络; 会话发起协议栈, 还设置为接收来自所述电信 NGN/IMS 网络的呼叫相关 SIP 信令作为第三数据; 将所述第三数据发送给所述媒体服务器, 并在接收所 述媒体服务器将所述第三数据转换得到的能够被所述浏览器识别的第四数据 后, 将所述第四数据发送给所述网页套接字转换器, 或者是接收来自所述电信
NGN/IMS网络的非呼叫相关 SIP信令,并将非呼叫相关 SIP信令作为所述第四 数据发送给所述网页套接字转换器;
网页套接字转换器,还设置为在所述 TCP/TLS链路上接收来自所述会话发 起协议栈的所述第四数据, 并承载在对应的所述网页套接字链路上发送给所述 浏览器。
17. 根据权利要求 16所述的网关, 其中, 与媒体服务器连接; 媒体服务器, 设置为当所述第一数据是呼叫相关 SIP信令时, 将所述第一 数据的会话描述协议包中网页实时通信协议相关的媒体参数改成所述
NGN/IMS网络相关的媒体参数而得到所述第二数据; 以及, 当所述第三数据是呼叫相关 SIP 信令时, 将所述第三数据中所述 NGN/IMS 网络相关的媒体参数改成所述网页实时通信协议相关的媒体参数得 到第四数据。
18. 根据权利要求 16所述的网关, 其中, 还包括: 分发控制单元, 设置为接收来自所述会话发起协议栈通过内部接口发送来 的相关信息;
在对第一数据进行处理的过程中, 当所述相关信息表明: 所述第一数据是呼叫相关 SIP信令时, 根据分发规则生成第一指令, 所述 第一指令能够通过所述内部接口到达所述会话发起协议栈, 指示所述会话发起 协议栈将所述第一数据发送给所述媒体服务器;
以及, 根据分发规则生成第二指令, 所述第二指令能够通过所述内部接口 到达所述会话发起协议栈, 指示所述会话发起协议栈将所述第二数据发送给
NGN/IMS网络; 所述第一数据是非呼叫相关 SIP信令时, 保存所述相关信息, 以及根据分 发规则生成第三指令, 所述第三指令能够通过所述内部接口到达所述会话发起 协议栈, 指示所述会话发起协议栈将所述第一数据发送给 NGN/IMS网络; 在对第三数据进行处理的过程中, 当所述相关信息表明:
所述第三数据是呼叫相关 SIP信令时, 根据分发规则生成第四指令, 所述 第四指令通过所述内部接口到达所述会话发起协议栈, 指示所述会话发起协议 栈将所述第三数据发送给所述媒体服务器;
以及, 根据分发规则生成第五指令, 所述第五指令通过所述内部接口到达 所述会话发起协议栈, 指示所述会话发起协议栈将所述第四数据发送给所述浏 所述非呼叫相关 SIP信令作为所述第四数据时, 根据分发规则生成第六指 令, 所述第六指令通过所述内部接口到达所述会话发起协议栈, 指示所述会话 发起协议栈将所述第四数据透传给所述浏览器。
19. 根据权利要求 18所述的网关,其中,第一功能集成单元包括一个网页套接字转 换器和一个 ICE服务器, 第二功能集成单元包括一个会话发起协议栈、 分发控 制单元和媒体服务器; 所述第一功能集成单元与第二功能集成单元连接。
20. 根据权利要求 18所述的网关, 其中, 第一功能集成单元包括一个网页套接字转换器和一个 ICE服务器, 第二功 能集成单元包括一个会话发起协议栈、 分发控制单元和媒体服务器; 第一功能集成单元与多个第二功能集成单元连接。 根据权利要求 18所述的网关, 其中, 第一功能集成单元包括一个网页套接字转换器和一个 ICE服务器, 第二功 能集成单元包括一个会话发起协议栈、 分发控制单元和媒体服务器; 第一功能集成单元与多个网页套接字转换器连接, 所述多个网页套接字转 换器再与一个第二功能集成单元连接。
22. 根据权利要求 18所述的网关, 其中, 第一功能集成单元包括一个网页套接字转换器和一个 ICE服务器, 第二功 能集成单元包括一个会话发起协议栈、 分发控制单元和媒体服务器; 第一功能集成单元与多个网页套接字转换器连接, 所述多个网页套接字转 换器中的每一个再与一个或者多个第二功能集成单元连接。
23. 一种网页实时通信系统,包括权利要求 16至权利要求 22中任一项所述的网关, 以及
浏览器, 设置为与所述网关之间建立、 维护和删除网页套接字链路, 以及 产生所述第一数据;
NGN/IMS终端, 与电信 NGN/IMS网络连接, 设置为产生所述第三数据。
PCT/CN2014/084856 2014-05-13 2014-08-20 一种在浏览器和电信网络之间进行通信的方法和网关 WO2015172454A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP14891875.8A EP3145129B1 (en) 2014-05-13 2014-08-20 Method and gateway for communication between browser and telecommunication network
US15/129,898 US10348520B2 (en) 2014-05-13 2014-08-20 Method and gateway for communication between browser and telecommunication network

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410201804.8 2014-05-13
CN201410201804.8A CN105099897B (zh) 2014-05-13 2014-05-13 一种在浏览器和电信网络之间进行通信的方法和网关

Publications (1)

Publication Number Publication Date
WO2015172454A1 true WO2015172454A1 (zh) 2015-11-19

Family

ID=54479230

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/084856 WO2015172454A1 (zh) 2014-05-13 2014-08-20 一种在浏览器和电信网络之间进行通信的方法和网关

Country Status (4)

Country Link
US (1) US10348520B2 (zh)
EP (1) EP3145129B1 (zh)
CN (1) CN105099897B (zh)
WO (1) WO2015172454A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530453A (zh) * 2015-12-29 2016-04-27 苏州科达科技股份有限公司 用于WebRTC的视频数据发送方法及装置、接收方法及装置

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9912705B2 (en) * 2014-06-24 2018-03-06 Avaya Inc. Enhancing media characteristics during web real-time communications (WebRTC) interactive sessions by using session initiation protocol (SIP) endpoints, and related methods, systems, and computer-readable media
KR20160057873A (ko) * 2014-11-14 2016-05-24 삼성전자주식회사 통신 방법, 전자 장치 및 저장 매체
US20160294786A1 (en) * 2015-04-02 2016-10-06 Platcomm Corp. Telecommunication System and Method Providing Unified Platform For Services Amongst Clients That Execute Browser and Non-Browser Applications
US10278100B1 (en) * 2016-03-16 2019-04-30 Sprint Communications Company L.P. Long term evolution (LTE) mobility management entity (MME) management of an internet protocol multimedia subsystem (IMS) media session service level for a user equipment (UE)
US11295285B1 (en) * 2016-04-07 2022-04-05 Jpmorgan Chase Bank, N.A. System and method for financial services kiosk features
EP3494667B1 (en) * 2016-08-03 2020-12-23 Telefonaktiebolaget LM Ericsson (PUBL) Guest user access in the ip multimedia subsystem ims
CN107770141B (zh) * 2016-08-23 2022-04-19 中兴通讯股份有限公司 一种视频会议系统的通信方法及装置
CN106341645A (zh) * 2016-09-14 2017-01-18 深圳市迈盛达信息技术有限公司 音视频通讯系统与方法
CN107168856B (zh) * 2017-05-18 2020-07-10 北京大生在线科技有限公司 Chrome的webrtc-internals工具显示终端应用程序的方法
CN107612931B (zh) * 2017-10-20 2020-04-28 苏州科达科技股份有限公司 多点会话方法及多点会话系统
US10986219B2 (en) 2018-06-19 2021-04-20 At&T Intellectual Property I, L.P. LTE fault-tolerant signaling approach
CN111326176A (zh) * 2018-12-14 2020-06-23 中移(杭州)信息技术有限公司 基于opus编码的rtp包的检测方法、装置及介质
US11228679B2 (en) * 2019-03-01 2022-01-18 Ubiquity Global Services, Inc. Browser and phone integration
CN110113298B (zh) * 2019-03-19 2021-09-28 视联动力信息技术股份有限公司 数据传输方法、装置、信令服务器和计算机可读介质
CN112312072B (zh) * 2019-07-31 2023-08-01 广州弘度信息科技有限公司 一种基于java-sip的使用websocket网络通信协议的视频播放方法
CN113839910A (zh) * 2020-06-23 2021-12-24 京东方科技集团股份有限公司 视频会议的实现方法、终端和sip网关
CN111935463B (zh) * 2020-10-16 2020-12-22 融智通科技(北京)股份有限公司 一种通过网页无控件低延迟查看实时监控视频的方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045330A (zh) * 2009-10-20 2011-05-04 中国移动通信集团福建有限公司 一种ims软终端及其通信方法
CN103227788A (zh) * 2013-04-17 2013-07-31 广州市和声信息技术有限公司 实现网页应用程序与sip设备进行通信的方法和系统
CN103297445A (zh) * 2012-02-22 2013-09-11 中国移动通信集团公司 一种基于IP多媒体网络的Web终端通信方法和系统

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003017559A2 (en) * 2001-08-13 2003-02-27 Board Of Trustees Of The Leland Stanford Junior University Systems and methods for identity-based encryption and related cryptographic techniques
DE102005050587A1 (de) * 2005-10-21 2007-05-03 Siemens Ag Verfahren zum Weiterleiten von Signalisierungsdaten in einer Netzübergangseinheit und in einer Steuereinheit sowie zugehörige Einheiten
CN101035243A (zh) * 2006-03-06 2007-09-12 陈惠洪 基于互联网的三网融合数字高清电视系统
US9204359B2 (en) * 2008-07-10 2015-12-01 Shoretel, Inc. Client-controlled handover between radio technologies
CN101383771B (zh) * 2008-09-24 2012-12-19 中兴通讯股份有限公司 一种统一接入网关间的路由转发系统和方法
CN102209276B (zh) * 2010-03-29 2014-07-09 华为技术有限公司 在电信网络中提供实时视频业务的方法、服务器和系统
US9473581B2 (en) * 2013-02-04 2016-10-18 Oracle International Corporation Integrated web-enabled session border controller
US9686284B2 (en) * 2013-03-07 2017-06-20 T-Mobile Usa, Inc. Extending and re-using an IP multimedia subsystem (IMS)
US8695077B1 (en) * 2013-03-14 2014-04-08 Sansay, Inc. Establishing and controlling communication sessions between SIP devices and website application servers
US9781167B2 (en) * 2013-06-21 2017-10-03 Verizon Patent And Licensing Inc. WebRTC data channel facilitating IMS support of RCS features
US9113030B2 (en) * 2013-07-25 2015-08-18 Verizon Patent And Licensing Inc. Multimedia-enhanced emergency call systems
US9762533B2 (en) * 2013-12-20 2017-09-12 Futurewei Technologies, Inc. Method of IMS (SIP network) webRTC optimized P2P communication

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045330A (zh) * 2009-10-20 2011-05-04 中国移动通信集团福建有限公司 一种ims软终端及其通信方法
CN103297445A (zh) * 2012-02-22 2013-09-11 中国移动通信集团公司 一种基于IP多媒体网络的Web终端通信方法和系统
CN103227788A (zh) * 2013-04-17 2013-07-31 广州市和声信息技术有限公司 实现网页应用程序与sip设备进行通信的方法和系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530453A (zh) * 2015-12-29 2016-04-27 苏州科达科技股份有限公司 用于WebRTC的视频数据发送方法及装置、接收方法及装置

Also Published As

Publication number Publication date
US20170141934A1 (en) 2017-05-18
CN105099897B (zh) 2020-01-21
US10348520B2 (en) 2019-07-09
CN105099897A (zh) 2015-11-25
EP3145129A4 (en) 2017-05-31
EP3145129A1 (en) 2017-03-22
EP3145129B1 (en) 2019-05-29

Similar Documents

Publication Publication Date Title
WO2015172454A1 (zh) 一种在浏览器和电信网络之间进行通信的方法和网关
CN106850399B (zh) 一种基于WebRTC技术即时消息的通信方法
US9473581B2 (en) Integrated web-enabled session border controller
EP3292675B1 (en) Establishing media paths in real time communications
US8767590B2 (en) Multimedia conference system and method which enables communication between private network and internet
CN103227788B (zh) 实现网页应用程序与sip设备进行通信的方法和系统
JP6359184B2 (ja) Rtcクライアントとrtcサーバとの間のrtc通信コネクションを確立するときにアプリケーションレイヤ・ゲートウェイ・ファイアウォールをトラバースするための通信装置および方法
JP6199407B2 (ja) リアルタイム通信におけるブラウザ緊急呼び出し方法、システムおよび移動装置
JP5450444B2 (ja) マルチメディア通話を処理するための方法及び装置
US20180255182A1 (en) Web Real-Time Client Communication Over a Stimulus Based Network
KR20160026631A (ko) 미디어 통신용 하이브리드 클라우드 미디어 아키텍쳐
WO2013155939A1 (zh) 因特网与运营商网络业务共享方法、服务方及网页网关
US20130266004A1 (en) Communications system and a method for communications between internet and ngn/ims subsystems
RU2625820C1 (ru) Расширение протокола инициирования сеансов (sip) для сетей цифровой мобильной радиосвязи (dmr) с согласованием функций частной мобильной радиосвязи (pmr)
WO2009121284A1 (zh) 一种提供智能业务的方法、系统及网关
CN104363149B (zh) 基于sip协议实现voip网络状态监测的系统及方法
Shreya et al. Internetworking Gateway between WebRTC to SIP to Integrate Real-Time Audio Video Communication
KR20230076330A (ko) 인터넷 환경에서의 WebRTC 기반 통화 연결 방법 및 그 장치
KR20110119972A (ko) Sip 기반 인터넷 전화 서비스 보안 시스템 및 그 방법
WO2006111062A1 (fr) Procede d'appel entre les terminaux d'un systeme de communication multimedia par paquets
EP2059001B1 (en) Multitype SIP processing element
Rajput et al. VOIP PACKET ANALYZER FOR DETECTING THREATS IN SIP NETWORK.
EP2453629B1 (en) Method and apparatus for call proceeding in call control of application server
JP2010219580A (ja) 通信中継装置、通信端末、及び通信方法
Kuwadekar et al. Real time video adaptation in next generation networks

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14891875

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2014891875

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 15129898

Country of ref document: US

Ref document number: 2014891875

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE