CN112468468A - Voice transmission method and device based on IP, electronic equipment and storage medium - Google Patents

Voice transmission method and device based on IP, electronic equipment and storage medium Download PDF

Info

Publication number
CN112468468A
CN112468468A CN202011282312.8A CN202011282312A CN112468468A CN 112468468 A CN112468468 A CN 112468468A CN 202011282312 A CN202011282312 A CN 202011282312A CN 112468468 A CN112468468 A CN 112468468A
Authority
CN
China
Prior art keywords
external terminal
called
terminal
card
internal terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011282312.8A
Other languages
Chinese (zh)
Other versions
CN112468468B (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.)
Xiamen Yealink Network Technology Co Ltd
Original Assignee
Xiamen Yealink Network Technology 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 Xiamen Yealink Network Technology Co Ltd filed Critical Xiamen Yealink Network Technology Co Ltd
Priority to CN202011282312.8A priority Critical patent/CN112468468B/en
Publication of CN112468468A publication Critical patent/CN112468468A/en
Application granted granted Critical
Publication of CN112468468B publication Critical patent/CN112468468B/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/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/006Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a voice transmission method and device based on an IP, electronic equipment and a storage medium, and relates to the technical field of communication. The method can be applied to an SIP server, the SIP server comprises a wired network card and a user identification card, and the method comprises the following steps: receiving a first session initiation signaling sent by at least one internal terminal through a wired network card; according to the first session initiating signaling, sending a second session initiating signaling to an external terminal to be called through a user identification card; receiving a call establishment request sent by an external terminal to be called through a user identification card; according to the conversation establishing request, data transmission is established between the internal terminal initiating the conversation and the external terminal to be called, so that the communication between the internal terminal and the external terminal can be realized only by embedding the user identification card in the SIP server without purchasing an additional PSTN gateway, and the communication cost between enterprises is effectively reduced.

Description

Voice transmission method and device based on IP, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a voice transmission method and apparatus based on IP, an electronic device, and a storage medium.
Background
Voice over Internet Protocol (VoIP) is a Voice call technology, and a Voice call and a multimedia conference are achieved through Internet Protocol (IP), that is, communication is performed through the Internet, and the VoIP has the characteristics of strong expandability, flexible use, low charging cost, and the like, and is widely applied to various scenes, such as business of transmitting Voice, fax, video, data, and the like in an enterprise.
Conventionally, for an enterprise, VOIP may be deployed on an enterprise network, and a Session Initiation Protocol (SIP) server implements communication between enterprises and between the inside and the outside of the enterprise through an enterprise VOIP phone.
However, when the communication between the inside and outside of the enterprise is realized through the existing enterprise VOIP phone, for example, when the inside of the enterprise calls an external mobile terminal, a Public Switched Telephone Network (PSTN) gateway needs to be purchased, and the PSTN Network is connected through the PSTN gateway to realize the intercommunication between the internal Network of the enterprise and the external phone, so the existing implementation method has the problem of high cost.
Disclosure of Invention
An objective of the present application is to provide a voice over IP transmission method, apparatus, electronic device and storage medium, which can reduce communication cost.
In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present invention provides an IP-based voice transmission method, which is applied to a session initiation protocol SIP server, where the SIP server includes a wired network card and a user identification card, and the SIP server is configured to communicate with an internal terminal through the wired network card and communicate with an external terminal through the user identification card, and the method includes:
receiving a first session initiating signaling sent by at least one internal terminal through the wired network card, wherein the first session initiating signaling comprises an identifier of the internal terminal and an identifier of the external terminal to be called;
according to the first session initiation signaling, sending a second session initiation signaling to the external terminal to be called through the user identification card, wherein the second session initiation signaling comprises: the identification of the subscriber identity module card and the identification of the external terminal to be called;
receiving a call establishment request sent by the external terminal to be called through the subscriber identity module card;
and establishing data transmission between the internal terminal initiating the session and the external terminal to be called according to the call establishment request.
In an optional implementation manner, the sending, according to the first session initiation signaling, a second session initiation signaling to the external terminal to be called through the subscriber identity card includes:
according to the identification of the user identification card, the identification of the internal terminal in the first session initiating signaling is converted into the identification of the user identification card, and the second session initiating signaling is obtained;
and sending the second session initiation signaling to the external terminal to be called through the user identification card.
In an optional embodiment, the establishing, according to the call establishment request, data transmission between the internal terminal initiating the session and the external terminal to be called includes:
establishing a call connection between the internal terminal and the external terminal according to the call establishment request;
and transmitting the data stream of the external terminal to the internal terminal or transmitting the data stream of the internal terminal to the external terminal according to the call connection between the internal terminal and the external terminal.
In an alternative embodiment, the method further comprises:
receiving a first calling instruction sent by the external terminal through the subscriber identity module card, wherein the first calling instruction comprises an identifier of the external terminal and an identifier of the subscriber identity module card;
establishing a first call connection between the subscriber identity module card and the external terminal according to the first call instruction;
and establishing data transmission between the internal terminal and the external terminal according to the first call connection.
In an optional implementation manner, the establishing of data transmission between the internal terminal and the external terminal according to the first call connection includes:
sending a prompt instruction to the external terminal through the user identification card according to the first call connection, wherein the prompt instruction is used for indicating the external terminal to input an identifier of the internal terminal to be called;
receiving the identifier of the internal terminal to be called, which is sent by the external terminal, through the subscriber identity module card;
and transmitting the data stream of the external terminal to the internal terminal to be called according to the identifier of the internal terminal to be called, or transmitting the data stream of the internal terminal to be called to the external terminal.
In an optional embodiment, the transmitting the data stream of the external terminal to the internal terminal to be called or transmitting the data stream of the internal terminal to be called to the external terminal according to the identifier of the internal terminal to be called includes:
according to the identifier of the internal terminal to be called, sending a second calling instruction to the internal terminal to be called through the subscriber identity module card so as to establish a second communication connection between the internal terminal and the external terminal, wherein the second calling instruction comprises the identifier of the internal terminal to be called and the identifier of the external terminal;
and transmitting the data stream of the external terminal to the internal terminal to be called according to the second communication connection, or transmitting the data stream of the internal terminal to be called to the external terminal.
In a second aspect, an embodiment of the present invention provides an IP-based voice transmission apparatus, which is applied to a session initiation protocol SIP server, where the SIP server includes a wired network card and a user identification card, and the SIP server is configured to communicate with an internal terminal through the wired network card and communicate with an external terminal through the user identification card, and the apparatus includes: the device comprises a first receiving module, a sending module, a second receiving module and an establishing module;
the first receiving module is configured to receive, through the wired network card, a first session initiation signaling sent by at least one internal terminal, where the first session initiation signaling includes an identifier of the internal terminal and an identifier of the external terminal to be called;
the sending module is configured to send a second session initiation signaling to the external terminal to be called through the subscriber identity card according to the first session initiation signaling, where the second session initiation signaling includes: the identification of the subscriber identity module card and the identification of the external terminal to be called;
the second receiving module is used for receiving a call establishment request sent by the external terminal to be called through the subscriber identity module;
and the establishing module is used for establishing data transmission between the internal terminal initiating the conversation and the external terminal to be called according to the conversation establishing request.
In an optional embodiment, the sending module is specifically configured to convert, according to the identifier of the subscriber identity card, the identifier of the internal terminal in the first session initiation signaling into the identifier of the subscriber identity card, and obtain the second session initiation signaling;
and sending the second session initiation signaling to the external terminal to be called through the user identification card.
In an optional implementation manner, the establishing module is specifically configured to establish a call connection between the internal terminal and the external terminal according to the call establishment request;
and transmitting the data stream of the external terminal to the internal terminal or transmitting the data stream of the internal terminal to the external terminal according to the call connection between the internal terminal and the external terminal.
In an optional embodiment, the second receiving module is further configured to receive, by the subscriber identity card, a first call instruction sent by the external terminal, where the first call instruction includes an identifier of the external terminal and an identifier of the subscriber identity card;
the establishing module is further used for establishing a first call connection between the subscriber identity module and the external terminal according to the first call instruction; and establishing data transmission between the internal terminal and the external terminal according to the first call connection.
In an optional implementation manner, the establishing module is specifically configured to send a prompt instruction to the external terminal through the subscriber identity module according to the first call connection, where the prompt instruction is used to instruct the external terminal to input an identifier of the internal terminal to be called; receiving the identifier of the internal terminal to be called, which is sent by the external terminal, through the subscriber identity module card; and transmitting the data stream of the external terminal to the internal terminal to be called according to the identifier of the internal terminal to be called, or transmitting the data stream of the internal terminal to be called to the external terminal.
In an optional implementation manner, the establishing module is specifically configured to send a second call instruction to the internal terminal to be called through the subscriber identity module according to an identifier of the internal terminal to be called, so as to establish a second communication connection between the internal terminal and the external terminal, where the second call instruction includes the identifier of the internal terminal to be called and the identifier of the external terminal; and transmitting the data stream of the external terminal to the internal terminal to be called according to the second communication connection, or transmitting the data stream of the internal terminal to be called to the external terminal.
In a third aspect, an embodiment of the present application provides an electronic device, including: the voice over IP communication system comprises a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, when the electronic device runs, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to execute the steps of the voice over IP transmission method of the first aspect.
In a fourth aspect, the present application provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the voice over IP transmission method according to the first aspect are executed.
The beneficial effect of this application is:
in the voice transmission method, apparatus, electronic device and storage medium based on IP provided in the embodiments of the present application, the method may be applied to a session initiation protocol SIP server, the SIP server includes a wired network card and a user identification card, the SIP server is used for communicating with an internal terminal through the wired network card and communicating with an external terminal through the user identification card, the method includes: receiving a first session initiating signaling sent by at least one internal terminal through a wired network card, wherein the first session initiating signaling comprises an identifier of the internal terminal and an identifier of an external terminal to be called; according to the first session initiating signaling, sending a second session initiating signaling to an external terminal to be called through a user identification card, wherein the second session initiating signaling comprises the following steps: the identification of the user identification card and the identification of the external terminal to be called; receiving a call establishment request sent by an external terminal to be called through a user identification card; according to the call establishment request, data transmission is established between the internal terminal initiating the session and the external terminal to be called.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is an architecture diagram of a voice over IP transmission system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a voice over IP transmission method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another voice over IP transmission method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another voice over IP transmission method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another voice over IP transmission method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another voice over IP transmission method according to an embodiment of the present application;
fig. 7 is a schematic flowchart of another voice over IP transmission method according to an embodiment of the present application;
fig. 8 is a functional block diagram of an IP-based voice transmission apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Before introducing this application, relevant terms in this application will first be explained for a better understanding of this application.
Voice over IP (VoIP): a voice call technology achieves a voice call and a multimedia conference through an Internet Protocol (IP), that is, communication is performed through the Internet. The basic principle of VoIP is to compress the voice data code by the voice compression algorithm, then pack the voice data according to TCP/IP standard, send the data packet to the receiving place through IP network, then concatenate the voice data packets, and recover the original voice signal after decompression processing, thereby achieving the purpose of transmitting voice through Internet.
Public Switched Telephone Network (PSTN): a commonly used legacy telephone system, i.e. a telephone network commonly used in everyday life, the public switched telephone network is a circuit switched service based on standard telephone lines, which is used as a connection method for connecting remote endpoints, typically using a connection between a remote endpoint and a local LAN and a remote user dial-up.
A gateway: also known as internetwork connectors, protocol converters, are "gateways" that connect one network to another, i.e., network gateways. The default gateway realizes network interconnection above a network layer, is the most complex network interconnection equipment and is only used for interconnection of two networks with different high-level protocols. The structure of the gateway is similar to that of the router, except that the gateway can be used for interconnection of both wide area networks and local area networks.
eSIM card: an Embedded-SIM, which may be a traditional SIM card directly Embedded on a device chip, rather than being added to the device as a separate removable component, is also called a Subscriber Identity Module (SIM), and the user does not need to insert a physical SIM card.
LTE (Long Term Evolution ): is a wireless communication technology, and can be understood as an evolution technology from 3G to 4G. In a broad sense, 4G may also be referred to as LTE. The LTE messages are transmitted in the form of IP (packet) messages.
Generally, enterprise VOIP phones are used for internal communication, but there are also scenarios of external communication, for example, an enterprise VOIP phone calls an external mobile terminal (e.g., an external smart phone); cross-domain VOIP dialing (e.g., private branch office telephone calls to each other at different locations). For the first application scenario, currently, most SIP servers are connected to a PSTN network through a PSTN Gateway to implement the intercommunication between an enterprise intranet and an external mobile terminal (e.g., an enterprise internal landline dials an external phone number, or an external phone calls an enterprise internal landline number through an external-to-internal-line mode); for the second application scenario, cross-domain VOIP dialing, such as inter-dialing numbers between one branch company and another branch company, can be implemented through interconnection of a router and the Internet.
It can be seen that for the first application scenario, the PSTN Gateway is purchased to connect with the PSTN network to implement the inter-working between the intranet and the external mobile terminal, the communication cost is relatively high, and there may be a regional limitation (because there is an access point of the PSTN). In view of this, the embodiments of the present application provide a voice transmission method based on IP, which can reduce the communication cost between an internal terminal and an external terminal and has strong applicability.
Fig. 1 is an architecture diagram of an IP-based voice transmission system provided in an embodiment of the present application, and as shown in fig. 1, the voice transmission system may include a session initiation protocol SIP server 110, at least one internal terminal 120, and at least one external terminal 130, the SIP server 110 is a device for implementing signaling soft switching, which may also be referred to as an SIP-PBX, the SIP server 110 may include a wired network card (not shown in the figure) and a subscriber identity card 140, wherein, based on an internal local area network, the SIP server 110 may communicate with the at least one internal terminal 120 through the wired network card, in some embodiments, the internal terminal 120 may be a terminal that communicates with the SIP server 110 based on VoIP, for example, the internal terminal 120 may be a VoIP phone, a smart phone, a personal computer, a tablet computer, and the like, and is not limited herein; the SIP server 110 may communicate with at least one external terminal 130 through the subscriber identity card 140 based on the mobile communication network 150, and in some embodiments, the external terminal 130 may be a terminal that communicates with the SIP server based on the mobile communication network 150, for example, the external terminal may be a smart phone, a tablet computer, a wearable device, and the like, which is not limited herein. It is understood that at least one internal terminal can communicate with at least one external terminal through the SIP server based on the voice transmission system.
Fig. 2 is a schematic flowchart of a voice transmission method based on IP according to an embodiment of the present disclosure, where the method may be applied to the SIP server, where the SIP server may include a wired network card and a subscriber identity module card, and the SIP server is configured to communicate with an internal terminal through the wired network card and communicate with an external terminal through the subscriber identity module card, where the subscriber identity module card may be an eSIM card, and the eSIM card may communicate with the external terminal based on a mobile communication network (e.g., an LTE network), and for a process of the internal terminal communicating with the external terminal through the SIP server, reference may be made to the following method. As shown in fig. 2, the method may include:
s101, receiving a first session initiating signaling sent by at least one internal terminal through a wired network card, wherein the first session initiating signaling comprises an identifier of the internal terminal and an identifier of an external terminal to be called.
In the communication process, at least one internal terminal may send a first session instruction to the SIP server, where the first session initiation signaling may include an identifier of the internal terminal and an identifier of an external terminal to be called, and the SIP server may receive the first session initiation signaling sent by the at least one internal terminal through the wired network card, so that the SIP server may request to establish a session connection with the external terminal to be called based on the first session initiation signaling.
The internal terminal is a VoIP phone, and the external terminal to be called is a smart phone, for example, optionally, the identifier of the internal terminal may be a phone number of the VoIP phone, and the identifier of the external terminal to be called may be a phone number of the smart phone, which is not limited herein.
S102, according to the first session initiating signaling, sending a second session initiating signaling to an external terminal to be called through a user identification card, wherein the second session initiating signaling comprises: the identity of the subscriber identity card and the identity of the external terminal to be called.
After receiving the first session initiation instruction, the SIP server may send a second session initiation signaling to the external terminal to be called through the subscriber identity card, where the second session initiation signaling may include an identifier of the subscriber identity card and an identifier of the external terminal to be called, so that the external terminal may know that a communication party is the subscriber identity card through the identifier of the subscriber identity card.
S103, receiving a call establishment request sent by an external terminal to be called through the user identification card.
For the external terminal to be called, when the external terminal receives a second session initiation signaling sent by the subscriber identity module, if a call establishment condition (for example, a network condition allows, etc.) is met, the external terminal to be called may send a call establishment request to the SIP server; for the SIP server, the SIP server may receive a call setup request sent by an external terminal to be called through the subscriber identity card.
And S104, establishing data transmission between the internal terminal initiating the session and the external terminal to be called according to the call establishment request.
It can be understood that, according to the call establishment request, after the user identification card establishes a call with the external terminal, the SIP server may notify the internal terminal of call establishment through the wired network card, so as to implement data transmission between the internal terminal initiating the session and the external terminal to be called.
Based on the content of the embodiment of the application, the communication between the VOIP internal terminal and the external terminal can be realized through the SIP server only by embedding the user identification card in the SIP server, so that an additional PSTN gateway is not required to be purchased, and the communication cost between enterprises can be effectively reduced.
To sum up, the voice transmission method based on IP provided by the embodiment of the present application is applied to a session initiation protocol SIP server, the SIP server includes a wired network card and a user identification card, the SIP server is used for communicating with an internal terminal through the wired network card and communicating with an external terminal through the user identification card, the method includes: receiving a first session initiating signaling sent by at least one internal terminal through a wired network card, wherein the first session initiating signaling comprises an identifier of the internal terminal and an identifier of an external terminal to be called; according to the first session initiating signaling, sending a second session initiating signaling to an external terminal to be called through a user identification card, wherein the second session initiating signaling comprises the following steps: the identification of the user identification card and the identification of the external terminal to be called; receiving a call establishment request sent by an external terminal to be called through a user identification card; according to the call establishment request, data transmission is established between the internal terminal initiating the session and the external terminal to be called.
Fig. 3 is a flowchart illustrating another voice over IP transmission method according to an embodiment of the present application. Optionally, as shown in fig. 3, the sending, according to the first session initiation signaling, a second session initiation signaling to the external terminal to be called through the subscriber identity card includes:
s201, according to the identification of the user identification card, the identification of the internal terminal in the first session initiating signaling is converted into the identification of the user identification card, and a second session initiating signaling is obtained.
S202, sending a second session initiation signaling to the external terminal to be called through the user identification card.
For the SIP server, after receiving the first session initiation signaling, the SIP server may convert the identifier of the internal terminal in the first session initiation signaling into the identifier of the subscriber identity card to generate a second session initiation signaling, and the subsequent SIP server may send the second session initiation signaling to the external terminal to be called through the subscriber identity card. It is to be understood that the external terminal receives the second session initiation signaling, from which the counterpart of the communication request can be known.
Fig. 4 is a flowchart illustrating another voice over IP transmission method according to an embodiment of the present application. Optionally, as shown in fig. 4, the establishing data transmission between the internal terminal initiating the session and the external terminal waiting to be called according to the call establishment request includes:
s301, according to the call establishment request, establishing call connection between the internal terminal and the external terminal.
S302, according to the call connection between the internal terminal and the external terminal, the data stream of the external terminal is transmitted to the internal terminal, or the data stream of the internal terminal is transmitted to the external terminal.
When the SIP server receives a call establishment request sent by an external terminal to be called through the user identification card, the SIP server can establish call connection between the external terminal and the user identification card, call connection between the user identification card and the wired network card and call connection between the wired network card and the internal terminal in sequence according to the call establishment request, so that the call connection between the internal terminal and the external terminal is established. Based on the call connection between the internal terminal and the external terminal, the SIP server may send the data stream transmitted by the external terminal to the internal terminal, and may also send the data stream transmitted by the internal terminal to the external terminal, thereby implementing bidirectional transmission of the data stream between the internal terminal and the external terminal.
Fig. 5 is a flowchart illustrating another voice over IP transmission method according to an embodiment of the present application. Optionally, based on the SIP server, the external terminal may also actively call the internal terminal to implement a communication connection between the external terminal and the internal terminal, as shown in fig. 5, where the method further includes:
s401, receiving a first calling instruction sent by an external terminal through a user identification card, wherein the first calling instruction comprises an identifier of the external terminal and an identifier of the user identification card.
S402, establishing a first call connection between the user identification card and the external terminal according to the first call instruction.
S403, establishing data transmission between the internal terminal and the external terminal according to the first call connection.
When the external terminal calls the internal terminal, a first call instruction may be sent to the SIP server, where the first call instruction may include an identifier of the external terminal and an identifier of the subscriber identity module; for the SIP server, the SIP server may receive a first call instruction sent by the external terminal through the subscriber identity card, and may establish a first call connection between the subscriber identity card and the external terminal according to the first call instruction, and further may establish data transmission between the internal terminal and the external terminal according to the first call connection.
Fig. 6 is a flowchart illustrating another voice over IP transmission method according to an embodiment of the present application. Alternatively, as shown in fig. 6, the establishing of data transmission between the internal terminal and the external terminal according to the first call connection may include the following steps:
s501, according to the first call connection, a prompt instruction is sent to the external terminal through the user identification card, and the prompt instruction is used for indicating the external terminal to input the identifier of the internal terminal to be called.
S502, receiving the identifier of the internal terminal to be called, which is sent by the external terminal, through the user identification card.
S503, according to the identifier of the internal terminal to be called, transmitting the data stream of the external terminal to the internal terminal to be called, or transmitting the data stream of the internal terminal to be called to the external terminal.
In the interaction process, the SIP server can send a prompt instruction to the external terminal through the user identification card according to the first call connection between the user identification card and the external terminal, and the external terminal is prompted to input the identifier of the internal terminal to be called through the prompt instruction. For example, the external terminal may be prompted by voice to input an identifier of the internal terminal to be called, but the invention is not limited thereto.
The external terminal inputs the identifier of the internal terminal to be called according to the prompt instruction and then sends the identifier to the SIP server, the SIP server can receive the identifier of the internal terminal to be called sent by the external terminal through the user identification card, and the data stream of the external terminal can be transmitted to the internal terminal to be called according to the identifier of the internal terminal to be called, or the data stream of the internal terminal to be called is transmitted to the external terminal, so that the data communication between the external terminal and the internal terminal to be called is realized.
Fig. 7 is a flowchart illustrating another voice over IP transmission method according to an embodiment of the present application. Optionally, as shown in fig. 7, the transmitting the data stream of the external terminal to the internal terminal to be called according to the identifier of the internal terminal to be called, or transmitting the data stream of the internal terminal to be called to the external terminal includes:
s601, according to the identification of the internal terminal to be called, a second calling instruction is sent to the internal terminal to be called through the user identification card, so that second communication connection between the internal terminal and the external terminal is established.
The second calling instruction comprises an identifier of an internal terminal to be called and an identifier of an external terminal.
And S602, transmitting the data stream of the external terminal to the internal terminal to be called according to the second communication connection, or transmitting the data stream of the internal terminal to be called to the external terminal.
When the external terminal calls the internal terminal, for the SIP server, the SIP server can send a second call instruction to the internal terminal to be called through the subscriber identity module card, wherein the second call instruction can comprise an identifier of the internal terminal to be called and an identifier of the external terminal, and a second call connection between the internal terminal and the external terminal can be established through the second call instruction.
In some embodiments, the SIP server may embed a wired network card and a 4G eSIM card, and implement an LTE call protocol stack, and after the SIP server is powered on, the SIP server may be automatically connected to an LTE network, where the internal terminal is an internal landline, the external terminal is an external mobile phone, an identifier of the internal terminal is an internal landline number, and an identifier of the external terminal is an external mobile phone number. It can be understood that, when the SIP server is embedded with the 4G eSIM card, in some embodiments, after the SIP server is powered on, the SIP server can automatically register to the LTE network, and after registering, the SIP server can perform data communication with an external terminal.
When the internal fixed telephone Alice calls the external mobile phone number 1595933XXXX, the SIP server may receive a first session initiation signaling sent by the internal fixed telephone through the wired network card, where the first session initiation signaling may include the internal fixed telephone number and an external mobile phone number to be called; after receiving the first session initiation signaling, the SIP server may determine that the first session initiation signaling is an external call according to the call number 1595933XXXX, and according to the eSIM card number, the SIP server may convert the internal landline number in the first session initiation signaling into the eSIM card number (for example, 1595922XXXX), obtain a second session initiation signaling, deliver the second session initiation signaling to the LTE protocol stack, and send the second session initiation signaling to the external handset to be called through the eSIM card (because LTE supports packet messages, the second session initiation signaling may be directly sent); when receiving the second session initiation signaling, the external mobile phone can send a call establishment request to the SIP server, and the SIP server can receive the call establishment request sent by the external mobile phone to be called through the eSIM card and establish a call connection between the internal fixed telephone and the external mobile phone; after the call is established, the SIP server can be used as a virtual relay node to forward Real-time Transport Protocol (RTP) streams between the internal fixed telephone and the external mobile phone to the opposite terminal, that is, the SIP PBX server can transmit data streams of the external mobile phone to the internal fixed telephone, or transmit data streams of the internal fixed telephone to the external mobile phone.
And when an external handset (e.g., external handset number 1595933XXXX) wants to call an internal landline Alice (e.g., internal landline number 2230), the external handset can call the internal landline by calling an eSIM card number (e.g., 1595922XXXX) and dialing the internal landline number. In some embodiments, when the external mobile phone calls the eSIM card number, the SIP server may receive, through the eSIM card, a first call instruction sent by the external mobile phone, where the first call instruction may include the external mobile phone number and the eSIM card number; the SIP server can establish a first call connection between the eSIM card and an external mobile phone according to the first call instruction, and according to the first call connection, the SIP server can send a prompt instruction (for example, a voice prompt, etc.) to the external mobile phone through the eSIM card, the prompt instruction is used for instructing the external mobile phone to input an internal landline number to be called, optionally, a user can input the internal landline number to be called 2230 through a Dual Tone Multi Frequency (DTMF) of the external mobile phone, the internal landline number to be called 2230 sent by the external mobile phone is received through the eSIM card, according to the internal landline number to be called 2230, the SIP server judges that the external mobile phone wants to communicate with an internal landline Alice, the SIP server can convert the received LTE incoming call into a second call instruction, and the second call instruction can include the internal landline number to be called and the external mobile phone number, the conversion between the SIP signaling and the LTE signaling can be realized on the same hardware level, the conversion efficiency is improved, and then the SIP server can send a second call instruction to the internal fixed telephone number to be called through the eSIM card, and a second communication connection between the internal fixed telephone to be called and the external mobile phone is established; after the second communication is established, the SIP server can be used as a virtual relay node to respectively forward RTP streams between the internal fixed telephone and the external mobile phone to the opposite terminal, that is, the SIP server can transmit a data stream of the external mobile phone to the internal fixed telephone, or transmit a data stream of the internal fixed telephone to the external mobile phone.
Based on the embodiment, the method and the device have the advantages that the SIP server and the mobile network can be interconnected by embedding the eSIM card in the SIP server (LTE access is used for replacing PSTN gateway access), so that a user can conveniently customize a call/flow package of the eSIM card according to actual requirements, and communication can be realized, and the cost is saved; in addition, by applying the embodiment of the application, the mobile communication network can be accessed to a place with an LTE base station, so that the regional limitation of the interconnection of the SIP server and the PSTN network can be removed (for example, some remote places can have mobile signals but can not access to the PSTN), and the applicability is improved; compared with the traditional telephone switching network, the method and the device for transmitting the voice over IP can make full use of the advantages of the LTE network, enable some special services such as high definition voice communication (VOLTE) to be supported, enable the high definition voice communication between the internal terminal and the external terminal to be achieved, and improve the applicability and user experience of the voice transmission method based on the IP.
Fig. 8 is a functional module schematic diagram of an IP-based voice transmission apparatus according to an embodiment of the present application, where the apparatus may be applied to a session initiation protocol SIP server, the SIP server includes a wired network card and a user identification card, and the SIP server is configured to communicate with an internal terminal through the wired network card and communicate with an external terminal through the user identification card. As shown in fig. 8, the voice transmission apparatus 200 includes: a first receiving module 210, a sending module 220, a second receiving module 230, and a establishing module 240.
The first receiving module 210 is configured to receive, through the wired network card, a first session initiation signaling sent by at least one internal terminal, where the first session initiation signaling includes an identifier of the internal terminal and an identifier of an external terminal to be called;
a sending module 220, configured to send a second session initiation signaling to the external terminal to be called through the subscriber identity card according to the first session initiation signaling, where the second session initiation signaling includes: the identification of the user identification card and the identification of the external terminal to be called;
a second receiving module 230, configured to receive, through the subscriber identity module, a call establishment request sent by an external terminal to be called;
the establishing module 240 is configured to establish data transmission between the internal terminal initiating the session and the external terminal to be called according to the call establishing request.
In an optional embodiment, the sending module 220 is specifically configured to convert an identifier of an internal terminal in the first session initiation signaling into an identifier of a subscriber identity card according to the identifier of the subscriber identity card, and obtain the second session initiation signaling; and sending a second session initiation signaling to the external terminal to be called through the user identification card.
In an optional embodiment, the establishing module 240 is specifically configured to establish a call connection between the internal terminal and the external terminal according to the call establishment request; and transmitting the data stream of the external terminal to the internal terminal or transmitting the data stream of the internal terminal to the external terminal according to the call connection between the internal terminal and the external terminal.
In an optional embodiment, the second receiving module 230 is further configured to receive, by using the subscriber identity card, a first call instruction sent by the external terminal, where the first call instruction includes an identifier of the external terminal and an identifier of the subscriber identity card;
the establishing module 240 is further configured to establish a first call connection between the subscriber identity card and the external terminal according to the first call instruction; and establishing data transmission between the internal terminal and the external terminal according to the first call connection.
In an optional embodiment, the establishing module 240 is specifically configured to send a prompt instruction to the external terminal through the subscriber identity module according to the first call connection, where the prompt instruction is used to instruct the external terminal to input an identifier of the internal terminal to be called; receiving an identifier of an internal terminal to be called, which is sent by an external terminal, through a user identification card; and transmitting the data stream of the external terminal to the internal terminal to be called according to the identifier of the internal terminal to be called, or transmitting the data stream of the internal terminal to be called to the external terminal.
In an optional embodiment, the establishing module 240 is specifically configured to send a second call instruction to the internal terminal to be called through the subscriber identity card according to the identifier of the internal terminal to be called, so as to establish a second communication connection between the internal terminal and the external terminal, where the second call instruction includes the identifier of the internal terminal to be called and the identifier of the external terminal; and transmitting the data stream of the external terminal to the internal terminal to be called according to the second communication connection, or transmitting the data stream of the internal terminal to be called to the external terminal.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 9, the electronic device may include: a processor 310, a storage medium 320 and a bus 330, wherein the storage medium 320 stores machine-readable instructions executable by the processor 310, and when the electronic device is operated, the processor 310 communicates with the storage medium 320 via the bus 330, and the processor 310 executes the machine-readable instructions to perform the steps of the above-mentioned method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program performs the steps of the above method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
In the several embodiments provided in the present application, 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, a division of a unit is merely a logical division, and an actual implementation may have another division, 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.
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 application 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 application. 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 or an optical disk, and other various media capable of storing program codes.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. An IP-based voice transmission method, applied to a Session Initiation Protocol (SIP) server, wherein the SIP server includes a wired network card and a subscriber identity card, and the SIP server is configured to communicate with an internal terminal through the wired network card and communicate with an external terminal through the subscriber identity card, the method comprising:
receiving a first session initiating signaling sent by at least one internal terminal through the wired network card, wherein the first session initiating signaling comprises an identifier of the internal terminal and an identifier of the external terminal to be called;
according to the first session initiation signaling, sending a second session initiation signaling to the external terminal to be called through the user identification card, wherein the second session initiation signaling comprises: the identification of the subscriber identity module card and the identification of the external terminal to be called;
receiving a call establishment request sent by the external terminal to be called through the subscriber identity module card;
and establishing data transmission between the internal terminal initiating the session and the external terminal to be called according to the call establishment request.
2. The method according to claim 1, wherein the sending a second session initiation signaling to the external terminal to be called through the subscriber identity card according to the first session initiation signaling comprises:
according to the identification of the user identification card, the identification of the internal terminal in the first session initiating signaling is converted into the identification of the user identification card, and the second session initiating signaling is obtained;
and sending the second session initiation signaling to the external terminal to be called through the user identification card.
3. The method according to claim 1, wherein the establishing data transmission between the internal terminal initiating the session and the external terminal waiting to be called according to the call establishment request comprises:
establishing a call connection between the internal terminal and the external terminal according to the call establishment request;
and transmitting the data stream of the external terminal to the internal terminal or transmitting the data stream of the internal terminal to the external terminal according to the call connection between the internal terminal and the external terminal.
4. The method of claim 1, further comprising:
receiving a first calling instruction sent by the external terminal through the subscriber identity module card, wherein the first calling instruction comprises an identifier of the external terminal and an identifier of the subscriber identity module card;
establishing a first call connection between the subscriber identity module card and the external terminal according to the first call instruction;
and establishing data transmission between the internal terminal and the external terminal according to the first call connection.
5. The method according to claim 4, wherein the establishing of the data transmission between the internal terminal and the external terminal according to the first call connection comprises:
sending a prompt instruction to the external terminal through the user identification card according to the first call connection, wherein the prompt instruction is used for indicating the external terminal to input an identifier of the internal terminal to be called;
receiving the identifier of the internal terminal to be called, which is sent by the external terminal, through the subscriber identity module card;
and transmitting the data stream of the external terminal to the internal terminal to be called according to the identifier of the internal terminal to be called, or transmitting the data stream of the internal terminal to be called to the external terminal.
6. The method according to claim 5, wherein the transmitting the data stream of the external terminal to the internal terminal to be called or the data stream of the internal terminal to be called to the external terminal according to the identifier of the internal terminal to be called comprises:
according to the identifier of the internal terminal to be called, sending a second calling instruction to the internal terminal to be called through the subscriber identity module card so as to establish a second communication connection between the internal terminal and the external terminal, wherein the second calling instruction comprises the identifier of the internal terminal to be called and the identifier of the external terminal;
and transmitting the data stream of the external terminal to the internal terminal to be called according to the second communication connection, or transmitting the data stream of the internal terminal to be called to the external terminal.
7. An IP-based voice transmission apparatus applied to a session initiation protocol SIP server, the SIP server including a wired network card and a subscriber identity card, the SIP server being configured to communicate with an internal terminal through the wired network card and communicate with an external terminal through the subscriber identity card, the apparatus comprising: the device comprises a first receiving module, a sending module, a second receiving module and an establishing module;
the first receiving module is configured to receive, through the wired network card, a first session initiation signaling sent by at least one internal terminal, where the first session initiation signaling includes an identifier of the internal terminal and an identifier of the external terminal to be called;
the sending module is configured to send a second session initiation signaling to the external terminal to be called through the subscriber identity card according to the first session initiation signaling, where the second session initiation signaling includes: the identification of the subscriber identity module card and the identification of the external terminal to be called;
the second receiving module is used for receiving a call establishment request sent by the external terminal to be called through the subscriber identity module;
and the establishing module is used for establishing data transmission between the internal terminal initiating the conversation and the external terminal to be called according to the conversation establishing request.
8. The apparatus according to claim 7, wherein the second receiving module is further configured to receive a first call instruction sent by the external terminal through the subscriber identity card, where the first call instruction includes an identifier of the external terminal and an identifier of the subscriber identity card;
the establishing module is further used for establishing a first call connection between the subscriber identity module and the external terminal according to the first call instruction; and establishing data transmission between the internal terminal and the external terminal according to the first call connection.
9. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the steps of the voice over IP transmission method according to any one of claims 1 to 7.
10. A storage medium, having stored thereon a computer program for performing the steps of the voice over IP transmission method according to any one of claims 1 to 7 when executed by a processor.
CN202011282312.8A 2020-11-16 2020-11-16 Voice transmission method and device based on IP, electronic equipment and storage medium Active CN112468468B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011282312.8A CN112468468B (en) 2020-11-16 2020-11-16 Voice transmission method and device based on IP, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011282312.8A CN112468468B (en) 2020-11-16 2020-11-16 Voice transmission method and device based on IP, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112468468A true CN112468468A (en) 2021-03-09
CN112468468B CN112468468B (en) 2022-10-28

Family

ID=74837535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011282312.8A Active CN112468468B (en) 2020-11-16 2020-11-16 Voice transmission method and device based on IP, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112468468B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833727A (en) * 2011-06-17 2012-12-19 联发科技股份有限公司 Method for selecting subscriber identity card and communication apparatus
CN104471968A (en) * 2014-03-19 2015-03-25 华为技术有限公司 Calling method, calling apparatus, VOIP server and calling systeme
CN105611055A (en) * 2015-12-23 2016-05-25 小米科技有限责任公司 Calling method and device
CN106921627A (en) * 2015-12-25 2017-07-04 阿尔格布鲁控股有限公司 The VoIP of the calling forwarding of external telephone network is provided
CN107147614A (en) * 2017-03-14 2017-09-08 中国科学院信息工程研究所 A kind of method, signal processor, user equipment and the system of communication security processing
WO2019055833A1 (en) * 2017-09-15 2019-03-21 Buckle Robert K System and method to handover an active call between networks
CN111010677A (en) * 2019-12-20 2020-04-14 展讯通信(上海)有限公司 Callback method, callback device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833727A (en) * 2011-06-17 2012-12-19 联发科技股份有限公司 Method for selecting subscriber identity card and communication apparatus
CN104471968A (en) * 2014-03-19 2015-03-25 华为技术有限公司 Calling method, calling apparatus, VOIP server and calling systeme
CN105611055A (en) * 2015-12-23 2016-05-25 小米科技有限责任公司 Calling method and device
CN106921627A (en) * 2015-12-25 2017-07-04 阿尔格布鲁控股有限公司 The VoIP of the calling forwarding of external telephone network is provided
CN107147614A (en) * 2017-03-14 2017-09-08 中国科学院信息工程研究所 A kind of method, signal processor, user equipment and the system of communication security processing
WO2019055833A1 (en) * 2017-09-15 2019-03-21 Buckle Robert K System and method to handover an active call between networks
CN111010677A (en) * 2019-12-20 2020-04-14 展讯通信(上海)有限公司 Callback method, callback device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112468468B (en) 2022-10-28

Similar Documents

Publication Publication Date Title
KR100884868B1 (en) Complementary ???? service
US20080070528A1 (en) Mid-Call Features
US7443834B1 (en) Combining multimedia services with traditional telephony
US8718045B2 (en) System and method for switching between public switched telephone networks and voice over internet protocol networks
EP1292091B1 (en) Method for transmitting short messages using internet phones and system therefor
US7050565B2 (en) Multimedia augmented call coverage
CA2528954A1 (en) Method and apparatus for providing an audible calling party indentification for a call waiting service
AU2004222781A1 (en) Network, private branch exchange, and multi protocol communication terminal control method for use in the exchange
CN102355713A (en) Calling method in voice communication and mobile terminal
US8712028B2 (en) Telephone relaying apparatus, telephone relaying method, and program
US20190110168A1 (en) Communications system for establishing communications between mobile device and telephone network or broadband network
CN112468468B (en) Voice transmission method and device based on IP, electronic equipment and storage medium
EP2088759A1 (en) A method, telephone system and telephone terminal for calling session
EP2326138A1 (en) Communication method and gateway device based on SIP phone
CN108737671B (en) VOIP communication method, device, equipment and home gateway system
JP2005020676A (en) Telephone communication method and apparatus
JP4687917B2 (en) Signal control method for IP telephone system
JP2011239015A (en) Network apparatus and telephone system
JP4111393B2 (en) IP telephone system and IP telephone apparatus
JP4339160B2 (en) Call back system and method for IP telephone, program, and recording medium
US8964725B1 (en) Initiating outgoing calls to a VoP terminal from a POTS-based telephone terminal
US8311206B1 (en) Facilitating communications for voicemail services in a system that uses disparate signaling systems
JP4215550B2 (en) Private branch exchange system for intersystem connection by IP and system information transmission method thereof
JP2005101817A (en) Ip telephone system and ip telephone device
KR100821576B1 (en) Call switching method in pbx using ip network

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