WO2021017994A1 - 网络电话voip的通话业务处理方法及装置 - Google Patents

网络电话voip的通话业务处理方法及装置 Download PDF

Info

Publication number
WO2021017994A1
WO2021017994A1 PCT/CN2020/103684 CN2020103684W WO2021017994A1 WO 2021017994 A1 WO2021017994 A1 WO 2021017994A1 CN 2020103684 W CN2020103684 W CN 2020103684W WO 2021017994 A1 WO2021017994 A1 WO 2021017994A1
Authority
WO
WIPO (PCT)
Prior art keywords
iptv
information
data packet
module
sip
Prior art date
Application number
PCT/CN2020/103684
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 深圳市中兴微电子技术有限公司
Publication of WO2021017994A1 publication Critical patent/WO2021017994A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1083In-session procedures
    • H04L65/1089In-session procedures by adding media; by removing media
    • 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
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone

Definitions

  • the present disclosure relates to the field of communications, for example, to a method and device for processing a VOIP call service in an Internet phone.
  • PSTN Public Switched Telephone Network
  • SS7 Standard Signaling control network
  • VoIP voice over IP
  • VoIP can provide services such as voice, fax, and video.
  • the equipment involved includes telephones and fax machines, but the services used by users are relatively single.
  • voice and video services on the phone is decreasing.
  • enriching phone services and combining VoIP technology with other equipment has become an important lesson.
  • related technologies There is no way to combine VoIP technology with other devices.
  • the present disclosure provides a method and device for processing a VOIP call service of an Internet phone, so as to at least solve the problem that there is no way to combine the VoIP technology with other equipment in the related technology.
  • a method for processing a VOIP call service for an Internet phone includes: obtaining a session initiation protocol SIP data packet satisfying preset rules from a VOIP call service; parsing a session description protocol SDP message from the SIP data packet; The TV IPTV sends data corresponding to the media type of the SDP message.
  • a VOIP call service processing device for VoIP including: a first obtaining module configured to obtain a session initiation protocol SIP data packet that meets preset rules from a VOIP call service; an analysis module configured to obtain SIP data from the SIP data The session description protocol SDP message is parsed from the packet; the first sending module is configured to send data corresponding to the media type of the SDP message to the network television IPTV.
  • a storage medium is also provided, and a computer program is stored in the storage medium, wherein the computer program is configured to execute any of the above-mentioned methods when running.
  • An electronic device including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute any of the above methods.
  • Fig. 1 is a flowchart of a method for processing a VOIP call service of an Internet phone according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of the interaction between VoIP and IPTV devices according to an embodiment of the present invention
  • Fig. 3 is a flowchart of a filtering rule for data packets according to an embodiment of the present invention.
  • Fig. 4 is a schematic structural diagram of a device for processing a VOIP call service for an Internet phone according to an embodiment of the present invention
  • FIG. 5 is an optional structural frame of a device for processing a VOIP call service for a network telephone according to an embodiment of the present invention
  • Fig. 6 is an optional structural block diagram of an apparatus for processing a VOIP call service of a network telephone according to another embodiment of the present invention.
  • IPTV Internet Protocol Television
  • Voice over IP digitize analog voice (Voice) and transmit it in real time on the IP network (IP Network) in the form of data packets.
  • IP Network IP network
  • Session Initiation Protocol is an end-to-end (Peer-To-Peer) multimedia communication protocol formulated by the Internet Engineering Task Force (IETF), which is a text-based application layer
  • IETF Internet Engineering Task Force
  • IP Internet Protocol
  • RTP Reliable Transport Protocol
  • EIGRP Enhanced Interior Gateway Routing Protocol
  • FIG. 1 is a flowchart of a method for processing a call service of an Internet phone VOIP according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps :
  • Step S102 Obtain a session initiation protocol SIP data packet that meets a preset rule from the VOIP call service.
  • Step S104 Parse the session description protocol SDP message from the SIP data packet.
  • Step S106 Send data corresponding to the media type of the SDP message to the Internet TV IPTV.
  • the Session Initiation Protocol SIP data packet meeting preset rules is obtained from the VOIP call service, and then the Session Description Protocol SDP message is parsed from the SIP data packet, and the SDP message is sent to the network TV IPTV
  • the data corresponding to the media type realizes the VOIP call service while watching TV, which solves the problem that there is no way to combine VoIP technology with other devices in related technologies, and achieves the effect of improving user experience .
  • the manner of sending data corresponding to the media type of the SDP message to the network television IPTV involved in step S106 of the present application may be implemented in the following manner.
  • step S106-11 when there is only voice-type media information in the SDP message, the calling information or called information corresponding to the SIP data packet is sent to the IPTV for display.
  • Step S106-12 In the case where the SDP message includes video type media information, the Reliable Transport Protocol RTP packet is mirrored to IPTV to implement a video call.
  • step S106 when the SDP message contains only the media information of the voice type (AUDIO), only the calling information or called information is displayed on the IPTV; and when the SDP message contains the media information of the video type (VIDEO) , Mirror a copy of RTP packet to IPTV.
  • AUDIO media information of the voice type
  • VIDEO video type
  • data corresponding to the media type of the SDP message may be sent to the IPTV in the following manner.
  • Step S11 Create a thread for reporting IP data packets, and establish a connection within a specified time.
  • Step S12 copy out the IP data packet and add it to the cache linked list.
  • Step S13 wake up the thread to read the data packets in the cache linked list and send the read data packets to the IPTV.
  • steps S11 to S13 create a thread that reports IP data packets, and start a timer to establish a stable connection within a specified time for packet sending; when receiving IP data packets matching the rules, these The IP data packets are copied out and added to the cache linked list; the reporting thread is awakened, the cache linked list is read, and the data packets in the linked list are sent to the IPTV.
  • the manner of obtaining the SIP data packet of the Session Initiation Protocol that meets the preset rule involved in step S102 of the present application may include the following steps.
  • Step S102-11 adding the preset rule to the matching rule linked list.
  • Step S102-12 Monitor the received and sent data packets based on the linked list of matching rules.
  • Step S102-13 Strip the Ethernet header of the data packet sent and received, and extract the IP information and port information to filter out SIP data packets that meet the preset rules.
  • the method in this application further includes: step S108 and step S110.
  • Step S108 Obtain the number information sent by the IPTV terminal during dialing.
  • step S110 the number information is encapsulated into a SIP data packet according to the IP information and port information of the preset rule.
  • the IPTV when dialing at the IPTV terminal, the IPTV will send the number to the gateway according to the original packet sending and receiving path, and report the key press message.
  • the gateway will extract the number after receiving the message, and according to the configuration
  • the IP address and port of the rules are encapsulated into SIP protocol packets and sent to the voice server.
  • the following implementation can be implemented according to the VoIP protocol of the gateway.
  • This embodiment is based on the VoIP technology and uses the operator's network architecture and the existing network environment to implement a visual VOIP call combining the voice of an optical network unit (ONU) and IPTV.
  • the request information is displayed on the IPTV, such as the incoming call number, outgoing number, and user name. If there is a video call service, video calls can be made on the IPTV.
  • video calls can be made on the IPTV.
  • This embodiment provides a structural block diagram of the interaction between VoIP and IPTV devices.
  • the structure includes: a VoIP management module, a kernel protocol stack module, a packet transceiver module, and a functional module.
  • the VoIP management module defines the elements required by the rules. Only these elements of protocol packets and data packets that meet this rule will be sent to IPTV. The structure of VoIP and IPTV device interaction will send these elements. To the kernel protocol stack module.
  • the kernel protocol stack module is set to formulate rules, configure the rules to the kernel, and monitor the transceiver module.
  • the packet transceiver module is set to receive and send protocol packets and data packets in the scheme.
  • the rules of the kernel protocol stack module will be embedded in this module, and once the conditions are met, it will be sent to the functional module for processing.
  • the functional module is set to process packets that meet the rules. If it is a protocol packet, read the quintuple information and individual information in the SDP packet, reassemble and splice them, and send them to the specified location; if it is a data packet, just follow The type of the packet is address converted and sent to the specified location.
  • the method of realizing a visual VOIP call combining ONU voice and IPTV in this embodiment includes three stages: interface preparation stage, rule configuration first, and data packet processing.
  • the method steps of the interface preparation phase include:
  • Step S1 the VoIP management module provides rule parameters, including the port number of the INVITE message in the protocol package and the negotiated port number and IP address in the SDP package.
  • the VoIP process starts to work, it will read the current parameter values from the user configuration , And sent to the kernel protocol stack module.
  • Step S2 The kernel protocol stack module formulates the rules that these parameters need to meet, and adds the rules to the matching rule linked list, and keeps monitoring the packet sending and receiving module, strips off the Ethernet header, takes out the IP information and port information, and screens out the SIP that meets the rules. Packet, and then parse out the session description protocol (SDP) information in the SIP packet, and do different processing depending on the SDP, as shown in Figure 3:
  • SDP session description protocol
  • step S3 the function module processes the filtered packets and takes out the IP data packets.
  • the functional module will create a thread to report IP data packets and start a timer to establish a stable connection within a specified time for packet sending; when the functional module receives the IP data packet matching the rules, These IP data packets will be copied out and added to the cache linked list; finally, the reporting thread is awakened, the cache linked list is read, and the packets in the linked list are sent to IPTV.
  • Step S4 When dialing at the IPTV terminal, according to the original packet sending and receiving path, the IPTV will send the number to the gateway and report the key press message. The gateway will extract the number after receiving the message, and then according to the IP address and configuration rules The port is encapsulated into a SIP protocol packet and sent to the voice server. The next implementation is just in accordance with the VoIP protocol of the gateway.
  • the method of the above embodiment can be implemented by software plus a necessary general hardware platform, or can be implemented by hardware.
  • the present disclosure can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), and includes multiple instructions to enable a terminal device (which can be a mobile phone, a computer , A server, or a network device, etc.) execute the methods described in multiple embodiments of the present disclosure.
  • a visual VOIP call device that realizes the combination of ONU voice and IPTV is also provided.
  • the device is used to implement the above-mentioned embodiments and optional implementation manners, and the descriptions that have been described will not be repeated.
  • the term "module" can implement a combination of software and/or hardware with predetermined functions.
  • Fig. 4 is a structural block diagram of a device for visualizing a VOIP call combining ONU voice and IPTV according to an embodiment of the present invention.
  • the device includes: a first obtaining module 42 configured to receive a VOIP call service Obtain the Session Initiation Protocol SIP data packet that meets the preset rules; the parsing module 44 is coupled to the first acquisition module 42 and is configured to parse the session description protocol SDP message from the SIP data packet; the first sending module 46 and the parsing module 44 is coupled and connected, and is set to send data corresponding to the media type of the SDP message to the IPTV.
  • the first sending module 46 in this application may include: a first sending unit configured to send the calling information or called party information corresponding to the SIP data packet when only voice-type media information is included in the SDP message The information is sent to the IPTV for display; the second sending unit is configured to mirror the Reliable Transport Protocol RTP packet to the IPTV to implement a video call when the SDP message includes video type media information.
  • the first acquisition module 42 in the present application may include: a joining unit, configured to add a preset rule to the matching rule linked list; a monitoring unit, configured to monitor data packets received and sent based on the matching rule linked list; and an acquiring unit, It is set to strip the Ethernet header of the data packet sent and received, and take out the IP information and port information to filter out the SIP data packets that meet the preset rules.
  • FIG. 5 is an optional structural block diagram of a device for visualizing VOIP calls combining ONU voice and IPTV according to an embodiment of the present invention.
  • the device of the present application further includes: a creation module 52, which is connected to the first sending The module 46 is coupled and connected, and is set to create a thread for reporting IP data packets and establish a connection within a specified time; the processing module 54 is coupled to the creation module 52 and is set to copy out the IP data packets and add them to the cache linked list; second The sending module 56 is coupled to the processing module 54 and is configured to wake up the thread to read the data packets in the cache linked list and send the read data packets to the IPTV.
  • FIG. 6 is an optional structural block diagram of a device for visualizing VOIP calls that combines ONU voice and IPTV according to an embodiment of the present invention.
  • the device of the present application further includes: a second acquisition module 62 configured to Acquire the number information sent by the IPTV terminal during dialing; the encapsulation module 64 is coupled to the second acquisition module 62, and is configured to encapsulate the number information into SIP data packets according to the IP information and port information of the preset rules.
  • An embodiment of the present invention also provides a storage medium in which a computer program is stored, wherein the computer program is configured to execute any of the above methods when running.
  • the foregoing storage medium may be configured to store a computer program for executing the following steps:
  • S20 Parse the session description protocol SDP message from the SIP data packet.
  • S30 Send data corresponding to the media type of the SDP message to the network television IPTV.
  • the above-mentioned storage medium may include: Universal Serial Bus flash disk (USB flash disk), Read-Only Memory (ROM), and random access memory (Universal Serial Bus flash disk) Random Access Memory, RAM), mobile hard drives, magnetic disks or optical discs and other media that can store computer programs.
  • USB flash disk Universal Serial Bus flash disk
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • mobile hard drives magnetic disks or optical discs and other media that can store computer programs.
  • An embodiment of the present invention also provides an electronic device including a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute any of the above methods.
  • the aforementioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the aforementioned processor, and the input-output device is connected to the aforementioned processor.
  • the foregoing processor may be configured to execute the following steps through a computer program:
  • S20 Parse the session description protocol SDP message from the SIP data packet.
  • S30 Send data corresponding to the media type of the SDP message to the network television IPTV.
  • the above-mentioned multiple modules or multiple steps of the present disclosure can be implemented by a general computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be It is implemented with program codes executable by a computing device, so that they can be stored in a storage device to be executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, Or they can be made into multiple integrated circuit modules respectively, or multiple modules or steps of them can be made into a single integrated circuit module to achieve.
  • the present disclosure is not limited to any specific hardware and software combination.

Landscapes

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

Abstract

本公开提供了一种网络电话VOIP的通话业务处理方法及装置;其中,该网络电话VOIP的通话业务处理方法包括:从VOIP通话业务中获取满足预设规则的会话初始协议SIP数据包;从所述SIP数据包中解析出会话描述协议SDP消息;向网络电视IPTV发送与所述SDP消息的媒体类型对应的数据。

Description

网络电话VOIP的通话业务处理方法及装置
本申请要求在2019年07月26日提交中国专利局、申请号为201910684280.5的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本公开涉及通信领域,例如涉及一种网络电话VOIP的通话业务处理方法及装置。
背景技术
传统的电话网络公用开关电话网络(Public Switched Telephone Network,PSTN)通过标准的信令控制网络(Signaling System#7,SS7),成为覆盖全球的大型电话网络,它是以模拟技术为基础的电路交换网络,且数据传输质量及传输速度都很差,同时PSTN的网络资源利用率也比较低,由于这些局限性和较高的成本,使得网络电话(Voice over IP,VoIP)技术有了发展的空间。VoIP技术凭借着其低廉的价格、丰富的业务类型、高效的数据传输以及安全性和保密性,在通信行业得到了广泛的应用。
VoIP可以提供语音、传真和视频等业务,涉及到的设备有话机和传真机等,但是用户使用的业务却比较单一。例如随着多种网络通讯工具的普及,语音和视频业务在电话机上的使用日益减少,为了吸引客户,丰富话机业务并将VoIP技术和其他设备相结合成为了重要的一课,但相关技术中还未存在将VoIP技术和其他设备相结合的方式。
发明内容
本公开提供了一种网络电话VOIP的通话业务处理方法及装置,以至少解决相关技术中还未存在将VoIP技术和其他设备相结合的方式的问题。
提供了一种网络电话VOIP的通话业务处理方法,包括:从VOIP通话业务中获取满足预设规则的会话初始协议SIP数据包;从所述SIP数据包中解析出会话描述协议SDP消息;向网络电视IPTV发送与所述SDP消息的媒体类型对应的数据。
提供了一种网络电话VOIP的通话业务处理装置,包括:第一获取模块,设置为从VOIP通话业务中获取满足预设规则的会话初始协议SIP数据包;解析模块,设置为从所述SIP数据包中解析出会话描述协议SDP消息;第一发送模块, 设置为向网络电视IPTV发送与所述SDP消息的媒体类型对应的数据。
还提供了一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法。
还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法。
附图说明
图1是根据本发明实施例的网络电话VOIP的通话业务处理方法的流程图;
图2是根据本发明实施例的VoIP和IPTV设备交互的结构框图;
图3是根据本发明实施例的数据包的过滤规则流程图;
图4是根据本发明实施例的网络电话VOIP的通话业务处理装置的结构示意图;
图5是根据本发明实施例的网络电话VOIP的通话业务处理装置的可选结构框;
图6是根据本发明另一实施例的网络电话VOIP的通话业务处理装置的可选结构框。
具体实施方式
下文中将参考附图并结合实施例来说明本公开。在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
首先对本案中出现的术语进行相应的解释。
网络电视(Internet Protocol Television,IPTV):用宽带网络作为介质传送电视信息的一种系统,将广播节目透过宽带上的网际协议向用户传递数码电视服务。
网络电话(Voice over IP,VOIP):将模拟声音(Voice)数字化,以数据包(Data Packet)的形式在IP数据网络(IP Network)上做实时传递。
会话发起协议(Session Initiation Protocol,SIP):是互联网工程任务组(Internet Engineering Task Force,IETF)制定的一种端到端(Peer-To-Peer)多媒体通信协议,它是一个基于文本的应用层控制协议,独立于底层协议,用于建立、 修改和终止互联网协议(Internet Protocol,IP)网上的双方或多方的多媒体会话。
可靠传输协议(Reliable Transport Protocol,RTP):用来管理加强型内部网关路由协议(Enhanced Interior Gateway Routing Protocol,EIGRP)数据包的发送和接收的协议。
本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
实施例1
在本实施例中提供了一种网络电话VOIP的通话业务处理方法,图1是根据本发明实施例的网络电话VOIP的通话业务处理方法的流程图,如图1所示,该流程包括如下步骤:
步骤S102,从VOIP通话业务中获取满足预设规则的会话初始协议SIP数据包。
步骤S104,从SIP数据包中解析出会话描述协议SDP消息。
步骤S106,向网络电视IPTV发送与SDP消息的媒体类型对应的数据。
通过上述步骤S102至步骤S106,从VOIP通话业务中获取满足预设规则的会话初始协议SIP数据包,进而从SIP数据包中解析出会话描述协议SDP消息,并向网络电视IPTV发送与SDP消息的媒体类型对应的数据,从而实现了在看电视的同时也可以进行VOIP通话业务,从而解决了相关技术中还未存在将VoIP技术和其他设备相结合的方式的问题,达到了提高用户体验的效果。
在本申请的可选实施方式中,对于本申请步骤S106中涉及到的向网络电视IPTV发送与SDP消息的媒体类型对应的数据的方式,可以通过如下方式来实现。
步骤S106-11,在SDP消息中只有语音类型的媒体信息的情况下,将与SIP数据包对应的主叫信息或被叫信息发送到IPTV以显示。
步骤S106-12,在SDP消息中包括视频类型的媒体信息的情况下,将可靠传输协议RTP包镜像到IPTV以实现视频通话。
可见,对于上述步骤S106,当SDP消息里只有语音类型(AUDIO)的媒体信息时,只将主叫信息或被叫信息在IPTV显示;而当SDP消息里包含视频类型(VIDEO)的媒体信息时,将RTP包镜像一份到IPTV。
此外,在本申请的另一个可选实施方式中,可以通过以下方式向IPTV发送与SDP消息的媒体类型对应的数据。
步骤S11,创建一个上报IP数据包的线程,并在指定时间内建立连接。
步骤S12,将IP数据包拷出并加入缓存链表。
步骤S13,唤醒线程以读取缓存链表中的数据包并将读取的数据包发送至IPTV。
对于上述步骤S11至步骤S13,创建一个上报IP数据包的线程,并启动一个定时器,在指定时间内建立稳定连接,以便进行发包操作;当收到匹配规则的IP数据包后,会将这些IP数据包拷出,加入cache链表;唤醒上报线程,读取cache链表,以及将链表中的数据包发送到IPTV。
在本申请的另一个可选实施方式中,本申请步骤S102中涉及到的获取满足预设规则的会话初始协议SIP数据包的方式,可以包括以下步骤。
步骤S102-11,将预设规则加入匹配规则链表。
步骤S102-12,基于匹配规则链表对收发的数据包进行监控。
步骤S102-13,剥除收发的数据包的以太网头,取出IP信息和端口信息以筛选出符合预设规则的SIP数据包。
在本申请的再一个可选实施方式中,本申请中的方法还包括:步骤S108和步骤S110。
步骤S108,获取IPTV终端在拨号发送的号码信息。
步骤S110,将号码信息按照预设规则的IP信息和端口信息封装成SIP数据包。
对于上述步骤S108和步骤S110,当在IPTV终端进行拨号时,按照原有的收发包路径,IPTV会将号码发送给网关,并上报按键的消息,网关接收到该消息后提取号码,并根据配置规则的IP地址和端口封装成SIP的协议包,发送到语音服务器,接下来的实现按照网关的VoIP协议即可。
下面结合本申请的一种实施方式对本申请进行举例说明。
本实施方式是在VoIP技术的基础上,利用运营商的网络架构和现网环境来实现光网络单元(Optical Network Unit,ONU)的语音与IPTV相结合的可视化VOIP通话。通过本申请的实施方式,在ONU终端发送或接收语音业务请求时,将请求信息在IPTV显示,比如来电号码、呼出号码和用户名称等,如果有视频通话业务,可在IPTV上进行视频通话。其次,摆脱传统家庭网关下挂一个电话通话的布局,可以在IPTV终端进行拨号,实现电话的功能。
本实施方式提供了一种VoIP和IPTV设备交互的结构框图,如图2所示,该结构包括:VoIP管理模块,内核协议栈模块,收发包模块和功能模块。
在一实施例中,VoIP管理模块定义了规则所需的元素,只有协议包和数据 包的这些元素全部满足此规则,才会被发往IPTV,VoIP和IPTV设备交互的结构会将这些元素发送给内核协议栈模块。
内核协议栈模块,设置为制定规则,并将规则配置到内核,并监控收发包模块。
收发包模块,设置为接收和发送方案中的协议包和数据包,在该模块中会嵌入内核协议栈模块的规则,条件一旦满足就会送到功能模块进行处理。
功能模块,设置为处理满足规则的包,如果是协议包则读取五元组信息和SDP包中的个别信息,将他们重新组装拼接,并发送到指定位置;如果是数据包则只需根据包的类型进行地址转换,并发送到指定位置。
基于上述图2中VoIP和IPTV设备交互的结构,本实施方式中实现ONU的语音与IPTV相结合的可视化VOIP通话的方式包括三个阶段:准备接口阶段、先配置规则,和再处理数据包。
在一实施例中,准备接口阶段,需要先了解IPTV的显示规范,被IPTV识别并展示的数据包类型;以及与IPTV对应的接口和消息格式,比如代表摘机、挂机以及拨号等状态的事件码,这样网关侧就可以进行适配。
基于此,该准备接口阶段的方法步骤包括:
步骤S1,VoIP管理模块提供规则参数,包括协议包中INVITE消息的端口号和SDP包中协商端口号和IP地址,当VoIP进程开始工作时,它就会从用户配置中读取当前参数的值,并发送到内核协议栈模块。
步骤S2,内核协议栈模块制定这些参数需要满足的规则,并将该规则加入匹配规则链表,并一直监控收发包模块,剥除以太网头,取出IP信息和端口信息,筛选出符合规则的SIP包,然后解析出SIP包中的会话描述协议(session description protocol,SDP)信息,根据SDP的不同,做不同处理,如图3所示:
一、当SDP里只有语音类型(AUDIO)的媒体信息,只需要将主叫信息或被叫信息在IPTV显示。
二、当SDP里包含视频类型(VIDEO)的媒体信息时,需要将RTP包镜像一份到IPTV。
步骤S3,功能模块会对筛选出的包进行处理,取出其中的IP数据包。
在一实施例中,功能模块会创建一个上报IP数据包的线程,并启动一个定时器,在指定时间内建立稳定连接,以便进行发包操作;当功能模块收到匹配规则的IP数据包后,会将这些IP数据包拷出,加入cache链表;最后,唤醒上报线程,读cache链表,将链表中的包发到IPTV。
步骤S4,当在IPTV终端进行拨号时,按照原有的收发包路径,IPTV会将号码发送给网关,并上报按键的消息,网关接收到该消息后提取号码,并根据配置规则的IP地址和端口封装成SIP的协议包,发送到语音服务器,接下来的实现就按照网关的VoIP协议即可。
通过本实施方式,可以更加人性化地使用户在看电视的时候也不会漏接电话,提升了用户体验,使VoIP服务更具高效性、实时性以及多样性的特点;运营商利用此项技术,可以吸引更多用户,让用户在享受网络带来的福利的时候,还能拥有不同于传统电话业务的全新体验,产生相应的商业效益。
通过以上的实施方式的描述,上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,也可以通过硬件实现。本公开可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括多个指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开多个实施例所述的方法。
实施例2
在本实施例中还提供了一种实现ONU的语音与IPTV相结合的可视化VOIP通话装置,该装置用于实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图4是根据本发明实施例的实现ONU的语音与IPTV相结合的可视化VOIP通话的装置的结构框图,如图4所示,该装置包括:第一获取模块42,设置为从VOIP通话业务中获取满足预设规则的会话初始协议SIP数据包;解析模块44,与第一获取模块42耦合连接,设置为从SIP数据包中解析出会话描述协议SDP消息;第一发送模块46,与解析模块44耦合连接,设置为向网络电视IPTV发送与SDP消息的媒体类型对应的数据。
可选地,本申请中的第一发送模块46可以包括:第一发送单元,设置为在SDP消息中只有语音类型的媒体信息的情况下,将与SIP数据包对应的主叫信息或被叫信息发送到IPTV以显示;第二发送单元,设置为在SDP消息中包括视频类型的媒体信息的情况下,将可靠传输协议RTP包镜像到IPTV以实现视频通话。
可选地,本申请中的第一获取模块42可以包括:加入单元,设置为将预设规则加入匹配规则链表;监控单元,设置为基于匹配规则链表对收发的数据包进行监控;获取单元,设置为剥除收发的数据包的以太网头,取出IP信息和端 口信息以筛选出符合预设规则的SIP数据包。
图5是根据本发明实施例的实现ONU的语音与IPTV相结合的可视化VOIP通话的装置的可选结构框图,如图5所示,本申请的装置还包括:创建模块52,与第一发送模块46耦合连接,设置为创建一个上报IP数据包的线程,并在指定时间内建立连接;处理模块54,与创建模块52耦合连接,设置为将IP数据包拷出并加入缓存链表;第二发送模块56,与处理模块54耦合连接,设置为唤醒线程以读取缓存链表中的数据包并将读取的数据包发送至IPTV。
图6是根据本发明实施例的实现ONU的语音与IPTV相结合的可视化VOIP通话的装置的可选结构框图,如图6所示,本申请的装置还包括:第二获取模块62,设置为获取IPTV终端在拨号发送的号码信息;封装模块64,与第二获取模块62耦合连接,设置为将号码信息按照预设规则的IP信息和端口信息封装成SIP数据包。
实施例3
本发明的实施例还提供了一种存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法。
可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:
S10,从VOIP通话业务中获取满足预设规则的会话初始协议SIP数据包。
S20,从SIP数据包中解析出会话描述协议SDP消息。
S30,向网络电视IPTV发送与SDP消息的媒体类型对应的数据。
可选地,在本实施例中,上述存储介质可以包括:通用串行总线闪存盘(Universal Serial Bus flash disk,U盘)、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、移动硬盘、磁碟或者光盘等多种可以存储计算机程序的介质。
本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法。
可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:
S10,从VOIP通话业务中获取满足预设规则的会话初始协议SIP数据包。
S20,从SIP数据包中解析出会话描述协议SDP消息。
S30,向网络电视IPTV发送与SDP消息的媒体类型对应的数据。
可选地,本实施例中的示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
上述的本公开的多个模块或多个步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在一些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成多个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。本公开不限制于任何特定的硬件和软件结合。

Claims (12)

  1. 一种网络电话VOIP的通话业务处理方法,包括:
    从VOIP通话业务中获取满足预设规则的会话初始协议SIP数据包;
    从所述SIP数据包中解析出会话描述协议SDP消息;
    向网络电视IPTV发送与所述SDP消息的媒体类型对应的数据。
  2. 根据权利要求1所述的方法,其中,所述向网络电视IPTV发送与所述SDP消息的媒体类型对应的数据,包括:
    在所述SDP消息中只有语音类型的媒体信息的情况下,将与所述SIP数据包对应的主叫信息或被叫信息发送到所述IPTV以显示;
    在所述SDP消息中包括视频类型的媒体信息的情况下,将可靠传输协议RTP包镜像到所述IPTV以实现视频通话。
  3. 根据权利要求1或2所述的方法,其中,通过以下方式向所述IPTV发送与所述SDP消息的媒体类型对应的数据:
    创建一个上报互联网协议IP数据包的线程,并在指定时间内建立连接;
    将所述IP数据包拷出并加入缓存链表;
    唤醒所述线程以读取所述缓存链表中的数据包并将读取的数据包发送至所述IPTV。
  4. 根据权利要求1所述的方法,其中,所述获取满足预设规则的会话初始协议SIP数据包,包括:
    将所述预设规则加入匹配规则链表;
    基于所述匹配规则链表对收发的数据包进行监控;
    剥除收发的数据包的以太网头,以及取出IP信息和端口信息以筛选出符合所述预设规则的SIP数据包。
  5. 根据权利要求4所述的方法,还包括:
    获取所述IPTV在拨号的情况下发送的号码信息;
    将所述号码信息按照所述预设规则的IP信息和端口信息封装成所述SIP数据包。
  6. 一种网络电话VOIP的通话业务处理装置,包括:
    第一获取模块,设置为从VOIP通话业务中获取满足预设规则的会话初始协议SIP数据包;
    解析模块,设置为从所述SIP数据包中解析出会话描述协议SDP消息;
    第一发送模块,设置为向网络电视IPTV发送与所述SDP消息的媒体类型对应的数据。
  7. 根据权利要求6所述的装置,其中,所述第一发送模块包括:
    第一发送单元,设置为在所述SDP消息中只有语音类型的媒体信息的情况下,将与所述SIP数据包对应的主叫信息或被叫信息发送到所述IPTV以显示;
    第二发送单元,设置为在所述SDP消息中包括视频类型的媒体信息的情况下,将可靠传输协议RTP包镜像到所述IPTV以实现视频通话。
  8. 根据权利要求6或7所述的装置,还包括:
    创建模块,设置为创建一个上报互联网协议IP数据包的线程,并在指定时间内建立连接;
    处理模块,设置为将所述IP数据包拷出并加入缓存链表;
    第二发送模块,设置为唤醒所述线程以读取所述缓存链表中的数据包并将读取的数据包发送至所述IPTV。
  9. 根据权利要求6所述的装置,其中,所述第一获取模块包括:
    加入单元,设置为将所述预设规则加入匹配规则链表;
    监控单元,设置为基于所述匹配规则链表对收发的数据包进行监控;
    获取单元,设置为剥除收发的数据包的以太网头,以及取出IP信息和端口信息以筛选出符合所述预设规则的SIP数据包。
  10. 根据权利要求9所述的装置,还包括:
    第二获取模块,设置为获取所述IPTV在拨号的情况下发送的号码信息;
    封装模块,设置为将所述号码信息按照所述预设规则的IP信息和端口信息封装成所述SIP数据包。
  11. 一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至5中任一项所述的网络电话VOIP的通话业务处理方法。
  12. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至5中任一项所述的网络电话VOIP的通话业务处理方法。
PCT/CN2020/103684 2019-07-26 2020-07-23 网络电话voip的通话业务处理方法及装置 WO2021017994A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910684280.5 2019-07-26
CN201910684280.5A CN112311726B (zh) 2019-07-26 2019-07-26 网络电话voip的通话业务处理方法及装置

Publications (1)

Publication Number Publication Date
WO2021017994A1 true WO2021017994A1 (zh) 2021-02-04

Family

ID=74229165

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/103684 WO2021017994A1 (zh) 2019-07-26 2020-07-23 网络电话voip的通话业务处理方法及装置

Country Status (2)

Country Link
CN (1) CN112311726B (zh)
WO (1) WO2021017994A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113905416A (zh) * 2021-09-16 2022-01-07 锐捷网络股份有限公司 VoLTE报文的处理方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7499704B1 (en) * 2005-10-21 2009-03-03 Cingular Wireless Ii, Llc Display caller ID on IPTV screen
CN102017588A (zh) * 2008-04-25 2011-04-13 艾利森电话股份有限公司 用于通信网络中交互式呼叫方信息服务的方法和装置
CN102804730A (zh) * 2009-05-04 2012-11-28 捷讯研究有限公司 用于实现设备之间的媒体和媒体转移的系统和方法
CN105141879A (zh) * 2014-06-03 2015-12-09 鸿富锦精密工业(深圳)有限公司 视频通话转换方法、移动终端及智能电视

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090479A (zh) * 2006-06-12 2007-12-19 朗迅科技公司 通过互联网协议网络上的话音在视频电话上接入电视和视频业务
US20080123626A1 (en) * 2006-09-25 2008-05-29 Alexander Aihao Yin Accessing television and video services on a video phone over voice over internet protocol network
US9258427B2 (en) * 2007-04-18 2016-02-09 At&T Intellectual Property I, Lp System and method for forwarding calls
JP5018560B2 (ja) * 2007-09-03 2012-09-05 ソニー株式会社 Iptvクライアント端末、sip−inviteメッセージ生成方法、iptvシステム、iptvセッション制御方法、コンピュータ・プログラム、iptvクライアントシステム、およびセッション管理装置
CN101827242B (zh) * 2010-05-10 2013-01-02 南京邮电大学 一种基于网络电视机顶盒的可视电话系统实现方法
CN102957890A (zh) * 2011-08-19 2013-03-06 中兴通讯股份有限公司 一种通信中视频图像播放方法及终端
CN102833436A (zh) * 2012-08-31 2012-12-19 电子科技大学 实现voip代理的方法以及系统
CN102984596B (zh) * 2012-11-26 2015-03-18 烽火通信科技股份有限公司 视频通信业务与iptv业务融合的装置及方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7499704B1 (en) * 2005-10-21 2009-03-03 Cingular Wireless Ii, Llc Display caller ID on IPTV screen
CN102017588A (zh) * 2008-04-25 2011-04-13 艾利森电话股份有限公司 用于通信网络中交互式呼叫方信息服务的方法和装置
CN102804730A (zh) * 2009-05-04 2012-11-28 捷讯研究有限公司 用于实现设备之间的媒体和媒体转移的系统和方法
CN105141879A (zh) * 2014-06-03 2015-12-09 鸿富锦精密工业(深圳)有限公司 视频通话转换方法、移动终端及智能电视

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113905416A (zh) * 2021-09-16 2022-01-07 锐捷网络股份有限公司 VoLTE报文的处理方法及装置
CN113905416B (zh) * 2021-09-16 2024-04-16 锐捷网络股份有限公司 VoLTE报文的处理方法及装置

Also Published As

Publication number Publication date
CN112311726A (zh) 2021-02-02
CN112311726B (zh) 2023-09-08

Similar Documents

Publication Publication Date Title
US7453488B2 (en) Sharing of prerecorded motion video over an Internet work
US8644306B2 (en) Method and apparatus for VoIP video communication
CN102082884B (zh) 一种基于3g的音视频协作方法及系统
CN101626483B (zh) 会议电视系统与交互式网络电视系统融合方法及视讯系统
US10320972B2 (en) Enhanced session initiation protocol recording
CN101909192B (zh) 电视终端的通信方法及其电视终端
US7440445B1 (en) Method and apparatus for storing and activating universal resource locators and phone numbers
CN108881149B (zh) 一种可视电话设备的接入方法和系统
CN112953925B (zh) 基于sip协议和rtc网络实时音视频通信系统及方法
CN102148775A (zh) 网页呼叫服务网关、呼叫服务系统和方法
CN101453524A (zh) 一种多媒体业务的实现方法
CN110620849B (zh) 一种ims电话终端呼叫记录集中分拣方法及系统
WO2021017994A1 (zh) 网络电话voip的通话业务处理方法及装置
CN102036048A (zh) 一种语音视频通话的方法及系统
US9071690B2 (en) Call transfer processing in SIP mode
US20070002777A1 (en) Video-communication interface
CN101325630A (zh) 网络电话系统及其操作方法
Wrong NEW QUESTION
Mentsiev VoIP techniques
CN110087020A (zh) 一种iOS设备进行视联网会议的实现方法及系统
US7545738B2 (en) Network telephony system with enhanced interconversion of audio signals and IP packets
CN102065268A (zh) 一种可视化会商系统及其控制方法
CN101500129A (zh) 结合pstn网络和ip网络实现可视电话的方法
TWI232657B (en) Communicating tone information in a network
CN113810331A (zh) 终端控制方法、系统、控制设备及存储介质

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: 20846597

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20846597

Country of ref document: EP

Kind code of ref document: A1