CN110730192B - Voice data transmission method, device, equipment and computer readable storage medium - Google Patents

Voice data transmission method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110730192B
CN110730192B CN201911034711.XA CN201911034711A CN110730192B CN 110730192 B CN110730192 B CN 110730192B CN 201911034711 A CN201911034711 A CN 201911034711A CN 110730192 B CN110730192 B CN 110730192B
Authority
CN
China
Prior art keywords
address
call request
voice
voice call
data transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911034711.XA
Other languages
Chinese (zh)
Other versions
CN110730192A (en
Inventor
王德强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN201911034711.XA priority Critical patent/CN110730192B/en
Publication of CN110730192A publication Critical patent/CN110730192A/en
Application granted granted Critical
Publication of CN110730192B publication Critical patent/CN110730192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2592Translation of Internet protocol [IP] addresses using tunnelling or encapsulation
    • 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/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]

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

The embodiment of the invention provides a voice data transmission method, a voice data transmission device, voice data transmission equipment and a computer readable storage medium. The method is applied to a data transmission module, the data transmission module is in communication connection with a telephone terminal, and the method comprises the following steps: responding to an IP-based voice call request sent by the telephone end, and determining a receiver IP address corresponding to a called number included in the IP-based voice call request; establishing a voice transmission channel based on a pre-acquired first operator IP address and the receiver IP address; and transmitting the received voice data through the voice transmission channel.

Description

Voice data transmission method, device, equipment and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a voice data transmission method, a voice data transmission device, voice data transmission equipment and a computer readable storage medium.
Background
Currently, voice services are mainly based on the CS domain or use VoLTE, but both of them have high cost. The data transmission module mainly provides data service at present, cannot provide voice service, and is low in utilization rate.
Disclosure of Invention
Embodiments of the present invention provide a voice data transmission method, apparatus, device, and computer-readable storage medium, so as to implement a voice service on a data transmission module, improve the utilization rate of the data transmission module, and reduce the voice call cost.
In a first aspect, an embodiment of the present invention provides a voice data transmission method, which is applied to a data transmission module, where the data transmission module is in communication connection with a phone terminal, and the method includes: responding to an IP-based voice call request sent by the telephone end, and determining a receiver IP address corresponding to a called number included in the IP-based voice call request; establishing a voice transmission channel based on a pre-acquired first operator IP address and the receiver IP address; and transmitting the received voice data through the voice transmission channel.
In a second aspect, an embodiment of the present invention provides a voice data transmission method, which is applied to a main control module, where the main control module is in communication connection with a data transmission module, and the method includes: acquiring an IP address of a first operator; receiving a first voice call request sent by the data transmission module, wherein the source address of the first voice call request is a private network IP address pre-allocated to the data transmission module by the main control module, and the destination address of the first voice call request is a pre-acquired IP address of a VOIP server; and converting the private network IP address in the first voice call request into the first operator IP address, and forming a second voice call request to be returned to the data transmission module so that the data transmission module sends the second voice call request to a VOIP server corresponding to the IP address of the VOIP server.
In a third aspect, an embodiment of the present invention provides a voice data transmission apparatus, including: the determining module is used for responding to an IP-based voice call request sent by the phone terminal and determining a receiver IP address corresponding to a called number included in the IP-based voice call request; the establishing module is used for establishing a voice transmission channel based on a pre-acquired first operator IP address and the receiver IP address; and the transmission module is used for transmitting the received voice data through the voice transmission channel.
In a fourth aspect, an embodiment of the present invention provides a voice data transmission apparatus, including: the second acquisition module is used for acquiring the IP address of the first operator; the second receiving module is used for receiving a first voice call request sent by the data transmission module, wherein the source address of the first voice call request is a private network IP address pre-allocated to the data transmission module by the main control module, and the destination address of the first voice call request is a pre-acquired IP address of the VOIP server; and the conversion module is used for converting the private network IP address in the first voice call request into the first operator IP address and forming a second voice call request to be returned to the data transmission module so that the data transmission module sends the second voice call request to the VOIP server corresponding to the IP address of the VOIP server.
In a fifth aspect, an embodiment of the present invention provides a voice data transmission device, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of the first aspect.
In a sixth aspect, an embodiment of the present invention provides a voice data transmission device, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of the second aspect.
In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the methods in the first and second aspects.
The voice data transmission method, the device, the equipment and the computer readable storage medium provided by the embodiment of the invention apply the provided voice data transmission method on the data transmission module, connect the data transmission module with the telephone end in a communication way, and then determine the IP address of a receiver corresponding to a called number included in the IP-based voice call request by responding to the IP-based voice call request sent by the telephone end; establishing a voice transmission channel based on a pre-acquired first operator IP address and the receiver IP address; and transmitting the received voice data through the voice transmission channel. Therefore, the voice service is realized on the data transmission module, so that the data transmission module can not only provide the data service, but also provide the voice service, the utilization rate of the data transmission module is improved, and the cost of the voice telephone is reduced.
Drawings
Fig. 1 is an application scenario diagram according to an embodiment of the present invention;
fig. 2 is a flowchart of a voice data transmission method according to an embodiment of the present invention;
fig. 3 is a flowchart of a voice data transmission method according to another embodiment of the present invention;
FIG. 4 is a diagram of another application scenario applicable to embodiments of the present invention;
fig. 5 is a flowchart of a voice data transmission method according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a voice data transmission apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a voice data transmission apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a voice data transmission device according to an embodiment of the present invention.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The voice data transmission method provided by the embodiment of the invention can be applied to the application scene shown in fig. 1, and the application scene comprises the following steps: a main control module 11, a data transmission module 12, a phone 13, an operator server (not shown in the figure) and a VOIP server (not shown in the figure); the data transmission module 12 is in communication connection with an operator server and a VOIP server respectively, and the main control module 11 is in communication connection with the operator server.
A data service channel and a data control channel are arranged between the main control module 11 and the data transmission module 12, the data service channel and the data control channel may be two separate channels, or may be combined into one data service and control channel, and physically, the data service and control channel may be, for example, a USB, a PCIE (peripheral component interconnect express), or the like; a voice control channel and a voice service channel are arranged between the data transmission module 12 and the phone end 13, the voice service channel and the voice control channel may be two separate channels, or may be combined into one voice service and control channel, and physically, the voice service channel may use a Pulse Code Modulation (PCM)/I2S (Inter-IC Sound) Interface, and the voice control channel may use an IO control Interface such as a Serial Peripheral Interface (spi)/Universal Asynchronous Receiver/Transmitter (uart). The data transmission module 12 is a module capable of providing 2G/3G/4G/5G wireless connection, and is capable of providing wireless data service for the main control module 11 and providing voice service for the phone side. The phone 13 can provide a key and a display function, and is an interface through which a user dials a phone call through Circuit Switching (CS), Voice over LTE (Voice over LTE) based on ims (ip Multimedia subsystem), and a Voice Over Internet Protocol (VOIP) based mode, and can also provide a Voice input (MIC) function and a Voice output (speaker, etc.) function.
In addition, an SIP unit 121 and an RTP unit 122 may also be disposed in the data transmission module 12, where the SIP unit 121 is configured to provide actions such as registration, initiation, connection, termination, and the like of the VOIP voice service, and the SIP unit employs an SIP protocol; the RTP unit 122 is used to implement end-to-end transmission of the actual voice data stream through RTP.
Optionally, functions such as data exchange, wifi and Ethernet interface may also be set for the main control module 11.
The following describes the technical solutions of the present invention and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Example one
Fig. 2 is a flowchart of a voice data transmission method according to an embodiment of the present invention. The embodiment of the invention provides a voice data transmission method aiming at the technical problems in the prior art, and the method comprises the following specific steps:
step 201, responding to an IP-based voice call request sent by a phone terminal, and determining a receiver IP address corresponding to a called number included in the IP-based voice call request.
In this embodiment, the execution main body may be the data transmission module 12 shown in fig. 1, and the phone end may be the phone 13 shown in fig. 1. As shown in fig. 1, when making a call, the phone 13 receives a control command of a user, converts the control command of the user into an AT control command, and then transmits the AT control command to the data transmission module 12 through the voice control channel, and the data transmission module 12 determines a recipient IP address corresponding to a called number included in the IP-based voice call request. Optionally, the called number is a number for dialing a VOIP phone, and is hereinafter referred to as an IP number.
For example, if the user initiates a command to dial an IP phone through the phone 13, and if the IP number dialed by the user is 12345, the IP number is first sent to the data transfer module 12, and the data transfer module 12 determines the IP address of the recipient of the IP phone dialed by the user corresponding to the IP number based on the IP number.
Step 202, establishing a voice transmission channel based on the pre-acquired first operator IP address and the receiver IP address.
In this embodiment, before step 201 is executed, networking needs to be performed first to ensure that a network is smooth, and then an IP phone is dialed, in this embodiment, a first operator IP address may be obtained by dialing a network, and then a voice transmission channel is established through the first operator IP address and a receiver IP address.
Step 203, transmitting the received voice data through a voice transmission channel.
As shown in fig. 1, after the telephone is connected, the telephone 13 uses the microphone to record the voice information of the user, forms digital voice data, and transmits the digital voice data to the data transmission module 12 through the voice transmission channel, and the data transmission module 12 transmits the digital voice data to the receiving party based on the IP network, thereby implementing the VOIP telephone service based on the data transmission module.
Optionally, the data transmission module 12 is further provided with a determining module 123, configured to determine whether the command is a command related to the VOIP service when the command is received, and if the command is a command related to the VOIP service, forward the command to the SIP unit 121, and the SIP unit 121 performs related processing, for example, the SIP unit dials a VOIP call, and when the SIP unit 121 receives a dial success indication, the command is analyzed into an AT command and sent to the phone 13. Phone 13 turns on the MIC and starts sending out the user's voice. And meanwhile, opening the spaker and starting to receive the voice of the user at the opposite end. After receiving the voice code stream of the opposite terminal, the RTP parses the code stream into a PCM format, sends the PCM format to the phone 13 through a PCM interface, and then plays sound by the phone 13.
The embodiment of the invention applies the provided voice data transmission method to the data transmission module, connects the data transmission module with the telephone end in a communication way, and then determines the IP address of a receiver corresponding to the called number included in the IP-based voice call request by responding to the IP-based voice call request sent by the telephone end; establishing a voice transmission channel based on a pre-acquired first operator IP address and a receiver IP address; and transmitting the received voice data through a voice transmission channel. Therefore, the voice service is realized on the data transmission module, so that the data transmission module can not only provide the data service, but also provide the voice service, the utilization rate of the data transmission module is improved, and the cost of the voice telephone is reduced.
Optionally, before responding to the IP-based voice call request sent by the phone terminal and determining the IP address of the receiver corresponding to the called number included in the IP-based voice call request, the method in the embodiment of the present invention further includes the following steps: acquiring an IP address of a first operator; and sending an IP data packet of the registration request, wherein the source address of the IP data packet is the IP address of the first operator, the destination address is the address of a pre-stored VOIP server, and the IP data packet also comprises registration information.
As shown in fig. 1, after being started, the data transmission module 12 first performs network connection with an operator server, the operator server returns a first operator IP address, and then the data transmission module 12 uses the first operator IP address as a source address and the VOIP server address pre-stored in the data transmission module 12 as a destination address to send registration information to the VOIP server corresponding to the VOIP server address for registration in the VOIP server. Optionally, the registration information includes: the IP number and IP address of the user initiating the registration. Meanwhile, the VOIP server can extract the IP number and the IP address in the registration information and establish the corresponding relation between the IP number and the IP address.
Optionally, the VOIP server address may be pre-stored in the data transmission module 12, or pre-stored in the main control module 11, and is issued to the data transmission module 12 by the main control module 11.
Optionally, determining, in response to the voice over IP call request sent by the phone terminal, a receiver IP address corresponding to a called number included in the voice over IP call request includes: and receiving a receiver IP address which is searched by the VOIP server and corresponds to the called number included in the IP-based voice call request in the pre-established corresponding relation between the called number and the receiver IP address. In this embodiment, the pre-established correspondence between the called number and the IP address of the receiving party is established by the VOIP server based on the registration information, for example, when the user registers in the VOIP server, the IP address of the first operator is used as the source address, the address of the VOIP server is used as the destination address, the registration information at least including the IP number and the IP address of the user is packaged into an IP data packet, and then the IP data packet is sent to the VOIP server through the data transmission module 12, and the VOIP server analyzes the IP data packet after receiving the IP data packet, extracts the IP number and the IP address in the registration information, and establishes the correspondence between the IP number and the IP address.
As shown in fig. 1, for example, if a user initiates a command to dial an IP phone through the phone 13, the IP number is first sent to the data transmission module 12 through the voice control channel, the data transmission module 12 sends the IP number to the VOIP server, so as to search an IP address corresponding to the IP number dialed by the user through the VOIP server according to the pre-established correspondence between the IP number and the IP address, and the searched IP address is an IP address used by a called user to be called by the user.
Optionally, on the basis of the foregoing embodiment, the main control module 11 may further obtain an IP address of a second operator in a manner of VOIP APN dialing, where the IP address of the second operator is used to provide a data service for the main control module. The main control module 11 and the number transmission module 12 may respectively obtain the IP address of the second operator and the IP address of the first operator in a dual APN dialing manner. The first operator IP address and the second operator IP address are used to provide voice services and data services, respectively.
Example two
Fig. 3 is a flowchart of a voice data transmission method according to another embodiment of the present invention. Fig. 4 is a diagram of another application scenario applicable to the embodiment of the present invention. Fig. 4 is the same as the structure in fig. 1, and may refer to the description of the hardware structure in fig. 1, except that the data flow direction is different (the data flow direction may refer to the dashed line shown in fig. 4). As shown in fig. 3 and fig. 4, on the basis of the foregoing embodiments, the voice data transmission method provided in this embodiment specifically includes the following steps:
step 301, packaging the voice call request based on IP sent by the phone terminal and the pre-allocated private network IP address into a first voice call request and sending the first voice call request to the main control module, so that the main control module converts the private network IP address into a first operator IP address, and packaging the voice call request based on IP and the first operator IP address into a second voice call request and returning the second voice call request to the data transmission module.
In this embodiment, the main control module 11 obtains the first operator IP address from the operator server by means of APN dialing, and the data transfer module 12 cannot obtain the first operator IP address, so the main control module 11 may allocate a private network IP address to the data transfer module 12, and next hops of the data transfer module 12, the SIP unit, and the RTP unit are all set as the main control module 11, so uplink IP data packets of the data transfer module 12, the SIP unit, and the RTP unit all need to pass through the main control module 11. Similarly, the downlink IP data packet needs to first pass through the main control module 11 and then reach the data transmission module 12.
As shown in fig. 4, for example, the user initiates a command to place an IP call through telephone set 13, the command for dialing the IP phone will first reach the data transmission module 12, and the data transmission module 12 will use the private IP address allocated to the data transmission module 12 by the main control module 11 as the source address, the address of the VOIP server as the destination address, the IP data packet (the first voice call request) is packaged together with the command for making the IP call and sent to the main control module 11, and after the main control module 11 receives the IP data packet (the first voice call request), the private IP Address in the IP data packet (first voice call request) is converted into the IP Address of the first operator through Network Address Translation (NAT), the first carrier IP address is then used as the source address, the address of the VOIP server is used as the destination address, and the IP data packet (second voice call request) is packaged together with the IP call dialing command and sent to the data transmission module 12.
Step 302, receiving the second voice call request and sending the second voice call request to the VOIP server, so as to determine, by the VOIP server, a recipient IP address corresponding to the called number included in the IP-based voice call request.
Optionally, after receiving the second voice call request and sending the second voice call request to the VOIP server, the method further includes: and receiving a first response message sent by the master control module, wherein the first response message is obtained by the master control module performing address conversion on a destination address based on a second response message of the second voice call request returned by the VOIP server.
Optionally, the first response message is obtained by the host control module performing address translation based on the response message of the second voice call request returned by the VOIP server, which means that the first response message is obtained by the host control module translating the first operator address in the second response message into a private network IP address.
Please refer to the above example, after receiving the IP data packet (the second voice call request) with the source address modified by the main control module 11, the data transmission module 12 sends the IP data packet to the wireless network, and finally sends the IP data packet to the VOIP server through the wireless network, after receiving the second voice call request, the VOIP server searches for a corresponding IP address in the pre-established correspondence between the IP number and the IP address according to the called number carried in the IP data packet, and uses the IP address of the VOIP server as the source address, the IP address of the first operator as the destination address, and packs the IP address together with the searched IP address into an IP data packet and returns the IP data packet to the main control module 11.
And step 303, establishing a voice transmission channel based on the pre-acquired first operator IP address and the receiver IP address.
Please refer to the above example, after receiving the IP data packet sent by the VOIP server, the main control module 11 performs NAT conversion on the destination address of the IP data packet, converts the destination address into a private IP address, and then packages the private IP address as the destination address and the IP address of the VOIP server as the source address together with the found IP address into an IP data packet to send to the data transmission module 12. The data transmission module 12 receives and analyzes the IP data packet of the VOIP server to obtain the IP address of the receiving party, and establishes a data transmission channel with the receiving party by the SIP unit.
And step 304, transmitting the received voice data through a voice transmission channel.
Optionally, transmitting the received voice data through the voice transmission channel includes: sending the received voice data and a pre-allocated private network IP address to a main control module so that the main control module converts the private network IP address into the first operator IP address and returns the voice data and the first operator IP address to the data transmission module; taking the IP address of the first operator as a source address and the IP address of a VOIP receiver as a destination address; and transmitting the source address, the destination address and the voice data through the voice transmission channel.
In this embodiment, different from the first embodiment, when the voice data is transmitted, the network address needs to be converted through the main control module 11. Specifically, after receiving voice data sent by a user through a microphone of the phone, the data transmission module 12 packages and sends a private network IP address, the voice data and an IP address of the VOIP server to the main control module 11, the main control module 11 performs NAT conversion on the private network IP address into an IP address of a first operator, then packages and returns the IP address of the first operator, the voice data and the IP address of the VOIP server to the data transmission module 12, and then the data transmission module 12 transmits the data to a wireless network through a voice transmission channel and finally reaches a receiving party.
Similarly, after receiving the voice data sent by the receiving party, the user also first arrives at the main control module 11, then performs NAT conversion by the main control module 11, and then sends the voice data to the data transmission module 12, and then feeds the voice data back to the telephone terminal after being analyzed by the data transmission module 12.
The voice call request based on the IP sent by the phone terminal and the pre-allocated private network IP address are packaged into a first voice call request and sent to the main control module, so that the main control module converts the private network IP address into a first operator IP address, and packages the voice call request based on the IP and the first operator IP address into a second voice call request and returns the second voice call request to the data transmission module; and receiving a second voice call request and sending the second voice call request to a VOIP server so as to determine a receiver IP address corresponding to a called number included in the IP-based voice call request through the VOIP server. Therefore, the voice service is realized on the data transmission module, so that the data transmission module can not only provide the data service, but also provide the voice service, the utilization rate of the data transmission module is improved, and the cost of the voice telephone is reduced.
EXAMPLE III
Fig. 5 is a flowchart of a voice data transmission method according to another embodiment of the present invention. On the basis of the foregoing embodiment, the voice data transmission method provided in this embodiment specifically includes the following steps:
and step 501, acquiring the IP address of the first operator.
The main execution body of this embodiment is a main control module, and the main control module obtains the IP address of the first operator in an ANP dialing manner.
Step 502, receiving a first voice call request sent by the data transmission module, where a source address of the first voice call request is a private network IP address pre-allocated to the data transmission module by the main control module, and a destination address of the first voice call request is a pre-acquired IP address of the VOIP server.
Step 503, converting the private network IP address in the first voice call request into the first operator IP address, and forming a second voice call request to be returned to the data transmission module, so that the data transmission module sends the second voice call request to the VOIP server corresponding to the IP address of the VOIP server.
In this embodiment, since the source address in the message sent by the data transmission module 12 is the private IP address allocated by the main control module to the data transmission module, and cannot directly communicate with the outside, the message sent by the data transmission module 12 needs to undergo NAT conversion on the source address through the main control module 11, and then communicates with the outside after being converted into the first operator address. For an external IP data packet received by the main control module 11, it is also necessary to perform NAT conversion on the destination address through the main control module 11, and after converting the destination address into the first operator address, the destination address is sent to the data transmission module 12.
Optionally, after the private network IP address in the first voice call request is converted into the first operator IP address, and a second voice call request is formed and returned to the data transmission module, so that the data transmission module sends the second voice call request to the VOIP server, the method further includes: receiving a response message of a second voice call request returned by the VOIP server; and performing address conversion on the destination address in the response message of the second voice call request, and sending the destination address to the data transmission module.
Optionally, a destination address of a response message of the second voice call request is the IP address of the first operator, and the response message of the second voice call request includes a recipient IP address corresponding to the called number of the first voice call request; the address conversion of the destination address in the response message of the second voice call request and the sending of the destination address to the data transmission module include: converting the first operator IP address in the response message of the second voice call request into a private network IP address; sending the private network IP address and the receiver IP address to the data transmission module so that the data transmission module sends the private network IP address and the receiver IP address to the main control module; and converting the private network IP address into a first operator IP address, and sending the first operator IP address and the receiver IP address to the data transmission module, so that the data transmission module and a receiver corresponding to the receiver IP address establish a voice transmission channel, and voice data are transmitted through the voice transmission channel.
The method steps of this embodiment correspond to the method steps of the second embodiment, and specific reference may be made to the description of part of the second embodiment, which is not described herein again.
Fig. 6 is a schematic structural diagram of a voice data transmission apparatus according to an embodiment of the present invention. The voice data transmission device may specifically be the data transmission module 12 in the above embodiment, or a component (e.g., a chip or a circuit) of the data transmission module 12. As shown in fig. 6, the voice data transmission apparatus 60 according to an embodiment of the present invention may execute the processing procedure provided in the embodiment of the voice data transmission method, and includes: a determination module 61, a building module 62 and a transmission module 63; the determining module 61 is configured to determine, in response to an IP-based voice call request sent by the phone terminal, a receiver IP address corresponding to a called number included in the IP-based voice call request; an establishing module 62, configured to establish a voice transmission channel based on a pre-acquired first operator IP address and the recipient IP address; and the transmission module 63 is configured to transmit the received voice data through the voice transmission channel.
Optionally, when determining, in response to an IP-based voice call request sent by a phone terminal, a receiver IP address corresponding to a called number included in the IP-based voice call request, the determining module 61 is specifically configured to: and receiving a receiver IP address corresponding to the called number included in the IP-based voice call request, which is searched by the VOIP server based on the called number in the pre-established corresponding relation between the called number and the receiver IP address.
Optionally, the voice data transmission apparatus 60 further includes: a first obtaining module 64 and a sending module 65; the first obtaining module 64 is configured to obtain an IP address of a first operator; a sending module 65, configured to send an IP data packet of the registration request, where a source address of the IP data packet is the IP address of the first operator, a destination address is a pre-stored address of the VOIP server, and the IP data packet further includes registration information.
Optionally, when determining, in response to an IP-based voice call request sent by a phone terminal, a receiver IP address corresponding to a called number included in the IP-based voice call request, the determining module 61 is specifically configured to: packaging an IP-based voice call request sent by the phone terminal and a pre-allocated private network IP address into a first voice call request and sending the first voice call request to the main control module, so that the main control module converts the private network IP address into a first operator IP address, and packaging the IP-based voice call request and the first operator IP address into a second voice call request to be returned to the data transmission module; and receiving the second voice call request and sending the second voice call request to a VOIP server.
Optionally, the apparatus 60 further comprises: a first receiving module 66, configured to receive a first response message sent by the main control module, where the first response message is obtained by the main control module performing address translation on a destination address based on a second response message of the second voice call request returned by the VOIP server.
Optionally, the first response message is obtained by the host control module performing address translation based on the response message of the second voice call request returned by the VOIP server, which means that the first response message is obtained by the host control module translating the first operator address in the second response message into a private network IP address.
Optionally, when the transmission module 63 transmits the received voice data through the voice transmission channel, it is specifically configured to: sending the received voice data and a pre-allocated private network IP address to a main control module so that the main control module converts the private network IP address into a first operator IP address and returns the voice data and the first operator IP address to the data transmission module; taking the IP address of the first operator as a source address and the IP address of a VOIP receiver as a destination address; and transmitting the source address, the destination address and the voice data through the voice transmission channel.
The voice data transmission apparatus in the embodiment shown in fig. 6 can be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, and are not described herein again.
Fig. 7 is a schematic structural diagram of a voice data transmission apparatus according to an embodiment of the present invention. The voice data transmission device may be specifically the data transmission module main control module 11 in the above embodiment. As shown in fig. 7, the voice data transmission apparatus 70 according to an embodiment of the present invention may execute the processing procedure provided in the embodiment of the voice data transmission method, and includes: a second obtaining module 71, a second receiving module 72 and a converting module 73; a second obtaining module 71, configured to obtain an IP address of the first operator; a second receiving module 72, configured to receive a first voice call request sent by the data transmission module, where a source address of the first voice call request is a private network IP address pre-allocated to the data transmission module by the main control module, and a destination address is an IP address of a VOIP server; a conversion module 73, configured to convert the private network IP address in the first voice call request into the first operator IP address, and form a second voice call request to be returned to the data transmission module, so that the data transmission module sends the second voice call request to the VOIP server.
Optionally, the second receiving module 72 is further configured to receive a response message of the second voice call request returned by the VOIP server; the conversion module 73 is further configured to perform address conversion on the destination address in the response message of the second voice call request, and send the destination address to the data transmission module.
Optionally, a destination address of the response message of the second voice call request is the IP address of the first operator, and the response message of the second voice call request includes a recipient IP address corresponding to the called number of the first voice call request; when the conversion module 73 performs address conversion on the destination address in the response message of the second voice call request and sends the destination address to the data transmission module, the conversion module is specifically configured to: converting the first operator IP address in the response message of the second voice call request into a private network IP address; sending the private network IP address and the receiver IP address to the data transmission module so that the data transmission module sends the private network IP address and the receiver IP address to the main control module; the main control module converts the private network IP address into a first operator IP address, and sends the first operator IP address and the receiver IP address to the data transmission module, so that the data transmission module establishes a voice transmission channel based on the first operator IP address and the receiver IP address and a receiver corresponding to the receiver IP address, and transmits voice data through the voice transmission channel.
The voice data transmission apparatus in the embodiment shown in fig. 7 can be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, and are not described herein again.
Fig. 8 is a schematic structural diagram of a voice data transmission device according to an embodiment of the present invention. The voice data transmission device may specifically be the main control module and/or the data transmission module in the above embodiments. As shown in fig. 8, the voice data transmission device 80 according to the embodiment of the present invention may execute the processing procedure provided in the embodiment of the voice data transmission method, and includes: memory 81, processor 82, computer programs and communication interface 83; wherein the computer program is stored in the memory 81 and configured to be executed by the processor 82 for the processing procedure provided by the above voice data transmission method embodiment.
The voice data transmission device in the embodiment shown in fig. 8 may be used to implement the technical solution of the method embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the voice data transmission method described in the foregoing embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the spirit of the corresponding technical solutions of the embodiments of the present invention.

Claims (17)

1. A voice data transmission method is applied to a data transmission module, the data transmission module is in communication connection with a telephone terminal, and the method comprises the following steps:
packaging an IP-based voice call request sent by the phone terminal and a pre-allocated private network IP address into a first voice call request and sending the first voice call request to the main control module, so that the main control module converts the private network IP address into a first operator IP address, and packaging the IP-based voice call request and the first operator IP address into a second voice call request and returning the second voice call request to the data transmission module;
receiving the second voice call request and sending the second voice call request to a VOIP server so as to determine a receiver IP address corresponding to a called number included in the IP-based voice call request through the VOIP server;
establishing a voice transmission channel based on a pre-acquired first operator IP address and the IP address of the receiving party;
and transmitting the received voice data through the voice transmission channel.
2. The method of claim 1, wherein after receiving the second voice call request and sending it to a VOIP server, the method further comprises:
and receiving a first response message sent by the master control module, wherein the first response message is obtained by the master control module performing address conversion on a destination address in a second response message based on a second voice call request returned by the VOIP server.
3. The method according to claim 2, wherein the first response message is obtained by the host control module performing address translation on a destination address in the second response message based on the second voice call request returned by the VOIP server, and means that the first response message is obtained by the host control module translating a first operator address in the second response message into the private network IP address.
4. The method of claim 3, wherein transmitting the received voice data over the voice transmission channel comprises:
sending the received voice data and the pre-allocated private network IP address to the main control module so that the main control module converts the private network IP address into the first operator IP address and returns the voice data and the first operator IP address to the data transmission module;
taking the IP address of the first operator as a source address and the IP address of the receiver as a destination address;
and transmitting the source address, the destination address and the voice data through the voice transmission channel.
5. A voice data transmission method is applied to a main control module, the main control module is in communication connection with a data transmission module, and the method comprises the following steps:
acquiring an IP address of a first operator;
receiving a first voice call request sent by the data transmission module, wherein the source address of the first voice call request is a private network IP address pre-allocated to the data transmission module by the main control module, and the destination address of the first voice call request is a pre-acquired IP address of a VOIP server;
converting the private network IP address in the first voice call request into the first operator IP address, forming a second voice call request, returning the second voice call request to the data transmission module, so that the data transmission module sends the second voice call request to a VOIP server corresponding to the IP address of the VOIP server, and determining a receiver IP address corresponding to a called number included in the IP-based voice call request through the VOIP server; and establishing a voice transmission channel based on the pre-acquired IP address of the first operator and the IP address of the receiving party.
6. The method of claim 5, wherein after converting the private network IP address in the first voice call request into the first operator IP address and forming a second voice call request to return to the data transmission module, so that the data transmission module sends the second voice call request to the VOIP server corresponding to the IP address of the VOIP server, the method further comprises:
receiving a response message of a second voice call request returned by the VOIP server;
and performing address conversion on the destination address in the response message of the second voice call request, and sending the destination address to the data transmission module.
7. The method of claim 6, wherein a destination address of the response message of the second voice call request is the first operator IP address, and the response message of the second voice call request comprises a recipient IP address corresponding to the called number of the first voice call request;
the address conversion of the destination address in the response message of the second voice call request and the sending of the destination address to the data transmission module include:
converting the first operator IP address in the response message of the second voice call request into a private network IP address;
sending the private network IP address and the receiver IP address to the data transmission module so that the data transmission module sends the private network IP address and the receiver IP address to the main control module;
and converting the private network IP address into a first operator IP address, and sending the first operator IP address and the receiver IP address to the data transmission module, so that the data transmission module and a receiver corresponding to the receiver IP address establish a voice transmission channel, and voice data are transmitted through the voice transmission channel.
8. A voice data transmission apparatus, comprising:
the determining module is used for packaging an IP-based voice call request sent by a phone terminal and a pre-allocated private network IP address into a first voice call request and sending the first voice call request to the main control module so that the main control module converts the private network IP address into a first operator IP address, and packages the IP-based voice call request and the first operator IP address into a second voice call request to be returned to the data transmission module; receiving the second voice call request and sending the second voice call request to a VOIP server so as to determine a receiver IP address corresponding to a called number included in the IP-based voice call request through the VOIP server;
the establishing module is used for establishing a voice transmission channel based on a pre-acquired first operator IP address and the receiver IP address;
and the transmission module is used for transmitting the received voice data through the voice transmission channel.
9. The apparatus of claim 8, further comprising:
the first receiving module is configured to receive a first response message sent by the main control module, where the first response message is obtained by the main control module performing address translation on a destination address in a second response message based on the second voice call request returned by the VOIP server.
10. The apparatus according to claim 9, wherein the first response message is obtained by the host module performing address translation on a destination address in the second response message based on the second voice call request returned by the VOIP server, which means that the first response message is obtained by the host module translating a first operator address in the second response message into the private network IP address.
11. The apparatus according to claim 10, wherein the transmission module, when transmitting the received voice data through the voice transmission channel, is specifically configured to:
sending the received voice data and the pre-allocated private network IP address to the main control module so that the main control module converts the private network IP address into the first operator IP address and returns the voice data and the first operator IP address to the data transmission module;
taking the IP address of the first operator as a source address and the IP address of the receiver as a destination address;
and transmitting the source address, the destination address and the voice data through the voice transmission channel.
12. A voice data transmission apparatus, comprising:
the second acquisition module is used for acquiring the IP address of the first operator;
the second receiving module is used for receiving a first voice call request sent by the data transmission module, wherein the source address of the first voice call request is a private network IP address pre-allocated to the data transmission module by the main control module, and the destination address of the first voice call request is a pre-acquired IP address of the VOIP server;
the conversion module is used for converting the private network IP address in the first voice call request into the first operator IP address and forming a second voice call request to be returned to the data transmission module, so that the data transmission module sends the second voice call request to a VOIP server corresponding to the IP address of the VOIP server, and the IP server determines the IP address of a receiver corresponding to the called number included in the IP-based voice call request; and establishing a voice transmission channel based on the pre-acquired IP address of the first operator and the IP address of the receiving party.
13. The apparatus of claim 12,
the second receiving module is further configured to receive a response message of a second voice call request returned by the VOIP server;
the conversion module is further configured to perform address conversion on the destination address in the response message of the second voice call request, and send the destination address to the data transmission module.
14. The apparatus according to claim 13, wherein the destination address of the response message of the second voice call request is the first operator IP address, and the response message of the second voice call request includes a recipient IP address corresponding to the called number of the first voice call request;
the conversion module is specifically configured to, when performing address conversion on a destination address in a response message of the second voice call request and sending the destination address to the data transmission module:
converting the first operator IP address in the response message of the second voice call request into a private network IP address;
sending the private network IP address and the receiver IP address to the data transmission module so that the data transmission module sends the private network IP address and the receiver IP address to the main control module;
the main control module converts the private network IP address into a first operator IP address, and sends the first operator IP address and the receiver IP address to the data transmission module, so that the data transmission module establishes a voice transmission channel based on the first operator IP address and the receiver IP address and a receiver corresponding to the receiver IP address, and transmits voice data through the voice transmission channel.
15. A voice data transmission apparatus, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 1-4.
16. A voice data transmission apparatus, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 5-7.
17. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-4 and 5-7.
CN201911034711.XA 2019-10-29 2019-10-29 Voice data transmission method, device, equipment and computer readable storage medium Active CN110730192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911034711.XA CN110730192B (en) 2019-10-29 2019-10-29 Voice data transmission method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911034711.XA CN110730192B (en) 2019-10-29 2019-10-29 Voice data transmission method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110730192A CN110730192A (en) 2020-01-24
CN110730192B true CN110730192B (en) 2022-07-05

Family

ID=69222236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911034711.XA Active CN110730192B (en) 2019-10-29 2019-10-29 Voice data transmission method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110730192B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114598679B (en) * 2022-02-17 2024-02-06 宏图智能物流股份有限公司 Single-bin in-platform voice transmission method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087198A (en) * 2007-06-18 2007-12-12 中兴通讯股份有限公司 A router for transferring multiple data and voice service
CN101742008A (en) * 2008-11-11 2010-06-16 华为技术有限公司 Media stream proxy method, voice exchanger and communication system
CN103024223A (en) * 2012-11-05 2013-04-03 太仓市同维电子有限公司 Method for realizing communication based on VOIP (Voice Over Internet Protocol)
CN103856465A (en) * 2012-12-05 2014-06-11 中国电信股份有限公司 Video telephone service establishing and processing method and system
CN106603879A (en) * 2015-10-19 2017-04-26 天行动力科技有限公司 Switching device for connecting mobile phone to PSTN
CN108243409A (en) * 2016-12-26 2018-07-03 大唐移动通信设备有限公司 A kind of several transmission methods and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI259703B (en) * 2001-06-12 2006-08-01 Vodtel Comm Inc Non-server type voice packet communication equipment and communication method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087198A (en) * 2007-06-18 2007-12-12 中兴通讯股份有限公司 A router for transferring multiple data and voice service
CN101742008A (en) * 2008-11-11 2010-06-16 华为技术有限公司 Media stream proxy method, voice exchanger and communication system
CN103024223A (en) * 2012-11-05 2013-04-03 太仓市同维电子有限公司 Method for realizing communication based on VOIP (Voice Over Internet Protocol)
CN103856465A (en) * 2012-12-05 2014-06-11 中国电信股份有限公司 Video telephone service establishing and processing method and system
CN106603879A (en) * 2015-10-19 2017-04-26 天行动力科技有限公司 Switching device for connecting mobile phone to PSTN
CN108243409A (en) * 2016-12-26 2018-07-03 大唐移动通信设备有限公司 A kind of several transmission methods and equipment

Also Published As

Publication number Publication date
CN110730192A (en) 2020-01-24

Similar Documents

Publication Publication Date Title
CN110324284B (en) Method and communication device for accessing IMS
KR100886548B1 (en) Method and system of forwarding capability information of user equipment in internet protocol multimedia subsystem network
US7593390B2 (en) Distributed voice network
CN108924872B (en) Data transmission method, terminal and core network equipment
US20040029615A1 (en) Transmission of voice over packet-switched systems
CN105516635A (en) Video call system, device and method
US8126493B2 (en) Method and PoC gateway for implementing PoC service
RU2332804C2 (en) Processing initial multimedia data ii
CN103647764A (en) A method for implementing LTE system voice business and a single-chip terminal
CN103703798A (en) Advertisement insertion method, device, and system
CN110730192B (en) Voice data transmission method, device, equipment and computer readable storage medium
US11070665B2 (en) Voice over internet protocol processing method and related network device
CN104105222A (en) Establishing communications
CN104159165A (en) Method capable of transmitting RTP (real-time transport protocol) media stream through TCP (transmission control protocol) and based on SIP (session initiation protocol)
CN111278082A (en) Terminal communication device, method, system, equipment and storage medium
TWI542186B (en) Portable voice routing apparatus, a system, and a method for processing telephony voice communication
CN113726750B (en) Voice real-time translation method, device and storage medium
CN102282886B (en) Method, mobile terminal, device and system for implementing voice services
US20110122868A1 (en) Communication method and gateway device based on sip phone
CN103581129A (en) Conversation processing method and device
KR100923390B1 (en) Method for interworking between voip network and wcdma network
GB2416459A (en) Communication between two different networks
KR100673175B1 (en) System and method for interworking videotelephony in different networks
TWI429271B (en) A communication terminal reelizing communicating between network phones with different protocols and the method of commucating different network phones using the seme
CN103428781A (en) IP voice call switching method, system and user equipment

Legal Events

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