WO2017000482A1 - Voice protocol handover method and voice terminal device - Google Patents
Voice protocol handover method and voice terminal device Download PDFInfo
- Publication number
- WO2017000482A1 WO2017000482A1 PCT/CN2015/094917 CN2015094917W WO2017000482A1 WO 2017000482 A1 WO2017000482 A1 WO 2017000482A1 CN 2015094917 W CN2015094917 W CN 2015094917W WO 2017000482 A1 WO2017000482 A1 WO 2017000482A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- call
- voice
- protocol stack
- module
- message
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
Definitions
- This document relates to, but is not limited to, the field of voice call technology, and in particular to a voice protocol switching method and a voice terminal device.
- VoIP Voice over Internet Protocol
- VoIP digitizes analog voice signals.
- IP Internet Protocol
- the voice protocol in the network protocol is one of the key factors to ensure smooth voice communication.
- Commonly used voice protocols include: Session Initiation Protocol (SIP), Media Gateway Control Protocol (MGCP), and International Telecommunication Union (ITU) Telecommunication Standardization Organization (ITU Telecommunication)
- SIP Session Initiation Protocol
- MGCP Media Gateway Control Protocol
- ITU-T International Telecommunication Union
- ITU-T International Telecommunication Union
- a MGCP proposed by the 16th Working Group of the Standardization Sector (ITU-T) is the H.248 protocol.
- the requirements for voice protocol switching are proposed. Since the voice terminal equipment supports only one voice protocol at the factory.
- the traditional voice protocol switching method is to upgrade the voice terminal device, and the voice terminal device needs to be restarted after the upgrade to activate the new voice protocol version, thereby implementing the switching of the voice protocol.
- the method of switching the voice protocol by version upgrade requires a restart of the voice terminal device after the upgrade, and the process of switching the voice protocol takes a long time.
- the embodiment of the present invention provides a voice protocol switching method and a voice terminal device, so as to solve the problem of how to avoid switching the voice protocol through version upgrade, and the voice protocol switching process needs to be restarted after the upgrade. Long question.
- an embodiment of the present invention provides a voice protocol switching method, including:
- the call control module receives the first call message, and determines a first protocol stack for establishing a first voice call, where the first protocol stack is disposed in a voice protocol stack module, and the voice protocol stack module includes at least two Protocol stack
- the voice protocol stack module receives a second call message that is sent by the call control module and includes the first protocol stack identifier, and performs the first call message by using a first protocol stack indicated by the first protocol stack identifier.
- the indicated operation, the first call message is used to indicate to initiate a voice call or to receive a voice call.
- the method further includes: when the first call message is used to indicate that a voice call is initiated, before the call control module receives the first call message,
- the resource management module creates call resource information according to the dialing operation of the user, and carries the call resource information in the first call message and sends the call resource information to the call control module;
- the operation of the first call message is performed by the voice protocol stack module by using the first protocol stack indicated by the first protocol stack identifier, including:
- the voice protocol stack module sends a first call setup request to the server by using the first protocol stack, and receives a first call setup response returned by the server, and forwards the first call setup response to the call control module;
- the call control module performs a corresponding control operation in accordance with the indication of the first call setup response.
- the first call setup response indicates that the voice call is received, and the call control module establishes a response according to the first call.
- the instructions perform the appropriate control operations, including:
- the call control module sends a first notification message to the resource management module, where the first notification message is used to indicate that the server has received the voice call;
- the resource management module creates call resource information according to the first notification message, and establishes the first voice call by using the call resource information.
- the first call setup response indicates that the voice call is rejected, and the call control module establishes a response according to the first call.
- the instructions perform the appropriate control operations, including:
- the call control module selects a second protocol stack from the voice protocol stack module, and sends a third call message including the second protocol stack identifier to the voice protocol stack module;
- the voice protocol stack module sends a second call setup request to the server by using a second protocol stack indicated by the second protocol stack identifier, and receives a second call setup response returned by the server, to the call control module. Forwarding the second call setup response;
- the call control module performs a corresponding control operation in accordance with the indication of the second call setup response.
- the first protocol stack includes multiple, and the voice protocol stack module sends the first protocol stack to the server.
- a call setup request including:
- the voice protocol stack module sends a first call setup request to the server by using each of the first protocol stacks, and the first call setup response that is forwarded by the voice protocol stack module to the call control module includes a second protocol. a stack identifier, where the second protocol stack indicated by the second protocol stack identifier is a protocol stack that the server first agrees to receive the voice call;
- the call control module performs a corresponding control operation according to the indication of the first call setup response, including:
- the call control module sends a second notification message to the resource management module, where the second notification message is used to indicate that the server has received the voice call initiated by the second protocol stack;
- the resource management module creates call resource information according to the second notification message, and establishes the first voice call by using the call resource information.
- the method further includes: when the first call message is used to indicate that a voice call is received, before the call control module receives the first call message,
- the voice protocol stack module receives the third call sent by the server by one of the protocol stacks Calling a setup request, and sending the first call message to the call control module, where the first call message includes a protocol stack identifier that receives the third call setup request;
- the method further includes:
- the call control module determines whether the first protocol stack is a protocol stack that receives the third call setup request, and carries the determination result in the second call message and sends the result to the voice protocol stack module.
- the voice protocol stack module forwards the second call message to the server after receiving the second call message,
- the second call message is configured to notify the server that the call control module refuses to receive the voice call;
- the voice protocol stack module forwards the second call message to the server after receiving the second call message, The second call message is used to instruct the server to receive the voice call;
- the method further includes: the resource management module receiving the second call message sent by the call control module, and according to the second call The message creates call resource information, and the first voice call is established by using the call resource information.
- the call control module determines a A protocol stack, including:
- the call control module selects a first protocol stack from the voice protocol stack module according to a preset rule.
- the method further includes: before the call control module receives the first call message,
- the call control module successfully establishes a second voice call by using the first protocol stack, and sends the first protocol stack identifier of the second voice call to the configuration management module.
- the configuration management module saves the received first protocol stack identifier
- the call control module determines a first protocol stack for establishing a voice call, including:
- the call control module reads the first protocol stack identifier saved in the configuration management module, and determines the first protocol stack as a protocol stack for establishing the first voice call.
- the method further includes: before the call control module receives the first call message,
- the configuration management module configures voice parameters corresponding to the voice protocol
- the voice protocol stack module performs detection according to the configured voice parameters, and determines a protocol stack that satisfies the registration condition;
- Each protocol stack in the voice protocol stack module that satisfies the registration condition sends a registration request to the server to complete registration;
- the voice protocol stack module sends a registration notification message to the call control module, where the registration notification message includes a protocol stack identifier that is successfully registered.
- an embodiment of the present invention provides a voice terminal device, including: a call control module and a voice protocol stack module;
- the call control module is configured to receive a first call message, and determine a first protocol stack for establishing a first voice call, where the first protocol stack is set in a voice protocol stack module, and the voice protocol is
- the stack module includes at least two protocol stacks;
- the voice protocol stack module is configured to receive a second call message that is sent by the call control module and includes the first protocol stack identifier, and execute the first protocol stack by using the first protocol stack identifier The operation indicated by a call message, the first call message is used to indicate that a voice call is initiated or a voice call is received.
- the first call message is used to indicate that a voice call is initiated
- the voice terminal device further includes: a resource management module, configured to: before the call control module receives the first call message, create call resource information according to a dialing operation of the user, and carry the call resource information in the first Sending to the call control module in a call message;
- a resource management module configured to: before the call control module receives the first call message, create call resource information according to a dialing operation of the user, and carry the call resource information in the first Sending to the call control module in a call message;
- the voice protocol stack module is configured to: perform, by using the first protocol stack, the first protocol stack, that is performed by the first protocol stack to perform an operation indicated by the first call message: sending, by using the first protocol stack, a server a call setup request, and receiving a first call setup response returned by the server, forwarding the first call setup response to the call control module;
- the call control module is further configured to perform a corresponding control operation according to the indication of the first call setup response.
- the first call setup response indicates that the voice call is received
- the call control module is configured to perform a corresponding control operation according to the indication of the first call setup response by sending a first notification message to the resource management module, where the first notification message is used to indicate Said that the server has received the voice call;
- the resource management module is further configured to create call resource information according to the first notification message, and establish the first voice call by using the call resource information.
- the first call setup response indicates that the voice call is rejected
- the call control module is configured to perform a corresponding control operation according to the indication of the first call setup response by selecting a second protocol stack from the voice protocol stack module, and to the voice protocol stack module Transmitting a third call message including the identifier of the second protocol stack;
- the voice protocol stack module is further configured to send a second call setup request to the server by using the second protocol stack indicated by the second protocol stack identifier, and receive a second call setup response returned by the server, to The call control module forwards the second call setup response;
- the call control module is further configured to perform a corresponding control operation according to the indication of the second call setup response.
- the first protocol stack includes multiple
- the voice protocol stack module is configured to send, by using the first protocol stack, a first call setup request to the server by: sending, by each of the first protocol stacks, a first call setup request to the server, where Transmitting the first of the voice protocol stack module to the call control module
- the call setup response includes a second protocol stack identifier, where the second protocol stack indicated by the second protocol stack identifier is a protocol stack that the server first agrees to receive the voice call;
- the call control module is configured to perform a corresponding control operation according to the indication of the first call setup response by: sending a second notification message to the resource management module, where the second notification message is used to indicate Said server has received said voice call initiated by said second protocol stack;
- the resource management module is further configured to create call resource information according to the second notification message, and establish the first voice call by using the call resource information.
- the first call message is used to indicate that a voice call is received
- the voice protocol stack module is further configured to: before the call control module receives the first call message, receive a third call setup request sent by the server through one of the protocol stacks, and send the call to the call control module a first call message, where the first call message includes a protocol stack identifier that receives the third call setup request;
- the call control module is further configured to: before the voice protocol stack module receives the second call message, determine whether the first protocol stack is a protocol stack that receives the third call setup request, and determine a result And being carried in the second call message and sent to the voice protocol stack module;
- the voice protocol stack module forwards the second call message to the server after receiving the second call message, The second call message is used to notify the server that the call control module refuses to receive the voice call;
- the voice protocol stack module forwards the second call message to the server after receiving the second call message, The second call message is used to instruct the server to receive the voice call;
- the resource management module is further configured to: after the call control module carries the determination result in the second call message, receive the second call message sent by the call control module, and according to the The second call message creates call resource information, and the first voice call is established by using the call resource information.
- the call control module is configured to implement the determining by using the following manner Establishing a first protocol stack of the first voice call: selecting a first protocol stack from the voice protocol stack module according to a preset rule.
- the configuration management module is further included; the call control module is further configured to Before the first call message is received, the second voice call is successfully established by using the first protocol stack, and the first protocol stack identifier of the second voice call is successfully sent to the configuration management module;
- the configuration management module is configured to save the received first protocol stack identifier
- the call control module is configured to: determine, by using the following manner, a first protocol stack for establishing the first voice call: reading the first protocol stack identifier saved in the configuration management module, and The first protocol stack is determined to be a protocol stack for establishing the first voice call.
- the method further includes: a configuration management module, configured to be in the call control module Before receiving the first call message, configuring a voice parameter corresponding to the voice protocol;
- the voice protocol stack module is further configured to: detect, according to the configured voice parameter, a protocol stack that satisfies a registration condition; and each protocol stack that satisfies the registration condition in the voice protocol stack module is used to And the server sends a registration request to complete registration; and sends a registration notification message to the call control module, where the registration notification message includes a protocol stack identifier that is successfully registered.
- the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the above method.
- the voice protocol switching method and the voice terminal device provided by the embodiment of the present invention, after receiving the first call message for instructing to initiate a voice call or receiving a voice call, the call control module determines the first used to establish the first voice call.
- a protocol stack the first protocol stack is a protocol stack in the voice protocol stack module, and the voice protocol stack module includes at least two protocol stacks, and then the voice protocol stack module receives the first protocol stack identifier sent by the call control module.
- Second call message and pass The first protocol stack indicated by the first protocol stack indicates that the operation indicated by the first call message is performed, and the first protocol stack may be used to request a voice call from the server, or may be initiated according to the first protocol stack to other voice terminal devices. The voice call is responded to or rejected.
- the method provided by the embodiment of the present invention performs the operation of establishing a voice call by selecting a protocol stack set in the voice protocol stack module, so that the voice protocol can be switched by the call control module.
- the protocol stack is implemented to solve the problem that the voice protocol is switched by the version upgrade in the related art. Because the voice terminal device needs to be restarted after the upgrade, the process of switching the voice protocol takes a long time.
- FIG. 1 is a flowchart of a method for switching a voice protocol according to an embodiment of the present invention
- FIG. 2 is a flowchart of another voice protocol switching method according to an embodiment of the present invention.
- FIG. 3 is a flowchart of still another method for switching a voice protocol according to an embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of a voice terminal device according to an embodiment of the present disclosure.
- FIG. 5 is a schematic structural diagram of another voice terminal device according to an embodiment of the present invention.
- FIG. 1 is a flowchart of a method for switching a voice protocol according to an embodiment of the present invention.
- the voice protocol switching method provided in this embodiment is applicable to a case where a voice terminal device performs a voice call through different voice protocols, and the method may be performed by a voice terminal device, where the voice terminal device is usually implemented in a hardware and software manner.
- the voice terminal device may initiate a voice call to other voice terminal devices or respond to other voice terminal devices to initiate a voice call.
- the voice terminal device of the voice protocol switching method provided by the embodiment is defined as a first voice terminal device, and other voice terminal devices that perform voice calls with the first voice terminal device are defined as second voice terminal devices.
- the first voice terminal device in the prior art generally includes a call control module, a voice protocol stack module, a resource management module, and a configuration management module.
- the call control module is configured to perform flow control on the VoIP call service;
- the voice protocol stack module is set to run a voice protocol;
- the resource management module is set to manage hardware resources of the digital signal processing DSP and the subscriber line interface circuit SLIC;
- configuration management Module set to manage voice configuration.
- the method in this embodiment may include:
- the call control module receives the first call message, and determines a first protocol stack for establishing a first voice call.
- the first protocol stack is disposed in a voice protocol stack module, and the voice protocol stack module includes at least two Protocol stack.
- the first call message received by the call control module in this embodiment may be used to indicate a voice call initiated by the first voice terminal device, or may be used to indicate that the voice call initiated by the second voice terminal device is received.
- the first call message is used to indicate that the voice call is initiated
- the second voice terminal device is the initiator of the voice call
- the first call message is used to indicate Receiving a voice call; in this embodiment, whether the first voice terminal device is the initiator of the voice call or the receiver, the call control module may determine a first protocol stack for establishing the first voice call, where the first voice call is Refers to the voice call that needs to be established at present.
- the first protocol stack is a protocol stack that has been registered in the voice protocol stack module, for example, the SIP protocol stack is obtained in S110.
- the voice protocol stack module in this embodiment includes the foregoing first protocol stack and other protocol stacks, and is used in the voice protocol stack module in the scenario that the voice protocol is switched in the embodiment of the present invention. At least two protocol stacks, the embodiment includes the SIP protocol stack, the H.248 protocol stack, and the MGCP protocol stack as an example. Each protocol stack in the voice protocol stack module is independently operated, and can be simultaneously sent and received and processed. Voice protocol signaling.
- the manner of determining the first protocol stack may be different.
- the call control module may be selected from the voice protocol stack module according to a preset rule, for example, according to the preset rule.
- the registration status of the voice protocol stack module is selected, for example, the first registration is selected.
- a protocol stack is specified according to the user's selection.
- the embodiment of the present invention does not limit the rules of the foregoing selection protocol stack, and may be other rules defined.
- the voice protocol stack module receives a second call message that is sent by the call control module and includes the first protocol stack identifier, and performs an operation indicated by the first call message by using the first protocol stack indicated by the first protocol stack identifier.
- the first call message is used to indicate that a voice call is initiated or a voice call is received.
- the call control module may carry the first protocol stack identifier in the second call message and send the message to the voice protocol stack module, and the voice protocol stack module may obtain the first call message.
- the indicated content whether the first call message in the embodiment indicates the initiation of the voice call or the reception of the voice call, requires the information exchange between the voice protocol stack module and the server to perform a specific processing manner.
- the voice protocol stack module may send a message to the server through the voice protocol stack module to request to establish a voice call, if the first in this embodiment
- the voice terminal device is the receiver of the voice call, and the call control module can determine to receive or reject the voice call, and the voice protocol stack module sends a message to the server to notify the server of the processing result of the call control module; in this embodiment, the voice is selected.
- the protocol stack is set in the protocol stack module to perform the operation of establishing a voice call process.
- the call control module can obtain different protocol stacks, that is, the voice switching process does not need to restart the first voice device.
- the different protocol stacks can be selected by re-initiating the voice call, which greatly reduces the time required for the voice protocol switching process compared with the related method in which the voice protocol is switched by the upgraded version.
- the call control module determines that the first protocol stack used may be a protocol stack that has been successfully registered in the voice protocol stack module, that is, before the S110, the embodiment may further include: S100, configuration management module configuration. a voice parameter corresponding to the voice protocol; S101, the voice protocol stack module performs detection according to the configured voice parameter, and determines a protocol stack that satisfies the registration condition; S102.
- Each protocol stack that meets the registration condition in the voice protocol stack module sends a registration request to the server to complete registration.
- the voice protocol stack module sends a registration notification message to the call control module, where the registration notification message includes a successful registration protocol.
- Stack identifier
- the method for configuring the management module to configure the voice parameter in the S100 includes: on one hand, the configuration management module can configure the voice parameter corresponding to the voice protocol by loading the content in the database of the voice terminal device, for example, loading the database. After the H.248 protocol server and line termination point are configured, the H.248 protocol stack can implement self-test and registration. On the other hand, the configuration management module can receive the configuration information sent by the management device and configure the corresponding voice protocol.
- the voice parameter for example, the management device developed by the Digital Subscriber Line (DSL) forum, that is, the TR069 sends the SIP protocol server and voice account to the first voice terminal device, and the configuration management module receives and passes the configuration. The information is configured with the SIP protocol.
- DSL Digital Subscriber Line
- the configuration information of the MGCP protocol includes a server and a line termination point of the MGCP protocol.
- the management device sends configuration information to the configuration management module through the management medium, where the management medium includes the TR069 and the optical network unit (Optical Network Unit).
- ONU The management of the ONU Management and Control Interface (OMCI), the type of network management, including operations, management and maintenance (Operation, Administration and Maintenance, OAM) and the Internet (WEB).
- OMCI ONU Management and Control Interface
- OAM operations, management and maintenance
- WEB the Internet
- the voice protocol switching method after receiving the first call message for instructing to initiate a voice call or receiving a voice call, the call control module determines a first protocol stack for establishing a first voice call,
- the first protocol stack is a protocol stack in the voice protocol stack module, and the voice protocol stack module includes at least two protocol stacks, and then the voice protocol stack module receives the second call that is sent by the call control module and includes the first protocol stack identifier.
- the first protocol stack may be used to request a voice call from the server, or according to the first The protocol stack responds or rejects the voice call initiated by the other voice terminal device.
- the method provided in this embodiment performs the operation of establishing a voice call by selecting a protocol stack set in the voice protocol stack module, and implements the switching of the voice protocol.
- the call control module By implementing different protocol stacks by the call control module, the related art is solved.
- Way voice switching protocol version upgrade due to the need to restart the voice terminals after the upgrade, which led to the handover process of emergence of Voice over Internet Protocol lengthy question.
- the restart of the voice terminal device means that the service of the user using the voice terminal device needs to be interrupted, thereby greatly increasing the risk of switching the voice protocol and engineering maintenance. Cost, the voice protocol switching method provided in this embodiment does not need to restart the voice terminal device, that is, the above problem does not exist, and the security and controllability of the voice protocol switching are further ensured.
- FIG. 2 is a flowchart of another voice protocol switching method according to an embodiment of the present invention.
- the first voice terminal device may be the initiator of the voice call, and the first call message is used to indicate that the voice call is initiated, and FIG. 2 is used to interact with each module in the first voice terminal device.
- the method provided in this embodiment may include:
- the resource management module creates call resource information according to the user's dialing operation.
- the resource management module carries the call resource information in the first call message and sends the call resource information to the call control module.
- the call control module is configured to carry a resource management module and a voice protocol stack module
- the resource management module is configured to manage digital signal processing (DSP) and Subscriber Line Interface Circuit (SLIC).
- DSP digital signal processing
- SLIC Subscriber Line Interface Circuit
- the resource management module is configured to report the resource information to the call control module.
- the resource management module is configured to: after detecting that the user picks up the phone and dials the number, creates the call resource information according to the number dialed by the user.
- the call control module determines a first protocol stack that is set to establish a first voice call.
- the first protocol stack is also a protocol stack in the voice protocol stack module, and the voice protocol stack module includes at least two protocol stacks.
- the call control module can The first protocol stack is determined, and the manner of determining the first protocol stack is the same as that of the foregoing embodiment, and details are not described herein again.
- the voice protocol stack module receives a second call message that is sent by the call control module and includes the first protocol stack identifier.
- the implementation manners of S230-S240 may refer to S110-S120 in the embodiment shown in FIG. 1.
- the second call message is used to initiate voice to the server by using a voice protocol stack module. call;
- the voice protocol stack module sends a first call setup request to the server by using the first protocol stack.
- the voice protocol stack module receives a first call setup response returned by the server.
- the voice protocol stack module forwards the first call setup response to the call control module.
- the call control module performs a corresponding control operation according to the indication of the first call setup response.
- the first call setup response returned by the server may be either receiving a voice call or rejecting the voice call. Therefore, after the voice protocol stack module forwards the first call setup response to the call control module, the call control is performed.
- the content of the specific operation performed by the module according to the indication of the first call setup response is also different.
- the first protocol stack is, for example, a SIP protocol stack
- the voice protocol stack module sends a first call setup request to the server through the SIP protocol stack
- the server receives the For the voice call
- the method for executing S280 in this embodiment is: S281, the call control module sends a first notification message to the resource management module, where the first notification message is used to indicate that the server has received the voice call; S282, the resource management module is configured according to the a notification message creates a call resource information, and establishes a first voice call by using the call resource information; and then waits for the second voice terminal device that receives the voice call to go off-hook, and the user holding the first voice terminal device can hold the second voice The user of the terminal device makes a call.
- the first protocol stack is, for example, an H.248 protocol stack
- the voice protocol stack module sends a first call setup to the server through the H.248 protocol stack.
- the method of executing S280 in this embodiment is: S283, the call control module selects a second protocol stack from the voice protocol stack module; S284, the call control module sends the voice protocol stack module to the voice protocol stack module.
- the voice protocol stack module sends a second call setup request to the server by using the second protocol stack indicated by the second protocol stack identifier; S286, the voice protocol stack module receives the second call returned by the server Establishing a response; S287, the voice protocol stack module forwards the second call setup response to the call control module; S288, the call control module performs a corresponding control operation according to the indication of the second call setup response.
- the server in this embodiment rejects the first call setup request sent by the H.248 protocol stack. Therefore, after the call control module receives the first call setup response, the call control module may also traverse other protocol stacks in the voice protocol stack module. A voice call is initiated until the server receives a voice call. Need It is noted that, in the embodiment, when the call control module selects the protocol stack, the preset rule further includes: when the protocol stack call of the current voice call fails, the other successfully registered protocol stack may be polled to continue the voice call. .
- the first protocol stack determined by the call control module in S230 may include multiple, that is, S250 in the embodiment shown in FIG.
- the voice protocol stack module may concurrently send the first call setup request to the server through multiple first protocol stacks, and the first call setup response forwarded by the voice protocol stack module to the call control module in S270 may include the first
- the second protocol stack identifier is the second protocol stack indicated by the second protocol stack identifier.
- the protocol stack that the server first agrees to receive the voice call is, for example, the MGCP protocol stack.
- the method for executing S280 in this embodiment is: S289, the call control module sends a second notification message to the resource management module, where the second notification message is used to indicate that the server has received the voice call initiated by the second protocol stack; S290, the resource management module creates the call resource information according to the second notification message, And establishing a first voice call by using the call resource information; then waiting for the second voice terminal device receiving the voice call to go off-hook, holding the A user terminal may be a voice call with the second voice terminal held by the user device.
- S281-S282, S283-S288, and S289-S290 are different control operations performed by the call control module according to the indication of the first call setup response, that is, S281-S282, S283-S288 and S289-S290 are several parallel execution modes, which are selected for execution.
- the voice protocol stack module is in S288, and the call control module performs corresponding according to the indication of the second call setup response.
- the manner of the control operation is similar to that of S280, that is, after S288, the operations of S283 to S288 may be repeatedly performed, and the operations of S281 to S282 may also be performed.
- FIG. 3 is a flowchart of still another method for switching a voice protocol according to an embodiment of the present invention.
- the first voice terminal device may be a receiver of a voice call, and the first call message may be used to indicate that a voice call is received, and FIG. 3 also passes through each module in the first voice terminal device.
- the interaction, and the manner in which the voice protocol stack module interacts with the server, describes the execution flow of this embodiment.
- the method provided in this embodiment may include:
- the voice protocol stack module receives a third call setup request sent by the server through one of the protocol stacks.
- the voice protocol stack module sends a first call message to the call control module, where the first call message includes a protocol stack identifier that receives the third call setup request.
- the server when the second voice terminal device initiates a voice call to the first voice terminal device, the server sends a third call setup request to the voice protocol stack module.
- the first call is received by the H.248 protocol stack.
- the three call setup request will notify the call control module that the voice call is currently in need of access by sending a first call message to the call control module, and the notification is received by the H.248 protocol stack.
- the call control module determines a first protocol stack for establishing a first voice call.
- the call control module after receiving the first call message, performs an operation of determining the first protocol stack, and the manner of determining the first protocol stack is also the same as the foregoing embodiment, and may be according to different preset rules.
- the call control module may select a protocol stack in which the last voice call is successfully established, for example, a SIP protocol stack is selected, and, for example, the call control module may further select a voice call stack module to send a first call message thereto,
- the protocol stack carried in the message that is, the protocol stack that receives the third call setup request, selects the H.248 protocol stack.
- the voice protocol stack module receives a second call message that is sent by the call control module and includes the first protocol stack identifier.
- the second call message is used to send a call control module to a voice call to a server through a voice protocol stack module.
- the feedback result is related to the first protocol stack determined by the call control module in S330.
- the method provided in this embodiment further includes:
- the call control module determines whether the first protocol stack is a protocol stack that receives the third call setup request; if not, executes S340, and if yes, executes S340 and S332.
- the call control module does not allow the first protocol stack to access the voice call, and may notify the voice protocol stack module by using the second call message. Rejecting the voice call, correspondingly, after S340, the method further includes: S350, the voice protocol stack module sends the second call message to the server, and the second call cancellation The information is used to notify the server that the call control module refuses to receive the voice call.
- the call control module may directly receive the protocol stack of the third call setup request.
- the call control module allows the first protocol stack to access the voice call, that is, the second protocol message is used to notify the voice protocol stack module to agree to receive the voice call, and then S352 can be performed while executing S340.
- S350 is also performed, except that the second call message forwarded to the server in the S350 is used to instruct the server to receive the voice call.
- S332 is: the call control module to the resource management module.
- the second call message in the embodiment of the present invention is actually a response message to the third call setup request, and the embodiment does not limit the execution order of S340-S350 and S332-S333, and may be performed in parallel.
- the manner in which the call control module in the foregoing embodiments of the present invention obtains the first protocol stack may be the first protocol stack selected from the voice protocol stack module in the foregoing embodiment, and may be obtained in other manners.
- the method further includes: S301, the call control module successfully establishes a second voice call by using the first protocol stack; S302, the call control module sends the first to the configuration management module.
- the configuration management module saves the first protocol stack identifier of the second voice call successfully; correspondingly, the S330 is: the call control module reads the first protocol stack identifier saved in the configuration management module, and The first protocol stack is determined to be a protocol stack for establishing the first voice call.
- the first voice terminal device in this embodiment has successfully established the second voice call before establishing the first voice call, and the call control module may save the first protocol stack used by the second voice call to the configuration management module.
- the protocol stack stored in the configuration management module is used, in which the call control module selects the protocol stack used for the last successful establishment of the voice call.
- An embodiment of the present invention further provides a computer storage medium, where the computer storage medium is stored Computer executable instructions are stored for performing the methods described above.
- FIG. 4 is a schematic structural diagram of a voice terminal device according to an embodiment of the present invention.
- the voice terminal device is implemented in a hardware and software manner, and the voice terminal device can initiate a voice call to other voice terminal devices or Responding to other voice terminal devices initiating a voice call.
- the voice terminal device of this embodiment includes: a call control module 11 and a voice protocol stack module 12.
- the call control module 11 is configured to receive the first call message, and determine a first protocol stack for establishing a first voice call, where the first protocol stack is set in the voice protocol stack module 12, and the voice protocol stack module 12 includes at least two protocol stacks.
- the voice protocol stack module 12 of the present embodiment includes the foregoing first protocol stack and other protocol stacks, and is used in the scenario of the voice protocol protocol in the voice protocol stack module 12.
- the method includes at least two protocol stacks, and the embodiment includes an example of the SIP protocol stack, the H.248 protocol stack, and the MGCP protocol stack.
- the voice protocol stack module 12 is configured to receive the second call message that is sent by the call control module 11 and includes the first protocol stack identifier, and perform the operation indicated by the first call message by using the first protocol stack indicated by the first protocol stack identifier.
- the first call message is used to indicate that a voice call is initiated or a voice call is received.
- the voice terminal device provided by the embodiment of the present invention is used to perform the voice protocol switching method provided by the embodiment shown in FIG. 1 of the present invention, and has a corresponding function module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
- the first protocol stack determined by the call control module 11 is a protocol stack that has been registered in the voice protocol stack module 12, and the voice terminal device provided in this embodiment further includes: a configuration management module 13, The voice protocol corresponding to the voice protocol is configured to be configured before the call control module 11 receives the first call message; correspondingly, the voice protocol stack module 12 is further configured to perform detection according to the configured voice parameter to determine a protocol stack that satisfies the registration condition; And each protocol stack in the voice protocol stack module 12 that meets the registration condition is used to send a registration request to the server to complete the registration; and the voice protocol stack module 12 is further configured to send the registration notification to the call control module 11.
- the registration notification message includes the protocol stack identifier that is successfully registered.
- the manner in which the configuration management module 13 is configured to configure the voice parameter includes: configuring the voice parameter corresponding to the voice protocol by loading the content in the database of the voice terminal device; or receiving the configuration information sent by the management device Configure the voice parameters corresponding to the voice protocol.
- FIG. 5 is a schematic structural diagram of another voice terminal device according to an embodiment of the present invention.
- the voice terminal device provided by this embodiment is the initiator of the voice call, and the first call message is used to indicate that the voice call is initiated.
- the voice terminal device provided in this embodiment further includes: a resource management module 14 configured to be in the call control module 11 Before receiving the first call message, the call resource information is created according to the user's dialing operation, and the call resource information is carried in the first call message and sent to the call control module 11; the voice protocol stack module 12 is set to indicate by the first protocol stack identifier.
- the first protocol stack performs an operation indicated by the first call message: sending a first call setup request to the server through the first protocol stack, and receiving a first call setup response returned by the server, thereby forwarding the first to the call control module 11
- the call setup response accordingly, the call control module 11 is further configured to perform a corresponding control operation in accordance with the indication of the first call setup response.
- the first call setup response returned by the server may indicate that the voice call is received or the voice call is rejected. Therefore, after the voice protocol stack module 12 forwards the first call setup response to the call control module 11, The content of the specific operation performed by the call control module 11 in accordance with the indication of the first call setup response is also different.
- the first call setup response indicates that a voice call is received; and the call control module 11 is configured to perform a corresponding control according to the indication of the first call setup response.
- the first call setup response indicates that the voice call is rejected; and the call control module 11 is configured to perform the corresponding according to the indication of the first call setup response.
- Control operation selecting a second protocol stack from the voice protocol stack module 12, and Transmitting, to the voice protocol stack module 12, a third call message including a second protocol stack identifier; correspondingly, the voice protocol stack module 12 is further configured to send a second call to the server by using the second protocol stack indicated by the second protocol stack identifier A request is established and a second call setup response returned by the server is received, thereby forwarding a second call setup response to the call control module 11; the call control module 11 is further configured to perform a corresponding control operation in accordance with the indication of the second call setup response.
- the server in this embodiment rejects the first call setup request sent by the first protocol stack. Therefore, after the call control module 11 receives the first call setup response, the call control module 11 may also traverse other protocol stacks in the voice protocol stack module 12. Re-initiate the voice call until the server receives the voice call. It should be noted that, in the embodiment, when the call control module 11 determines the protocol stack, the preset rule further includes: when the protocol stack call of the current voice call fails, the other protocol stacks successfully registered may be polled to continue. Voice call.
- the first protocol stack determined by the call control module 11 includes multiple; the voice protocol stack module 12 is configured to pass the first protocol stack.
- the second protocol stack indicated by the second protocol stack identifier is a protocol stack that the server first agrees to receive the voice call; accordingly, the call control module 11 is configured to perform a corresponding control operation according to the indication of the first call setup response: Sending a second notification message to the resource management module 14, the second notification message is used to indicate that the server has received the voice call initiated by the second protocol stack; the resource management module 14 is further configured to create call resource information according to the second notification message, and Establishing a first voice call by using call resource information; then waiting for the second voice terminal device receiving the voice call to go off-hook A first voice terminal user holds the device may be held by a second voice call with the user terminal device.
- the foregoing three possible situations are different control operations performed by the call control module 11 according to the indication of the first call setup response, that is, the foregoing three A possible case is a parallel execution mode, which is selected for execution; in addition, in the second case, after the voice protocol stack module 12 is set to forward the second call setup response to the call control module 11, the call control module 11 a manner of performing a corresponding control operation according to the indication of the second call setup response, and an indication of the first call setup response.
- the manner in which the corresponding control operation is performed is similar, and the operation in the second case may be repeatedly performed, or the operation in the first case may be performed.
- the voice terminal device provided by the embodiment of the present invention is used to perform the voice protocol switching method provided by the embodiment shown in FIG. 2 of the present invention, and has a corresponding function module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
- the voice terminal device provided by the foregoing embodiment shown in FIG. 5 can also be used to receive a voice call initiated by another voice terminal device, that is, the voice terminal device in this embodiment can be a receiver of a voice call, and the first call message is used to indicate Receiving a voice call; in the voice terminal device provided in this embodiment, the voice protocol stack module 12 is further configured to receive a third call setup sent by the server through one of the protocol stacks before the call control module 11 receives the first call message. And sending, by the call control module 11, the first call message, where the first call message includes a protocol stack identifier for receiving a third call setup request; correspondingly, the call control module 11 is further configured to be in a voice protocol stack module. Before receiving the second call message, it is determined whether the first protocol stack is a protocol stack that receives the third call setup request, and the result of the judgment is carried in the second call message and sent to the voice protocol stack module 12.
- the voice protocol stack module 12 is further configured to forward the second call message to the server after receiving the second call message, the second call The message is used to notify the server that the call control module 11 refuses to receive the voice call; in another case, when it is determined that the first protocol stack is the protocol stack that receives the third call setup request, the voice protocol stack module 12 is receiving the second call message.
- the second call message is further configured to forward the second call message to the server, where the second call message is used to instruct the server to receive the voice call
- the resource management module 14 is further configured to: after the call control module 11 carries the determination result in the second call message, Receiving the second call message sent by the call control module 11, and creating call resource information according to the second call message, establishing a first voice call by using the call resource information; and then after the user holding the first voice terminal device picks up the phone The user can talk to the user holding the second voice terminal device.
- the manner in which the call control module 11 in the above embodiments of the present invention determines the first protocol stack may be the first protocol stack selected from the voice protocol stack module 12 as described in the foregoing embodiment, and other methods may be used. The method obtains the first protocol stack.
- the call control module 11 is further configured to successfully establish a second voice call through the first protocol stack before receiving the first call message, and successfully establish a second voice call.
- the first protocol stack identifier is sent to the configuration management module 14;
- the configuration management module 14 is configured to save the received first protocol stack identifier; accordingly, the call control module 11 is configured to determine a first protocol stack for establishing the first voice call: reading the first saved in the configuration management module 13
- the protocol stack identifies and determines the first protocol stack as a protocol stack for establishing a first voice call.
- the voice terminal device provided by the embodiment of the present invention is used to perform the voice protocol switching method provided by the embodiment shown in FIG. 3 of the present invention, and has a corresponding function module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
- each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
- the invention is not limited to any specific form of combination of hardware and software.
- the foregoing technical solution avoids the manner of implementing the handover voice protocol by version upgrade. Since the voice terminal device does not need to be restarted, the handover process of the voice protocol is shortened.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
Abstract
A voice protocol handover method and a voice terminal device. The voice protocol handover method comprises: a call control module receiving a first call message, and determining a first protocol stack for establishing first voice communication, wherein the first protocol stack is arranged in a voice protocol stack module, and the voice protocol stack module comprises at least two protocol stacks; and the voice protocol stack module receiving a second call message which is sent by the call control module and comprises a first protocol stack identifier, and executing an operation indicated by the first call message through the first protocol stack indicated by the first protocol stack identifier, wherein the first call message is used to indicate initiating a voice call or receiving a voice call. The technical solution solves the problem in the related art that, in the method for voice protocol handover by means of version upgrading, the time consumed by the voice protocol handover process is relatively long, because a voice terminal device needs to be restarted after upgrading.
Description
本文涉及但不限于语音通话技术领域,尤指一种语音协议切换方法和语音终端设备。This document relates to, but is not limited to, the field of voice call technology, and in particular to a voice protocol switching method and a voice terminal device.
随着网络通信的发展,网络电话(Voice over Internet Protocol,VoIP)的应用得到了普及,VoIP具有低通话成本、低建设成本、易扩充性及日渐优良化的通话质量等优点,通常使用在长途通话业务和公司业务中。With the development of network communication, the application of Voice over Internet Protocol (VoIP) has become popular. VoIP has the advantages of low call cost, low construction cost, easy expansion, and increasingly excellent call quality, and is usually used for long distances. In the call business and corporate business.
VoIP将模拟语音信号数字化,通常在互联网中使用网络协议(Internet Protocol,IP)以数据包的方式传输语音信号,网络协议中的语音协议是保证VoIP实现顺利通话的关键因素之一。目前常用的语音协议包括:会话发起协议(Session Initiation Protocol,SIP)、媒体网关控制协议(Media Gateway Control Protocol,MGCP),以及由国际电信联盟(International Telecommunication Union,ITU)远程通信标准化组织(ITU Telecommunication Standardization Sector,ITU-T)第16工作组提出的一种MGCP,即为H.248协议。当前的网络中已经存在同一个地区多个语音协议并存使用的情形,在语音终端设备的开通和维护过程中提出了对语音协议切换的需求;由于语音终端设备在出厂时只支持一种语音协议,传统的语音协议切换方法是对语音终端设备进行版本升级,并且升级后需要重启语音终端设备才能激活新的语音协议版本,从而实现对语音协议的切换。VoIP digitizes analog voice signals. Usually, the Internet Protocol (IP) is used to transmit voice signals in the form of data packets. The voice protocol in the network protocol is one of the key factors to ensure smooth voice communication. Commonly used voice protocols include: Session Initiation Protocol (SIP), Media Gateway Control Protocol (MGCP), and International Telecommunication Union (ITU) Telecommunication Standardization Organization (ITU Telecommunication) A MGCP proposed by the 16th Working Group of the Standardization Sector (ITU-T) is the H.248 protocol. In the current network, there are already multiple voice protocols coexisting in the same area. In the process of opening and maintaining the voice terminal equipment, the requirements for voice protocol switching are proposed. Since the voice terminal equipment supports only one voice protocol at the factory. The traditional voice protocol switching method is to upgrade the voice terminal device, and the voice terminal device needs to be restarted after the upgrade to activate the new voice protocol version, thereby implementing the switching of the voice protocol.
然而,相关技术中通过版本升级切换语音协议的方式,由于升级后需要重启语音终端设备,而导致语音协议的切换过程耗时较长。However, in the related art, the method of switching the voice protocol by version upgrade requires a restart of the voice terminal device after the upgrade, and the process of switching the voice protocol takes a long time.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求
的保护范围。The following is an overview of the topics detailed in this document. This summary is not intended to limit the claims
The scope of protection.
本发明实施例提供了一种语音协议切换方法和语音终端设备,以解决如何避免通过版本升级切换语音协议的方式,由于升级后需要重启语音终端设备,而导致出现语音协议的切换过程耗时较长的问题。The embodiment of the present invention provides a voice protocol switching method and a voice terminal device, so as to solve the problem of how to avoid switching the voice protocol through version upgrade, and the voice protocol switching process needs to be restarted after the upgrade. Long question.
第一方面,本发明实施例提供一种语音协议切换方法,包括:In a first aspect, an embodiment of the present invention provides a voice protocol switching method, including:
呼叫控制模块接收第一呼叫消息,并确定用于建立第一语音通话的第一协议栈,所述第一协议栈设置于语音协议栈模块中,且所述语音协议栈模块中包括至少两个协议栈;The call control module receives the first call message, and determines a first protocol stack for establishing a first voice call, where the first protocol stack is disposed in a voice protocol stack module, and the voice protocol stack module includes at least two Protocol stack
所述语音协议栈模块接收所述呼叫控制模块发送的包括所述第一协议栈标识的第二呼叫消息,并通过所述第一协议栈标识指示的第一协议栈执行所述第一呼叫消息所指示的操作,所述第一呼叫消息用于指示发起语音呼叫或者接收语音呼叫。The voice protocol stack module receives a second call message that is sent by the call control module and includes the first protocol stack identifier, and performs the first call message by using a first protocol stack indicated by the first protocol stack identifier. The indicated operation, the first call message is used to indicate to initiate a voice call or to receive a voice call.
在第一方面的第一种可能的实现方式中,还包括:当所述第一呼叫消息用于指示发起语音呼叫时,所述呼叫控制模块接收第一呼叫消息之前,In a first possible implementation manner of the first aspect, the method further includes: when the first call message is used to indicate that a voice call is initiated, before the call control module receives the first call message,
所述资源管理模块根据用户的拨号操作创建呼叫资源信息,并将所述呼叫资源信息携带在所述第一呼叫消息中发送给所述呼叫控制模块;The resource management module creates call resource information according to the dialing operation of the user, and carries the call resource information in the first call message and sends the call resource information to the call control module;
所述语音协议栈模块通过所述第一协议栈标识指示的第一协议栈执行所述第一呼叫消息所指示的操作,包括:The operation of the first call message is performed by the voice protocol stack module by using the first protocol stack indicated by the first protocol stack identifier, including:
所述语音协议栈模块通过所述第一协议栈向服务器发送第一呼叫建立请求,并接收所述服务器返回的第一呼叫建立响应,向所述呼叫控制模块转发所述第一呼叫建立响应;The voice protocol stack module sends a first call setup request to the server by using the first protocol stack, and receives a first call setup response returned by the server, and forwards the first call setup response to the call control module;
所述呼叫控制模块根据所述第一呼叫建立响应的指示执行相应的控制操作。The call control module performs a corresponding control operation in accordance with the indication of the first call setup response.
根据第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述第一呼叫建立响应指示接收所述语音呼叫,所述呼叫控制模块根据所述第一呼叫建立响应的指示执行相应的控制操作,包括:According to a first possible implementation manner of the first aspect, in a second possible implementation manner, the first call setup response indicates that the voice call is received, and the call control module establishes a response according to the first call. The instructions perform the appropriate control operations, including:
所述呼叫控制模块向所述资源管理模块发送第一通知消息,所述第一通知消息用于指示所述服务器已接收所述语音呼叫;
The call control module sends a first notification message to the resource management module, where the first notification message is used to indicate that the server has received the voice call;
所述资源管理模块根据所述第一通知消息创建通话资源信息,并通过所述通话资源信息建立所述第一语音通话。The resource management module creates call resource information according to the first notification message, and establishes the first voice call by using the call resource information.
根据第一方面的第一种可能的实现方式,在第三种可能的实现方式中,所述第一呼叫建立响应指示拒绝所述语音呼叫,所述呼叫控制模块根据所述第一呼叫建立响应的指示执行相应的控制操作,包括:According to a first possible implementation manner of the first aspect, in a third possible implementation manner, the first call setup response indicates that the voice call is rejected, and the call control module establishes a response according to the first call. The instructions perform the appropriate control operations, including:
所述呼叫控制模块从所述语音协议栈模块中选择第二协议栈,并向所述语音协议栈模块发送包括所述第二协议栈标识的第三呼叫消息;The call control module selects a second protocol stack from the voice protocol stack module, and sends a third call message including the second protocol stack identifier to the voice protocol stack module;
所述语音协议栈模块通过所述第二协议栈标识指示的第二协议栈向所述服务器发送第二呼叫建立请求,并接收所述服务器返回的第二呼叫建立响应,向所述呼叫控制模块转发所述第二呼叫建立响应;The voice protocol stack module sends a second call setup request to the server by using a second protocol stack indicated by the second protocol stack identifier, and receives a second call setup response returned by the server, to the call control module. Forwarding the second call setup response;
所述呼叫控制模块根据所述第二呼叫建立响应的指示执行相应的控制操作。The call control module performs a corresponding control operation in accordance with the indication of the second call setup response.
根据第一方面的第一种可能的实现方式,在第四种可能的实现方式中,所述第一协议栈包括多个;所述语音协议栈模块通过所述第一协议栈向服务器发送第一呼叫建立请求,包括:According to a first possible implementation manner of the first aspect, in a fourth possible implementation, the first protocol stack includes multiple, and the voice protocol stack module sends the first protocol stack to the server. A call setup request, including:
所述语音协议栈模块通过每个所述第一协议栈分别向服务器发送第一呼叫建立请求,则所述语音协议栈模块向所述呼叫控制模块转发的第一呼叫建立响应中包括第二协议栈标识,所述第二协议栈标识所指示的第二协议栈为所述服务器最先同意接收所述语音呼叫的协议栈;The voice protocol stack module sends a first call setup request to the server by using each of the first protocol stacks, and the first call setup response that is forwarded by the voice protocol stack module to the call control module includes a second protocol. a stack identifier, where the second protocol stack indicated by the second protocol stack identifier is a protocol stack that the server first agrees to receive the voice call;
所述呼叫控制模块根据所述第一呼叫建立响应的指示执行相应的控制操作,包括:The call control module performs a corresponding control operation according to the indication of the first call setup response, including:
所述呼叫控制模块向所述资源管理模块发送第二通知消息,所述第二通知消息用于指示所述服务器已接收所述第二协议栈发起的语音呼叫;The call control module sends a second notification message to the resource management module, where the second notification message is used to indicate that the server has received the voice call initiated by the second protocol stack;
所述资源管理模块根据所述第二通知消息创建通话资源信息,并通过所述通话资源信息建立所述第一语音通话。The resource management module creates call resource information according to the second notification message, and establishes the first voice call by using the call resource information.
在第一方面的第五种可能的实现方式中,还包括:当所述第一呼叫消息用于指示接收语音呼叫时,所述呼叫控制模块接收第一呼叫消息之前,In a fifth possible implementation manner of the first aspect, the method further includes: when the first call message is used to indicate that a voice call is received, before the call control module receives the first call message,
所述语音协议栈模块通过其中一个协议栈接收所述服务器发送的第三呼
叫建立请求,并向所述呼叫控制模块发送所述第一呼叫消息,所述第一呼叫消息中包括接收所述第三呼叫建立请求的协议栈标识;The voice protocol stack module receives the third call sent by the server by one of the protocol stacks
Calling a setup request, and sending the first call message to the call control module, where the first call message includes a protocol stack identifier that receives the third call setup request;
所述语音协议栈模块接收所述呼叫控制模块发送的所述第二呼叫消息之前,还包括:Before the voice protocol stack module receives the second call message sent by the call control module, the method further includes:
所述呼叫控制模块判断所述第一协议栈是否为接收所述第三呼叫建立请求的协议栈,并将判断结果携带在所述第二呼叫消息中发送给所述语音协议栈模块;The call control module determines whether the first protocol stack is a protocol stack that receives the third call setup request, and carries the determination result in the second call message and sends the result to the voice protocol stack module.
若所述第一协议栈不是接收所述第三呼叫建立请求的协议栈,所述语音协议栈模块在接收所述第二呼叫消息之后,向所述服务器转发所述第二呼叫消息,所述第二呼叫消息用于向所述服务器通知所述呼叫控制模块拒绝接收所述语音呼叫;If the first protocol stack is not a protocol stack that receives the third call setup request, the voice protocol stack module forwards the second call message to the server after receiving the second call message, The second call message is configured to notify the server that the call control module refuses to receive the voice call;
若所述第一协议栈是接收所述第三呼叫建立请求的协议栈,所述语音协议栈模块在接收所述第二呼叫消息之后,向所述服务器转发所述第二呼叫消息,所述第二呼叫消息用于指示所述服务器接收所述语音呼叫;If the first protocol stack is a protocol stack that receives the third call setup request, the voice protocol stack module forwards the second call message to the server after receiving the second call message, The second call message is used to instruct the server to receive the voice call;
所述呼叫控制模块将所述判断结果携带在所述第二呼叫消息之后,还包括:所述资源管理模块接收所述呼叫控制模块发送的所述第二呼叫消息,并根据所述第二呼叫消息创建通话资源信息,通过所述通话资源信息建立所述第一语音通话。After the call control module carries the determination result to the second call message, the method further includes: the resource management module receiving the second call message sent by the call control module, and according to the second call The message creates call resource information, and the first voice call is established by using the call resource information.
根据第一方面、第一方面的第一种到第五种可能的实现方式中任意一种,在第六种可能的实现方式中,所述呼叫控制模块确定用于建立第一语音通话的第一协议栈,包括:According to the first aspect, any one of the first to fifth possible implementation manners of the first aspect, in a sixth possible implementation, the call control module determines a A protocol stack, including:
所述呼叫控制模块根据预置的规则从所述语音协议栈模块中选择第一协议栈。The call control module selects a first protocol stack from the voice protocol stack module according to a preset rule.
根据第一方面、第一方面的第一种到第五种可能的实现方式中任意一种,在第七种可能的实现方式中,还包括:所述呼叫控制模块接收第一呼叫消息之前,According to the first aspect, any one of the first to fifth possible implementation manners of the first aspect, in a seventh possible implementation, the method further includes: before the call control module receives the first call message,
所述呼叫控制模块通过第一协议栈成功建立第二语音通话,并将成功建立所述第二语音通话的第一协议栈标识发送给配置管理模块;
The call control module successfully establishes a second voice call by using the first protocol stack, and sends the first protocol stack identifier of the second voice call to the configuration management module.
所述配置管理模块保存所述接收的第一协议栈标识;The configuration management module saves the received first protocol stack identifier;
所述呼叫控制模块确定用于建立语音通话的第一协议栈,包括:The call control module determines a first protocol stack for establishing a voice call, including:
所述呼叫控制模块读取所述配置管理模块中保存的所述第一协议栈标识,并将所述第一协议栈确定为用于建立所述第一语音通话的协议栈。The call control module reads the first protocol stack identifier saved in the configuration management module, and determines the first protocol stack as a protocol stack for establishing the first voice call.
根据第一方面、第一方面的第一种到第五种可能的实现方式中任意一种,在第八种可能的实现方式中,还包括:所述呼叫控制模块接收第一呼叫消息之前,According to the first aspect, any one of the first to fifth possible implementation manners of the first aspect, in an eighth possible implementation manner, the method further includes: before the call control module receives the first call message,
配置管理模块配置语音协议对应的语音参数;The configuration management module configures voice parameters corresponding to the voice protocol;
所述语音协议栈模块根据所述配置的语音参数进行检测,确定满足注册条件的协议栈;The voice protocol stack module performs detection according to the configured voice parameters, and determines a protocol stack that satisfies the registration condition;
所述语音协议栈模块中满足所述注册条件的每个协议栈向所述服务器发送注册请求,以完成注册;Each protocol stack in the voice protocol stack module that satisfies the registration condition sends a registration request to the server to complete registration;
所述语音协议栈模块向所述呼叫控制模块发送注册通知消息,所述注册通知消息中包括注册成功的协议栈标识。The voice protocol stack module sends a registration notification message to the call control module, where the registration notification message includes a protocol stack identifier that is successfully registered.
第二方面,本发明实施例提供一种语音终端设备,包括:呼叫控制模块和语音协议栈模块;In a second aspect, an embodiment of the present invention provides a voice terminal device, including: a call control module and a voice protocol stack module;
其中,所述呼叫控制模块,设置为接收第一呼叫消息,并确定用于建立第一语音通话的第一协议栈,所述第一协议栈设置于语音协议栈模块中,且所述语音协议栈模块中包括至少两个协议栈;The call control module is configured to receive a first call message, and determine a first protocol stack for establishing a first voice call, where the first protocol stack is set in a voice protocol stack module, and the voice protocol is The stack module includes at least two protocol stacks;
所述语音协议栈模块,设置为接收所述呼叫控制模块发送的包括所述第一协议栈标识的第二呼叫消息,并通过所述第一协议栈标识指示的第一协议栈执行所述第一呼叫消息所指示的操作,所述第一呼叫消息用于指示发起语音呼叫或者接收语音呼叫。The voice protocol stack module is configured to receive a second call message that is sent by the call control module and includes the first protocol stack identifier, and execute the first protocol stack by using the first protocol stack identifier The operation indicated by a call message, the first call message is used to indicate that a voice call is initiated or a voice call is received.
在第二方面的第一种可能的实现方式中,所述第一呼叫消息用于指示发起语音呼叫;In a first possible implementation manner of the second aspect, the first call message is used to indicate that a voice call is initiated;
所述语音终端设备还包括:资源管理模块,设置为在所述呼叫控制模块接收第一呼叫消息之前,根据用户的拨号操作创建呼叫资源信息,并将所述呼叫资源信息携带在所述第一呼叫消息中发送给所述呼叫控制模块;
The voice terminal device further includes: a resource management module, configured to: before the call control module receives the first call message, create call resource information according to a dialing operation of the user, and carry the call resource information in the first Sending to the call control module in a call message;
所述语音协议栈模块是设置为通过如下方式实现通过所述第一协议栈标识指示的第一协议栈执行所述第一呼叫消息所指示的操作:通过所述第一协议栈向服务器发送第一呼叫建立请求,并接收所述服务器返回的第一呼叫建立响应,向所述呼叫控制模块转发所述第一呼叫建立响应;The voice protocol stack module is configured to: perform, by using the first protocol stack, the first protocol stack, that is performed by the first protocol stack to perform an operation indicated by the first call message: sending, by using the first protocol stack, a server a call setup request, and receiving a first call setup response returned by the server, forwarding the first call setup response to the call control module;
所述呼叫控制模块,还设置为根据所述第一呼叫建立响应的指示执行相应的控制操作。The call control module is further configured to perform a corresponding control operation according to the indication of the first call setup response.
根据第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述第一呼叫建立响应指示接收所述语音呼叫;According to a first possible implementation manner of the second aspect, in a second possible implementation manner, the first call setup response indicates that the voice call is received;
所述呼叫控制模块是设置为通过如下方式实现根据所述第一呼叫建立响应的指示执行相应的控制操作:向所述资源管理模块发送第一通知消息,所述第一通知消息用于指示所述服务器已接收所述语音呼叫;The call control module is configured to perform a corresponding control operation according to the indication of the first call setup response by sending a first notification message to the resource management module, where the first notification message is used to indicate Said that the server has received the voice call;
所述资源管理模块,还设置为根据所述第一通知消息创建通话资源信息,并通过所述通话资源信息建立所述第一语音通话。The resource management module is further configured to create call resource information according to the first notification message, and establish the first voice call by using the call resource information.
根据第二方面的第一种可能的实现方式,在第三种可能的实现方式中,所述第一呼叫建立响应指示拒绝所述语音呼叫;According to a first possible implementation manner of the second aspect, in a third possible implementation manner, the first call setup response indicates that the voice call is rejected;
所述呼叫控制模块是设置为通过如下方式实现根据所述第一呼叫建立响应的指示执行相应的控制操作:从所述语音协议栈模块中选择第二协议栈,并向所述语音协议栈模块发送包括所述第二协议栈标识的第三呼叫消息;The call control module is configured to perform a corresponding control operation according to the indication of the first call setup response by selecting a second protocol stack from the voice protocol stack module, and to the voice protocol stack module Transmitting a third call message including the identifier of the second protocol stack;
所述语音协议栈模块,还设置为通过所述第二协议栈标识所指示的第二协议栈向所述服务器发送第二呼叫建立请求,并接收所述服务器返回的第二呼叫建立响应,向所述呼叫控制模块转发所述第二呼叫建立响应;The voice protocol stack module is further configured to send a second call setup request to the server by using the second protocol stack indicated by the second protocol stack identifier, and receive a second call setup response returned by the server, to The call control module forwards the second call setup response;
所述呼叫控制模块,还设置为根据所述第二呼叫建立响应的指示执行相应的控制操作。The call control module is further configured to perform a corresponding control operation according to the indication of the second call setup response.
根据第二方面的第一种可能的实现方式,在第四种可能的实现方式中,所述第一协议栈包括多个;According to a first possible implementation manner of the second aspect, in a fourth possible implementation, the first protocol stack includes multiple
所述语音协议栈模块是设置为通过如下方式实现通过所述第一协议栈向服务器发送第一呼叫建立请求:通过每个所述第一协议栈分别向服务器发送第一呼叫建立请求,则所述语音协议栈模块向所述呼叫控制模块转发的第一
呼叫建立响应中包括第二协议栈标识,所述第二协议栈标识所指示的第二协议栈为所述服务器最先同意接收所述语音呼叫的协议栈;The voice protocol stack module is configured to send, by using the first protocol stack, a first call setup request to the server by: sending, by each of the first protocol stacks, a first call setup request to the server, where Transmitting the first of the voice protocol stack module to the call control module
The call setup response includes a second protocol stack identifier, where the second protocol stack indicated by the second protocol stack identifier is a protocol stack that the server first agrees to receive the voice call;
所述呼叫控制模块是设置为通过如下方式实现根据所述第一呼叫建立响应的指示执行相应的控制操作:向所述资源管理模块发送第二通知消息,所述第二通知消息用于指示所述服务器已接收所述第二协议栈发起的所述语音呼叫;The call control module is configured to perform a corresponding control operation according to the indication of the first call setup response by: sending a second notification message to the resource management module, where the second notification message is used to indicate Said server has received said voice call initiated by said second protocol stack;
所述资源管理模块,还设置为根据所述第二通知消息创建通话资源信息,并通过所述通话资源信息建立所述第一语音通话。The resource management module is further configured to create call resource information according to the second notification message, and establish the first voice call by using the call resource information.
在第二方面的第五种可能的实现方式中,所述第一呼叫消息用于指示接收语音呼叫;In a fifth possible implementation manner of the second aspect, the first call message is used to indicate that a voice call is received;
所述语音协议栈模块,还设置为在所述呼叫控制模块接收第一呼叫消息之前,通过其中一个协议栈接收所述服务器发送的第三呼叫建立请求,并向所述呼叫控制模块发送所述第一呼叫消息,所述第一呼叫消息中包括接收所述第三呼叫建立请求的协议栈标识;The voice protocol stack module is further configured to: before the call control module receives the first call message, receive a third call setup request sent by the server through one of the protocol stacks, and send the call to the call control module a first call message, where the first call message includes a protocol stack identifier that receives the third call setup request;
所述呼叫控制模块,还设置为在所述语音协议栈模块接收所述第二呼叫消息之前,判断所述第一协议栈是否为接收所述第三呼叫建立请求的协议栈,并将判断结果携带在所述第二呼叫消息中发送给所述语音协议栈模块;The call control module is further configured to: before the voice protocol stack module receives the second call message, determine whether the first protocol stack is a protocol stack that receives the third call setup request, and determine a result And being carried in the second call message and sent to the voice protocol stack module;
当判断出所述第一协议栈不是接收所述第三呼叫建立请求的协议栈,所述语音协议栈模块在接收所述第二呼叫消息之后,向所述服务器转发所述第二呼叫消息,所述第二呼叫消息用于向所述服务器通知所述呼叫控制模块拒绝接收所述语音呼叫;When it is determined that the first protocol stack is not a protocol stack that receives the third call setup request, the voice protocol stack module forwards the second call message to the server after receiving the second call message, The second call message is used to notify the server that the call control module refuses to receive the voice call;
当判断出所述第一协议栈是接收所述第三呼叫建立请求的协议栈,所述语音协议栈模块在接收所述第二呼叫消息之后,向所述服务器转发所述第二呼叫消息,所述第二呼叫消息用于指示所述服务器接收所述语音呼叫;When it is determined that the first protocol stack is a protocol stack that receives the third call setup request, the voice protocol stack module forwards the second call message to the server after receiving the second call message, The second call message is used to instruct the server to receive the voice call;
所述资源管理模块,还设置为在所述呼叫控制模块将所述判断结果携带在所述第二呼叫消息之后,接收所述呼叫控制模块发送的所述第二呼叫消息,并根据所述第二呼叫消息创建通话资源信息,通过所述通话资源信息建立所述第一语音通话。
The resource management module is further configured to: after the call control module carries the determination result in the second call message, receive the second call message sent by the call control module, and according to the The second call message creates call resource information, and the first voice call is established by using the call resource information.
根据第二方面、第二方面的第一种到第五种可能的实现方式中任意一种,在第六种可能的实现方式中,所述呼叫控制模块是设置为通过如下方式实现确定用于建立第一语音通话的第一协议栈:根据预置的规则从所述语音协议栈模块中选择第一协议栈。According to the second aspect, any one of the first to fifth possible implementation manners of the second aspect, in a sixth possible implementation, the call control module is configured to implement the determining by using the following manner Establishing a first protocol stack of the first voice call: selecting a first protocol stack from the voice protocol stack module according to a preset rule.
根据第二方面、第二方面的第一种到第五种可能的实现方式中任意一种,在第七种可能的实现方式中,还包括配置管理模块;所述呼叫控制模块,还设置为在接收所述第一呼叫消息之前,通过第一协议栈成功建立第二语音通话,并将成功建立所述第二语音通话的第一协议栈标识发送给配置管理模块;According to the second aspect, any one of the first to fifth possible implementation manners of the second aspect, in a seventh possible implementation, the configuration management module is further included; the call control module is further configured to Before the first call message is received, the second voice call is successfully established by using the first protocol stack, and the first protocol stack identifier of the second voice call is successfully sent to the configuration management module;
所述配置管理模块,设置为保存所述接收的第一协议栈标识;The configuration management module is configured to save the received first protocol stack identifier;
所述呼叫控制模块是设置为通过如下方式实现确定用于建立所述第一语音通话的第一协议栈:读取所述配置管理模块中保存的所述第一协议栈标识,并将所述第一协议栈确定为用于建立所述第一语音通话的协议栈。The call control module is configured to: determine, by using the following manner, a first protocol stack for establishing the first voice call: reading the first protocol stack identifier saved in the configuration management module, and The first protocol stack is determined to be a protocol stack for establishing the first voice call.
根据第二方面、第二方面的第一种到第五种可能的实现方式中任意一种,在第八种可能的实现方式中,还包括:配置管理模块,设置为在所述呼叫控制模块接收所述第一呼叫消息之前,配置语音协议对应的语音参数;According to the second aspect, any one of the first to fifth possible implementation manners of the second aspect, in an eighth possible implementation, the method further includes: a configuration management module, configured to be in the call control module Before receiving the first call message, configuring a voice parameter corresponding to the voice protocol;
所述语音协议栈模块,还设置为根据所述配置的语音参数进行检测,确定满足注册条件的协议栈;通过所述语音协议栈模块中满足所述注册条件的每个协议栈,用于向所述服务器发送注册请求,以完成注册;以及向所述呼叫控制模块发送注册通知消息,所述注册通知消息中包括注册成功的协议栈标识。The voice protocol stack module is further configured to: detect, according to the configured voice parameter, a protocol stack that satisfies a registration condition; and each protocol stack that satisfies the registration condition in the voice protocol stack module is used to And the server sends a registration request to complete registration; and sends a registration notification message to the call control module, where the registration notification message includes a protocol stack identifier that is successfully registered.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述的方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the above method.
本发明实施例提供的语音协议切换方法和语音终端设备,呼叫控制模块在接收到用于指示其发起语音呼叫或接收语音呼叫的第一呼叫消息后,确定用于建立第一语音通话的第一协议栈,该第一协议栈为语音协议栈模块中的协议栈,并且该语音协议栈模块中包括至少两个协议栈,随后语音协议栈模块接收该呼叫控制模块发送的包括第一协议栈标识的第二呼叫消息,并通过
该第一协议栈标识指示的第一协议栈执行第一呼叫消息所指示的操作,可以通过该第一协议栈向服务器请求发起语音呼叫,也可以根据该第一协议栈对其它语音终端设备发起的语音呼叫进行响应或拒绝;本发明实施例提供的方法通过选择语音协议栈模块中设置的协议栈来执行建立语音通话过程中的操作,实现了语音协议的切换可以通过由呼叫控制模块确定不同的协议栈来实现,解决了相关技术中通过版本升级切换语音协议的方式,由于升级后需要重启语音终端设备,而导致语音协议的切换过程耗时较长的问题。The voice protocol switching method and the voice terminal device provided by the embodiment of the present invention, after receiving the first call message for instructing to initiate a voice call or receiving a voice call, the call control module determines the first used to establish the first voice call. a protocol stack, the first protocol stack is a protocol stack in the voice protocol stack module, and the voice protocol stack module includes at least two protocol stacks, and then the voice protocol stack module receives the first protocol stack identifier sent by the call control module. Second call message and pass
The first protocol stack indicated by the first protocol stack indicates that the operation indicated by the first call message is performed, and the first protocol stack may be used to request a voice call from the server, or may be initiated according to the first protocol stack to other voice terminal devices. The voice call is responded to or rejected. The method provided by the embodiment of the present invention performs the operation of establishing a voice call by selecting a protocol stack set in the voice protocol stack module, so that the voice protocol can be switched by the call control module. The protocol stack is implemented to solve the problem that the voice protocol is switched by the version upgrade in the related art. Because the voice terminal device needs to be restarted after the upgrade, the process of switching the voice protocol takes a long time.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例提供的一种语音协议切换方法的流程图;FIG. 1 is a flowchart of a method for switching a voice protocol according to an embodiment of the present invention;
图2为本发明实施例提供的另一种语音协议切换方法的流程图;2 is a flowchart of another voice protocol switching method according to an embodiment of the present invention;
图3为本发明实施例提供的又一种语音协议切换方法的流程图;FIG. 3 is a flowchart of still another method for switching a voice protocol according to an embodiment of the present invention;
图4为本发明实施例提供的一种语音终端设备的结构示意图;FIG. 4 is a schematic structural diagram of a voice terminal device according to an embodiment of the present disclosure;
图5为本发明实施例提供的另一种语音终端设备的结构示意图。FIG. 5 is a schematic structural diagram of another voice terminal device according to an embodiment of the present invention.
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机***中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be executed in a computer system such as a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
图1为本发明实施例提供的一种语音协议切换方法的流程图。本实施例提供的语音协议切换方法适用于语音终端设备通过不同的语音协议进行语音通话的情况中,该方法可以由语音终端设备来执行,该语音终端设备通常以硬件和软件的方式来实现,该语音终端设备可以向其它语音终端设备发起语音呼叫或者对其它语音终端设备发起语音呼叫进行响应;为了对本发明实施例中的语音终端设备和其它语音终端设备进行区分,以下将执行本发明各实
施例提供的语音协议切换方法的语音终端设备定义为第一语音终端设备,将与该第一语音终端设备交互执行语音通话的其它语音终端设备定义为第二语音终端设备。FIG. 1 is a flowchart of a method for switching a voice protocol according to an embodiment of the present invention. The voice protocol switching method provided in this embodiment is applicable to a case where a voice terminal device performs a voice call through different voice protocols, and the method may be performed by a voice terminal device, where the voice terminal device is usually implemented in a hardware and software manner. The voice terminal device may initiate a voice call to other voice terminal devices or respond to other voice terminal devices to initiate a voice call. In order to distinguish the voice terminal device from other voice terminal devices in the embodiments of the present invention, the following embodiments of the present invention will be implemented.
The voice terminal device of the voice protocol switching method provided by the embodiment is defined as a first voice terminal device, and other voice terminal devices that perform voice calls with the first voice terminal device are defined as second voice terminal devices.
现有技术中的第一语音终端设备通常包含呼叫控制模块、语音协议栈模块、资源管理模块以及配置管理模块。其中,呼叫控制模块,设置为对VoIP呼叫业务进行流程控制;语音协议栈模块,设置为运行语音协议;资源管理模块,设置为管理数字信号处理DSP和用户线接口电路SLIC的硬件资源;配置管理模块,设置为管理语音配置。The first voice terminal device in the prior art generally includes a call control module, a voice protocol stack module, a resource management module, and a configuration management module. The call control module is configured to perform flow control on the VoIP call service; the voice protocol stack module is set to run a voice protocol; the resource management module is set to manage hardware resources of the digital signal processing DSP and the subscriber line interface circuit SLIC; configuration management Module, set to manage voice configuration.
如图1所示,本实施例的方法可以包括:As shown in FIG. 1, the method in this embodiment may include:
S110,呼叫控制模块接收第一呼叫消息,并确定用于建立第一语音通话的第一协议栈,该第一协议栈设置于语音协议栈模块中,且该语音协议栈模块中包括至少两个协议栈。S110. The call control module receives the first call message, and determines a first protocol stack for establishing a first voice call. The first protocol stack is disposed in a voice protocol stack module, and the voice protocol stack module includes at least two Protocol stack.
本实施例中的呼叫控制模块接收的第一呼叫消息,可以是用于指示第一语音终端设备发起的语音呼叫,也可以是用于指示接收第二语音终端设备发起的语音呼叫。可选地,当第一语音终端设备为语音呼叫的发起者时,第一呼叫消息用于指示发起语音呼叫,当第二语音终端设备为语音呼叫的发起者时,第一呼叫消息用于指示接收语音呼叫;本实施例中无论第一语音终端设备是语音呼叫的发起者,还是接收者,呼叫控制模块都可以确定用于建立第一语音通话的第一协议栈,该第一语音通话即指目前需要建立的语音通话,该第一协议栈为语音协议栈模块中已经完成注册的协议栈,例如在S110中获取到SIP协议栈。The first call message received by the call control module in this embodiment may be used to indicate a voice call initiated by the first voice terminal device, or may be used to indicate that the voice call initiated by the second voice terminal device is received. Optionally, when the first voice terminal device is the initiator of the voice call, the first call message is used to indicate that the voice call is initiated, and when the second voice terminal device is the initiator of the voice call, the first call message is used to indicate Receiving a voice call; in this embodiment, whether the first voice terminal device is the initiator of the voice call or the receiver, the call control module may determine a first protocol stack for establishing the first voice call, where the first voice call is Refers to the voice call that needs to be established at present. The first protocol stack is a protocol stack that has been registered in the voice protocol stack module, for example, the SIP protocol stack is obtained in S110.
需要说明的是,本实施例中的语音协议栈模块中包括上述第一协议栈和其它协议栈,由于本发明实施例用于对语音协议进行切换的场景中,因此在语音协议栈模块中包括至少两个协议栈,本实施例以其包括SIP协议栈、H.248协议栈和MGCP协议栈为例予以说明,语音协议栈模块中的每个协议栈是独立运行的,可同时收发处理各自的语音协议信令。It should be noted that the voice protocol stack module in this embodiment includes the foregoing first protocol stack and other protocol stacks, and is used in the voice protocol stack module in the scenario that the voice protocol is switched in the embodiment of the present invention. At least two protocol stacks, the embodiment includes the SIP protocol stack, the H.248 protocol stack, and the MGCP protocol stack as an example. Each protocol stack in the voice protocol stack module is independently operated, and can be simultaneously sent and received and processed. Voice protocol signaling.
本实施例在实现中,确定第一协议栈的方式可以是不同的,举例来说,可以是呼叫控制模块根据预置的规则从语音协议栈模块中选择的,该预置的规则例如:根据语音协议栈模块的注册状态进行选择,例如选择最先注册成
功或最新注册成功的协议栈;或者,选择最近一次成功建立语音通话所使用的协议栈;或者,根据对语音协议栈模块中每个协议栈预先设置的优先等级进行选择;或者,在每次选择协议栈时根据用户的选择指定一个协议栈,本发明实施例不限制与上述几种选择协议栈的规则,可以是定义的其它规则。In this implementation, the manner of determining the first protocol stack may be different. For example, the call control module may be selected from the voice protocol stack module according to a preset rule, for example, according to the preset rule. The registration status of the voice protocol stack module is selected, for example, the first registration is selected.
The protocol stack that is successfully registered or newly registered; or, the protocol stack used to successfully establish a voice call; or, according to the priority level preset for each protocol stack in the voice protocol stack module; or, each time When the protocol stack is selected, a protocol stack is specified according to the user's selection. The embodiment of the present invention does not limit the rules of the foregoing selection protocol stack, and may be other rules defined.
S120,语音协议栈模块接收呼叫控制模块发送的包括第一协议栈标识的第二呼叫消息,并通过该第一协议栈标识指示的第一协议栈,执行第一呼叫消息所指示的操作,该第一呼叫消息用于指示发起语音呼叫或者接收语音呼叫。S120. The voice protocol stack module receives a second call message that is sent by the call control module and includes the first protocol stack identifier, and performs an operation indicated by the first call message by using the first protocol stack indicated by the first protocol stack identifier. The first call message is used to indicate that a voice call is initiated or a voice call is received.
在本实施例中,呼叫控制模块在确定第一协议栈后,可以将该第一协议栈标识携带在第二呼叫消息中发送给语音协议栈模块,同时语音协议栈模块可以获取第一呼叫消息所指示的内容,无论本实施例中的第一呼叫消息指示发起语音呼叫,还是接收语音呼叫,都需要通过语音协议栈模块与服务器的信息交互来执行具体的处理方式。可选的,若本实施例中的第一语音终端设备是语音呼叫的发起者,语音协议栈模块可以通过语音协议栈模块向服务器发送消息以请求建立语音呼叫,若本实施例中的第一语音终端设备是语音呼叫的接收者,呼叫控制模块则可以确定出接收或拒绝语音呼叫,由语音协议栈模块向服务器发送消息以向服务器通知呼叫控制模块的处理结果;本实施例中通过选择语音协议栈模块中设置的协议栈中来执行建立语音通话过程的操作,在需要进行语音切换时,可以由呼叫控制模块获取不同的协议栈,即实现语音切换的过程中不需要重启第一语音设备,可以通过重新发起语音呼叫即可以选择不同的协议栈,与相关技术中通过升级版本进行语音协议切换的方式相比,在很大程度上降低了语音协议的切换过程需要消耗的时间。In this embodiment, after determining the first protocol stack, the call control module may carry the first protocol stack identifier in the second call message and send the message to the voice protocol stack module, and the voice protocol stack module may obtain the first call message. The indicated content, whether the first call message in the embodiment indicates the initiation of the voice call or the reception of the voice call, requires the information exchange between the voice protocol stack module and the server to perform a specific processing manner. Optionally, if the first voice terminal device in this embodiment is the initiator of the voice call, the voice protocol stack module may send a message to the server through the voice protocol stack module to request to establish a voice call, if the first in this embodiment The voice terminal device is the receiver of the voice call, and the call control module can determine to receive or reject the voice call, and the voice protocol stack module sends a message to the server to notify the server of the processing result of the call control module; in this embodiment, the voice is selected. The protocol stack is set in the protocol stack module to perform the operation of establishing a voice call process. When the voice switchover is required, the call control module can obtain different protocol stacks, that is, the voice switching process does not need to restart the first voice device. The different protocol stacks can be selected by re-initiating the voice call, which greatly reduces the time required for the voice protocol switching process compared with the related method in which the voice protocol is switched by the upgraded version.
由于本实施例中的语音协议栈模块中预先设置有多个协议栈,因此,在其所属的第一语音终端设备发起语音呼叫,或者接收第二语音终端设备发起的语音呼叫时,可以从该多个协议栈中选择其中的一个协议栈作为承载语音通话的载体。需要说明的是,本实施中呼叫控制模块确定使用的第一协议栈可以为语音协议栈模块中已成功注册的协议栈,即本实施例在S110之前,还可以包括:S100,配置管理模块配置语音协议对应的语音参数;S101,语音协议栈模块根据配置的语音参数进行检测,确定满足注册条件的协议栈;
S102,语音协议栈模块中满足注册条件的每个协议栈向服务器发送注册请求,以完成注册;S103,语音协议栈模块向呼叫控制模块发送注册通知消息,该注册通知消息中包括注册成功的协议栈标识。Because a plurality of protocol stacks are preset in the voice protocol stack module in this embodiment, when the first voice terminal device to which it belongs initiates a voice call, or receives a voice call initiated by the second voice terminal device, One of the multiple protocol stacks is selected as a carrier for carrying voice calls. It should be noted that, in this implementation, the call control module determines that the first protocol stack used may be a protocol stack that has been successfully registered in the voice protocol stack module, that is, before the S110, the embodiment may further include: S100, configuration management module configuration. a voice parameter corresponding to the voice protocol; S101, the voice protocol stack module performs detection according to the configured voice parameter, and determines a protocol stack that satisfies the registration condition;
S102. Each protocol stack that meets the registration condition in the voice protocol stack module sends a registration request to the server to complete registration. S103. The voice protocol stack module sends a registration notification message to the call control module, where the registration notification message includes a successful registration protocol. Stack identifier.
本实施例在具体实现中,S100中配置管理模块配置语音参数的方式包括:一方面,配置管理模块可以通过加载语音终端设备的数据库中的内容,配置语音协议对应的语音参数,例如在加载数据库后,配置了H.248协议的服务器和线路终结点,则H.248协议栈可以实现自检和注册;另一方面,配置管理模块可以通过接收管理设备发送的配置信息,配置语音协议对应的语音参数,例如管理设备通过数字用户线路(Digital Subscriber Line,DSL)论坛所开发的技术规范,即TR069给第一语音终端设备下发SIP协议的服务器和语音账号,配置管理模块接收并通过该配置信息配置SIP协议。另外,MGCP协议的配置信息包括MGCP协议的服务器和线路终结点,通常地,管理设备通过管理媒介向配置管理模块发送配置信息,该管理媒介包括上述的TR069,还包括光网络单元(Optical Network Unit,ONU)管理控制接口(ONU Management and Control Interface,OMCI)、网络的管理工的类型,包括操作、管理和维护(Operation、Administration和Maintenance,OAM)和互联网(WEB)等。In a specific implementation, the method for configuring the management module to configure the voice parameter in the S100 includes: on one hand, the configuration management module can configure the voice parameter corresponding to the voice protocol by loading the content in the database of the voice terminal device, for example, loading the database. After the H.248 protocol server and line termination point are configured, the H.248 protocol stack can implement self-test and registration. On the other hand, the configuration management module can receive the configuration information sent by the management device and configure the corresponding voice protocol. The voice parameter, for example, the management device developed by the Digital Subscriber Line (DSL) forum, that is, the TR069 sends the SIP protocol server and voice account to the first voice terminal device, and the configuration management module receives and passes the configuration. The information is configured with the SIP protocol. In addition, the configuration information of the MGCP protocol includes a server and a line termination point of the MGCP protocol. Generally, the management device sends configuration information to the configuration management module through the management medium, where the management medium includes the TR069 and the optical network unit (Optical Network Unit). , ONU) The management of the ONU Management and Control Interface (OMCI), the type of network management, including operations, management and maintenance (Operation, Administration and Maintenance, OAM) and the Internet (WEB).
本实施例所提供的语音协议切换方法,呼叫控制模块在接收到用于指示其发起语音呼叫或接收语音呼叫的第一呼叫消息后,确定用于建立第一语音通话的第一协议栈,该第一协议栈为语音协议栈模块中的协议栈,并且该语音协议栈模块中包括至少两个协议栈,随后语音协议栈模块接收该呼叫控制模块发送的包括第一协议栈标识的第二呼叫消息,并通过该第一协议栈标识指示的第一协议栈执行第一呼叫消息所指示的操作,可选的,可以通过该第一协议栈向服务器请求发起语音呼叫,也可以根据该第一协议栈对其它语音终端设备发起的语音呼叫进行响应或拒绝;本实施例提供的方法通过选择语音协议栈模块中设置的协议栈来执行建立语音通话过程中的操作,实现了语音协议的切换可以通过由呼叫控制模块确定不同的协议栈来实现,解决了相关技术中通过版本升级切换语音协议的方式,由于升级后需要重启语音终端设备,而导致出现语音协议的切换过程耗时较长的问题。
The voice protocol switching method provided by the embodiment, after receiving the first call message for instructing to initiate a voice call or receiving a voice call, the call control module determines a first protocol stack for establishing a first voice call, The first protocol stack is a protocol stack in the voice protocol stack module, and the voice protocol stack module includes at least two protocol stacks, and then the voice protocol stack module receives the second call that is sent by the call control module and includes the first protocol stack identifier. And performing, by the first protocol stack indicated by the first protocol stack identifier, an operation indicated by the first call message. Optionally, the first protocol stack may be used to request a voice call from the server, or according to the first The protocol stack responds or rejects the voice call initiated by the other voice terminal device. The method provided in this embodiment performs the operation of establishing a voice call by selecting a protocol stack set in the voice protocol stack module, and implements the switching of the voice protocol. By implementing different protocol stacks by the call control module, the related art is solved. Way voice switching protocol version upgrade, due to the need to restart the voice terminals after the upgrade, which led to the handover process of emergence of Voice over Internet Protocol lengthy question.
进一步地,相关技术中通过版本升级的方式进行语音协议的切换过程中,语音终端设备的重启意味着需要中断用户使用语音终端设备的业务,从而极大的增加了切换语音协议的风险以及工程维护成本,本实施例提供的语音协议切换方法不需要重启语音终端设备,即不会存在上述问题,进一步地保证了语音协议切换的安全性和可操控性。Further, in the process of switching the voice protocol by means of version upgrade in the related art, the restart of the voice terminal device means that the service of the user using the voice terminal device needs to be interrupted, thereby greatly increasing the risk of switching the voice protocol and engineering maintenance. Cost, the voice protocol switching method provided in this embodiment does not need to restart the voice terminal device, that is, the above problem does not exist, and the security and controllability of the voice protocol switching are further ensured.
可选地,图2为本发明实施例提供的另一种语音协议切换方法的流程图。本实施例提供的语音协议切换方法中,第一语音终端设备可以为语音呼叫的发起者,则第一呼叫消息用于指示发起语音呼叫,图2通过第一语音终端设备内每个模块的交互,以及语音协议栈模块与服务器的交互方式,说明本实施例的执行流程。如图2所示,本实施例提供的方法可以包括:Optionally, FIG. 2 is a flowchart of another voice protocol switching method according to an embodiment of the present invention. In the voice protocol switching method provided in this embodiment, the first voice terminal device may be the initiator of the voice call, and the first call message is used to indicate that the voice call is initiated, and FIG. 2 is used to interact with each module in the first voice terminal device. And the manner in which the voice protocol stack module interacts with the server, and the execution flow of the embodiment is described. As shown in FIG. 2, the method provided in this embodiment may include:
S210,资源管理模块根据用户的拨号操作创建呼叫资源信息。S210. The resource management module creates call resource information according to the user's dialing operation.
S220,资源管理模块将呼叫资源信息携带在第一呼叫消息中发送给呼叫控制模块。S220. The resource management module carries the call resource information in the first call message and sends the call resource information to the call control module.
在本实施例中,呼叫控制模块设置为承载资源管理模块和语音协议栈模块,资源管理模块设置为管理数字信号处理(Digital Signal Processing,DSP)和用户线接口电路(Subscriber Line Interface Circuit,SLIC),负责将资源信息上报给呼叫控制模块,可选地,资源管理模块设置为检测到用户摘机和拨打号码后,根据用户拨打的号码创建呼叫资源信息。In this embodiment, the call control module is configured to carry a resource management module and a voice protocol stack module, and the resource management module is configured to manage digital signal processing (DSP) and Subscriber Line Interface Circuit (SLIC). The resource management module is configured to report the resource information to the call control module. Optionally, the resource management module is configured to: after detecting that the user picks up the phone and dials the number, creates the call resource information according to the number dialed by the user.
S230,呼叫控制模块确定设置为建立第一语音通话的第一协议栈。S230. The call control module determines a first protocol stack that is set to establish a first voice call.
本实施例中第一协议栈同样为语音协议栈模块中的协议栈,且该语音协议栈模块中包括至少两个协议栈;另外,呼叫控制模块在接收到上述第一呼叫消息后,即可确定第一协议栈,确定该第一协议栈的方式与上述实施例相同,在此不再赘述。In this embodiment, the first protocol stack is also a protocol stack in the voice protocol stack module, and the voice protocol stack module includes at least two protocol stacks. In addition, after receiving the first call message, the call control module can The first protocol stack is determined, and the manner of determining the first protocol stack is the same as that of the foregoing embodiment, and details are not described herein again.
S240,语音协议栈模块接收呼叫控制模块发送的包括第一协议栈标识的第二呼叫消息。S240. The voice protocol stack module receives a second call message that is sent by the call control module and includes the first protocol stack identifier.
可选地,S230~S240的实现方式可以参考图1所示实施例中的S110~S120,该第二呼叫消息的作用为通过语音协议栈模块向服务器发起语音
呼叫;Optionally, the implementation manners of S230-S240 may refer to S110-S120 in the embodiment shown in FIG. 1. The second call message is used to initiate voice to the server by using a voice protocol stack module.
call;
S250,语音协议栈模块通过第一协议栈向服务器发送第一呼叫建立请求。S250. The voice protocol stack module sends a first call setup request to the server by using the first protocol stack.
S260,语音协议栈模块接收服务器返回的第一呼叫建立响应。S260. The voice protocol stack module receives a first call setup response returned by the server.
S270,语音协议栈模块向呼叫控制模块转发第一呼叫建立响应。S270. The voice protocol stack module forwards the first call setup response to the call control module.
S280,呼叫控制模块根据第一呼叫建立响应的指示执行相应的控制操作。S280. The call control module performs a corresponding control operation according to the indication of the first call setup response.
在本实施例中,服务器返回的第一呼叫建立响应既可以是接收语音呼叫,也可以是拒绝语音呼叫,因此,在语音协议栈模块将第一呼叫建立响应转发给呼叫控制模块后,呼叫控制模块根据该第一呼叫建立响应的指示所执行的具体操作的内容也是不同的。In this embodiment, the first call setup response returned by the server may be either receiving a voice call or rejecting the voice call. Therefore, after the voice protocol stack module forwards the first call setup response to the call control module, the call control is performed. The content of the specific operation performed by the module according to the indication of the first call setup response is also different.
举例来说,在图2所示实施例的一种可能的情况中,第一协议栈例如为SIP协议栈,语音协议栈模块通过SIP协议栈向服务器发送第一呼叫建立请求后,服务器接收该语音呼叫,则本实施例中执行S280的方法为:S281,呼叫控制模块向资源管理模块发送第一通知消息,该第一通知消息用于指示服务器已接收语音呼叫;S282,资源管理模块根据第一通知消息创建通话资源信息,并通过通话资源信息建立第一语音通话;随后等待接收语音呼叫的第二语音终端设备摘机,持有该第一语音终端设备的用户可以与持有第二语音终端设备的用户进行通话。For example, in a possible case of the embodiment shown in FIG. 2, the first protocol stack is, for example, a SIP protocol stack, and after the voice protocol stack module sends a first call setup request to the server through the SIP protocol stack, the server receives the For the voice call, the method for executing S280 in this embodiment is: S281, the call control module sends a first notification message to the resource management module, where the first notification message is used to indicate that the server has received the voice call; S282, the resource management module is configured according to the a notification message creates a call resource information, and establishes a first voice call by using the call resource information; and then waits for the second voice terminal device that receives the voice call to go off-hook, and the user holding the first voice terminal device can hold the second voice The user of the terminal device makes a call.
再举例来说,在图2所示实施例的另一种可能的情况中,第一协议栈例如为H.248协议栈,语音协议栈模块通过H.248协议栈向服务器发送第一呼叫建立请求后,服务器拒绝该语音呼叫,则本实施例中执行S280的方法为:S283,呼叫控制模块从语音协议栈模块中选择第二协议栈;S284,呼叫控制模块向语音协议栈模块发送包括第二协议栈标识的第三呼叫消息;S285,语音协议栈模块通过第二协议栈标识指示的第二协议栈向服务器发送第二呼叫建立请求;S286,语音协议栈模块接收服务器返回的第二呼叫建立响应;S287,语音协议栈模块向呼叫控制模块转发第二呼叫建立响应;S288,呼叫控制模块根据第二呼叫建立响应的指示执行相应的控制操作。For another example, in another possible scenario of the embodiment shown in FIG. 2, the first protocol stack is, for example, an H.248 protocol stack, and the voice protocol stack module sends a first call setup to the server through the H.248 protocol stack. After the request, the server rejects the voice call, the method of executing S280 in this embodiment is: S283, the call control module selects a second protocol stack from the voice protocol stack module; S284, the call control module sends the voice protocol stack module to the voice protocol stack module. a third call message identified by the second protocol stack; S285, the voice protocol stack module sends a second call setup request to the server by using the second protocol stack indicated by the second protocol stack identifier; S286, the voice protocol stack module receives the second call returned by the server Establishing a response; S287, the voice protocol stack module forwards the second call setup response to the call control module; S288, the call control module performs a corresponding control operation according to the indication of the second call setup response.
本实施例中的服务器拒绝通过H.248协议栈发送的第一呼叫建立请求,因此,在呼叫控制模块接收到第一呼叫建立响应后,还可以遍历语音协议栈模块中的其它协议栈,重新发起语音呼叫,直到服务器接收语音呼叫。需要
说明的是,本实施例中呼叫控制模块在选择协议栈时,采用的预置的规则还包括:当前发起语音呼叫的协议栈呼叫失败时,可以轮询其他注册成功的协议栈继续进行语音呼叫。The server in this embodiment rejects the first call setup request sent by the H.248 protocol stack. Therefore, after the call control module receives the first call setup response, the call control module may also traverse other protocol stacks in the voice protocol stack module. A voice call is initiated until the server receives a voice call. Need
It is noted that, in the embodiment, when the call control module selects the protocol stack, the preset rule further includes: when the protocol stack call of the current voice call fails, the other successfully registered protocol stack may be polled to continue the voice call. .
本实施例在具体实现中,在图2所示实施例的又一种可能的情况中,S230中呼叫控制模块确定的第一协议栈可以包括多个,即图2所示实施例中的S250可以替换为:语音协议栈模块可以并发的通过多个第一协议栈分别向服务器发送第一呼叫建立请求,则S270中语音协议栈模块向呼叫控制模块转发的第一呼叫建立响应中可以包括第二协议栈标识,该第二协议栈标识所指示的第二协议栈为服务器最先同意接收语音呼叫的协议栈,例如为MGCP协议栈;可选地,本实施例中执行S280的方法为:S289,呼叫控制模块向资源管理模块发送第二通知消息,该第二通知消息用于指示服务器已接收第二协议栈发起的语音呼叫;S290,资源管理模块根据第二通知消息创建通话资源信息,并通过通话资源信息建立第一语音通话;随后等待接收语音呼叫的第二语音终端设备摘机,持有该第一语音终端设备的用户可以与持有第二语音终端设备的用户进行通话。In a specific implementation of the embodiment, in another possible case of the embodiment shown in FIG. 2, the first protocol stack determined by the call control module in S230 may include multiple, that is, S250 in the embodiment shown in FIG. Alternatively, the voice protocol stack module may concurrently send the first call setup request to the server through multiple first protocol stacks, and the first call setup response forwarded by the voice protocol stack module to the call control module in S270 may include the first The second protocol stack identifier is the second protocol stack indicated by the second protocol stack identifier. The protocol stack that the server first agrees to receive the voice call is, for example, the MGCP protocol stack. Optionally, the method for executing S280 in this embodiment is: S289, the call control module sends a second notification message to the resource management module, where the second notification message is used to indicate that the server has received the voice call initiated by the second protocol stack; S290, the resource management module creates the call resource information according to the second notification message, And establishing a first voice call by using the call resource information; then waiting for the second voice terminal device receiving the voice call to go off-hook, holding the A user terminal may be a voice call with the second voice terminal held by the user device.
需要说明的是,本实施例提供的方法中,S281~S282,S283~S288,以及S289~S290为呼叫控制模块根据第一呼叫建立响应的指示所执行的不同控制操作,即上述S281~S282,S283~S288和S289~S290为几种并列的执行方式,是选择其一执行的;另外,在S283~S288,语音协议栈模块在S288中,呼叫控制模块根据第二呼叫建立响应的指示执行相应的控制操作的方式与S280类似,即在S288之后,可能重复执行S283~S288的操作,也可能执行S281~S282的操作。It should be noted that, in the method provided in this embodiment, S281-S282, S283-S288, and S289-S290 are different control operations performed by the call control module according to the indication of the first call setup response, that is, S281-S282, S283-S288 and S289-S290 are several parallel execution modes, which are selected for execution. In addition, in S283-S288, the voice protocol stack module is in S288, and the call control module performs corresponding according to the indication of the second call setup response. The manner of the control operation is similar to that of S280, that is, after S288, the operations of S283 to S288 may be repeatedly performed, and the operations of S281 to S282 may also be performed.
在图1所示实施例的另一种可能的实现方式中,图3为本发明实施例提供的又一种语音协议切换方法的流程图。本实施例提供的语音协议切换方法中,第一语音终端设备可以为语音呼叫的接收者,该第一呼叫消息可以用于指示接收语音呼叫,图3同样通过第一语音终端设备内各个模块的交互,以及语音协议栈模块与服务器的交互方式,说明本实施例的执行流程。如图3所示,本实施例提供的方法可以包括:
In another possible implementation manner of the embodiment shown in FIG. 1, FIG. 3 is a flowchart of still another method for switching a voice protocol according to an embodiment of the present invention. In the voice protocol switching method provided in this embodiment, the first voice terminal device may be a receiver of a voice call, and the first call message may be used to indicate that a voice call is received, and FIG. 3 also passes through each module in the first voice terminal device. The interaction, and the manner in which the voice protocol stack module interacts with the server, describes the execution flow of this embodiment. As shown in FIG. 3, the method provided in this embodiment may include:
S310,语音协议栈模块通过其中一个协议栈接收服务器发送的第三呼叫建立请求。S310. The voice protocol stack module receives a third call setup request sent by the server through one of the protocol stacks.
S320,语音协议栈模块向呼叫控制模块发送第一呼叫消息,该第一呼叫消息中包括接收所述第三呼叫建立请求的协议栈标识。S320. The voice protocol stack module sends a first call message to the call control module, where the first call message includes a protocol stack identifier that receives the third call setup request.
在本实施例中,例如第二语音终端设备向第一语音终端设备发起语音呼叫时,服务器向语音协议栈模块发送第三呼叫建立请求,可选的,由H.248协议栈接收到该第三呼叫建立请求,并将通过向呼叫控制模块发送第一呼叫消息来通知呼叫控制模块当前有语音呼叫需要接入,且通知是由H.248协议栈接收到的。In this embodiment, when the second voice terminal device initiates a voice call to the first voice terminal device, the server sends a third call setup request to the voice protocol stack module. Optionally, the first call is received by the H.248 protocol stack. The three call setup request will notify the call control module that the voice call is currently in need of access by sending a first call message to the call control module, and the notification is received by the H.248 protocol stack.
S330,呼叫控制模块确定用于建立第一语音通话的第一协议栈。S330. The call control module determines a first protocol stack for establishing a first voice call.
在本实施例中,呼叫控制模块在接收到上述第一呼叫消息后,执行确定第一协议栈的操作,确定该第一协议栈的方式同样与上述实施例相同,可以根据预置的不同规则获取;例如,呼叫控制模块可以选择最近一次语音通话建立成功的协议栈,例如选择的是SIP协议栈,再例如,呼叫控制模块还可以选择语音协议栈模块向其发送第一呼叫消息时,该消息中携带的协议栈,即接收到第三呼叫建立请求的协议栈,则选择了H.248协议栈。In this embodiment, after receiving the first call message, the call control module performs an operation of determining the first protocol stack, and the manner of determining the first protocol stack is also the same as the foregoing embodiment, and may be according to different preset rules. Obtaining; for example, the call control module may select a protocol stack in which the last voice call is successfully established, for example, a SIP protocol stack is selected, and, for example, the call control module may further select a voice call stack module to send a first call message thereto, The protocol stack carried in the message, that is, the protocol stack that receives the third call setup request, selects the H.248 protocol stack.
S340,语音协议栈模块接收呼叫控制模块发送的包括第一协议栈标识的第二呼叫消息。S340. The voice protocol stack module receives a second call message that is sent by the call control module and includes the first protocol stack identifier.
可选地,本实施例中S330~S340的实现方式可以参考图1所示实施例中的S110~S120,该第二呼叫消息的作用为通过语音协议栈模块向服务器发送呼叫控制模块对语音呼叫的反馈结果,该反馈结果与S330中呼叫控制模块确定的第一协议栈相关,则本实施例提供的方法在S340之前还包括:Optionally, in the implementation manners of S330 to S340 in this embodiment, reference may be made to S110-S120 in the embodiment shown in FIG. 1. The second call message is used to send a call control module to a voice call to a server through a voice protocol stack module. The feedback result is related to the first protocol stack determined by the call control module in S330. The method provided in this embodiment further includes:
S331,呼叫控制模块判断第一协议栈是否为接收第三呼叫建立请求的协议栈;若否,则执行S340,若是,则执行S340和S332。S331. The call control module determines whether the first protocol stack is a protocol stack that receives the third call setup request; if not, executes S340, and if yes, executes S340 and S332.
在本实施中,若判断出第一协议栈不是接收第三呼叫建立请求的协议栈,则呼叫控制模块不允许第一协议栈接入语音呼叫,即可通过第二呼叫消息通知语音协议栈模块拒绝接收语音呼叫,相应地,本实施例在S340之后,还包括:S350,语音协议栈模块向服务器发送所述第二呼叫消息,该第二呼叫消
息用于向所述服务器通知呼叫控制模块拒绝接收语音呼叫。In this implementation, if it is determined that the first protocol stack is not the protocol stack that receives the third call setup request, the call control module does not allow the first protocol stack to access the voice call, and may notify the voice protocol stack module by using the second call message. Rejecting the voice call, correspondingly, after S340, the method further includes: S350, the voice protocol stack module sends the second call message to the server, and the second call cancellation
The information is used to notify the server that the call control module refuses to receive the voice call.
在本实施例的另一种可能的实现方式中,若判断出第一协议栈即是接收第三呼叫建立请求的协议栈,例如可以是呼叫控制模块直接将接收第三呼叫建立请求的协议栈作为第一协议栈,则呼叫控制模块允许第一协议栈接入语音呼叫,即可通过第二呼叫消息通知语音协议栈模块同意接收语音呼叫,则在执行S340的同时还可以执行S332,在S340之后同样执行S350,不同的是,本实施例中S350中向服务器转发的第二呼叫消息用于指示所述服务器接收所述语音呼叫;本实施例中的S332为:呼叫控制模块向资源管理模块发送第二呼叫消息;在S332之后还包括:S333,资源管理模块根据第二呼叫消息创建通话资源信息,并通过通话资源信息建立第一语音通话;随后在持有该第一语音终端设备的用户摘机后,该用户即可与持有第二语音终端设备的用户进行通话。本发明实施例中的第二呼叫消息实际上为对第三呼叫建立请求的响应消息,并且本实施例不限制S340~S350与S332~S333的执行顺序,可以是并行执行的。In another possible implementation manner of this embodiment, if it is determined that the first protocol stack is the protocol stack that receives the third call setup request, for example, the call control module may directly receive the protocol stack of the third call setup request. As the first protocol stack, the call control module allows the first protocol stack to access the voice call, that is, the second protocol message is used to notify the voice protocol stack module to agree to receive the voice call, and then S352 can be performed while executing S340. S350 is also performed, except that the second call message forwarded to the server in the S350 is used to instruct the server to receive the voice call. In the embodiment, S332 is: the call control module to the resource management module. Sending a second call message; after S332, further comprising: S333, the resource management module creates call resource information according to the second call message, and establishes a first voice call by using the call resource information; and subsequently, the user who holds the first voice terminal device After off-hook, the user can talk to the user holding the second voice terminal device. The second call message in the embodiment of the present invention is actually a response message to the third call setup request, and the embodiment does not limit the execution order of S340-S350 and S332-S333, and may be performed in parallel.
需要说明的是,本发明上述各实施例中的呼叫控制模块获取第一协议栈的方式可以是上述实施例中所述的从语音协议栈模块中选择第一协议栈,还可以采用其它方式获取该第一协议栈;在具体实现中,本实施例的S310之前,还包括:S301,呼叫控制模块通过第一协议栈成功建立第二语音通话;S302,呼叫控制模块向配置管理模块发送第一协议栈标识;S303,配置管理模块保存成功建立所述第二语音通话的第一协议栈标识;相应地,S330为:呼叫控制模块读取配置管理模块中保存的第一协议栈标识,并将该第一协议栈作确定为用于建立所述第一语音通话的协议栈。It should be noted that the manner in which the call control module in the foregoing embodiments of the present invention obtains the first protocol stack may be the first protocol stack selected from the voice protocol stack module in the foregoing embodiment, and may be obtained in other manners. In the specific implementation, before S310 in this embodiment, the method further includes: S301, the call control module successfully establishes a second voice call by using the first protocol stack; S302, the call control module sends the first to the configuration management module. a protocol stack identifier; S303, the configuration management module saves the first protocol stack identifier of the second voice call successfully; correspondingly, the S330 is: the call control module reads the first protocol stack identifier saved in the configuration management module, and The first protocol stack is determined to be a protocol stack for establishing the first voice call.
本实施例中的第一语音终端设备在建立第一语音通话之前,已经成功建立过第二语音通话,并且呼叫控制模块可以将该第二语音通话所使用的第一协议栈保存到配置管理模块中,以便在该呼叫控制模块下一次建立语音通话时,使用保存在配置管理模块中的协议栈,在该方式中,呼叫控制模块选择了最近一次成功建立语音通话所使用的协议栈。The first voice terminal device in this embodiment has successfully established the second voice call before establishing the first voice call, and the call control module may save the first protocol stack used by the second voice call to the configuration management module. In order to establish a voice call next time by the call control module, the protocol stack stored in the configuration management module is used, in which the call control module selects the protocol stack used for the last successful establishment of the voice call.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存
储有计算机可执行指令,所述计算机可执行指令用于执行上述的方法。An embodiment of the present invention further provides a computer storage medium, where the computer storage medium is stored
Computer executable instructions are stored for performing the methods described above.
图4为本发明实施例提供的一种语音终端设备的结构示意图。本实施例提供的语音终端设备用于通过不同的语音协议进行语音通话的情况中,该语音终端设备以硬件和软件的方式来实现,该语音终端设备可以通过向其它语音终端设备发起语音呼叫或者对其它语音终端设备发起语音呼叫进行响应。如图4所示,本实施例的语音终端设备包括:呼叫控制模块11和语音协议栈模块12。FIG. 4 is a schematic structural diagram of a voice terminal device according to an embodiment of the present invention. In the case where the voice terminal device is used to perform a voice call through different voice protocols, the voice terminal device is implemented in a hardware and software manner, and the voice terminal device can initiate a voice call to other voice terminal devices or Responding to other voice terminal devices initiating a voice call. As shown in FIG. 4, the voice terminal device of this embodiment includes: a call control module 11 and a voice protocol stack module 12.
其中,呼叫控制模块11,设置为接收第一呼叫消息,并确定用于建立第一语音通话的第一协议栈,该第一协议栈设置于语音协议栈模块12中,且该语音协议栈模块12中包括至少两个协议栈。The call control module 11 is configured to receive the first call message, and determine a first protocol stack for establishing a first voice call, where the first protocol stack is set in the voice protocol stack module 12, and the voice protocol stack module 12 includes at least two protocol stacks.
需要说明的是,本实施例的语音协议栈模块12中包括上述第一协议栈和其它协议栈,由于本发明实施例用于对语音协议进行切换的场景中,因此在语音协议栈模块12中包括至少两个协议栈,本实施例以其包括SIP协议栈、H.248协议栈和MGCP协议栈为例予以说明。It should be noted that the voice protocol stack module 12 of the present embodiment includes the foregoing first protocol stack and other protocol stacks, and is used in the scenario of the voice protocol protocol in the voice protocol stack module 12. The method includes at least two protocol stacks, and the embodiment includes an example of the SIP protocol stack, the H.248 protocol stack, and the MGCP protocol stack.
语音协议栈模块12,设置为接收呼叫控制模块11发送的包括第一协议栈标识的第二呼叫消息,并通过第一协议栈标识指示的第一协议栈执行第一呼叫消息所指示的操作,该第一呼叫消息用于指示发起语音呼叫或者接收语音呼叫。The voice protocol stack module 12 is configured to receive the second call message that is sent by the call control module 11 and includes the first protocol stack identifier, and perform the operation indicated by the first call message by using the first protocol stack indicated by the first protocol stack identifier. The first call message is used to indicate that a voice call is initiated or a voice call is received.
本发明实施例提供的语音终端设备用于执行本发明图1所示实施例提供的语音协议切换方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The voice terminal device provided by the embodiment of the present invention is used to perform the voice protocol switching method provided by the embodiment shown in FIG. 1 of the present invention, and has a corresponding function module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
需要说明的是,本实施例中呼叫控制模块11确定的第一协议栈为语音协议栈模块12中已经完成注册的协议栈,则本实施例提供的语音终端设备还包括:配置管理模块13,设置为在呼叫控制模块11接收第一呼叫消息之前,配置语音协议对应的语音参数;相应地,语音协议栈模块12,还设置为根据配置的语音参数进行检测,确定满足注册条件的协议栈;并且语音协议栈模块12中满足注册条件的每个协议栈,用于向服务器发送注册请求,以完成注册;进而语音协议栈模块12,还设置为向呼叫控制模块11发送注册通知消
息,注册通知消息中包括注册成功的协议栈标识。It should be noted that, in the embodiment, the first protocol stack determined by the call control module 11 is a protocol stack that has been registered in the voice protocol stack module 12, and the voice terminal device provided in this embodiment further includes: a configuration management module 13, The voice protocol corresponding to the voice protocol is configured to be configured before the call control module 11 receives the first call message; correspondingly, the voice protocol stack module 12 is further configured to perform detection according to the configured voice parameter to determine a protocol stack that satisfies the registration condition; And each protocol stack in the voice protocol stack module 12 that meets the registration condition is used to send a registration request to the server to complete the registration; and the voice protocol stack module 12 is further configured to send the registration notification to the call control module 11.
The registration notification message includes the protocol stack identifier that is successfully registered.
本实施例在具体实现中,配置管理模块13设置为配置语音参数的方式包括:通过加载语音终端设备的数据库中的内容,配置语音协议对应的语音参数;或者,通过接收管理设备发送的配置信息,配置语音协议对应的语音参数。In a specific implementation, the manner in which the configuration management module 13 is configured to configure the voice parameter includes: configuring the voice parameter corresponding to the voice protocol by loading the content in the database of the voice terminal device; or receiving the configuration information sent by the management device Configure the voice parameters corresponding to the voice protocol.
可选地,图5为本发明实施例提供的另一种语音终端设备的结构示意图。本实施例提供的语音终端设备为语音呼叫的发起者,第一呼叫消息用于指示发起语音呼叫;则本实施例提供的语音终端设备还包括:资源管理模块14,设置为在呼叫控制模块11接收第一呼叫消息之前,根据用户的拨号操作创建呼叫资源信息,并将呼叫资源信息携带在第一呼叫消息中发送给呼叫控制模块11;语音协议栈模块12设置为通过第一协议栈标识指示的第一协议栈执行第一呼叫消息所指示的操作:通过第一协议栈向服务器发送第一呼叫建立请求,并接收服务器返回的第一呼叫建立响应,从而向呼叫控制模块11转发该第一呼叫建立响应;相应地,呼叫控制模块11,还设置为根据第一呼叫建立响应的指示执行相应的控制操作。Optionally, FIG. 5 is a schematic structural diagram of another voice terminal device according to an embodiment of the present invention. The voice terminal device provided by this embodiment is the initiator of the voice call, and the first call message is used to indicate that the voice call is initiated. The voice terminal device provided in this embodiment further includes: a resource management module 14 configured to be in the call control module 11 Before receiving the first call message, the call resource information is created according to the user's dialing operation, and the call resource information is carried in the first call message and sent to the call control module 11; the voice protocol stack module 12 is set to indicate by the first protocol stack identifier. The first protocol stack performs an operation indicated by the first call message: sending a first call setup request to the server through the first protocol stack, and receiving a first call setup response returned by the server, thereby forwarding the first to the call control module 11 The call setup response; accordingly, the call control module 11 is further configured to perform a corresponding control operation in accordance with the indication of the first call setup response.
在本实施例中,服务器返回的第一呼叫建立响应既可以指示接收语音呼叫,也可以指示拒绝语音呼叫,因此,在语音协议栈模块12将第一呼叫建立响应转发给呼叫控制模块11后,呼叫控制模块11根据该第一呼叫建立响应的指示所执行的具体操作的内容也是不同的。In this embodiment, the first call setup response returned by the server may indicate that the voice call is received or the voice call is rejected. Therefore, after the voice protocol stack module 12 forwards the first call setup response to the call control module 11, The content of the specific operation performed by the call control module 11 in accordance with the indication of the first call setup response is also different.
举例来说,在图5所示实施例的第一种可能的情况中,上述第一呼叫建立响应指示接收语音呼叫;则呼叫控制模块11设置为根据第一呼叫建立响应的指示执行相应的控制操作:向资源管理模块14发送第一通知消息,该第一通知消息用于指示服务器已接收语音呼叫;相应地,资源管理模块14,还设置为根据第一通知消息创建通话资源信息,并通过通话资源信息建立第一语音通话;随后等待接收语音呼叫的第二语音终端设备摘机,持有该第一语音终端设备的用户可以与持有第二语音终端设备的用户进行通话。For example, in a first possible scenario of the embodiment shown in FIG. 5, the first call setup response indicates that a voice call is received; and the call control module 11 is configured to perform a corresponding control according to the indication of the first call setup response. Operation: sending a first notification message to the resource management module 14, the first notification message is used to indicate that the server has received the voice call; correspondingly, the resource management module 14 is further configured to create the call resource information according to the first notification message, and The call resource information establishes a first voice call; then the second voice terminal device waiting to receive the voice call picks up the phone, and the user holding the first voice terminal device can make a call with the user holding the second voice terminal device.
再举例来说,在图5所示实施例的第二种可能的情况中,上述第一呼叫建立响应指示拒绝语音呼叫;则呼叫控制模块11设置为根据第一呼叫建立响应的指示执行相应的控制操作:从语音协议栈模块12中选择第二协议栈,并
向语音协议栈模块12发送包括第二协议栈标识的第三呼叫消息;相应地,语音协议栈模块12,还设置为通过第二协议栈标识所指示的第二协议栈向服务器发送第二呼叫建立请求,并接收服务器返回的第二呼叫建立响应,从而向呼叫控制模块11转发第二呼叫建立响应;呼叫控制模块11,还设置为根据第二呼叫建立响应的指示执行相应的控制操作。For another example, in the second possible case of the embodiment shown in FIG. 5, the first call setup response indicates that the voice call is rejected; and the call control module 11 is configured to perform the corresponding according to the indication of the first call setup response. Control operation: selecting a second protocol stack from the voice protocol stack module 12, and
Transmitting, to the voice protocol stack module 12, a third call message including a second protocol stack identifier; correspondingly, the voice protocol stack module 12 is further configured to send a second call to the server by using the second protocol stack indicated by the second protocol stack identifier A request is established and a second call setup response returned by the server is received, thereby forwarding a second call setup response to the call control module 11; the call control module 11 is further configured to perform a corresponding control operation in accordance with the indication of the second call setup response.
本实施例中的服务器拒绝通过第一协议栈发送的第一呼叫建立请求,因此,在呼叫控制模块11接收到第一呼叫建立响应后,还可以遍历语音协议栈模块12中的其它协议栈,重新发起语音呼叫,直到服务器接收语音呼叫。需要说明的是,本实施例中呼叫控制模块11在确定协议栈时,采用的预置的规则还包括:当前发起语音呼叫的协议栈呼叫失败时,可以轮询其他注册成功的协议栈继续进行语音呼叫。The server in this embodiment rejects the first call setup request sent by the first protocol stack. Therefore, after the call control module 11 receives the first call setup response, the call control module 11 may also traverse other protocol stacks in the voice protocol stack module 12. Re-initiate the voice call until the server receives the voice call. It should be noted that, in the embodiment, when the call control module 11 determines the protocol stack, the preset rule further includes: when the protocol stack call of the current voice call fails, the other protocol stacks successfully registered may be polled to continue. Voice call.
本实施例在具体实现中,在图5所示实施例的第三种可能的情况中,呼叫控制模块11确定的第一协议栈包括多个;语音协议栈模块12设置为通过第一协议栈向服务器发送第一呼叫建立请求:通过每个第一协议栈分别向服务器发送第一呼叫建立请求,则语音协议栈模块12向呼叫控制模块11转发的第一呼叫建立响应中包括第二协议栈标识,该第二协议栈标识所指示的第二协议栈为服务器最先同意接收语音呼叫的协议栈;相应地,呼叫控制模块11设置为根据第一呼叫建立响应的指示执行相应的控制操作:向资源管理模块14发送第二通知消息,该第二通知消息用于指示服务器已接收第二协议栈发起的语音呼叫;资源管理模块14,还设置为根据第二通知消息创建通话资源信息,并通过通话资源信息建立第一语音通话;随后等待接收语音呼叫的第二语音终端设备摘机,持有该第一语音终端设备的用户可以与持有第二语音终端设备的用户进行通话。In a specific implementation of the embodiment, in a third possible scenario of the embodiment shown in FIG. 5, the first protocol stack determined by the call control module 11 includes multiple; the voice protocol stack module 12 is configured to pass the first protocol stack. Sending a first call setup request to the server: sending a first call setup request to the server by using each first protocol stack, and the first call setup response forwarded by the voice protocol stack module 12 to the call control module 11 includes the second protocol stack. The second protocol stack indicated by the second protocol stack identifier is a protocol stack that the server first agrees to receive the voice call; accordingly, the call control module 11 is configured to perform a corresponding control operation according to the indication of the first call setup response: Sending a second notification message to the resource management module 14, the second notification message is used to indicate that the server has received the voice call initiated by the second protocol stack; the resource management module 14 is further configured to create call resource information according to the second notification message, and Establishing a first voice call by using call resource information; then waiting for the second voice terminal device receiving the voice call to go off-hook A first voice terminal user holds the device may be held by a second voice call with the user terminal device.
需要说明的是,本实施例提供的语音终端设备在执行语音协议切换方法时,上述三种可能的情况为呼叫控制模块11根据第一呼叫建立响应的指示所执行的不同控制操作,即上述三种可能的情况为并列的执行方式,是选择其一执行的;另外,在第二种情况中,语音协议栈模块12设置为向呼叫控制模块11转发第二呼叫建立响应后,呼叫控制模块11设置为根据该第二呼叫建立响应的指示执行相应的控制操作的方式,与其第一呼叫建立响应的指示所
执行相应的控制操作的方式类似,可能重复执行该第二种情况中的操作,也可能执行第一种情况中的操作。It should be noted that, when the voice terminal device according to the embodiment provides the voice protocol switching method, the foregoing three possible situations are different control operations performed by the call control module 11 according to the indication of the first call setup response, that is, the foregoing three A possible case is a parallel execution mode, which is selected for execution; in addition, in the second case, after the voice protocol stack module 12 is set to forward the second call setup response to the call control module 11, the call control module 11 a manner of performing a corresponding control operation according to the indication of the second call setup response, and an indication of the first call setup response
The manner in which the corresponding control operation is performed is similar, and the operation in the second case may be repeatedly performed, or the operation in the first case may be performed.
本发明实施例提供的语音终端设备用于执行本发明图2所示实施例提供的语音协议切换方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The voice terminal device provided by the embodiment of the present invention is used to perform the voice protocol switching method provided by the embodiment shown in FIG. 2 of the present invention, and has a corresponding function module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
上述图5所示实施例提供的语音终端设备同样可以用于接收其它语音终端设备发起的语音呼叫,即本实施例中的语音终端设备可以为语音呼叫的接收者,第一呼叫消息用于指示接收语音呼叫;则在本实施例提供的语音终端设备中,语音协议栈模块12,还设置为在呼叫控制模块11接收第一呼叫消息之前,通过其中一个协议栈接收服务器发送的第三呼叫建立请求,并向呼叫控制模块11发送所述第一呼叫消息,该第一呼叫消息中包括接收第三呼叫建立请求的协议栈标识;相应地,呼叫控制模块11,还设置为在语音协议栈模块12接收第二呼叫消息之前,判断第一协议栈是否为接收第三呼叫建立请求的协议栈,并将判断结果携带在第二呼叫消息中发送给语音协议栈模块12。The voice terminal device provided by the foregoing embodiment shown in FIG. 5 can also be used to receive a voice call initiated by another voice terminal device, that is, the voice terminal device in this embodiment can be a receiver of a voice call, and the first call message is used to indicate Receiving a voice call; in the voice terminal device provided in this embodiment, the voice protocol stack module 12 is further configured to receive a third call setup sent by the server through one of the protocol stacks before the call control module 11 receives the first call message. And sending, by the call control module 11, the first call message, where the first call message includes a protocol stack identifier for receiving a third call setup request; correspondingly, the call control module 11 is further configured to be in a voice protocol stack module. Before receiving the second call message, it is determined whether the first protocol stack is a protocol stack that receives the third call setup request, and the result of the judgment is carried in the second call message and sent to the voice protocol stack module 12.
可选地,当判断出第一协议栈不是接收第三呼叫建立请求的协议栈,语音协议栈模块12在接收第二呼叫消息之后,还设置为向服务器转发第二呼叫消息,该第二呼叫消息用于向服务器通知呼叫控制模块11拒绝接收语音呼叫;另一种情况中,当判断出第一协议栈是接收第三呼叫建立请求的协议栈,语音协议栈模块12在接收第二呼叫消息之后,还设置为向服务器转发第二呼叫消息,该第二呼叫消息用于指示服务器接收语音呼叫;资源管理模块14,还设置为在呼叫控制模块11将判断结果携带在第二呼叫消息之后,接收呼叫控制模块11发送的所述第二呼叫消息,并根据第二呼叫消息创建通话资源信息,通过通话资源信息建立第一语音通话;随后在持有该第一语音终端设备的用户摘机后,该用户即可与持有第二语音终端设备的用户进行通话。Optionally, when it is determined that the first protocol stack is not the protocol stack that receives the third call setup request, the voice protocol stack module 12 is further configured to forward the second call message to the server after receiving the second call message, the second call The message is used to notify the server that the call control module 11 refuses to receive the voice call; in another case, when it is determined that the first protocol stack is the protocol stack that receives the third call setup request, the voice protocol stack module 12 is receiving the second call message. Then, the second call message is further configured to forward the second call message to the server, where the second call message is used to instruct the server to receive the voice call, and the resource management module 14 is further configured to: after the call control module 11 carries the determination result in the second call message, Receiving the second call message sent by the call control module 11, and creating call resource information according to the second call message, establishing a first voice call by using the call resource information; and then after the user holding the first voice terminal device picks up the phone The user can talk to the user holding the second voice terminal device.
需要说明的是,本发明上述各实施例中的呼叫控制模块11确定第一协议栈的方式可以是上述实施例中所述的从语音协议栈模块12中选择第一协议栈,还可以采用其它方式获取该第一协议栈;在具体实现中,呼叫控制模块11,还设置为在接收第一呼叫消息之前,通过第一协议栈成功建立第二语音通话,并将成功建立第二语音通话的第一协议栈标识发送给配置管理模块14;
配置管理模块14,设置为保存接收的第一协议栈标识;相应地,呼叫控制模块11设置为确定用于建立第一语音通话的第一协议栈:读取配置管理模块13中保存的第一协议栈标识,并将第一协议栈作确定为用于建立第一语音通话的协议栈。It should be noted that the manner in which the call control module 11 in the above embodiments of the present invention determines the first protocol stack may be the first protocol stack selected from the voice protocol stack module 12 as described in the foregoing embodiment, and other methods may be used. The method obtains the first protocol stack. In a specific implementation, the call control module 11 is further configured to successfully establish a second voice call through the first protocol stack before receiving the first call message, and successfully establish a second voice call. The first protocol stack identifier is sent to the configuration management module 14;
The configuration management module 14 is configured to save the received first protocol stack identifier; accordingly, the call control module 11 is configured to determine a first protocol stack for establishing the first voice call: reading the first saved in the configuration management module 13 The protocol stack identifies and determines the first protocol stack as a protocol stack for establishing a first voice call.
本发明实施例提供的语音终端设备用于执行本发明图3所示实施例提供的语音协议切换方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The voice terminal device provided by the embodiment of the present invention is used to perform the voice protocol switching method provided by the embodiment shown in FIG. 3 of the present invention, and has a corresponding function module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function. The invention is not limited to any specific form of combination of hardware and software.
本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的精神和范围,均应涵盖在本发明的权利要求范围当中。It should be understood by those skilled in the art that the present invention may be modified or equivalently substituted without departing from the spirit and scope of the invention.
上述技术方案避免了通过版本升级以实现切换语音协议的方式,由于不需要重启语音终端设备,缩短了语音协议的切换过程。
The foregoing technical solution avoids the manner of implementing the handover voice protocol by version upgrade. Since the voice terminal device does not need to be restarted, the handover process of the voice protocol is shortened.
Claims (19)
- 一种语音协议切换方法,包括:A voice protocol switching method includes:呼叫控制模块接收第一呼叫消息,并确定用于建立第一语音通话的第一协议栈,所述第一协议栈设置于语音协议栈模块中,且所述语音协议栈模块中包括至少两个协议栈;The call control module receives the first call message, and determines a first protocol stack for establishing a first voice call, where the first protocol stack is disposed in a voice protocol stack module, and the voice protocol stack module includes at least two Protocol stack所述语音协议栈模块接收所述呼叫控制模块发送的包括所述第一协议栈标识的第二呼叫消息,并通过所述第一协议栈标识指示的第一协议栈执行所述第一呼叫消息所指示的操作,所述第一呼叫消息用于指示发起语音呼叫或者接收语音呼叫。The voice protocol stack module receives a second call message that is sent by the call control module and includes the first protocol stack identifier, and performs the first call message by using a first protocol stack indicated by the first protocol stack identifier. The indicated operation, the first call message is used to indicate to initiate a voice call or to receive a voice call.
- 根据权利要求1所述的语音协议切换方法,还包括:The voice protocol switching method according to claim 1, further comprising:当所述第一呼叫消息用于指示发起语音呼叫时,所述呼叫控制模块接收第一呼叫消息之前,所述资源管理模块根据用户的拨号操作创建呼叫资源信息,并将所述呼叫资源信息携带在所述第一呼叫消息中发送给所述呼叫控制模块;When the first call message is used to indicate that the voice call is initiated, before the call control module receives the first call message, the resource management module creates call resource information according to the user's dialing operation, and carries the call resource information. Sending to the call control module in the first call message;所述语音协议栈模块通过所述第一协议栈标识指示的第一协议栈执行所述第一呼叫消息所指示的操作,包括:The operation of the first call message is performed by the voice protocol stack module by using the first protocol stack indicated by the first protocol stack identifier, including:所述语音协议栈模块通过所述第一协议栈向服务器发送第一呼叫建立请求,并接收所述服务器返回的第一呼叫建立响应,向所述呼叫控制模块转发所述第一呼叫建立响应;The voice protocol stack module sends a first call setup request to the server by using the first protocol stack, and receives a first call setup response returned by the server, and forwards the first call setup response to the call control module;所述呼叫控制模块根据所述第一呼叫建立响应的指示执行相应的控制操作。The call control module performs a corresponding control operation in accordance with the indication of the first call setup response.
- 根据权利要求2所述的语音协议切换方法,其中,所述第一呼叫建立响应指示接收所述语音呼叫,所述呼叫控制模块根据所述第一呼叫建立响应的指示执行相应的控制操作,包括:The voice protocol switching method according to claim 2, wherein the first call setup response indicates that the voice call is received, and the call control module performs a corresponding control operation according to the indication of the first call setup response, including :所述呼叫控制模块向所述资源管理模块发送第一通知消息,所述第一通知消息用于指示所述服务器已接收所述语音呼叫;The call control module sends a first notification message to the resource management module, where the first notification message is used to indicate that the server has received the voice call;所述资源管理模块根据所述第一通知消息创建通话资源信息,并通过所述通话资源信息建立所述第一语音通话。 The resource management module creates call resource information according to the first notification message, and establishes the first voice call by using the call resource information.
- 根据权利要求2所述的语音协议切换方法,其中,所述第一呼叫建立响应指示拒绝所述语音呼叫,所述呼叫控制模块根据所述第一呼叫建立响应的指示执行相应的控制操作,包括:The voice protocol switching method according to claim 2, wherein the first call setup response indicates rejection of the voice call, and the call control module performs a corresponding control operation according to the indication of the first call setup response, including :所述呼叫控制模块从所述语音协议栈模块中选择第二协议栈,并向所述语音协议栈模块发送包括所述第二协议栈标识的第三呼叫消息;The call control module selects a second protocol stack from the voice protocol stack module, and sends a third call message including the second protocol stack identifier to the voice protocol stack module;所述语音协议栈模块通过所述第二协议栈标识指示的第二协议栈向所述服务器发送第二呼叫建立请求,并接收所述服务器返回的第二呼叫建立响应,向所述呼叫控制模块转发所述第二呼叫建立响应;The voice protocol stack module sends a second call setup request to the server by using a second protocol stack indicated by the second protocol stack identifier, and receives a second call setup response returned by the server, to the call control module. Forwarding the second call setup response;所述呼叫控制模块根据所述第二呼叫建立响应的指示执行相应的控制操作。The call control module performs a corresponding control operation in accordance with the indication of the second call setup response.
- 根据权利要求2所述的语音协议切换方法,其中,所述第一协议栈包括多个;所述语音协议栈模块通过所述第一协议栈向服务器发送第一呼叫建立请求,包括:The voice protocol switching method according to claim 2, wherein the first protocol stack includes a plurality of; the voice protocol stack module sends a first call setup request to the server by using the first protocol stack, including:所述语音协议栈模块通过每个所述第一协议栈分别向服务器发送第一呼叫建立请求,则所述语音协议栈模块向所述呼叫控制模块转发的第一呼叫建立响应中包括第二协议栈标识,所述第二协议栈标识所指示的第二协议栈为所述服务器最先同意接收所述语音呼叫的协议栈;The voice protocol stack module sends a first call setup request to the server by using each of the first protocol stacks, and the first call setup response that is forwarded by the voice protocol stack module to the call control module includes a second protocol. a stack identifier, where the second protocol stack indicated by the second protocol stack identifier is a protocol stack that the server first agrees to receive the voice call;所述呼叫控制模块根据所述第一呼叫建立响应的指示执行相应的控制操作,包括:The call control module performs a corresponding control operation according to the indication of the first call setup response, including:所述呼叫控制模块向所述资源管理模块发送第二通知消息,所述第二通知消息用于指示所述服务器已接收所述第二协议栈发起的语音呼叫;The call control module sends a second notification message to the resource management module, where the second notification message is used to indicate that the server has received the voice call initiated by the second protocol stack;所述资源管理模块根据所述第二通知消息创建通话资源信息,并通过所述通话资源信息建立所述第一语音通话。The resource management module creates call resource information according to the second notification message, and establishes the first voice call by using the call resource information.
- 根据权利要求5所述的语音协议切换方法,还包括:The voice protocol switching method according to claim 5, further comprising:当所述第一呼叫消息用于指示接收语音呼叫时,所述呼叫控制模块接收第一呼叫消息之前,所述语音协议栈模块通过其中一个协议栈接收所述服务器发送的第三呼叫建立请求,并向所述呼叫控制模块发送所述第一呼叫消息,所述第一呼叫消息中包括接收所述第三呼叫建立请求的协议栈标识; When the first call message is used to indicate that a voice call is received, before the call control module receives the first call message, the voice protocol stack module receives a third call setup request sent by the server through one of the protocol stacks, And sending the first call message to the call control module, where the first call message includes a protocol stack identifier that receives the third call setup request;所述语音协议栈模块接收所述呼叫控制模块发送的所述第二呼叫消息之前,还包括:Before the voice protocol stack module receives the second call message sent by the call control module, the method further includes:所述呼叫控制模块判断所述第一协议栈是否为接收所述第三呼叫建立请求的协议栈,并将判断结果携带在所述第二呼叫消息中发送给所述语音协议栈模块;The call control module determines whether the first protocol stack is a protocol stack that receives the third call setup request, and carries the determination result in the second call message and sends the result to the voice protocol stack module.若所述第一协议栈不是接收所述第三呼叫建立请求的协议栈,所述语音协议栈模块在接收所述第二呼叫消息之后,向所述服务器转发所述第二呼叫消息,所述第二呼叫消息用于向所述服务器通知所述呼叫控制模块拒绝接收所述语音呼叫;If the first protocol stack is not a protocol stack that receives the third call setup request, the voice protocol stack module forwards the second call message to the server after receiving the second call message, The second call message is configured to notify the server that the call control module refuses to receive the voice call;若所述第一协议栈是接收所述第三呼叫建立请求的协议栈,所述语音协议栈模块在接收所述第二呼叫消息之后,向所述服务器转发所述第二呼叫消息,所述第二呼叫消息用于指示所述服务器接收所述语音呼叫;If the first protocol stack is a protocol stack that receives the third call setup request, the voice protocol stack module forwards the second call message to the server after receiving the second call message, The second call message is used to instruct the server to receive the voice call;所述呼叫控制模块将所述判断结果携带在所述第二呼叫消息之后,还包括:The call control module carries the result of the judgment after the second call message, and further includes:所述资源管理模块接收所述呼叫控制模块发送的所述第二呼叫消息,并根据所述第二呼叫消息创建通话资源信息,通过所述通话资源信息建立所述第一语音通话。The resource management module receives the second call message sent by the call control module, and creates call resource information according to the second call message, and establishes the first voice call by using the call resource information.
- 根据权利要求1~6中任一项所述的语音协议切换方法,其中,所述呼叫控制模块确定用于建立第一语音通话的第一协议栈,包括:The voice protocol switching method according to any one of claims 1 to 6, wherein the call control module determines a first protocol stack for establishing a first voice call, including:所述呼叫控制模块根据预置的规则从所述语音协议栈模块中选择第一协议栈。The call control module selects a first protocol stack from the voice protocol stack module according to a preset rule.
- 根据权利要求1~6中任一项所述的语音协议切换方法,还包括:The voice protocol switching method according to any one of claims 1 to 6, further comprising:所述呼叫控制模块接收第一呼叫消息之前,所述呼叫控制模块通过第一协议栈成功建立第二语音通话,并将成功建立所述第二语音通话的第一协议栈标识发送给配置管理模块;Before the call control module receives the first call message, the call control module successfully establishes a second voice call by using the first protocol stack, and sends the first protocol stack identifier of the second voice call to the configuration management module. ;所述配置管理模块保存所述接收的第一协议栈标识;The configuration management module saves the received first protocol stack identifier;所述呼叫控制模块确定用于建立语音通话的第一协议栈,包括:The call control module determines a first protocol stack for establishing a voice call, including:所述呼叫控制模块读取所述配置管理模块中保存的所述第一协议栈标 识,并将所述第一协议栈确定为用于建立所述第一语音通话的协议栈。The call control module reads the first protocol stack saved in the configuration management module And identifying the first protocol stack as a protocol stack for establishing the first voice call.
- 根据权利要求1~6中任一项所述的语音协议切换方法,还包括:The voice protocol switching method according to any one of claims 1 to 6, further comprising:所述呼叫控制模块接收第一呼叫消息之前,配置管理模块配置语音协议对应的语音参数;Before the call control module receives the first call message, the configuration management module configures a voice parameter corresponding to the voice protocol;所述语音协议栈模块根据所述配置的语音参数进行检测,确定满足注册条件的协议栈;The voice protocol stack module performs detection according to the configured voice parameters, and determines a protocol stack that satisfies the registration condition;所述语音协议栈模块中满足所述注册条件的每个协议栈向所述服务器发送注册请求,以完成注册;Each protocol stack in the voice protocol stack module that satisfies the registration condition sends a registration request to the server to complete registration;所述语音协议栈模块向所述呼叫控制模块发送注册通知消息,所述注册通知消息中包括注册成功的协议栈标识。The voice protocol stack module sends a registration notification message to the call control module, where the registration notification message includes a protocol stack identifier that is successfully registered.
- 一种语音终端设备,包括:A voice terminal device comprising:所述呼叫控制模块,设置为接收第一呼叫消息,并确定用于建立第一语音通话的第一协议栈,所述第一协议栈设置于语音协议栈模块中,且所述语音协议栈模块中包括至少两个协议栈;The call control module is configured to receive a first call message, and determine a first protocol stack for establishing a first voice call, where the first protocol stack is set in a voice protocol stack module, and the voice protocol stack module Include at least two protocol stacks;所述语音协议栈模块,设置为接收所述呼叫控制模块发送的包括所述第一协议栈标识的第二呼叫消息,并通过所述第一协议栈标识指示的第一协议栈执行所述第一呼叫消息所指示的操作,所述第一呼叫消息用于指示发起语音呼叫或者接收语音呼叫。The voice protocol stack module is configured to receive a second call message that is sent by the call control module and includes the first protocol stack identifier, and execute the first protocol stack by using the first protocol stack identifier The operation indicated by a call message, the first call message is used to indicate that a voice call is initiated or a voice call is received.
- 根据权利要求10所述的语音终端设备,还包括:The voice terminal device of claim 10, further comprising:资源管理模块,设置为当所述第一呼叫消息用于指示发起语音呼叫时,在所述呼叫控制模块接收第一呼叫消息之前,根据用户的拨号操作创建呼叫资源信息,并将所述呼叫资源信息携带在所述第一呼叫消息中发送给所述呼叫控制模块;a resource management module, configured to: when the first call message is used to indicate to initiate a voice call, before the call control module receives the first call message, create call resource information according to a dialing operation of the user, and set the call resource Information carried in the first call message is sent to the call control module;所述语音协议栈模块是设置为通过如下方式实现通过所述第一协议栈标识指示的第一协议栈执行所述第一呼叫消息所指示的操作:The voice protocol stack module is configured to implement an operation indicated by the first protocol stack indicated by the first protocol stack identifier by executing the first call message by:通过所述第一协议栈向服务器发送第一呼叫建立请求,并接收所述服务器返回的第一呼叫建立响应,向所述呼叫控制模块转发所述第一呼叫建立响应; Sending a first call setup request to the server by using the first protocol stack, and receiving a first call setup response returned by the server, and forwarding the first call setup response to the call control module;所述呼叫控制模块,还设置为根据所述第一呼叫建立响应的指示执行相应的控制操作。The call control module is further configured to perform a corresponding control operation according to the indication of the first call setup response.
- 根据权利要求11所述的语音终端设备,其中,所述第一呼叫建立响应指示接收所述语音呼叫;The voice terminal device of claim 11, wherein the first call setup response indicates receipt of the voice call;所述呼叫控制模块是设置为通过如下方式实现根据所述第一呼叫建立响应的指示执行相应的控制操作:The call control module is configured to perform a corresponding control operation according to the indication of the first call setup response by:向所述资源管理模块发送第一通知消息,所述第一通知消息用于指示所述服务器已接收所述语音呼叫;Sending a first notification message to the resource management module, where the first notification message is used to indicate that the server has received the voice call;所述资源管理模块,还设置为根据所述第一通知消息创建通话资源信息,并通过所述通话资源信息建立所述第一语音通话。The resource management module is further configured to create call resource information according to the first notification message, and establish the first voice call by using the call resource information.
- 根据权利要求11所述的语音终端设备,其中,所述第一呼叫建立响应指示拒绝所述语音呼叫;The voice terminal device of claim 11, wherein the first call setup response indicates rejection of the voice call;所述呼叫控制模块是设置为通过如下方式实现根据所述第一呼叫建立响应的指示执行相应的控制操作:The call control module is configured to perform a corresponding control operation according to the indication of the first call setup response by:从所述语音协议栈模块中选择第二协议栈,并向所述语音协议栈模块发送包括所述第二协议栈标识的第三呼叫消息;Selecting a second protocol stack from the voice protocol stack module, and sending a third call message including the second protocol stack identifier to the voice protocol stack module;所述语音协议栈模块,还设置为通过所述第二协议栈标识所指示的第二协议栈向所述服务器发送第二呼叫建立请求,并接收所述服务器返回的第二呼叫建立响应,向所述呼叫控制模块转发所述第二呼叫建立响应;The voice protocol stack module is further configured to send a second call setup request to the server by using the second protocol stack indicated by the second protocol stack identifier, and receive a second call setup response returned by the server, to The call control module forwards the second call setup response;所述呼叫控制模块,还设置为根据所述第二呼叫建立响应的指示执行相应的控制操作。The call control module is further configured to perform a corresponding control operation according to the indication of the second call setup response.
- 根据权利要求11所述的语音终端设备,其中,所述第一协议栈包括多个;The voice terminal device according to claim 11, wherein the first protocol stack includes a plurality of;所述语音协议栈模块是设置为通过如下方式实现通过所述第一协议栈向服务器发送第一呼叫建立请求:The voice protocol stack module is configured to send a first call setup request to the server by using the first protocol stack by:通过每个所述第一协议栈分别向服务器发送第一呼叫建立请求,则所述语音协议栈模块向所述呼叫控制模块转发的第一呼叫建立响应中包括第二协议栈标识,所述第二协议栈标识所指示的第二协议栈为所述服务器最先同意 接收所述语音呼叫的协议栈;And sending, by each of the first protocol stacks, a first call setup request to the server, where the first call setup response forwarded by the voice protocol stack module to the call control module includes a second protocol stack identifier, where the The second protocol stack indicated by the second protocol stack identifier is the first agreement of the server a protocol stack that receives the voice call;所述呼叫控制模块是设置为通过如下方式实现根据所述第一呼叫建立响应的指示执行相应的控制操作:The call control module is configured to perform a corresponding control operation according to the indication of the first call setup response by:向所述资源管理模块发送第二通知消息,所述第二通知消息用于指示所述服务器已接收所述第二协议栈发起的所述语音呼叫;Sending a second notification message to the resource management module, where the second notification message is used to indicate that the server has received the voice call initiated by the second protocol stack;所述资源管理模块,还设置为根据所述第二通知消息创建通话资源信息,并通过所述通话资源信息建立所述第一语音通话。The resource management module is further configured to create call resource information according to the second notification message, and establish the first voice call by using the call resource information.
- 根据权利要求10所述的语音终端设备,The voice terminal device according to claim 10,所述语音协议栈模块,还设置为当所述第一呼叫消息用于指示接收语音呼叫时,在所述呼叫控制模块接收第一呼叫消息之前,通过其中一个协议栈接收所述服务器发送的第三呼叫建立请求,并向所述呼叫控制模块发送所述第一呼叫消息,所述第一呼叫消息中包括接收所述第三呼叫建立请求的协议栈标识;The voice protocol stack module is further configured to: when the first call message is used to indicate that a voice call is received, before the call control module receives the first call message, receive, by using one of the protocol stacks, the first a call setup request, and sending the first call message to the call control module, where the first call message includes a protocol stack identifier that receives the third call setup request;所述呼叫控制模块,还设置为在所述语音协议栈模块接收所述第二呼叫消息之前,判断所述第一协议栈是否为接收所述第三呼叫建立请求的协议栈,并将判断结果携带在所述第二呼叫消息中发送给所述语音协议栈模块以及所述资源管理模块;The call control module is further configured to: before the voice protocol stack module receives the second call message, determine whether the first protocol stack is a protocol stack that receives the third call setup request, and determine a result And being carried in the second call message and sent to the voice protocol stack module and the resource management module;所述语音协议栈模块,还设置为当判断出所述第一协议栈不是接收所述第三呼叫建立请求的协议栈,在接收所述第二呼叫消息之后,向所述服务器转发所述第二呼叫消息,所述第二呼叫消息用于向所述服务器通知所述呼叫控制模块拒绝接收所述语音呼叫;当判断出所述第一协议栈是接收所述第三呼叫建立请求的协议栈,在接收所述第二呼叫消息之后,向所述服务器转发所述第二呼叫消息,所述第二呼叫消息用于指示所述服务器接收所述语音呼叫;The voice protocol stack module is further configured to: when it is determined that the first protocol stack is not a protocol stack that receives the third call setup request, after receiving the second call message, forwarding the first message to the server a second call message, the second call message is used to notify the server that the call control module refuses to receive the voice call; when it is determined that the first protocol stack is a protocol stack that receives the third call setup request After receiving the second call message, forwarding the second call message to the server, where the second call message is used to instruct the server to receive the voice call;所述资源管理模块,还设置为接收所述呼叫控制模块发送的所述第二呼叫消息,并根据所述第二呼叫消息创建通话资源信息,通过所述通话资源信息建立所述第一语音通话。The resource management module is further configured to receive the second call message sent by the call control module, and create call resource information according to the second call message, and establish the first voice call by using the call resource information .
- 根据权利要求10~15中任一项所述的语音终端设备,其中,所述呼 叫控制模块是设置为通过如下方式实现确定用于建立第一语音通话的第一协议栈:The voice terminal device according to any one of claims 10 to 15, wherein the call The calling control module is configured to determine the first protocol stack for establishing the first voice call by:根据预置的规则从所述语音协议栈模块中选择第一协议栈。The first protocol stack is selected from the voice protocol stack modules according to preset rules.
- 根据权利要求10~15中任一项所述的语音终端设备,还包括配置管理模块,The voice terminal device according to any one of claims 10 to 15, further comprising a configuration management module,所述呼叫控制模块,还设置为在接收所述第一呼叫消息之前,通过第一协议栈成功建立第二语音通话,并将成功建立所述第二语音通话的第一协议栈标识发送给配置管理模块;The call control module is further configured to: after the first call message is received, successfully establish a second voice call by using the first protocol stack, and send the first protocol stack identifier of the second voice call to the configuration. Management module所述配置管理模块,设置为保存所述接收的第一协议栈标识;The configuration management module is configured to save the received first protocol stack identifier;所述呼叫控制模块是设置为通过如下方式实现确定用于建立所述第一语音通话的第一协议栈:The call control module is configured to determine to determine a first protocol stack for establishing the first voice call by:读取所述配置管理模块中保存的所述第一协议栈标识,并将所述第一协议栈确定为用于建立所述第一语音通话的协议栈。Reading the first protocol stack identifier saved in the configuration management module, and determining the first protocol stack as a protocol stack for establishing the first voice call.
- 根据权利要求10~15中任一项所述的语音终端设备,还包括:The voice terminal device according to any one of claims 10 to 15, further comprising:配置管理模块,设置为在所述呼叫控制模块接收所述第一呼叫消息之前,配置语音协议对应的语音参数;a configuration management module, configured to configure a voice parameter corresponding to the voice protocol before the call control module receives the first call message;所述语音协议栈模块,还设置为根据所述配置的语音参数进行检测,确定满足注册条件的协议栈;通过所述语音协议栈模块中满足所述注册条件的每个协议栈向所述服务器发送注册请求,以完成注册;以及向所述呼叫控制模块发送注册通知消息,所述注册通知消息中包括注册成功的协议栈标识。The voice protocol stack module is further configured to: detect, according to the configured voice parameter, a protocol stack that satisfies a registration condition; and use, by the voice protocol stack module, each protocol stack that meets the registration condition to the server Sending a registration request to complete the registration; and sending a registration notification message to the call control module, where the registration notification message includes a protocol stack identifier that is successfully registered.
- 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1~9中任一项所述的方法。 A computer storage medium having stored therein computer executable instructions for performing the method of any one of claims 1-9.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510375024.XA CN106331401A (en) | 2015-06-30 | 2015-06-30 | Voice protocol switching method and voice terminal device |
CN201510375024.X | 2015-06-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017000482A1 true WO2017000482A1 (en) | 2017-01-05 |
Family
ID=57607623
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/094917 WO2017000482A1 (en) | 2015-06-30 | 2015-11-18 | Voice protocol handover method and voice terminal device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106331401A (en) |
WO (1) | WO2017000482A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111708551A (en) * | 2020-04-27 | 2020-09-25 | 北京梧桐车联科技有限责任公司 | Information prompting method and device, vehicle equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102394890A (en) * | 2011-11-15 | 2012-03-28 | 上海市共进通信技术有限公司 | Multiprotocol voice control system, operation method and switching method in support of SIP (session initiation protocol) and H.248 |
CN102571722A (en) * | 2010-12-31 | 2012-07-11 | 北京大唐高鸿数据网络技术有限公司 | Converged communication system and multi-protocol adaptation method suitable for same |
CN103532929A (en) * | 2013-09-17 | 2014-01-22 | 烽火通信科技股份有限公司 | Voice terminal equipment and voice double-protocol switching method |
CN104394154A (en) * | 2014-11-27 | 2015-03-04 | 四川中时代科技有限公司 | Protocol extension device and method based on VoIP |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101141359B (en) * | 2007-10-24 | 2010-06-09 | 中兴通讯股份有限公司 | United service access system and access method |
CN102333167B (en) * | 2011-10-09 | 2014-08-27 | 深圳市共进电子股份有限公司 | VoIP (Voice over Internet Protocol) switching method and device |
CN104363180B (en) * | 2014-11-25 | 2018-04-06 | 上海斐讯数据通信技术有限公司 | A kind of routing device and its protocol stack switching method |
-
2015
- 2015-06-30 CN CN201510375024.XA patent/CN106331401A/en active Pending
- 2015-11-18 WO PCT/CN2015/094917 patent/WO2017000482A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571722A (en) * | 2010-12-31 | 2012-07-11 | 北京大唐高鸿数据网络技术有限公司 | Converged communication system and multi-protocol adaptation method suitable for same |
CN102394890A (en) * | 2011-11-15 | 2012-03-28 | 上海市共进通信技术有限公司 | Multiprotocol voice control system, operation method and switching method in support of SIP (session initiation protocol) and H.248 |
CN103532929A (en) * | 2013-09-17 | 2014-01-22 | 烽火通信科技股份有限公司 | Voice terminal equipment and voice double-protocol switching method |
CN104394154A (en) * | 2014-11-27 | 2015-03-04 | 四川中时代科技有限公司 | Protocol extension device and method based on VoIP |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111708551A (en) * | 2020-04-27 | 2020-09-25 | 北京梧桐车联科技有限责任公司 | Information prompting method and device, vehicle equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106331401A (en) | 2017-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10798138B2 (en) | Instant calling method, apparatus and system | |
US10462048B2 (en) | Virtual cluster establishment method and network device | |
US20140105179A1 (en) | Call Handoff Between Different Networks For Hybrid Mobile Device | |
US20130007291A1 (en) | MEDIA INTERWORKING IN IPv4 AND IPv6 SYSTEMS | |
KR20080071925A (en) | Traffic load balancing | |
JP2009232182A (en) | Mobile communication system, session continuation determination server, and session continuation method | |
US11678149B2 (en) | Communications network | |
JP2006101528A (en) | Detection of looping communication channel | |
WO2016086730A1 (en) | Call transfer method and device | |
JP2010154159A (en) | Call control system, call controller, terminal, and call control method | |
WO2017000482A1 (en) | Voice protocol handover method and voice terminal device | |
CN110505355B (en) | Method and system for establishing three-party call | |
JP5480528B2 (en) | Communication method and communication system | |
EP2590377A1 (en) | Call processing method and media gateway | |
WO2010097041A1 (en) | Method, system and equepment for call processing | |
JP4037432B2 (en) | Telephone exchange system, telephone exchange method, and telephone exchange program | |
JP4508755B2 (en) | Communication system and communication terminal according to SIP | |
JP2007214657A (en) | Ip phone network system utilizing wireless lan, and channel acquisition method thereof | |
CN109479071A (en) | A kind of processing method and related network device of the networking telephone | |
CN102821118A (en) | Method and system for backing up services in network with heterogeneous nodes | |
JP2011097469A (en) | Telephone system and exchange apparatus therefor | |
JP2008035476A (en) | Call control method, computer program, and private branch exchange | |
US9781274B2 (en) | Providing a proxy server feature at an endpoint | |
WO2013056569A1 (en) | Method and device for communication between boards | |
WO2015136870A1 (en) | Communication route control device, communication route control system, storage medium storing communication route control program, and communication route control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15897009 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15897009 Country of ref document: EP Kind code of ref document: A1 |