[go: up one dir, main page]

CN112019490A - Communication method between different networks, gateway and device with storage function - Google Patents

Communication method between different networks, gateway and device with storage function Download PDF

Info

Publication number
CN112019490A
CN112019490A CN201910473117.4A CN201910473117A CN112019490A CN 112019490 A CN112019490 A CN 112019490A CN 201910473117 A CN201910473117 A CN 201910473117A CN 112019490 A CN112019490 A CN 112019490A
Authority
CN
China
Prior art keywords
network
network terminal
audio
terminal
gain
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
CN201910473117.4A
Other languages
Chinese (zh)
Other versions
CN112019490B (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.)
Hytera Communications Corp Ltd
Original Assignee
Hytera Communications Corp 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 Hytera Communications Corp Ltd filed Critical Hytera Communications Corp Ltd
Priority to CN201910473117.4A priority Critical patent/CN112019490B/en
Publication of CN112019490A publication Critical patent/CN112019490A/en
Application granted granted Critical
Publication of CN112019490B publication Critical patent/CN112019490B/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/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/764Media network packet handling at the destination 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • 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]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a communication method among different networks, a gateway and a device with a storage function, wherein the method comprises the following steps: when a first network terminal and a second network carry out voice communication service, a gateway receives voice data from the first network terminal; performing gain adjustment on voice data according to a required audio gain relation between the first network terminal and the second network terminal; sending the voice data subjected to gain adjustment to a second network terminal; the gateway is used for realizing the connection between the first network and the second network; the first network and the second network are different networks. Through the mode, the playing volume of the voice data transmitted between different network terminals can be automatically adjusted without user adjustment.

Description

Communication method between different networks, gateway and device with storage function
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, a gateway, and a device with a storage function for communications between different networks.
Background
The PDT (Police Digital Trunking) standard is a set of Digital Trunking communication standards with Chinese proprietary intellectual property rights. The PDT system can provide good narrowband voice services for users, but has the disadvantage of low transmission rate in terms of data services, and cannot meet the increasing demands of users for broadband services such as images and data.
In order to protect user investment, a wide-band and narrow-band interconnection mode of PDT + LTE is a trend of development of a future private network, PDT and LTE core networks are respectively built in an interconnection stage, and interconnection is carried out through a gateway. The audio acquisition gain range of a wideband terminal is typically 88dB, with corresponding audio amplitudes 25000 and 30000. At present, the audio acquisition gain range of the narrowband terminal is 66dB, and the corresponding audio amplitude is 2000-.
When the narrow band is interconnected and intercommunicated through the gateway, only the audio media types are converted, and the gain is not adjusted. Because the difference of the playing gains of the broadband and narrowband terminals is too large, the volume of the broadband terminal playing the audio from the narrowband terminal is too small, and the volume of the narrowband terminal playing the audio from the broadband terminal is too large.
Disclosure of Invention
The technical problem mainly solved by the application is to provide a communication method, a gateway and a device with a storage function among different networks, which can automatically adjust the playing volume of voice data transmitted among wide and narrow band network terminals without user adjustment.
In order to solve the technical problem, the application adopts a technical scheme that: a method for communication between different networks is provided, which comprises the following steps: when a first network terminal and a second network carry out voice communication service, a gateway receives voice data from the first network terminal; performing gain adjustment on the voice data according to the required audio gain relation between the first network terminal and the second network terminal; sending the voice data after gain adjustment to the second network terminal; the first network terminal performs the voice communication service in a first network, the second network terminal performs the voice communication service in a second network, and the gateway is used for realizing connection between the first network and the second network; the first network and the second network are different networks.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided a gateway comprising a processor, a memory and communication circuitry, the processor being coupled to the memory and the communication circuitry respectively, the processor being configured to execute program instructions in the memory to control the communication circuitry to implement the steps of the method as described above.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided an apparatus having a storage function, storing program instructions, the program data being executable to implement the steps in the method as described above.
The beneficial effect of this application is: different from the prior art, the method and the device have the advantages that when the first network terminal and the second network terminal are in communication, the received voice data sent by the first network terminal are subjected to gain adjustment according to the required audio gain relation between the first network terminal and the second network terminal, and the voice data subjected to gain adjustment are sent to the second network terminal, so that the second network terminal can play the voice data from the first network terminal at a moderate volume.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. Wherein:
fig. 1 is a schematic flow chart of a first embodiment of a communication method between different networks provided in the present application;
FIG. 2 is a schematic flow chart diagram illustrating a second embodiment of a method for communication between different networks provided herein;
FIG. 3 is a timing diagram illustrating a third embodiment of a method for communication between different networks provided herein;
FIG. 4 is a timing diagram illustrating a fourth embodiment of a method for communication between different networks provided herein;
fig. 5 is a schematic structural diagram of a gateway provided in the present application;
fig. 6 is a schematic structural diagram of a device with a storage function provided in the present application.
Detailed Description
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 only a part of the embodiments of the present application, and not all the embodiments. 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.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a first embodiment of a communication method between different networks according to the present application. The method comprises the following steps:
s101: the gateway receives voice data from the first network terminal while performing a voice communication service in the first network terminal and the second network.
In a specific implementation scenario, a first network terminal performing a voice communication service in a first network and a second network terminal performing a voice communication service in a second network perform the voice communication service through a gateway. The gateway is used for realizing connection between the first network and the second network. The first network terminal sends the voice data which needs to be sent to the second network terminal to the gateway, and the gateway receives the voice data.
In this implementation scenario, the first network and the second network are different networks, for example, the first network is a narrowband network, and the second network is a broadband network. In this implementation scenario, the narrowband network is any one of PDT (Police Digital Trunking), DMR (Digital Mobile Radio), or TETRA (terrestrial trunked Radio). In other implementation scenarios, the network may be different types in the same network, for example, the first network and the second network are both narrowband networks, the first network is a PDT (Police Digital Trunking) network, and the second network is a DMR (Digital Mobile Radio) network.
S102: and performing gain adjustment on the voice data according to the required audio gain relation between the first network terminal and the second network terminal.
In a specific implementation scenario, after receiving voice data sent by a first network terminal, a gateway determines a multiple of gain adjustment according to an audio gain relationship between an audio gain value required by the first network terminal and an audio gain value required by a second network terminal, and performs gain adjustment on the audio data according to the multiple of gain adjustment.
Suppose D1The maximum amplitude A of the audio of the first network terminal is the preset audio gain value required by the first network terminal1Is A1=10D1/20. Assuming that D2 is a pre-stored audio gain value required by the second network terminal, the maximum amplitude A of the audio of the second network terminal2Is A2=10D2/20. The gain adjustment is then a multiple of
Figure BDA0002081327030000041
Or A2/A1Thus, therefore, it is
Figure BDA0002081327030000042
In this implementation scenario, the second network is a broadband network, and the first network is a narrowband network. The audio gain value of the first network terminal may be preset in the gateway, and the audio gain value of the second network terminal may be obtained from the second network terminal in advance and stored in the gateway in advance. For example, it may be sent to the gateway in advance by the second network terminal, specifically. Or when the second network terminal registers to the network, the second network terminal sends registration information to the gateway, wherein the registration information comprises the audio gain value required by the second network terminal. And the gateway stores the audio gain value after receiving the audio gain value required by the second network terminal and sent by the second network terminal.
In the field of this implementationIn the scene, the second network is a broadband network, and the gain of the audio data is amplified according to the gain adjustment multiple, namely, the gain of the audio data is amplified
Figure BDA0002081327030000043
And (4) doubling. In other implementations, the second network is a narrowband network and the gain of the audio data is reduced by the gain adjustment factor, i.e., the gain of the audio data is reduced
Figure BDA0002081327030000044
And (4) doubling.
S103: and sending the voice data after gain adjustment to the second network terminal.
In a specific implementation scenario, the gateway sends the voice data after the gain adjustment to the second network terminal, so that the second network terminal can directly play the voice data after receiving the voice data after the gain adjustment, without the need for the user to adjust the play volume of the second network terminal.
As can be seen from the above description, in this embodiment, the gateway performs gain adjustment on the received voice data sent by the first network terminal according to the required audio gain relationship between the first network terminal and the second network terminal, and sends the voice data after gain adjustment to the second network terminal, so that the second network terminal can directly play the voice data after receiving the voice data after gain adjustment, and the user does not need to adjust the play volume of the second network terminal.
Referring to fig. 2, fig. 2 is a flowchart illustrating a communication method between different networks according to a second embodiment of the present invention. The method comprises the following steps:
s201: the gateway receives a registration message from the second network terminal, wherein the registration message comprises an audio gain value required by the second network terminal and/or a media type required by the second network terminal.
In a specific implementation scenario, a first network terminal performing a voice communication service in a first network and a second network terminal performing a voice communication service in a second network perform the voice communication service through a gateway. In this implementation scenario, the first network is a narrowband network and the second network is a broadband network, or in other implementation scenarios, the first network may be a broadband network and the second network may be a narrowband network. The audio gain value and the media type required by the first network terminal are different from those required by the second network terminal.
In this implementation scenario, the narrowband network is any one of PDT (Police Digital Trunking), DMR (Digital Mobile Radio), or TETRA (terrestrial trunked Radio)
And the second network terminal sends a registration message to the gateway when accessing the network, wherein the registration message comprises the audio gain value and the media type required by the second network terminal. In other implementation scenarios, it may be that one of the audio gain value and the media type required by the first network terminal is different from that of the second network terminal, and then only the content related to the different item may be included in the registration information. For example, if the audio gain value required by the first network terminal is different from the audio gain value required by the second network terminal, only the audio gain value required by the second network terminal may be included in the registration information.
S202: and saving the audio gain value required by the second network terminal and/or the media type required by the second network terminal.
In a specific implementation scenario, the audio gain value and the media type required by the first network terminal are different from those required by the second network terminal. Therefore, before the gateway sends the received audio data to the second network terminal, the gateway needs to perform the processing of converting the media type and adjusting the gain value on the audio data. The gateway saves the received audio gain value and media type required by the second network termination before processing. The method is used for calculating the needed gain adjustment multiple and media adjustment type by combining the preset audio gain value and media type required by the first network terminal.
S203: when the first network terminal and the second network terminal perform voice communication service, the gateway receives voice data from the first network terminal.
In this embodiment, this step is substantially similar to step S101 in the first embodiment of the communication method between different networks provided by the present invention, and details are not repeated here.
S204: and carrying out media type conversion on the audio data according to the pre-stored media type required by the second network terminal.
In a specific implementation scenario, the gateway converts the audio data into a G711 media type according to a pre-stored media type required by the second network terminal, and then converts the audio data of the G711 media type into the media type required by the second network terminal. Because the media type with the G711 as an intermediate conversion can effectively reduce the loss and error code caused in the media type conversion. In other implementation scenarios, the audio data may also be directly converted into a media type required by the second network terminal.
S205: and performing gain adjustment on the voice data after media type conversion according to the required audio gain relation between the first network terminal and the second network terminal.
In this embodiment, this step is substantially similar to step S102 in the first embodiment of the communication method between different networks provided by the present invention, and step S102 in the first embodiment of the communication method between different networks provided by the present invention performs gain adjustment on voice data, while in this embodiment, the gain adjustment is performed on voice data after media type conversion, and specific methods and principles are substantially the same, and are not described herein again.
In other implementation scenarios, step S205 may be executed first, and then step S204 is executed, or step S204 and step S205 may be executed simultaneously.
S206: and sending the voice data subjected to media type conversion and gain adjustment to the second network terminal.
In this embodiment, this step is substantially similar to step S103 in the first embodiment of the communication method between different networks provided by the present invention, and is not described here again.
As can be seen from the above description, in this embodiment, the gateway receives and stores the audio gain value and/or the media type required by the second network terminal in advance, performs media type conversion and gain adjustment on the received voice data sent by the first network terminal in combination with the preset audio gain value and/or the preset media type required by the first network terminal, and sends the voice data subjected to the media type conversion and the gain adjustment to the second network terminal, so that the second network terminal can directly play the voice data after receiving the voice data without adjusting the volume.
Referring to fig. 3, fig. 3 is a timing diagram illustrating a communication method between different networks according to a third embodiment of the present invention. The method comprises the following steps:
s301: the second network terminal sends a cluster registration message to the second network core network.
In a specific implementation scenario, the second network terminal is connected to the gateway through a second network core network. And after the second network terminal is started up and finishes the attachment process, establishing connection with the second core network. The second network terminal sends a TRUNKING registration REQUEST message (trunk REGISTER REQUEST message) to the second network core network to initiate the TRUNKING registration procedure. Wherein the group registration request message carries an audio gain required by the second network terminal and/or a media type required by the second network terminal.
S302: the second network core network sends a registration message to the gateway.
In a specific implementation scenario, the second network core network obtains the audio gain required by the second network terminal and/or the media type required by the second network terminal from a ringing REGISTER REQUEST message sent by the second network terminal, generates a registration message (REGISTER message) carrying the audio gain required by the second network terminal and/or the media type required by the second network terminal, and sends the REGISTER message to the gateway.
S303: the gateway stores the audio gain required by the second network terminal and/or the media type required by the second network terminal.
In this embodiment, this step is substantially similar to step S202 in the second embodiment of the communication method between different networks provided by the present invention, and is not described here again.
S304: and the gateway sends a receiving success message to the second network core network.
In a specific implementation scenario, the gateway sends a reception success message (200OK message) to the second network core network to inform the second network core network that the registration message has been successfully received, and stores the audio gain required by the second network terminal and/or the media type required by the second network terminal.
S305: the second network core network sends the cluster registration receiving message to the second network terminal.
In a specific implementation scenario, the second network core network receives the 200OK message sent by the gateway, confirms that the gateway has successfully received the registration message, and stores the audio gain required by the second network terminal and/or the media type required by the second network terminal, and then sends a TRUNKING registration grant message (trunk REGISTER ACCEPT message) to the second network terminal. The second network terminal is informed that the cluster registration has been granted.
S306: the second network terminal sends a cluster registration completion message to the second network core network.
In a specific implementation scenario, the second network terminal sends a TRUNKING registration COMPLETE message (trunk REGISTER COMPLETE message) to the second network core network to notify the second network core network that the TRUNKING registration is COMPLETE, and the second network terminal joins the TRUNKING communication.
S307: the first network core network sends a session request message to the gateway.
In a specific implementation scenario, a first network terminal initiates a single call to a second network terminal, and therefore, the first network terminal sends a request message to a first network core network, and the first network core network sends a session request message (INVITE message) to a gateway in response to the request message. The INVITE message may be a psip (program and system information Protocol) message or a sip (Session Initiation Protocol) message.
S308: the gateway sends the session request message to the second network core network.
In a specific implementation scenario, the gateway sends the received session request message, which may be a sip message, to the second network core network.
S309: the second network core network sends a call request message to the second network terminal.
In a specific implementation scenario, after receiving an INVITE message sent by a gateway, a second network core network generates a CALL REQUEST message (CALL REQUEST message) according to the INVITE message, and sends the CALL REQUEST message to a second network terminal to establish a single CALL.
S310: the second network terminal sends a call connection message to the second network core network.
In a specific implementation scenario, the second network terminal sends a CALL CONNECT message (CALL CONNECT message) to the second network core network in response to the CALL request message sent by the second network core network.
S311: the second network core network sends a 200OK message to the gateway.
In a specific implementation scenario, the second network core network receives the CALL CONNECT message, confirms that the second network terminal agrees with the session request, generates a 200OK message, and sends the 200OK message to the gateway. The 200OK message may be a sip message.
S312: the gateway sends a 200OK message to the first network core network.
In a specific implementation scenario, the gateway forwards the received 200OK message, which may be a psip message or a sip message, to the first network core network.
S313: the first network core network sends an ACK message to the gateway.
In a specific implementation scenario, the first network core network sends an ACK message to the gateway to inform the gateway 200 that the OK message has been successfully received. The ACK message may be a psip message or a sip message.
S314: the gateway forwards the ACK message to the second network core network.
In a specific implementation scenario, the gateway forwards the received ACK message to the second network core network. The ACK message may be a sip message.
S315: the second network core network sends a call connection reception message to the second network terminal.
In a specific implementation scenario, the second network core network generates a CALL connection receive message (CALL CONNECT ACK message) according to the received ACK message, and sends the CALL connection receive message (CALL CONNECT ACK message) to the second network terminal, thereby establishing a CALL between the first network and the second network.
S316: the first network core network sends voice data to the gateway.
In a specific implementation scenario, a user of a first network terminal starts speaking, and the first network terminal obtains speech data of the user speaking and sends the speech data to a first network core network. After receiving the voice data, the first network core network generates an RTP (Real-time Transport) message according to the voice data, and sends the RTP message to the gateway.
S317: the gateway performs media type conversion and/or gain adjustment on the received voice data.
In a specific implementation scenario, the gateway converts the audio data into a G711 media type according to a pre-stored media type required by the second network terminal, and then converts the audio data of the G711 media type into the media type required by the second network terminal. Because the media type with the G711 as an intermediate conversion can effectively reduce the loss and error code caused in the media type conversion. In other implementation scenarios, the audio data may also be directly converted into a media type required by the second network terminal.
After media type conversion, the gateway determines the multiple of gain adjustment for the received voice data according to the audio gain relation between the audio gain value required by the first network terminal and the audio gain value required by the second network terminal, and performs gain adjustment for the audio data according to the multiple of gain adjustment. Wherein, the audio gain value required by the first network terminal can be preset in the gateway.
Suppose D1The maximum amplitude A of the audio of the first network terminal is the preset audio gain value required by the first network terminal1Is A1=10D1/20. Assuming that D2 is a pre-stored audio gain value required by the second network terminal, the maximum amplitude A of the audio of the second network terminal2Is A2=10D2/20. The gain adjustment is then a multiple of
Figure BDA0002081327030000101
Or A2/A1Thus, therefore, it is
Figure BDA0002081327030000102
In this implementation scenario, the second network is a broadband network, and the gain of the audio data is amplified according to the gain adjustment factor, that is, the gain of the audio data is amplified
Figure BDA0002081327030000103
In other embodiments, the second network is a narrowband network, and the gain of the audio data is reduced according to the gain adjustment factor, i.e. the gain of the audio data is reduced
Figure BDA0002081327030000104
And (4) doubling.
In other implementation scenarios, if the media types supported by the first network are the same as the media types required by the second network, the media types do not need to be converted, and only the gain adjustment is performed on the received voice data.
S318: and the gateway sends the voice data subjected to the media type conversion and the gain adjustment to a second network core network.
In a specific implementation scenario, the gateway generates an RTP message according to the voice data subjected to the media type conversion and the gain adjustment, and sends the RTP message to the second network core network.
S319: the second network core network forwards the received voice data to the second network terminal.
In a specific implementation scenario, the second network core network transmits the received RTP message to the second network terminal through a GTP (GPRS tunneling Protocol), so that the second network terminal receives the voice data after the media type conversion and the gain adjustment. The second network terminal can directly play the voice data without the user adjusting the volume of the second network terminal.
S320: the second network terminal sends voice data to the second network core network.
In a specific implementation scenario, the second network terminal obtains speech data of a user speaking, and transmits the speech data to the second network core network through GTP.
S321: the second network core network sends the voice data to the gateway.
In a specific implementation scenario, the second network core network generates an RTP message according to the received voice data, and sends the RTP message to the gateway.
S322: the gateway performs media type conversion and gain adjustment on the received voice data.
In a specific implementation scenario, the gateway converts the audio data into a G711 media type according to a preset media type required by the first network terminal, and then converts the audio data of the G711 media type into a stored media type required by the second network terminal. Because the media type with the G711 as an intermediate conversion can effectively reduce the loss and error code caused in the media type conversion. In other implementation scenarios, the audio data may also be directly converted into a media type required by the first network terminal.
After media type conversion, the gateway determines the multiple of gain adjustment for the received voice data according to the audio gain relation between the audio gain value required by the first network terminal and the audio gain value required by the second network terminal, and performs gain adjustment for the audio data according to the multiple of gain adjustment. Wherein, the audio gain value required by the first network terminal can be preset in the gateway.
Suppose D1The maximum amplitude A of the audio of the first network terminal is the preset audio gain value required by the first network terminal1Is A1=10D1/20. Assuming that D2 is a pre-stored audio gain value required by the second network terminal, the maximum amplitude A of the audio of the second network terminal2Is A2=10D2/20. The gain adjustment is then a multiple of
Figure BDA0002081327030000111
Or A2/A1Thus, therefore, it is
Figure BDA0002081327030000112
In this implementation scenario, the second network is a broadband network, and the gain of the audio data is reduced according to the gain adjustment factor, that is, the gain of the audio data is reduced
Figure BDA0002081327030000113
And (4) doubling. In other implementations, the second network is a narrowband network, and the gain of the audio data is amplified according to the gain adjustment factor, i.e., the gain of the audio data is amplified
Figure BDA0002081327030000114
And (4) doubling.
S323: and the gateway sends the voice data subjected to the media type conversion and the gain adjustment to a first network core network.
In a specific implementation scenario, the gateway generates an RTP message according to the voice data subjected to the media type conversion and the gain adjustment, and sends the RTP message to the first network core network. And the first network core network sends the voice data subjected to the media type conversion and the gain adjustment to the first network terminal. Therefore, the first network terminal can directly play the voice data after receiving the voice data, and a user does not need to adjust the volume of the first network terminal.
In this implementation scenario, the first network is a narrowband network and the second network is a broadband network, or in other implementation scenarios, the first network may be a broadband network and the second network may be a narrowband network. In this implementation scenario, the narrowband network is any one of PDT (Police Digital Trunking), DMR (Digital Mobile Radio), or TETRA (terrestrial trunked Radio)
As can be seen from the above description, in this embodiment, when the single call mode is performed, the second network terminal sends the audio gain required by the second network terminal and/or the media type required by the second network terminal to the gateway through the second network core network, the gateway stores the audio gain required by the second network terminal and/or the media type required by the second network terminal, the gateway presets the audio gain required by the first network terminal and/or the media type required by the first network terminal, and when receiving the voice data sent by the first network terminal or the second network terminal, the gateway performs media format conversion on the voice data according to a receiving party of the voice data, and performs gain adjustment on the voice data according to an audio gain relationship between the first network terminal and the second network terminal. Therefore, when the first network terminal and the second network terminal receive the voice data from the other side, the voice data can be directly played without the need of adjusting the volume by a user.
Referring to fig. 4, fig. 4 is a timing diagram illustrating a fourth embodiment of a communication method between different networks according to the present invention. The method comprises the following steps:
s401: the second network terminal sends a cluster registration message to the second network core network.
S402: the second network core network sends a registration message to the gateway.
Steps S401 to S402 in this embodiment are substantially similar to steps S301 to S302 in the third embodiment of the communication method between different networks provided by the present invention, and are not described again here.
S403: the gateway calculates and stores the average audio gain required by the second network terminal and/or the media type required by the second network terminal.
In a specific implementation scenario, after receiving the audio gains required by the plurality of second network terminals, the gateway obtains an average value of the audio gain values, uses the average value as the audio gains required by the plurality of second network terminals, and stores the audio gains.
S404: and the gateway sends a receiving success message to the second network core network.
S405: the second network core network sends the cluster registration receiving message to a plurality of second network terminals.
S406: the second network terminal sends a cluster registration completion message to the second network core network.
S407: the first network core network sends a group calling session request message to the gateway.
S408: and the gateway sends the group calling session request message to a second network core network.
Steps S404 to S408 in this embodiment are substantially similar to steps S304 to S308 in the third embodiment of the communication method between different networks provided by the present invention, and the difference is only that the session request sent in the previous embodiment is a single call session request, and the session request in this embodiment is a group call session request, so details are not repeated here.
S409: the second network core network sends a group call request message to a plurality of second network terminals.
In a specific implementation scenario, after receiving an INVITE message sent by a gateway, a second network core network generates a GROUP CALL REQUEST message (GROUP CALL REQUEST message) according to the INVITE message, and sends the GROUP CALL REQUEST message to a second network terminal to establish a GROUP CALL.
S410: the second network core network sends a 200OK message to the gateway.
S411: the gateway sends a 200OK message to the first network core network.
S412: the first network core network sends an ACK message to the gateway.
S413: the gateway forwards the ACK message to a second network core network, and establishes a group call between the first network and the second network.
Steps S410 to S413 in this embodiment are substantially similar to steps S311 to S314 in the third embodiment of the communication method between different networks provided by the present invention, and are not described herein again.
S414: the first network core network sends an update message to the gateway.
In a specific implementation scenario, since a group call is established between a plurality of first network terminals and a plurality of second network terminals, a first network terminal of the plurality of first network terminals needs to apply for a talk right when it wants to send information to the plurality of second network terminals. When a first network terminal applies for the right to speak, the first network core network sends an UPDATE message (UPDATE message) to the gateway to inform the gateway that the first network terminal applies for the right to speak. The UPDATE message may be a psip message.
S415: the gateway sends the information message to the second network core network.
In a specific implementation scenario, after receiving the UPDATE message, the gateway generates an information message (INFO message) according to the UPDATE message, and sends the INFO message to the second network terminal.
S416: the second network core network sends the speaking right information message to the second network terminal.
In a specific implementation scenario, after receiving the INFO message, the second network core network generates a FLOOR information message (FLOOR information message) according to the INFO message, and sends the FLOOR information message to the second network terminal, so as to notify the second network terminal that the first network terminal proposes a FLOOR application, and then the received voice data is sent by the first network terminal. Therefore, the first network terminal successfully applies for the speaking right.
S417: the first network core network sends voice data to the gateway.
S418: the gateway performs media type conversion and gain adjustment on the received voice data.
S419: and the gateway sends the voice data subjected to the media type conversion and the gain adjustment to a second network core network.
S420: the second network core network forwards the received voice data to the second network terminal.
Steps S417 to S420 in this embodiment are substantially similar to steps S316 to S319 in the third embodiment of the communication method between different networks provided by the present invention, and are not described again here.
S421: the first network core network sends an update message to the gateway.
In a specific implementation scenario, the first network core network sends an UPDATE message (UPDATE message) to the gateway to inform the gateway that the first network terminal releases the floor. The UPDATE message may be a pisp message.
S422: the gateway sends a BYE message to the second network core network.
In a specific implementation scenario, the BYE message is used to notify the second network core network that the first network terminal releases the talk right. The BYE message may be a sip message.
S423: the second network core network sends the speaking right information message to the second network terminal.
In a specific implementation scenario, after receiving the BYE message, the second network core network obtains information of releasing the talk right from the first network terminal, generates a talk right information message (FLOOR information message) according to the information, and sends the FLOOR information message to the second network terminal to notify the first network terminal of releasing the talk right.
S424: the second network terminal sends a talk right information message to the second network core network to apply for the talk right.
In a specific implementation scenario, when the second network terminal is in the trunking group call, before initiating a session, the second network terminal needs to apply for the talk right first, and the second network terminal sends a talk right information message (FLOOR info message) to the second network core network to apply for the talk right.
S425: the second network core network sends a session request message to the gateway.
In a specific implementation scenario, the second network core network receives the right information message sent by the second network terminal, obtains a request for initiating a session from the second network terminal, generates a session request message (INVITE message), and sends the INVITE message to the gateway.
S426: the gateway sends an update message to the first network core network.
In a specific implementation scenario, after receiving the session request message, the gateway generates an UPDATE message (UPDATE message) according to the session request message, and sends the UPDATE message to the first core network to notify the first core network that the second network terminal applies for the talk right.
S427: the first network core network sends a 200OK message to the gateway.
In a specific implementation scenario, after receiving the update message, the first network core network sends a 200OK message to the gateway, and notifies the gateway that the information of the second network terminal applying for the talk right has been acquired.
S428: the gateway forwards the 200OK message to the second network core network.
In a specific implementation scenario, the gateway 200OK message is forwarded to the second network core network to notify the second network core network that the first network core network has acquired the information that the second network terminal applies for the talk right.
S429: and the second network core network sends the speaking right authorization information to the second network terminal.
In a specific implementation scenario, after the second network core network confirms that the first network core network has acquired the message that the second network terminal applies for the talk right, the talk right is allocated to the second network terminal, and a talk right authorization message (FLOOR GRANT message) is sent to the second network terminal.
S430: and the second network terminal sends a speaking right authorization confirmation message to the second network core network.
In a specific implementation scenario, after receiving the FLOOR GRANT message, the second network terminal sends a FLOOR GRANT acknowledgement message (FLOOR GRANT ACK message) to the second network core network, and has notified the second network core network to confirm that the FLOOR is granted.
S431: the second network core network sends an ACK message to the gateway.
In a specific implementation scenario, the second network core network sends an ACK message to the gateway, notifying the gateway that the second network terminal has been granted the talk right, and the second network terminal has acquired its message of being granted the talk right.
S432: the second network terminal sends voice data to the second network core network.
S433: the second network core network sends the voice data to the gateway.
S434: the gateway performs media type conversion and gain adjustment on the received voice data.
S435: and the gateway sends the voice data subjected to the media type conversion and the gain adjustment to a first network core network.
Steps S432 to S435 in this embodiment are substantially similar to steps S320 to S323 in the third embodiment of the communication method between different networks provided by the present invention, and are not described herein again.
In this implementation scenario, the first network and the second network are different networks, for example, the first network is a narrowband network, and the second network is a broadband network. In this implementation scenario, the narrowband network is any one of PDT (Police Digital Trunking), DMR (Digital Mobile Radio), or TETRA (Terrestrial Trunked Radio). In other implementation scenarios, the network may be different types in the same network, for example, the first network and the second network are both narrowband networks, the first network is a PDT (Police Digital Trunking) network, and the second network is a DMR (Digital Mobile Radio) network.
As can be seen from the above description, in the trunking group call mode, the gateway receives the audio gain values required by the plurality of second network terminals, calculates an average value of the audio gain values, uses the average value as the audio gain value required by the second network terminal, and calculates an audio gain relationship between the audio gain value required by the first network terminal and the audio gain value required by the second network terminal according to the average value. Resource consumption caused by respectively calculating different audio gain relations aiming at a plurality of second network terminals can be avoided, and resources can be effectively saved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a gateway according to an embodiment of the present invention. The gateway 10 includes a processor 11, a memory 12, and a communication circuit 13, the processor 11 being coupled to the memory 12, the display 13, and the camera 14. The memory 12 is used to store program instructions. The processor 11, in conjunction with the display screen 13 and the camera 14, is used to run program instructions in the memory 12 to communicate and perform the following methods.
The communication circuit 13 of the gateway 10 receives voice data from the first network terminal when the first network terminal and the second network terminal perform a voice communication service. The processor 11 performs gain adjustment on the received voice data according to a desired audio gain relationship between the first network terminal and the second network terminal. The communication circuit 13 transmits the gain-adjusted audio data to the second network terminal.
The specific process of implementing the above function by the processor 11 may refer to the first embodiment of the privacy protection method provided by the present invention.
As can be seen from the above description, the gateway in this embodiment may perform gain adjustment on the received audio data sent by the first network terminal according to the audio gain relationship between the first network terminal and the second network terminal, and send the gain-adjusted audio data to the second network terminal, so that the second network terminal may directly play the received audio data without adjusting the volume.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an embodiment of a device with a storage function according to the present invention. The means 20 with memory function has stored therein at least one program instruction 21, the program instruction 21 being for performing the method as shown in fig. 1-4. In one embodiment, the apparatus with storage function may be a storage chip in a device, a hard disk, or a removable hard disk or other readable and writable storage tool such as a flash disk, an optical disk, or the like, and may also be a server or the like.
As can be seen from the above description, in the embodiment of the apparatus with storage function in this embodiment, when the first network terminal operating in the first network and the second network terminal operating in the second network perform a voice communication service, the program instruction stored in the embodiment may perform gain adjustment on voice data sent by the first network terminal according to a required audio gain relationship between the first network terminal and the second network terminal, and send the gain-adjusted voice data to the second network terminal. The second network terminal can directly play the voice data after receiving the voice data subjected to gain adjustment without adjusting the volume of the second network terminal.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A method for communication between different networks, comprising:
when a first network terminal and a second network terminal carry out voice communication service, a gateway receives voice data from the first network terminal;
performing gain adjustment on the voice data according to the required audio gain relation between the first network terminal and the second network terminal;
sending the voice data after gain adjustment to the second network terminal;
the first network terminal performs the voice communication service in a first network, the second network terminal performs the voice communication service in a second network, and the gateway is used for realizing connection between the first network and the second network;
the first network and the second network are different networks.
2. The method of claim 1, wherein receiving voice data from a first network terminal comprises:
receiving voice data from the first network terminal, which is sent by a first network core network;
the sending the voice data after the gain adjustment to the second network terminal includes:
and sending the voice data after gain adjustment to the second network core network, so that the second network core network sends the voice data after gain adjustment to the second network terminal.
3. The method of claim 1, wherein one of the first network and the second network is a broadband network and the other is a narrowband network;
the performing gain adjustment on the voice data according to the audio gain relationship between the first network terminal and the second network terminal includes:
determining a gain adjustment multiple according to a preset audio gain relation between the audio gain value of the first network terminal and a pre-stored audio gain value required by the second network terminal;
when the second network is a broadband network, amplifying the gain of the audio data according to the gain adjustment multiple;
and when the second network is a narrow-band network, reducing the gain of the audio data according to the gain adjustment multiple.
4. The method according to claim 3, wherein the determining a gain adjustment multiple according to the preset audio gain relationship between the audio gain value of the first network terminal and the pre-stored audio gain value required by the second network terminal comprises:
determining a gain adjustment factor according to the following formula:
Figure FDA0002081327020000021
wherein D1 is the preset audio gain value required by the first network terminal, and D2 is the preset audio gain value of the second network terminal.
5. The method of claim 1,
before the performing gain adjustment on the voice data according to the audio gain relationship between the first network terminal and the second network terminal, the method further includes:
performing media type conversion on the audio data according to a pre-stored media type required by the second network terminal;
gain adjusting the voice data according to a desired audio gain relationship of the first network termination and the second network termination, comprising:
and performing gain adjustment on the voice data after media type conversion according to the audio gain relation between the first network terminal and the second network terminal.
6. The method according to claim 5, wherein the media type conversion of the audio data according to the pre-stored media type required by the second network terminal comprises:
and converting the audio data into a G711 media type according to a pre-stored media type required by the second network terminal, and converting the audio data of the G711 media type into the media type required by the second network terminal.
7. The method according to any of claims 3-6, wherein when the second network is a broadband network, the method further comprises:
the gateway receives a registration message from the second network terminal, wherein the registration message comprises an audio gain value required by the second network terminal and/or a media type required by the second network terminal;
and saving the audio gain value required by the second network terminal and/or the media type required by the second network terminal.
8. The method of claim 7, wherein when there are a plurality of second network terminals conducting the voice communication service,
the saving of the audio gain value required by the second network terminal further includes:
and calculating the average value of the audio gain values required by the plurality of second network terminals, and storing the average value.
9. A gateway comprising a processor, a memory, and communication circuitry, the processor being coupled to the memory and the communication circuitry, respectively,
the memory is for storing program instructions and the processor is for executing the program instructions in the memory to control the communication circuitry to implement the steps in the method of any of claims 1-8.
10. An apparatus having storage functionality, wherein program instructions are stored, which program instructions are executable to implement the steps in the method according to any one of claims 1 to 8.
CN201910473117.4A 2019-05-31 2019-05-31 Communication method between different networks, gateway and device with storage function Active CN112019490B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910473117.4A CN112019490B (en) 2019-05-31 2019-05-31 Communication method between different networks, gateway and device with storage function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910473117.4A CN112019490B (en) 2019-05-31 2019-05-31 Communication method between different networks, gateway and device with storage function

Publications (2)

Publication Number Publication Date
CN112019490A true CN112019490A (en) 2020-12-01
CN112019490B CN112019490B (en) 2023-04-18

Family

ID=73506727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910473117.4A Active CN112019490B (en) 2019-05-31 2019-05-31 Communication method between different networks, gateway and device with storage function

Country Status (1)

Country Link
CN (1) CN112019490B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113316092A (en) * 2021-05-31 2021-08-27 海能达通信股份有限公司 Call service control method, cluster system, terminal and communication system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6128276A (en) * 1997-02-24 2000-10-03 Radix Wireless, Inc. Stacked-carrier discrete multiple tone communication technology and combinations with code nulling, interference cancellation, retrodirective communication and adaptive antenna arrays
CN101305591A (en) * 2005-10-31 2008-11-12 甲骨文国际公司 Dynamic call feature control on a per-call basis
CN105208187A (en) * 2014-06-25 2015-12-30 Vine公司 Broadband and narrow-band voice clarity improving device
CN107018563A (en) * 2017-02-22 2017-08-04 中国人民解放军信息工程大学 For the digital auto gain control method of narrow band signal after broadband system channelizing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6128276A (en) * 1997-02-24 2000-10-03 Radix Wireless, Inc. Stacked-carrier discrete multiple tone communication technology and combinations with code nulling, interference cancellation, retrodirective communication and adaptive antenna arrays
CN101305591A (en) * 2005-10-31 2008-11-12 甲骨文国际公司 Dynamic call feature control on a per-call basis
CN105208187A (en) * 2014-06-25 2015-12-30 Vine公司 Broadband and narrow-band voice clarity improving device
CN107018563A (en) * 2017-02-22 2017-08-04 中国人民解放军信息工程大学 For the digital auto gain control method of narrow band signal after broadband system channelizing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113316092A (en) * 2021-05-31 2021-08-27 海能达通信股份有限公司 Call service control method, cluster system, terminal and communication system
CN113316092B (en) * 2021-05-31 2023-01-17 海能达通信股份有限公司 Call service control method, cluster system, terminal and communication system

Also Published As

Publication number Publication date
CN112019490B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
US8121584B2 (en) Methods for handling conference communication and the communication apparatuses utilizing the same
US8738081B2 (en) Methods for handling apparatus originated communication requests and communication apparatuses utilizing the same
US8504015B2 (en) Short-range wireless relay method and system
US8571545B2 (en) Short-range wireless relay method and system
CN102136918B (en) Method, device and system for accessing broadcast remotely
EP2908492B1 (en) Systems and methods for a communications transfer between internet protocol multimedia services and push to talk services
KR100652655B1 (en) PITITY SERVICE SYSTEM AND METHOD FOR VOTING VOICE
US7912070B1 (en) System and method for seamlessly switching a half-duplex session to a full-duplex session
US20090264113A1 (en) Mobile phone that automatically makes conference calls and method for same
CN112019490B (en) Communication method between different networks, gateway and device with storage function
CN107222846B (en) Core network equipment and cluster communication method thereof
US20080032728A1 (en) Systems, methods and devices for communicating among multiple users
KR20080050044A (en) Session Switching Method for Mobile Multimedia Communication
US20200186636A1 (en) Enabling call transfer using headset
CN101552952B (en) A broadcast call implementation method and system
CN100499715C (en) Calling processing method of three-talking
KR20130079512A (en) Cellular network
US7379735B2 (en) Rapid push-to-talk call setup method and apparatus
US11575716B2 (en) Apparatuses and methods for providing reliable delivery of application data
US20090111444A1 (en) Sound in a conference communication session
CN113489712A (en) Call control method and device and computer readable storage medium
CA2802350C (en) Apparatus, and associated method, for reconnecting dropped call
CN101179866B (en) Method, device and system of selecting cell
CN112995569B (en) Conference creation method, terminal, server side and storage medium
WO2017054284A1 (en) Communication method and related device

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