WO2016091154A1 - Method for determining media capabilities and call control network element - Google Patents

Method for determining media capabilities and call control network element Download PDF

Info

Publication number
WO2016091154A1
WO2016091154A1 PCT/CN2015/096697 CN2015096697W WO2016091154A1 WO 2016091154 A1 WO2016091154 A1 WO 2016091154A1 CN 2015096697 W CN2015096697 W CN 2015096697W WO 2016091154 A1 WO2016091154 A1 WO 2016091154A1
Authority
WO
WIPO (PCT)
Prior art keywords
media
side device
calling side
call
capability
Prior art date
Application number
PCT/CN2015/096697
Other languages
French (fr)
Chinese (zh)
Inventor
张立斌
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2016091154A1 publication Critical patent/WO2016091154A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method for determining media capabilities and a call control network element.
  • the calling and the called parties In the field of communication, such as real-time calls, before the call is established, the calling and the called parties must interact with each other's media capabilities, and then perform media calls after the interaction is completed.
  • the basic flow of a typical basic call model (taking audio as an example) is as follows:
  • the calling side device initiates a session request, and the media capability supported by the calling side device is the audio codec AMR-WB.
  • the call request of the calling side device is forwarded to the call control network element, and the call control network element forwards the call request to the called side device.
  • the called side device receives the call request, and the called side device supports the AMR-WB, and the called side device supports the call, and responds to the calling side device with a response message, and the message carries the AMR-WB codec capability.
  • the call control network receives the called side device response message and forwards the message to the calling side device.
  • the calling side device receives the media capability in the called response message, and the media information between the calling and the called party is completed, and the media information on both sides can be realized by using the interactive media information.
  • the originating caller can carry multiple media capabilities, that is, all the media capabilities supported by the caller can be placed in the call request, such as voice and video, and voice and video. It can also carry a variety of media encoding and decoding capabilities.
  • the called side device After receiving the media capability declared by the calling side device, the called side device can select the media capability to be used for the session based on its own supported capabilities and preferences (such as configuration), and then give the main The side device is called to answer, so that the mediation between the main and the called parties is completed, and the session can be based on the media capability.
  • the embodiment of the invention provides a method for determining media capabilities and a call control network element, which improves session quality and has a good user experience.
  • the call control network element receives the call request of the calling side device
  • the call control network element acquires a media transmission status of at least one of the calling side device and the called side device on the call path;
  • the call control network element determines, according to the media transmission status, a media capability when establishing a session between the calling side device and the called side device.
  • the call request includes a media capability supported by the calling side device
  • the determining, by the call control network element, the media capability when establishing a session between the calling side device and the called side device according to the media transmission status includes:
  • the call control network element selects a preferred media capability that matches the media transmission state according to the media transmission status
  • the call control network element updates the media capability supported by the calling side device in the call request to the preferred media capability
  • the call control network element forwards a call request after updating the media capability to the called side device
  • the call control network element sends a response to the calling side device.
  • the obtaining, by the call control network element, the media transmission status of the at least one of the calling side device and the called side device on the call path includes:
  • the call control network element acquires a media transmission status of one of the calling side device and the called side device on the call path;
  • the selecting, by the call control network element, the preferred media capabilities that match the media transmission status according to the media transmission status includes:
  • the call control network element selects a preferred media capability that matches the media transmission state according to a media transmission status of the one of the ones on the call path;
  • the call control network element sends a response to the calling side device, including:
  • the call control network element sends the response to the calling side device, where the response carries the session media capability.
  • the media transmission state of the one of the call paths includes the One of the signal states of the wireless air interface
  • the selecting, by the call control network element, the preferred media capabilities that match the media transmission status according to the media transmission status includes:
  • the call control network element Determining, by the call control network element, whether the signal state satisfies a preset signal state condition, and if yes, selecting a media capability supported by the calling side device as the preferred media capability, and if not, at the calling Among the media capabilities supported by the side devices, the media capability that occupies a low bandwidth is selected as the preferred media capability.
  • the selecting the media capability that is low in bandwidth to the preferred media capability includes:
  • the video media capability is filtered when the media capabilities supported by the calling side device include audio media capabilities and video media capabilities.
  • the Selecting media capabilities that occupy low bandwidth from the media capabilities for the preferred media capabilities include:
  • the calling side device When the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to a preset relationship between a preset signal state and a media capability, the calling side device Among the supported media capabilities, the media capabilities that match the signal state are adjusted to the preferred one.
  • the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, in the media capability supported by the calling side device, Media capability filtering that does not match the signal state,
  • the media capabilities supported by the calling side device include multiple rate sets of the same type of media codec, according to the corresponding relationship between the preset signal state and the rate mode, among the media capabilities supported by the calling side device, A set of rate patterns is selected that match the state of the signal, the set of rate patterns including at least one rate pattern.
  • the media transmission state of the one of the call paths includes the One of the access methods
  • the selecting, by the call control network element, the preferred media capability that matches the media transmission status of the calling side device on the call path according to the media transmission status of the calling side device on the call path includes:
  • the call control network element obtains the calling side device and the called side device. At least one of the media transmission statuses on the call path includes:
  • the selecting, by the call control network element, the preferred media capabilities that match the media transmission status according to the media transmission status includes:
  • the call control network element selects a preferred media capability that matches the media transmission state of the called side device on the call path according to the media transmission status of the called side device on the call path;
  • the method further includes:
  • the call control network element sends a response to the calling side device, including:
  • the call control network element sends the response to the calling side device, where the response carries a preferred media capability that matches the media transmission status of the calling side device on the call path.
  • the call control network element acquires the calling side device and the The media transmission status of the calling device on the call path includes:
  • the call control network element acquires network transmission quality of the calling side device and the called side device on a call path;
  • the selecting, by the call control network element, the preferred media capability that matches the media transmission state of the called side device on the call path according to the media transmission status of the called side device on the call path includes:
  • the call control network element determines whether the network transmission quality of the called side device on the call path meets a preset network transmission quality condition, and if yes, selects the media capability supported by the calling side device as the preferred medium. Capability, if not, selecting a preferred media capability that matches the network transmission quality of the called side device on the call path among the media capabilities supported by the calling side device;
  • the selecting, by the call control network element, the preferred media capability that matches the media transmission status of the calling side device on the call path according to the media transmission status of the calling side device on the call path includes:
  • the call control network element determines whether the network transmission quality of the calling side device on the call path meets a preset network transmission quality condition, and if yes, selects the media capability supported by the calling side device as the preferred media. The capability, if not, selects a preferred media capability that matches the network transmission quality of the calling side device on the call path among the media capabilities supported by the calling side device.
  • the call control network element acquires the calling side device and the The media transmission status of the calling device on the call path includes:
  • the call control network element acquires an access mode of the calling side device and the called side device
  • the selecting, by the call control network element, the preferred media capability that matches the media transmission state of the called side device on the call path according to the media transmission status of the called side device on the call path includes:
  • the access control mode of the call control network element is a Wi-Fi access mode
  • the calling side device supports the anti-drop packet media capability, the anti-drop packet media Selecting preferred media capabilities among capabilities
  • the selecting, by the call control network element, the preferred media capability that matches the media transmission status of the calling side device on the call path according to the media transmission status of the calling side device on the call path includes:
  • the access control mode of the calling control device is a Wi-Fi access mode
  • the calling side device supports the anti-drop packet media capability
  • the anti-drop packet media The preferred media capabilities are selected among the capabilities.
  • a second aspect of the embodiments of the present invention provides a call control network element, including:
  • a receiving unit configured to receive a call request of the calling side device
  • a processing unit configured to acquire a media transmission status of at least one of the calling side device and the called side device on the call path;
  • the processing unit is further configured to determine, according to the acquired media transmission status, a media capability when establishing a session between the calling side device and the called side device.
  • the processing unit is further configured to:
  • the call control network element further includes:
  • a sending unit configured to forward, to the called side device, a call request after updating the media capability
  • the sending unit is further configured to send a response to the calling side device.
  • the processing unit is specifically configured to:
  • the sending unit is specifically configured to send the response to the calling side device, where the response carries the session media capability.
  • the processing unit is specifically configured to use one of the ones on the call path.
  • the media transmission state includes the signal state of the wireless air interface
  • the signal state is determined to satisfy the preset signal state condition, and if yes, the media capability supported by the calling side device is selected as the preferred
  • the media capability if not, selects a media capability that occupies a low bandwidth as the preferred media capability among the media capabilities supported by the calling side device.
  • the processing unit is specifically configured to be used by the media supported by the calling side device.
  • the video media capabilities are filtered when the capabilities include audio media capabilities and video media capabilities.
  • the processing unit is specifically configured to:
  • the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, in the media capability supported by the calling side device,
  • the media capabilities that match the signal state are adjusted to preferred,
  • the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, in the media capability supported by the calling side device, Media capability filtering that does not match the signal state,
  • the media capabilities supported by the calling side device include multiple rate sets of the same type of media codec, according to the corresponding relationship between the preset signal state and the rate mode, among the media capabilities supported by the calling side device, A set of rate patterns is selected that match the state of the signal, the set of rate patterns including at least one rate pattern.
  • the processing unit is specifically configured to: when one of the ones is on a call path
  • the media transmission state includes one of the access modes, and when the access mode of the one of the access modes is a Wi-Fi access mode, and the calling side device supports the anti-dropping media capability, Selecting a preferred media capability among the anti-lost media capabilities.
  • the processing unit is specifically configured to:
  • the processing unit is further configured to select, according to a media transmission status of the calling side device on a call path, a preferred media capability that matches a media transmission state of the calling side device on a call path;
  • the sending unit is specifically configured to send the response to the calling side device, where the response carries a preferred media capability that matches the media transmission status of the calling side device on the call path.
  • the processing unit is specifically configured to:
  • the processing unit is further configured to determine whether the network transmission quality of the calling side device on the call path meets a preset network transmission quality condition, and if yes, select the media capability supported by the calling side device to be the Preferably, the media capability, if not, selects a preferred media capability that matches the network transmission quality of the calling side device on the call path among the media capabilities supported by the calling side device.
  • the processing unit is specifically configured to:
  • the processing unit is further configured to: when the access mode of the calling side device is a Wi-Fi access mode, and the calling side device supports the anti-drop packet media capability, the anti-drop packet
  • the preferred media capabilities are selected among the media capabilities.
  • a third aspect of the embodiments of the present invention provides a call control network element, including:
  • a receiver configured to receive a call request of the calling side device
  • a processor configured to acquire a media transmission status of at least one of the calling side device and the called side device on the call path;
  • the processor is further configured to determine, according to the media transmission status, a media capability when establishing a session between the calling side device and the called side device.
  • the call control network element determines that the calling side device and the called side device are established according to the acquired media transmission state of the calling side device and the called side device in the call path.
  • the media capability during the session is improved according to the media transmission status of the selected session media capability, and matches the media transmission status of the current session, thereby improving the session quality and the user experience.
  • FIG. 1 is a schematic diagram of an embodiment of a method for determining media capabilities in an embodiment of the present invention
  • FIG. 2 is a schematic diagram of another embodiment of a method for determining media capabilities in an embodiment of the present invention
  • FIG. 3 is a schematic diagram of another embodiment of a method for determining media capabilities in an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another embodiment of a method for determining media capabilities in an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another embodiment of a method for determining media capabilities in an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of an embodiment of a call control network element in an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of another embodiment of a call control network element in an embodiment of the present invention.
  • the embodiment of the invention provides a method for determining media capabilities and a call control network element, which improves session quality and has a good user experience.
  • 2G communication systems such as Global System for Mobile Communications (GSM), Wideband Code Division Multiple Access ( Longband evolution (CDMA), 3D communication systems such as time division synchronization code division multiple access (TD-SCDMA), long-term evolution (LTE), and its subsequent evolution Next generation communication systems such as systems.
  • GSM Global System for Mobile Communications
  • CDMA Wideband Code Division Multiple Access
  • CDMA Wideband Code Division Multiple Access
  • 3D communication systems such as time division synchronization code division multiple access (TD-SCDMA), long-term evolution (LTE), and its subsequent evolution Next generation communication systems such as systems.
  • TD-SCDMA time division synchronization code division multiple access
  • LTE long-term evolution
  • Next generation communication systems such as systems.
  • the media capability described in the embodiment of the present invention is a coding mode (or transmission mode) for exchanging media content or data content between two communication parties (such as a calling side device and a called side device), such as audio media capability and video media capability. , pictures, faxes, etc.
  • an embodiment of a method for determining media capabilities in an embodiment of the present invention includes:
  • the call control network element receives a call request of the calling side device.
  • the calling and the called parties In the field of communication, such as real-time calling, before the session is established, the calling and the called parties must interact with each other's media capabilities, determine the media capabilities during the session, and perform media sessions after the interaction is completed.
  • the calling side device sends a call request to the call control network element.
  • the call control network element acquires a media transmission status of at least one of the calling side device and the called side device on the call path.
  • the media transmission state of the calling side device and the called side device on the call path may be the signal state of the wireless air interface where the calling side device and the called side device are located, and the transmission bandwidth that can be supported can be known according to the signal state of the wireless air interface;
  • the media transmission status of the calling side device and the called side device on the call path may also be the network transmission quality of the calling side device and the called side device on the call path, and the call control network element may be connected to many networks. It is also possible to connect many devices, but no matter how the docking is based on the IP address, the call control network element can perform real-time statistics on the network transmission quality of each IP address pair based on the IP address pair mode.
  • the statistics may be statistics of existing services of all users or partial sampled users of each address pair, and the IP address pair is a call path between two device IP addresses, and the call control network element may acquire before the session is established.
  • the statistical network transmission quality of the calling side device and the called side device on the call path IP address pair).
  • the network transmission quality may include a packet loss rate, a delay, a jitter, and a MOS value, which are not limited herein.
  • the media transmission status of the calling side device and the called side device on the call path may also be the access mode of the calling side device and the called side device, such as Wi-Fi access mode and LTE access. Ways, etc.
  • the call control network element may only obtain the media transmission status of the calling side device on the call path, or may only obtain the media transmission status of the called side device on the call path, and may also acquire the calling side device at the same time.
  • the media transmission status of the called device on the call path is not limited herein.
  • the call control network element determines, according to the media transmission status, a media capability when establishing a session between the calling side device and the called side device;
  • the call control network element determines the calling side device and the device according to the obtained media transmission state (the media state of at least one of the calling side device and the called side device on the call path)
  • the media capability when establishing a session between the called side devices for example, when acquiring the signal state of the wireless air interface of the calling side device, the transmission bandwidth that can be supported can be known according to the signal state of the wireless air interface, and the calling side device supports Among the media capabilities, the media capability can be prioritized or directly selected to occupy a bandwidth that does not exceed the bandwidth that the signal state can support.
  • the media capability selected by the called side device may not be suitable for the current session environment, which means that the quality of the session cannot achieve the expected effect even if the called side device does not
  • the preferred media codec in the call request is preferred, and the selected media capability (media codec) may still not match the current session environment, resulting in the session quality being less than expected and the user experience being poor.
  • the call control network element determines the calling side device according to the obtained media transmission state of the calling side device and the called side device in the call path.
  • the media capability when the session is established between the called devices is improved according to the media transmission state, and the media transmission state of the current session is matched, which improves the session quality and the user experience is good.
  • another embodiment of a method for determining media capabilities in an embodiment of the present invention includes:
  • the call control network element receives a call request of the calling side device.
  • the originating caller can carry multiple media capabilities, that is, all the media capabilities supported by the caller can be placed in the call request, such as voice and video, and voice and video. Can also carry a variety of media encoding and decoding capabilities, like
  • the audio media capabilities include AMR and AMR-WB, or audio media capabilities including media codec for G.711 codec, G.729 codec, and iLBC codec.
  • the caller device will call before the session is established.
  • the control network element sends a call request, where the call request includes the media capability supported by the calling side device.
  • the call control network element acquires a media transmission status of at least one of the calling side device and the called side device on the call path.
  • the call control network element may only obtain the media transmission status of the calling side device on the call path, or may only obtain the media transmission status of the called side device on the call path, and may also acquire the calling side device at the same time.
  • the media transmission status of the called device on the call path is not limited herein.
  • the media transmission state of the calling side device and the called side device on the call path may be the signal state of the wireless air interface where the calling side device and the called side device are located, and the transmission bandwidth that can be supported can be known according to the signal state of the wireless air interface;
  • the media transmission status of the calling side device and the called side device on the call path may also be the network transmission quality of the calling side device and the called side device on the call path, and the call control network element may be connected to many networks. It is also possible to connect many devices, but no matter how the docking is based on the IP address, the call control network element can perform real-time statistics on the network transmission quality of each IP address pair based on the IP address pair mode.
  • the statistics may be statistics of existing services of all users or partial sampled users of each address pair, and the IP address pair is a call path between two device IP addresses, and the call control network element may acquire before the session is established.
  • the statistical network transmission quality of the calling side device and the called side device on the call path IP address pair).
  • the network transmission quality may include a packet loss rate, a delay, a jitter, and a MOS value, which are not limited herein.
  • the media transmission status may be different under different media bearer modes. For example, in the LTE access mode, there is a minimum bandwidth guarantee, that is, GBR (Guranteed Bit Rate) guarantee, but in the Wi-Fi access mode, all connections are made.
  • GBR Guard Bit Rate
  • the bandwidth of the user equipment entering the Wi-Fi node is preemptive. Therefore, if it is a Wi-Fi access mode, it means that the packet loss or delay and jitter value of the media transmission path of the user equipment is large. In this case, the media capability of the anti-drop packet should be selected. Therefore, the media transmission status of the calling side device and the called side device on the call path may also be the access mode of the calling side device or the called side device, such as Wi- Fi access mode, LTE access mode, and the like.
  • the call control network element may only obtain the media transmission status of the calling side device on the call path, or may only obtain the media transmission status of the called side device on the call path, and may also acquire the calling side device at the same time.
  • the media transmission status of the called device on the call path is not limited herein.
  • the call control network element selects a preferred media capability that matches the media transmission status.
  • step 202 When the media transmission status of the calling side device on the call path is obtained in step 202, the preferred media capability matching the media transmission status of the calling side device on the call path is selected, and the step 202 is obtained.
  • the preferred media capability matching the media transmission state of the called side device on the call path is selected, and in step 202, the calling side device and the called side are simultaneously acquired.
  • the preferred media capability that matches the media transmission state of the called device on the call path is selected.
  • the preferred media capability is selected according to the acquired media transmission status, and may include one or more media capabilities supported by the calling side device, for example, when the media capabilities supported by the calling side device are AMR and AMR-WB.
  • AMR-WB is a wideband speech codec
  • the coding rate is high, and the required transmission bandwidth is large
  • AMR is a narrowband speech codec
  • the coding rate is low
  • the required transmission bandwidth is small
  • the wireless air interface signal status is insufficient to support the AMR-WB audio media capability
  • the AMR audio media capability can be selected as the preferred media capability.
  • the call control network element updates the media capability supported by the calling side device in the call request to a preferred media capability.
  • the call control network element adjusts the media capability supported by the calling side device in the received call request to the determined preferred media capability, for example, the media capability supported by the calling side device is AMR and AMR-WB audio media capability, according to The preferred media capability determined by the acquired media transmission status is the AMR audio media capability, and the media capability in the call request is adjusted to the AMR audio media capability.
  • the call control network element forwards the call request after updating the media capability to the called side device.
  • the call control network element After updating the media capability in the call request, the call control network element forwards the call request after updating the media capability to the called side device, so that the called side device according to the updated media capability
  • the preferred media capability in the subsequent call request selects the session media capability and returns a call response to the call control network element, the call response carrying the session media capability selected by the called side device according to the preferred media capability;
  • the session media capability is a media capability, such as AMR, when the called side device selects a session with the calling side device according to the preferred media capability, and the subsequent called side device can directly establish a session based on the media capability.
  • AMR media capability
  • the call control network element sends a response to the calling side device.
  • the call control network element After receiving the call response returned by the called side device, the call control network element sends a response to the calling side device.
  • the call control network element obtains one of the calling side device and the called side device in the call path.
  • the calling side device In the medium transmission state, the calling side device also uses the session media capability determined by the called side device, and the response may carry the session media capability determined by the called side device;
  • the call control network element determines a preferred media according to the media transmission status of the at least one of the obtained calling side device and the called side device on the call path.
  • the capability is such that the called side device selects a session media capability from the preferred media capabilities, and since the selected session media capability is selected from the preferred media capabilities determined by the media transmission state, the media transmission state of the current session is matched, and the capability is improved.
  • the quality of the session is good and the user experience is good.
  • the call control network element obtains the media transmission status of at least one of the calling side device and the called side device on the call path, and includes multiple implementation manners, which are described in detail below in conjunction with specific embodiments:
  • the call control network element obtains a media transmission status of one of the calling side device and the called side device on the call path;
  • another embodiment of a method for determining media capabilities in an embodiment of the present invention includes include:
  • the call control network element receives a call request of the calling side device.
  • the originating caller can carry multiple media capabilities, that is, all the media capabilities supported by the caller can be placed in the call request, such as voice and video, and voice and video.
  • media encoding and decoding capabilities such as including audio media capabilities AMR and AMR-WB, or both media codec for G.711 codec, G.729 codec, iLBC codec audio media capabilities, in
  • the calling side device sends a call request to the call control network element, where the call request includes the media capability supported by the calling side device.
  • the call control network element obtains the media transmission status of one of the calling side device and the called side device on the call path.
  • the calling side device and the called side device may also be acquired.
  • One of the media transmission states on the call path is not limited herein.
  • the media transmission state of one of the calling side device and the called side device on the call path may be a signal state of the wireless air interface where one of the calling side device and the called side device is located, according to the wireless air interface.
  • the signal state can know the transmission bandwidth that can be supported;
  • the media transmission status of the calling side device and the called side device on the call path may also be the network transmission quality of the calling side device and the called side device on the call path, and the call control network element may be connected to many networks. It is also possible to connect many devices, but no matter how the docking is based on the IP address, the call control network element can perform real-time statistics on the network transmission quality of each IP address pair based on the IP address pair mode.
  • the statistics may be statistics of existing services of all users or partial sampled users of each address pair, and the IP address pair is a call path between two device IP addresses, and the call control network element may acquire before the session is established.
  • the statistical network transmission quality of the calling side device and the called side device on the call path IP address pair).
  • the network transmission quality may include a packet loss rate, a delay, a jitter, and a MOS value, which are not limited herein.
  • the media transmission status may be different under different media bearer modes. For example, in the LTE access mode, there is a minimum bandwidth guarantee, that is, GBR (Guranteed Bit Rate) guarantee, but in the Wi-Fi access mode, all connections are made. The bandwidth of the user equipment entering the Wi-Fi node is preempted. If the Wi-Fi access mode is used, it means that the packet loss or delay and jitter value of the media transmission path of the user equipment will be large. In this case, the media capability against packet loss should be selected. Therefore, the main The media transmission status of the calling device and the called device on the call path may also be the access mode of the calling device or the called device, such as the Wi-Fi access mode and the LTE access mode.
  • GBR Guard Bit Rate
  • the call control network element may only obtain the media transmission status of the calling side device on the call path, or may only obtain the media transmission status of the called side device on the call path, which is not limited herein.
  • the call control network element selects a preferred media capability that matches the media transmission state according to a media transmission status of the one of the ones on the call path.
  • the call control network element is in accordance with the media transmission status of the one of the call paths. Selecting preferred media capabilities that match the media transmission status may include:
  • the call control network element determines whether the signal state satisfies a preset signal state condition, and if yes, selects a media capability supported by the calling side device as the preferred media capability, and if not, at the calling side device Among the supported media capabilities, selecting a media capability that occupies a low bandwidth is the preferred media capability;
  • the call control network element determines whether the signal state satisfies a preset signal state condition.
  • the acquired signal state condition satisfies the preset signal state condition, indicating that the air interface signal state is good, the media capability of the session may not be controlled.
  • the media capability supported by the calling side device is used as the preferred media capability.
  • the acquired signal state condition does not meet the preset signal state condition, it means that the air interface signal state is poor, the air interface may have a higher bit error rate, and the probability of air interface retransmission is higher. Large, need to choose the media capacity that occupies low bandwidth as the preferred media capability.
  • the media capabilities supported by the calling side device are AMR and AMR-WB
  • the AMR-WB is a wideband speech codec
  • the encoding rate is high, and the required transmission bandwidth is large
  • the AMR is a narrowband speech codec, and the encoding rate.
  • the required transmission bandwidth is small when acquired
  • the wireless air interface signal status of the calling side device is known
  • the transmission bandwidth supported by the wireless air interface signal state of the calling side device that is, the transmission rate that can be supported
  • each type of codec has a requirement for the transmission bandwidth.
  • the audio media capability of the AMR can be selected.
  • the media capability supported by the calling side device is selected as the preferred media capability, which may be one or more of the following: Method to realize:
  • the video media capabilities are filtered.
  • the SDP parameters in the call request are as follows:
  • the adjusted SDP parameters are as follows:
  • the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, the media capability supported by the calling side device Medium, adjusting the media capability matching the signal state to a preferred one;
  • the acquired signal state can only match the AMR audio codec (PT value 97).
  • the order of the PT values in the m rows can be adjusted to indicate that the priority of the media codec changes, as follows:
  • the order of the PT values in the m rows can be adjusted to indicate that the priority of the media codec changes, or the order in the a row can be adjusted at the same time, as follows:
  • the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, the media capability supported by the calling side device Medium, filtering media capabilities that do not match the signal state;
  • the SDP parameters in the received call request are as follows:
  • the acquired signal state can only match the AMR audio codec (PT value 97).
  • the AMR-WB audio codec with the PT value of 96 can be filtered out, leaving only the supported AMR media capabilities and adjusting the SDP parameters. as follows:
  • the media capability supported by the calling side device includes multiple rate sets of the same type of media codec, according to the corresponding relationship between the preset signal state and the rate mode, the media supported by the calling side device In the capability, a set of rate patterns matching the signal state is selected, and the rate pattern set includes at least one rate mode.
  • the SDP parameters in the received call request are as follows:
  • the mode-set parameter indicates the rate set to be used by the codec.
  • the AMR-WB and the AMR are both multi-rate codecs.
  • the AMR is used as an example.
  • the correspondence between the rate mode and the corresponding rate value is as follows:
  • the above rate corresponds to the media transmission bandwidth, and the larger the rate, the larger the codec transmission bandwidth.
  • a set of rate modes that can be supported is retained, and a set of rate patterns that do not match the signal state are filtered.
  • the medium transmission status of the one of the foregoing may also include an access mode of the one of the ones, such as a Wi-Fi access mode, an LTE access mode, and the like.
  • the media transmission status may be different under different media bearer modes. For example, in the LTE access mode, there is a minimum bandwidth guarantee, that is, GBR (Guranteed Bit Rate) guarantee, but in the Wi-Fi access mode, all connections are made.
  • GBR Guard Bit Rate
  • the bandwidth of the user equipment entering the Wi-Fi node is preemptive. Therefore, if it is a Wi-Fi access mode, it means that the packet loss or delay and jitter value of the media transmission path of the user equipment is large. At this time, you should choose the media capability against packet loss, such as selecting iLBC codec or redundant transmission.
  • selecting a preferred media capability among the anti-lost media capabilities may be:
  • the call control network element updates the media capability supported by the calling side device in the call request to a preferred media capability.
  • the call control network element adjusts the media capability supported by the calling side device in the received call request to the determined preferred media capability, for example, the media capability supported by the calling side device is AMR and AMR-WB audio media capability, according to The preferred media capability determined by the acquired media transmission status is the AMR audio media capability, and the media capability in the call request is adjusted to the AMR audio media capability.
  • the call control network element forwards the call request after updating the media capability to the called side device.
  • the call control network element After updating the media capability in the call request, the call control network element forwards the call request after updating the media capability to the called side device, so that the called side device according to the preferred media in the call request after updating the media capability
  • the capability selects the session media capability and returns a call response to the call control network element, the call response carrying the session media capability selected by the called side device according to the preferred media capability;
  • the session media capability is a media capability, such as AMR, when the called side device selects a session with the calling side device according to the preferred media capability, and the subsequent called side device can directly establish a session based on the media capability.
  • AMR media capability
  • the call control network element sends the response to the calling side device.
  • the call control network element after receiving the call response returned by the called side device, the call control network element sends a response to the calling side device.
  • the call control network element obtains the calling side device and the called side device. a media transmission state on the call path, the calling side device also uses the session media capability determined by the called side device, and the response may carry the session media capability determined by the called side device;
  • the calling side device may use the media determined by itself.
  • the response may carry the preferred media capability of the media transmission state of the calling device on the call path, which is not limited, so that the call control network element
  • the session capability of the calling side device and the called side device is completed, and the session can be performed based on the media capabilities selected by the calling side device and the called side device, which are not limited herein.
  • the call control network element acquires the network transmission quality of the calling side device and the called side device on the call path.
  • another embodiment of a method for determining media capabilities in an embodiment of the present invention includes:
  • the call control network element receives a call request of the calling side device.
  • the originating caller can carry multiple media capabilities, that is, all the media capabilities supported by the caller can be placed in the call request, such as voice and video, and voice and video.
  • media encoding and decoding capabilities such as including audio media capabilities AMR and AMR-WB, or both media codec for G.711 codec, G.729 codec, iLBC codec audio media capabilities, in
  • the calling side device sends a call request to the call control network element, where the call request includes the media capability supported by the calling side device.
  • the call control network element acquires a media transmission status of the calling side device and the called side device on the call path.
  • the call control network element obtains the media transmission status of the calling side device and the called side device on the call path as an example.
  • the call control network element may only obtain the calling path of the calling side device.
  • the state of the media transmission on the device can also be used to obtain only the media transmission status of the called device on the call path, which is not limited herein.
  • the media transmission status of the calling side device and the called side device on the call path may be the signal state of the wireless air interface where the calling side device and the called side device are located, and can be known according to the signal state of the wireless air interface.
  • the media transmission status of the calling side device and the called side device on the call path is also the network transmission quality of the calling side device and the called side device on the call path, and the call control network element can be docked.
  • Many networks can also connect many devices, but no matter how the docking is based on IP addresses, the call control network element can be based on the IP address.
  • the statistics may be statistics on the existing services of all users or partial sample users of each address pair.
  • the IP address pair is two device IPs.
  • the call path between the addresses, before the session is established, the call control network element can obtain the statistical network transmission quality of the calling side device and the called side device on the call path (IP address pair).
  • the network transmission quality may include a packet loss rate, a delay, a jitter, and a MOS value, which are not limited herein.
  • the media transmission status may be different under different media bearer modes. For example, in the LTE access mode, there is a minimum bandwidth guarantee, that is, GBR (Guranteed Bit Rate) guarantee, but in the Wi-Fi access mode, all connections are made.
  • GBR Guard Bit Rate
  • the bandwidth of the user equipment entering the Wi-Fi node is preemptive. Therefore, if it is a Wi-Fi access mode, it means that the packet loss or delay and jitter value of the media transmission path of the user equipment is large. In this case, the media capability of the anti-drop packet should be selected. Therefore, the media transmission status of the calling side device and the called side device on the call path may also be the access mode of the calling side device or the called side device, such as Wi- Fi access mode, LTE access mode, and the like.
  • the call control network element selects a preferred media capability that matches the media transmission status of the calling side device and the called side device on the call path according to the media transmission status of the calling side device and the called side device on the call path. ;
  • the call control network element selects a media transmission state matching the calling side device and the called side device on the call path according to the media transmission status of the calling side device and the called side device on the call path.
  • Preferred media capabilities can include:
  • the call control network element determines whether the network transmission quality of the calling side device and the called side device on the call path meets a preset network transmission quality condition, and if so, selects the media capability supported by the calling side device as a location Determining a preferred media capability, if not, selecting a preferred media capability that matches the network transmission quality of the calling side device and the called side device on the call path among the media capabilities supported by the calling side device;
  • the preferred media capability can be selected according to the network packet quality indicator such as the packet loss rate value, the time length, the jitter value, and the MOS value, or a combination of one or more of the above network transmission quality indicators. This is not limited here.
  • the preferred media capabilities that the call control network element selects to match the network transmission quality of the calling side device and the called side device on the call path include:
  • the call control network element determines whether the packet loss rate value is less than a preset packet loss rate value, and if yes, selects a media capability supported by the calling side device as And the preferred media capability, if not, selecting a preferred media capability that matches the packet loss rate value among the media capabilities supported by the calling side device;
  • the call control network element determines whether the delay value is less than a preset delay value, and if yes, selecting a media capability supported by the calling side device as the Optimizing the media capability, if not, selecting a preferred media capability that matches the delay value among the media capabilities supported by the calling side device;
  • the call control network element determines whether the jitter value is less than a preset first threshold, and if yes, selects a media capability supported by the calling side device as the preferred media. Capability, if not, selecting a preferred media capability that matches the jitter value among media capabilities supported by the calling side device;
  • the call control network element determines whether the MOS value is greater than a second threshold, and if yes, selecting a media capability supported by the calling side device as the preferred media capability, if No, in the media capabilities supported by the calling side device, a preferred media capability that matches the MOS value is selected.
  • the network transmission quality includes one of a packet loss rate, a delay, a jitter, and a MOS value
  • the packet loss rate is smaller than the preset packet loss rate.
  • the jitter is less than the preset first threshold
  • the delay is less than the preset time extension
  • the MOS value is greater than the second threshold, determining that the network transmission quality meets a preset network transmission quality condition, and selecting the calling party
  • the media capability supported by the side device is the preferred media capability.
  • Matching preferred media capabilities for example, assuming that the packet loss rate is greater than the preset packet loss rate value (not meeting the requirements), and other indicators are satisfactory, because the iLBC codec is more resistant to packet loss, then the selection is preferred. It is more appropriate to prioritize the iLBC codec in the media capabilities, such as adjusting the iLBC codec to the preferred one, or filtering out other codecs.
  • the audio media capabilities supported by the calling side device include three audio media capabilities, the features are as follows:
  • G.711 codec The feature is that the encoding quality is good, and the user will get better voice quality without packet loss, but the media transmission bandwidth is relatively large.
  • G.729 codec The encoding quality is not as good as G.711, but the media transmission bandwidth is relatively small.
  • iLBC codec The encoding quality is similar to that of G.729. The bandwidth is slightly higher than G.729 and smaller than G.711, but the anti-dropping capability is stronger.
  • the session can get better call quality.
  • the preferred medium can be selected based on the support of the device with poor network transmission quality on the call path.
  • Ability not limited here.
  • the network transmission quality of the calling side device and the called device in the call path is good or bad.
  • the packet loss rate value, the delay value, the jitter value, the MOS value, the preset packet loss rate value, and the delay According to the packet loss rate value, the delay value, the jitter value, the MOS value, the preset packet loss rate value, and the delay.
  • the comparison of the value, the first threshold, and the second threshold results in that when the above comparison is YES, it means that the network transmission quality is good and meets the requirements.
  • the SDP parameters in the call request can be modified in one or more ways as shown in Figure 3:
  • the video media capabilities are filtered.
  • the media capability supported by the calling device includes media capabilities of multiple types of media encoding and decoding, according to the network transmission quality, the media capability is occupied by the media capability supported by the calling device
  • the media capability of the bandwidth matching the network transmission quality of the called side device on the call path is adjusted to the preferred.
  • the media capability supported by the calling side device includes multiple rate sets of the same type of media codec, according to the correspondence between the network transmission quality and the rate mode, the media supported by the calling side device In the capability, a set of rate patterns matching the network transmission quality of the called side device on the call path is selected, and the rate mode set includes at least one rate mode.
  • the media transmission state of the called side device on the call path may further include one of the access modes, such as a Wi-Fi access mode, an LTE access mode, or the like.
  • the preferred media capability that the call control network element selects to match the media transmission state of the calling side device on the call path according to the media transmission status of the calling side device on the call path includes:
  • the call control network element updates the media capability supported by the calling side device in the call request to a preferred media capability.
  • the call control network element forwards the call request after updating the media capability to the called side device.
  • the call control network element After updating the media capability in the call request, the call control network element forwards the call request after updating the media capability to the called side device, so that the called side device according to the preferred media in the call request after updating the media capability
  • the capability selects the session media capability, and returns a call response to the call control network element, where the call response carries the session media capability selected by the called side device according to the preferred media capability, for example, the called side device itself also supports G.711.
  • the preferred media capability of G.729 may select a session media capability, such as G.711, and return a call response to the call control network element, where the call response includes session media capabilities;
  • the call control network element when the call control network element acquires the calling side device and the called side device When the media side of the call is in the media transmission state, the calling device can use the media capability determined by itself as the media capability of the session. In this case, the response can carry the calling device on the call path.
  • the preferred media capability that matches the media transmission status is not limited herein, so that the call control network element completes the selection of the media capabilities of the calling side device and the called side device, and the session can be based on the calling side device and the called side.
  • the media capabilities selected by the devices are used for the session, which is not limited herein.
  • the call control network element receives a call request of the calling side device.
  • the originating caller can carry multiple media capabilities, that is, all the media capabilities supported by the caller can be placed in the call request, such as voice and video, and voice and video.
  • media encoding and decoding capabilities such as including audio media capabilities AMR and AMR-WB, or both media codec for G.711 codec, G.729 codec, iLBC codec audio media capabilities, in
  • the calling side device sends a call request to the call control network element, where the call request includes the media capability supported by the calling side device.
  • the call control network element acquires a media transmission status of the calling side device and the called side device on the call path.
  • the call control network element obtains the media transmission status of the calling side device and the called side device on the call path as an example.
  • the call control network element may only obtain the calling path of the calling side device.
  • the state of the media transmission on the device can also be used to obtain only the media transmission status of the called device on the call path, which is not limited herein.
  • the media transmission status of the calling side device and the called side device on the call path is also the network transmission quality of the calling side device and the called side device on the call path, and the call control network element can be docked.
  • Many networks can also dock many devices, but no matter how they are connected
  • the communication is performed based on the IP address, so the call control network element can perform real-time statistics on the network transmission quality of each IP address pair on the basis of the IP address pair, and the statistics can be all for each address pair.
  • the user or part of the sampled user has the statistics of the service.
  • the IP address pair is the call path between the IP addresses of the two devices. Before the session is established, the call control network element can obtain the call path of the calling side device and the called side device.
  • the network transmission quality may include a packet loss rate, a delay, a jitter, and a MOS value, which are not limited herein.
  • the media transmission status may be different under different media bearer modes. For example, in the LTE access mode, there is a minimum bandwidth guarantee, that is, GBR (Guranteed Bit Rate) guarantee, but in the Wi-Fi access mode, all connections are made.
  • GBR Guard Bit Rate
  • the bandwidth of the user equipment entering the Wi-Fi node is preemptive. Therefore, if it is a Wi-Fi access mode, it means that the packet loss or delay and jitter value of the media transmission path of the user equipment is large. In this case, the media capability of the anti-drop packet should be selected. Therefore, the media transmission status of the calling side device and the called side device on the call path may also be the access mode of the calling side device or the called side device, such as Wi- Fi access mode, LTE access mode, and the like.
  • the call control network element selects a preferred media capability that matches a media transmission state of the called side device on the call path according to a media transmission state of the called side device on the call path.
  • the preferred media capability that the call control network element selects to match the media transmission status of the called side device on the call path according to the media transmission status of the called side device on the call path includes:
  • the call control network element determines whether the network transmission quality of the called side device on the call path meets a preset network transmission quality condition, and if yes, selects the media capability supported by the calling side device as the preferred media capability, If not, selecting, among the media capabilities supported by the calling side device, a preferred media capability that matches the network transmission quality of the called side device on the call path;
  • the audio media capabilities supported by the calling side device include three audio media capabilities, the features are as follows:
  • G.711 codec The feature is that the encoding quality is good, and the user will get better voice quality without packet loss, but the media transmission bandwidth is relatively large.
  • G.729 codec The encoding quality is not as good as G.711, but the media transmission bandwidth is relatively small.
  • iLBC codec The encoding quality is similar to that of G.729, and the bandwidth is slightly higher than G.729 and smaller than G.711. However, the ability to resist packet loss is strong.
  • the G.729 codec is preferred according to the basic process, the media selected by the called device is not used for special control.
  • the codec is G.729, but this choice may not be the best choice.
  • the packet loss rate of the called side device on the call path is high according to the acquired network transmission quality of the called side device. Since the iLBC codec is more resistant to packet loss, the iLBC codec is more suitable. In this case, the media capability of the iLBC codec is the quality of the network transmission on the call path of the called device. Matching preferred media capabilities.
  • the network transmission quality indicator such as the time extension length, the jitter size, and the MOS value may also select a preferred media capability, or may be a combination of one or more of the above network transmission quality indicators. There is no limit.
  • the preferred media capability that the call control network element selects to match the network transmission quality of the called side device on the call path includes:
  • the call control network element determines whether the packet loss rate value is less than a preset packet loss rate value, and if yes, selects a media capability supported by the calling side device as And the preferred media capability, if not, selecting a preferred media capability that matches the packet loss rate value among the media capabilities supported by the calling side device;
  • the call control network element determines whether the delay value is less than a preset delay value, and if yes, selecting a media capability supported by the calling side device as the Optimizing the media capability, if not, selecting a preferred media capability that matches the delay value among the media capabilities supported by the calling side device;
  • the call control network element determines whether the jitter value is less than a preset first threshold, and if yes, selects a media capability supported by the calling side device as the preferred media. Capability, if not, selecting a preferred media capability that matches the jitter value among media capabilities supported by the calling side device;
  • the call control network element determines whether the MOS value is greater than a second threshold, and if yes, selects a media capability supported by the calling side device For the preferred media capability, if not, selecting a preferred media capability that matches the MOS value among the media capabilities supported by the calling side device.
  • the network transmission quality includes one of the packet loss rate, the delay, the jitter, and the MOS value
  • the rate value, the jitter is less than the preset first threshold, the delay is less than the preset time extension, and the MOS value is greater than the second threshold.
  • the network transmission quality is determined to meet the preset network transmission quality condition, and the calling party is selected.
  • the media capability supported by the side device is the preferred media capability.
  • the media transmission quality (the packet loss rate, the delay, and the packet loss rate) are selected among the media capabilities supported by the calling device. Preferred media capabilities that match jitter, MOS values).
  • the media capability when the plurality of indicators included in the plurality of indicators are only partially satisfied, partially not satisfied, or all are not satisfied, may select a matching preferred media capability according to whether the indicators meet the specific conditions, for example, assuming The packet loss rate is greater than the preset packet loss rate (not satisfied), and other indicators meet the requirements. Because the iLBC codec has strong anti-drop capability, the selected preferred media capability is preferred to the iLBC codec. It is more appropriate, such as adjusting the iLBC codec to the preferred one, or
  • the SDP parameters in the call request can be modified in one or more ways as shown in Figure 3:
  • the video media capabilities are filtered.
  • the media capability supported by the calling side device includes multiple rate sets of the same type of media codec, according to the correspondence between the network transmission quality and the rate mode, the media supported by the calling side device In the capability, a set of rate patterns matching the network transmission quality of the called side device on the call path is selected, and the rate mode set includes at least one rate mode.
  • the media transmission state of the called side device on the call path may further include one of the access modes, such as a Wi-Fi access mode, an LTE access mode, or the like.
  • the preferred media capability that the call control network element selects to match the media transmission state of the calling side device on the call path according to the media transmission status of the calling side device on the call path includes:
  • the call control network element updates the media capability supported by the calling side device in the call request to a preferred media capability.
  • the call control network element adjusts the media capability supported by the calling side device in the received call request to the determined preferred media capability, for example, the media capability supported by the calling side device is G.711 and G.729, iLBC codec.
  • the audio media capability according to the obtained network transmission quality (such as the packet loss rate is not high, the transmission bandwidth uses the iLBC codec), the preferred media capability is the audio media capability of G.711, G.729, and the call request is The media capability is adjusted to the preferred media capabilities of the G.711, G.729 codec.
  • the call control network element forwards the call request after updating the media capability to the called side device.
  • the call control network element forwards the call request after updating the media capability to the called side device, so that the called side device according to the updated media capability
  • the preferred media capability in the subsequent call request selects the session media capability and returns a call response to the call control network element, the call response carrying the session media capabilities selected by the called side device according to the preferred media capability, such as called
  • the side device itself also supports the preferred media capabilities of G.711 and G.729, and then a session media capability, such as G.711, can be selected and a call response is returned to the call control network element, where the call response includes session media. ability;
  • the call control network element selects a preferred media capability that matches a media transmission state of the calling side device on the call path according to a media transmission state of the calling side device on the call path.
  • the preferred media capability that the call control network element selects to match the media transmission status of the calling side device on the call path according to the media transmission status of the calling side device on the call path includes:
  • the call control network element determines whether the network transmission quality of the calling side device on the call path satisfies the preset network transmission quality condition, and if so, selects the media capability supported by the calling side device as the preferred media capability, and if not And selecting, among the media capabilities supported by the calling side device, a preferred media capability that matches the network transmission quality of the calling side device on the call path.
  • the call control network element sends a response to the calling side device.
  • the call control network element After the call control network element determines the preferred media capability that matches the media transmission status of the calling side device on the call path, the call control network element sends a response to the calling side device, where the response carries the calling side device in the call.
  • the media transmission status on the path matches the preferred media capability, so that the calling side device selects the media capability when the session is performed with the called side device according to the preferred media capability, so that the call control network element completes the main
  • the session can be based on the media capabilities selected by the calling side device and the called side device.
  • the call control network element determines a preferred media according to the media transmission status of the at least one of the obtained calling side device and the called side device on the call path. Capability, enabling the called side device to select a session media capability from the preferred media capabilities, since the selected session media capability is a preference determined from the media transmission state The media capability is selected to match the media transmission status of the current session, which improves the session quality and the user experience is good;
  • the preferred media capabilities of the calling side device and the called side device for the session are respectively determined, so that different paths are processed separately, and one side can be avoided.
  • the situation where the media transfer status is not available and the entire session media capability cannot be optimized.
  • the audio media capability is used as an example for illustration. It is to be understood that the video media capability is also applicable to the foregoing method embodiments, which are not limited herein.
  • an embodiment of the call control network element in the embodiment of the present invention includes:
  • the receiving unit 601 is configured to receive a call request of the calling side device
  • the processing unit 602 is configured to obtain a media transmission status of at least one of the calling side device and the called side device on the call path.
  • the processing unit 602 is further configured to determine, according to the acquired media transmission status, a media capability when establishing a session between the calling side device and the called side device.
  • the processing unit 602 of the call control network element determines the calling side device and the called side device according to the acquired media transmission status of the calling side device and the called side device in the call path.
  • the media capability between the establishment of the session is improved.
  • the selected session media capability is determined according to the media transmission status, and matches the media transmission status of the current session, thereby improving the session quality and the user experience is good.
  • processing unit 602 is further configured to:
  • the call control network element further includes:
  • the sending unit 603 is configured to forward, to the called side device, a call request after updating the media capability
  • the receiving unit 601 is further configured to receive a call response returned by the called side device, where The call response carries the session media capability selected by the called side device according to the preferred media capability;
  • the sending unit 603 is further configured to send a response to the calling side device.
  • processing unit 602 is specifically configured to:
  • the sending unit 603 is specifically configured to send the response to the calling side device, where the response carries the session media capability.
  • the processing unit 602 is configured to determine whether the signal state meets a preset state when a media transmission state of the one of the call paths includes a signal state of the wireless air interface. a signal state condition, if yes, selecting a media capability supported by the calling side device as the preferred media capability, and if not, selecting a media capability with a low occupied bandwidth among the media capabilities supported by the calling side device The preferred media capabilities.
  • the processing unit 602 is specifically configured to: when the audio media capability and the video media capability are included in the media capability supported by the calling side device, filter the video media capability.
  • processing unit 602 is specifically configured to:
  • the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, in the media capability supported by the calling side device,
  • the media capabilities that match the signal state are adjusted to preferred,
  • the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, in the media capability supported by the calling side device, Media capability filtering that does not match the signal state,
  • the media capabilities supported by the calling side device include multiple rate sets of the same type of media codec, according to the corresponding relationship between the preset signal state and the rate mode, among the media capabilities supported by the calling side device, A set of rate patterns is selected that match the state of the signal, the set of rate patterns including at least one rate pattern.
  • the processing unit 602 is specifically configured to: when the one of the media transmission states on the call path includes the access mode of the one of the ones, and the access mode of the one of the ones is Wi In the access mode of the Fi, when the calling side device supports the anti-drop packet media capability, the preferred media capability is selected among the anti-lost media capabilities.
  • processing unit 602 is specifically configured to:
  • the processing unit 602 is further configured to: select, according to a media transmission status of the calling side device on a call path, a preferred media capability that matches a media transmission state of the calling side device on a call path;
  • the sending unit 603 is specifically configured to send the response to the calling side device, where the response carries a preferred media capability that matches the media transmission status of the calling side device on the call path.
  • processing unit 602 is specifically configured to:
  • the processing unit 602 is further configured to determine whether the network transmission quality of the calling side device on the call path meets a preset network transmission quality condition, and if yes, select the media capability supported by the calling side device as a location.
  • the preferred media capability if not, selects a preferred media capability that matches the network transmission quality of the calling side device on the call path among the media capabilities supported by the calling side device.
  • processing unit 602 is specifically configured to:
  • the access mode of the called side device is a Wi-Fi access mode, and the calling side is set.
  • the preferred media capability is selected among the anti-lost media capabilities;
  • the processing unit 602 is further configured to: when the access mode of the calling side device is a Wi-Fi access mode, and the calling side device supports the media capability against packet loss, The preferred media capabilities are selected among the media capabilities of the package.
  • the call control network element in the embodiment of the present invention is described above from the perspective of a unitized functional entity. The following describes the call control network element in the embodiment of the present invention from the perspective of hardware processing. Referring to FIG. 7, the embodiment of the present invention is described.
  • the call control network element in the middle includes: a receiver 701, a transmitter 702, and a processor 703 (which may have one or more).
  • the terminal according to the embodiment of the present invention may have more or less components than those shown in FIG. 7, may combine two or more components, or may have different component configurations or settings, and each component may include one Hardware, software, or a combination of hardware and software, including multiple signal processing and/or application specific integrated circuits.
  • the receiver 701 is configured to perform the following operations:
  • the processor 703 is configured to perform the following operations:
  • the processor 703 is further configured to perform the following operations:
  • the processor 703 is further configured to perform the following operations:
  • the transmitter 702 can also be used to perform the following operations:
  • the receiver 701 is further configured to perform the following operations:
  • the transmitter 702 can also be configured to perform the following operations:
  • a response is sent to the calling side device.
  • the transmitter 703 can also be configured to perform the following operations:
  • the processor 703 is further configured to perform the following operations:
  • the media capability supported by the side device is the preferred media capability. If not, the media capability that is low in bandwidth is selected as the preferred media capability among the media capabilities supported by the calling device.
  • the processor 703 is further configured to perform the following operations:
  • the video media capability is filtered when the media capabilities supported by the calling side device include audio media capabilities and video media capabilities.
  • the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, in the media capability supported by the calling side device,
  • the media capabilities that match the signal state are adjusted to preferred,
  • the media capabilities supported by the calling side device include multiple types of media codecs of the same type And selecting, according to a preset relationship between the preset signal state and the rate mode, a media mode set supported by the calling side device, and selecting a rate mode set that matches the signal state, where the rate mode set includes At least one rate mode.
  • the processor 703 is further configured to perform the following operations:
  • the calling side When the device supports the anti-drop packet media capability, the preferred media capability is selected among the anti-lost media capabilities.
  • the processor 703 is further configured to perform the following operations:
  • the transmitter 702 can also be used to perform the following operations:
  • the processor 703 is further configured to perform the following operations:
  • the processor 703 is further configured to perform the following operations:
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions to make a computer device may be A personal computer, server, or network device, etc.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed are a method for determining media capabilities and a call control network element. The method according to the embodiments of the present invention comprises: a call control network element receives a call request from a calling side device (101); the call control network element acquires the media transmission state of at least one of the calling side device and a called side device in a call path (102); the call control network element determines, according to the media transmission state, a media capability when a session is established between the calling side device and the called side device (103). The embodiments of the present invention improve the session quality and provide excellent user experience.

Description

一种确定媒体能力的方法及呼叫控制网元Method for determining media capability and call control network element
本申请要求于2014年12月09日提交中国专利局、申请号为201410749242.0、发明名称为“一种确定媒体能力的方法及呼叫控制网元”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201410749242.0, entitled "Method for Determining Media Capabilities and Call Control Network Element", filed on December 09, 2014, the entire contents of which are hereby incorporated by reference. Combined in this application.
技术领域Technical field
本发明涉及通信技术领域,特别涉及一种确定媒体能力的方法及呼叫控制网元。The present invention relates to the field of communications technologies, and in particular, to a method for determining media capabilities and a call control network element.
背景技术Background technique
在通信领域,如实时通话,在通话建立前,主被叫间要交互彼此的媒体能力,交互完成后进行媒体通话。In the field of communication, such as real-time calls, before the call is established, the calling and the called parties must interact with each other's media capabilities, and then perform media calls after the interaction is completed.
以会话控制协议(Session Initiation Protocol,SIP)呼叫为例,会话的媒体能力由会话描述协议(Session Description Protocol,SDP)交互,一个典型的基本呼叫模型(以音频为例)的基本流程如下:①主叫侧设备发起会话请求,携带主叫侧设备支持的媒体能力为音频编解码AMR-WB。②主叫侧设备的呼叫请求转发到呼叫控制网元,由呼叫控制网元将该呼叫请求向被叫侧设备转发。③被叫侧设备收到该呼叫请求,且被叫侧设备支持AMR-WB,被叫侧设备支持该呼叫,向主叫侧设备应答响应消息,消息中携带AMR-WB编解码能力。④呼叫控制网络收到被叫侧设备应答消息,并将该消息转发给主叫侧设备。⑤主叫侧设备收到被叫应答消息中的媒体能力,主被叫间媒体信息交互完成,就可以使用交互完的媒体信息实现两侧媒体交互了。Taking the Session Initiation Protocol (SIP) call as an example, the media capabilities of the session are interacted by the Session Description Protocol (SDP). The basic flow of a typical basic call model (taking audio as an example) is as follows: The calling side device initiates a session request, and the media capability supported by the calling side device is the audio codec AMR-WB. The call request of the calling side device is forwarded to the call control network element, and the call control network element forwards the call request to the called side device. The called side device receives the call request, and the called side device supports the AMR-WB, and the called side device supports the call, and responds to the calling side device with a response message, and the message carries the AMR-WB codec capability. 4 The call control network receives the called side device response message and forwards the message to the calling side device. 5 The calling side device receives the media capability in the called response message, and the media information between the calling and the called party is completed, and the media information on both sides can be realized by using the interactive media information.
一般来讲,为了实现尽可能多的媒体互通,发起呼叫方可以携带多种媒体能力,即可以将自身支持的媒体能力全部放在呼叫请求中,如可以携带语音和视频,并且语音和视频中还可以携带多种媒体编解码能力,被叫侧设备在收到主叫侧设备声明的媒体能力后可以基于自身支持的能力和喜好(如配置)选择该会话所要使用的媒体能力,然后给主叫侧设备应答,这样主被叫之间就交互完成了媒体能力的协商,会话就可以基于此媒体能力进行。 Generally speaking, in order to achieve as much media intercommunication as possible, the originating caller can carry multiple media capabilities, that is, all the media capabilities supported by the caller can be placed in the call request, such as voice and video, and voice and video. It can also carry a variety of media encoding and decoding capabilities. After receiving the media capability declared by the calling side device, the called side device can select the media capability to be used for the session based on its own supported capabilities and preferences (such as configuration), and then give the main The side device is called to answer, so that the mediation between the main and the called parties is completed, and the session can be based on the media capability.
现有技术中,在呼叫请求中如果存在多个媒体能力,那么按照标准的角度,哪个媒体能力在SDP中的顺序在前,则表示会话过程中哪个能力是优选的,则会话就要使用哪个媒体能力。由于会话发起者所携带的媒体能力顺序是固定的,被叫侧设备选择的媒体能力可能并不适合当前的会话环境,也就意味着会话的质量无法达到预期的效果,即使被叫侧设备不优选呼叫请求中的首选媒体编解码,其选择的媒体能力(媒体编解码)仍然可能与当前会话环境不匹配,从而导致会话质量达不到预期,用户体验不佳。In the prior art, if there are multiple media capabilities in the call request, then according to the standard, which media capability is in the order of the SDP, which function is preferred during the session, which session is used? Media capabilities. Since the media capability sequence carried by the session initiator is fixed, the media capability selected by the called side device may not be suitable for the current session environment, which means that the quality of the session cannot achieve the expected effect even if the called side device does not The preferred media codec in the call request is preferred, and the selected media capability (media codec) may still not match the current session environment, resulting in the session quality being less than expected and the user experience being poor.
发明内容Summary of the invention
本发明实施例提供了一种确定媒体能力的方法及呼叫控制网元,提高了会话质量,用户体验佳。The embodiment of the invention provides a method for determining media capabilities and a call control network element, which improves session quality and has a good user experience.
本发明实施例第一方面提供了一种确定媒体能力的方法,包括:A first aspect of the embodiments of the present invention provides a method for determining media capabilities, including:
呼叫控制网元接收主叫侧设备的呼叫请求;The call control network element receives the call request of the calling side device;
所述呼叫控制网元获取主叫侧设备和被叫侧设备中至少之一在通话路径上的媒体传输状态;The call control network element acquires a media transmission status of at least one of the calling side device and the called side device on the call path;
所述呼叫控制网元根据所述媒体传输状态,确定所述主叫侧设备和所述被叫侧设备之间建立会话时的媒体能力。The call control network element determines, according to the media transmission status, a media capability when establishing a session between the calling side device and the called side device.
结合本发明实施例的第一方面,在本发明实施例的第一方面的第一种实现方式中,所述呼叫请求中包括所述主叫侧设备支持的媒体能力;With reference to the first aspect of the embodiments of the present invention, in a first implementation manner of the first aspect of the embodiments, the call request includes a media capability supported by the calling side device;
所述呼叫控制网元根据所述媒体传输状态,确定所述主叫侧设备和所述被叫侧设备之间建立会话时的媒体能力包括:The determining, by the call control network element, the media capability when establishing a session between the calling side device and the called side device according to the media transmission status includes:
所述呼叫控制网元根据所述媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力;The call control network element selects a preferred media capability that matches the media transmission state according to the media transmission status;
所述呼叫控制网元将所述呼叫请求中的所述主叫侧设备支持的媒体能力更新为所述优选媒体能力;The call control network element updates the media capability supported by the calling side device in the call request to the preferred media capability;
所述呼叫控制网元向所述被叫侧设备转发更新媒体能力后的呼叫请求;The call control network element forwards a call request after updating the media capability to the called side device;
所述呼叫控制网元接收所述被叫侧设备返回的呼叫响应,所述呼叫响应携带所述被叫侧设备根据所述优选媒体能力选择的会话媒体能力;Receiving, by the call control network element, a call response returned by the called side device, where the call response carries a session media capability selected by the called side device according to the preferred media capability;
所述呼叫控制网元向所述主叫侧设备发送应答。The call control network element sends a response to the calling side device.
结合本发明实施例的第一方面的第一种实现方式,在本发明实施例的 第一方面的第二种实现方式中,所述呼叫控制网元获取主叫侧设备和被叫侧设备中至少之一在通话路径上的媒体传输状态包括:In conjunction with the first implementation of the first aspect of the embodiments of the present invention, in the embodiment of the present invention In a second implementation manner of the first aspect, the obtaining, by the call control network element, the media transmission status of the at least one of the calling side device and the called side device on the call path includes:
所述呼叫控制网元获取主叫侧设备和被叫侧设备其中之一在通话路径上的媒体传输状态;The call control network element acquires a media transmission status of one of the calling side device and the called side device on the call path;
所述呼叫控制网元根据所述媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力包括:The selecting, by the call control network element, the preferred media capabilities that match the media transmission status according to the media transmission status includes:
所述呼叫控制网元根据所述其中之一在通话路径上的媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力;The call control network element selects a preferred media capability that matches the media transmission state according to a media transmission status of the one of the ones on the call path;
所述呼叫控制网元向所述主叫侧设备发送应答,包括:The call control network element sends a response to the calling side device, including:
所述呼叫控制网元向所述主叫侧设备发送所述应答,所述应答中携带所述会话媒体能力。The call control network element sends the response to the calling side device, where the response carries the session media capability.
结合本发明实施例的第一方面的第二种实现方式,在本发明实施例的第一方面的第三种实现方式中,所述其中之一在通话路径上的媒体传输状态包括所述其中之一所在无线空口的信号状态;With reference to the second implementation manner of the first aspect of the embodiment of the present invention, in a third implementation manner of the first aspect of the embodiment, the media transmission state of the one of the call paths includes the One of the signal states of the wireless air interface;
所述呼叫控制网元根据所述媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力包括:The selecting, by the call control network element, the preferred media capabilities that match the media transmission status according to the media transmission status includes:
所述呼叫控制网元判断所述信号状态是否满足预置的信号状态条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择占用带宽低的媒体能力为所述优选媒体能力。Determining, by the call control network element, whether the signal state satisfies a preset signal state condition, and if yes, selecting a media capability supported by the calling side device as the preferred media capability, and if not, at the calling Among the media capabilities supported by the side devices, the media capability that occupies a low bandwidth is selected as the preferred media capability.
结合本发明实施例的第一方面的第三种实现方式,在本发明实施例的第一方面的第四种实现方式中,所述选择占用带宽低的媒体能力为所述优选媒体能力包括:With reference to the third implementation manner of the first aspect of the embodiment of the present invention, in the fourth implementation manner of the first aspect of the embodiment of the present disclosure, the selecting the media capability that is low in bandwidth to the preferred media capability includes:
在所述主叫侧设备支持的媒体能力中包含音频媒体能力和视频媒体能力时,将所述视频媒体能力过滤。The video media capability is filtered when the media capabilities supported by the calling side device include audio media capabilities and video media capabilities.
结合本发明实施例的第一方面的第三种实现方式或第四种实现方式,在本发明实施例的第一方面的第五种实现方式中,所述在所述主叫侧设备支持的媒体能力中选择占用带宽低的媒体能力为所述优选媒体能力包括:With reference to the third implementation manner or the fourth implementation manner of the first aspect of the embodiments of the present invention, in a fifth implementation manner of the first aspect of the embodiments of the present disclosure, the Selecting media capabilities that occupy low bandwidth from the media capabilities for the preferred media capabilities include:
当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,根据预置的信号状态与媒体能力的对应关系,在所述主叫侧设备 支持的媒体能力中,将与所述信号状态匹配的媒体能力调整到首选,When the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to a preset relationship between a preset signal state and a media capability, the calling side device Among the supported media capabilities, the media capabilities that match the signal state are adjusted to the preferred one.
或,or,
当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,根据预置的信号状态与媒体能力的对应关系,在所述主叫侧设备支持的媒体能力中,将与所述信号状态不匹配的媒体能力过滤,When the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, in the media capability supported by the calling side device, Media capability filtering that does not match the signal state,
或,or,
当所述主叫侧设备支持的媒体能力包括同一类型媒体编解码的多种速率集合时,根据预置的信号状态与速率模式的对应关系,在所述主叫侧设备支持的媒体能力中,选择与所述信号状态相匹配的速率模式集合,所述速率模式集合中包括至少一种速率模式。When the media capabilities supported by the calling side device include multiple rate sets of the same type of media codec, according to the corresponding relationship between the preset signal state and the rate mode, among the media capabilities supported by the calling side device, A set of rate patterns is selected that match the state of the signal, the set of rate patterns including at least one rate pattern.
结合本发明实施例的第一方面的第二种实现方式,在本发明实施例的第一方面的第六种实现方式中,所述其中之一在通话路径上的媒体传输状态包括所述其中之一的接入方式;With reference to the second implementation manner of the first aspect of the embodiment of the present invention, in a sixth implementation manner of the first aspect of the embodiment, the media transmission state of the one of the call paths includes the One of the access methods;
所述呼叫控制网元根据所述主叫侧设备在通话路径上的媒体传输状态,选择与所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力包括:The selecting, by the call control network element, the preferred media capability that matches the media transmission status of the calling side device on the call path according to the media transmission status of the calling side device on the call path includes:
所述呼叫控制网元在所述其中之一的接入方式为Wi-Fi的接入方式,且所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力。The anti-dropping media capability of the call control network element when the access mode of the one of the access modes is a Wi-Fi access mode, and the calling side device supports the anti-drop packet media capability Select preferred media capabilities.
结合本发明实施例的第一方面的第一种实现方式,在本发明实施例的第一方面的第七种实现方式中,所述呼叫控制网元获取主叫侧设备和被叫侧设备中至少之一在通话路径上的媒体传输状态包括:With reference to the first implementation manner of the first aspect of the embodiments of the present invention, in a seventh implementation manner of the first aspect of the embodiment, the call control network element obtains the calling side device and the called side device. At least one of the media transmission statuses on the call path includes:
所述呼叫控制网元获取所述主叫侧设备和所述被叫侧设备在通话路径上的媒体传输状态;The call control network element acquires a media transmission status of the calling side device and the called side device on a call path;
所述呼叫控制网元根据所述媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力包括:The selecting, by the call control network element, the preferred media capabilities that match the media transmission status according to the media transmission status includes:
所述呼叫控制网元根据所述被叫侧设备在通话路径上的媒体传输状态,选择与所述被叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力;The call control network element selects a preferred media capability that matches the media transmission state of the called side device on the call path according to the media transmission status of the called side device on the call path;
所述方法还包括: The method further includes:
所述呼叫控制网元根据所述主叫侧设备在通话路径上的媒体传输状态,选择与所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力;Selecting, by the call control network element, a preferred media capability that matches a media transmission state of the calling side device on a call path according to a media transmission state of the calling side device on a call path;
则所述呼叫控制网元向所述主叫侧设备发送应答,包括:The call control network element sends a response to the calling side device, including:
所述呼叫控制网元向所述主叫侧设备发送所述应答,所述应答中携带所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力。The call control network element sends the response to the calling side device, where the response carries a preferred media capability that matches the media transmission status of the calling side device on the call path.
结合本发明实施例的第一方面的第七种实现方式,在本发明实施例的第一方面的第八种实现方式中,所述呼叫控制网元获取所述主叫侧设备和所述被叫侧设备在通话路径上的媒体传输状态包括:With reference to the seventh implementation manner of the first aspect of the embodiments of the present invention, in the eighth implementation manner of the first aspect of the embodiments, the call control network element acquires the calling side device and the The media transmission status of the calling device on the call path includes:
所述呼叫控制网元获取所述主叫侧设备和所述被叫侧设备在通话路径上的网络传输质量;The call control network element acquires network transmission quality of the calling side device and the called side device on a call path;
所述呼叫控制网元根据所述被叫侧设备在通话路径上的媒体传输状态,选择与所述被叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力包括:The selecting, by the call control network element, the preferred media capability that matches the media transmission state of the called side device on the call path according to the media transmission status of the called side device on the call path includes:
所述呼叫控制网元判断所述被叫侧设备在通话路径上的网络传输质量是否满足预置的网络传输质量条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述被叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力;The call control network element determines whether the network transmission quality of the called side device on the call path meets a preset network transmission quality condition, and if yes, selects the media capability supported by the calling side device as the preferred medium. Capability, if not, selecting a preferred media capability that matches the network transmission quality of the called side device on the call path among the media capabilities supported by the calling side device;
所述呼叫控制网元根据所述主叫侧设备在通话路径上的媒体传输状态,选择与所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力包括:The selecting, by the call control network element, the preferred media capability that matches the media transmission status of the calling side device on the call path according to the media transmission status of the calling side device on the call path includes:
所述呼叫控制网元判断所述主叫侧设备在通话路径上的网络传输质量是否满足预置的网络传输质量条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述主叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力。The call control network element determines whether the network transmission quality of the calling side device on the call path meets a preset network transmission quality condition, and if yes, selects the media capability supported by the calling side device as the preferred media. The capability, if not, selects a preferred media capability that matches the network transmission quality of the calling side device on the call path among the media capabilities supported by the calling side device.
结合本发明实施例的第一方面的第七种实现方式,在本发明实施例的第一方面的第九种实现方式中,所述呼叫控制网元获取所述主叫侧设备和所述被叫侧设备在通话路径上的媒体传输状态包括: With reference to the seventh implementation manner of the first aspect of the embodiments of the present invention, in a ninth implementation manner of the first aspect of the embodiments, the call control network element acquires the calling side device and the The media transmission status of the calling device on the call path includes:
所述呼叫控制网元获取所述主叫侧设备和所述被叫侧设备的接入方式;The call control network element acquires an access mode of the calling side device and the called side device;
所述呼叫控制网元根据所述被叫侧设备在通话路径上的媒体传输状态,选择与所述被叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力包括:The selecting, by the call control network element, the preferred media capability that matches the media transmission state of the called side device on the call path according to the media transmission status of the called side device on the call path includes:
所述呼叫控制网元在所述被叫侧设备的接入方式为Wi-Fi的接入方式,且所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力;When the access control mode of the call control network element is a Wi-Fi access mode, and the calling side device supports the anti-drop packet media capability, the anti-drop packet media Selecting preferred media capabilities among capabilities;
所述呼叫控制网元根据所述主叫侧设备在通话路径上的媒体传输状态,选择与所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力包括:The selecting, by the call control network element, the preferred media capability that matches the media transmission status of the calling side device on the call path according to the media transmission status of the calling side device on the call path includes:
所述呼叫控制网元在所述主叫侧设备的接入方式为Wi-Fi的接入方式,且所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力。When the access control mode of the calling control device is a Wi-Fi access mode, and the calling side device supports the anti-drop packet media capability, the anti-drop packet media The preferred media capabilities are selected among the capabilities.
本发明实施例的第二方面提供了一种呼叫控制网元,包括:A second aspect of the embodiments of the present invention provides a call control network element, including:
接收单元,用于接收主叫侧设备的呼叫请求;a receiving unit, configured to receive a call request of the calling side device;
处理单元,用于获取主叫侧设备和被叫侧设备中至少之一在通话路径上的媒体传输状态;a processing unit, configured to acquire a media transmission status of at least one of the calling side device and the called side device on the call path;
所述处理单元还用于根据获取的所述媒体传输状态,确定所述主叫侧设备和所述被叫侧设备之间建立会话时的媒体能力。The processing unit is further configured to determine, according to the acquired media transmission status, a media capability when establishing a session between the calling side device and the called side device.
结合本发明实施例的第二方面,在本发明实施例的第二方面的第一种实现方式中,所述处理单元还用于:With reference to the second aspect of the embodiments of the present invention, in a first implementation manner of the second aspect of the embodiments, the processing unit is further configured to:
在所述呼叫请求中包括所述主叫侧设备支持的媒体能力时,根据所述媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力;When the media capability supported by the calling side device is included in the call request, selecting a preferred media capability that matches the media transmission state according to the media transmission state;
将所述呼叫请求中的所述主叫侧设备支持的媒体能力更新为所述优选媒体能力;Updating the media capability supported by the calling side device in the call request to the preferred media capability;
所述呼叫控制网元还包括:The call control network element further includes:
发送单元,用于向所述被叫侧设备转发更新媒体能力后的呼叫请求;a sending unit, configured to forward, to the called side device, a call request after updating the media capability;
所述接收单元还用于接收所述被叫侧设备返回的呼叫响应,所述呼叫响应携带所述被叫侧设备根据所述优选媒体能力选择的会话媒体能力; The receiving unit is further configured to receive a call response returned by the called side device, where the call response carries a session media capability selected by the called side device according to the preferred media capability;
所述发送单元还用于向所述主叫侧设备发送应答。The sending unit is further configured to send a response to the calling side device.
结合本发明实施例的第二方面的第一种实现方式,在本发明实施例的第二方面的第二种实现方式中,所述处理单元具体用于:With reference to the first implementation manner of the second aspect of the embodiment of the present invention, in the second implementation manner of the second aspect of the embodiment, the processing unit is specifically configured to:
获取主叫侧设备和被叫侧设备其中之一在通话路径上的媒体传输状态;Obtaining a media transmission status of one of the calling side device and the called side device on the call path;
根据所述其中之一在通话路径上的媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力;Selecting a preferred media capability that matches the media transmission state according to a media transmission status of one of the ones on the call path;
所述发送单元具体用于向所述主叫侧设备发送所述应答,所述应答中携带所述会话媒体能力。The sending unit is specifically configured to send the response to the calling side device, where the response carries the session media capability.
结合本发明实施例的第二方面的第二种实现方式,在本发明实施例的第二方面的第三种实现方式中,所述处理单元具体用于在所述其中之一在通话路径上的媒体传输状态包括所述其中之一所在无线空口的信号状态时,判断所述信号状态是否满足预置的信号状态条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择占用带宽低的媒体能力为所述优选媒体能力。With reference to the second implementation manner of the second aspect of the embodiment of the present invention, in a third implementation manner of the second aspect of the embodiment, the processing unit is specifically configured to use one of the ones on the call path. When the media transmission state includes the signal state of the wireless air interface, the signal state is determined to satisfy the preset signal state condition, and if yes, the media capability supported by the calling side device is selected as the preferred The media capability, if not, selects a media capability that occupies a low bandwidth as the preferred media capability among the media capabilities supported by the calling side device.
结合本发明实施例的第二方面的第三种实现方式,在本发明实施例的第二方面的第四种实现方式中,所述处理单元具体用于在所述主叫侧设备支持的媒体能力中包含音频媒体能力和视频媒体能力时,将所述视频媒体能力过滤。With reference to the third implementation manner of the second aspect of the embodiment of the present invention, in a fourth implementation manner of the second aspect of the embodiment, the processing unit is specifically configured to be used by the media supported by the calling side device. The video media capabilities are filtered when the capabilities include audio media capabilities and video media capabilities.
结合本发明实施例的第二方面的第三种实现方式或第四种实现方式,在本发明实施例的第二方面的第五种实现方式中,所述处理单元具体用于:With reference to the third implementation manner or the fourth implementation manner of the second aspect of the embodiment of the present invention, in a fifth implementation manner of the second aspect of the embodiment, the processing unit is specifically configured to:
当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,根据预置的信号状态与媒体能力的对应关系,在所述主叫侧设备支持的媒体能力中,将与所述信号状态匹配的媒体能力调整到首选,When the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, in the media capability supported by the calling side device, The media capabilities that match the signal state are adjusted to preferred,
或,or,
当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,根据预置的信号状态与媒体能力的对应关系,在所述主叫侧设备支持的媒体能力中,将与所述信号状态不匹配的媒体能力过滤, When the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, in the media capability supported by the calling side device, Media capability filtering that does not match the signal state,
或,or,
当所述主叫侧设备支持的媒体能力包括同一类型媒体编解码的多种速率集合时,根据预置的信号状态与速率模式的对应关系,在所述主叫侧设备支持的媒体能力中,选择与所述信号状态相匹配的速率模式集合,所述速率模式集合中包括至少一种速率模式。When the media capabilities supported by the calling side device include multiple rate sets of the same type of media codec, according to the corresponding relationship between the preset signal state and the rate mode, among the media capabilities supported by the calling side device, A set of rate patterns is selected that match the state of the signal, the set of rate patterns including at least one rate pattern.
结合本发明实施例的第二方面的第二种实现方式,在本发明实施例的第二方面的第六种实现方式中,所述处理单元具体用于当所述其中之一在通话路径上的媒体传输状态包括所述其中之一的接入方式,且在所述其中之一的接入方式为Wi-Fi的接入方式,所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力。With reference to the second implementation manner of the second aspect of the embodiment of the present invention, in a sixth implementation manner of the second aspect of the embodiment, the processing unit is specifically configured to: when one of the ones is on a call path The media transmission state includes one of the access modes, and when the access mode of the one of the access modes is a Wi-Fi access mode, and the calling side device supports the anti-dropping media capability, Selecting a preferred media capability among the anti-lost media capabilities.
结合本发明实施例的第二方面的第一种实现方式,在本发明实施例的第二方面的第七种实现方式中,所述处理单元具体用于:With reference to the first implementation manner of the second aspect of the embodiment of the present invention, in a seventh implementation manner of the second aspect of the embodiment, the processing unit is specifically configured to:
获取所述主叫侧设备和所述被叫侧设备在通话路径上的媒体传输状态;Obtaining a media transmission status of the calling side device and the called side device on a call path;
根据所述被叫侧设备在通话路径上的媒体传输状态,选择与所述被叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力;Determining, according to the media transmission status of the called side device on the call path, a preferred media capability that matches the media transmission status of the called side device on the call path;
所述处理单元还用于根据所述主叫侧设备在通话路径上的媒体传输状态,选择与所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力;The processing unit is further configured to select, according to a media transmission status of the calling side device on a call path, a preferred media capability that matches a media transmission state of the calling side device on a call path;
则所述发送单元具体用于向所述主叫侧设备发送所述应答,所述应答中携带所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力。The sending unit is specifically configured to send the response to the calling side device, where the response carries a preferred media capability that matches the media transmission status of the calling side device on the call path.
结合本发明实施例的第二方面的第七种实现方式,在本发明实施例的第二方面的第八种实现方式中,所述处理单元具体用于:With reference to the seventh implementation manner of the second aspect of the embodiment of the present invention, in the eighth implementation manner of the second aspect of the embodiment, the processing unit is specifically configured to:
获取所述主叫侧设备和所述被叫侧设备在通话路径上的网络传输质量;Obtaining network transmission quality of the calling side device and the called side device on a call path;
判断所述被叫侧设备在通话路径上的网络传输质量是否满足预置的网络传输质量条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述被叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力; Determining whether the network transmission quality of the called side device on the call path meets a preset network transmission quality condition, and if yes, selecting the media capability supported by the calling side device as the preferred media capability, and if not, Selecting, among the media capabilities supported by the calling side device, a preferred media capability that matches the network transmission quality of the called side device on the call path;
所述处理单元具体还用于判断所述主叫侧设备在通话路径上的网络传输质量是否满足预置的网络传输质量条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述主叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力。The processing unit is further configured to determine whether the network transmission quality of the calling side device on the call path meets a preset network transmission quality condition, and if yes, select the media capability supported by the calling side device to be the Preferably, the media capability, if not, selects a preferred media capability that matches the network transmission quality of the calling side device on the call path among the media capabilities supported by the calling side device.
结合本发明实施例的第二方面的第八种实现方式,在本发明实施例的第二方面的第九种实现方式中,所述处理单元具体用于:With reference to the eighth implementation manner of the second aspect of the embodiment of the present invention, in the ninth implementation manner of the second aspect of the embodiment, the processing unit is specifically configured to:
获取所述主叫侧设备和所述被叫侧设备的接入方式;Obtaining an access mode of the calling side device and the called side device;
在所述被叫侧设备的接入方式为Wi-Fi的接入方式,且所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力;Selecting a preferred media capability among the anti-dropping media capabilities when the access mode of the called device is a Wi-Fi access mode, and the calling device supports the anti-dropping media capability. ;
所述处理单元具体还用于在所述主叫侧设备的接入方式为Wi-Fi的接入方式,且所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力。The processing unit is further configured to: when the access mode of the calling side device is a Wi-Fi access mode, and the calling side device supports the anti-drop packet media capability, the anti-drop packet The preferred media capabilities are selected among the media capabilities.
本发明实施例第三方面提供了一种呼叫控制网元,包括:A third aspect of the embodiments of the present invention provides a call control network element, including:
接收器,用于接收主叫侧设备的呼叫请求;a receiver, configured to receive a call request of the calling side device;
处理器,用于获取主叫侧设备和被叫侧设备中至少之一在通话路径上的媒体传输状态;a processor, configured to acquire a media transmission status of at least one of the calling side device and the called side device on the call path;
所述处理器还用于根据所述媒体传输状态,确定所述主叫侧设备和所述被叫侧设备之间建立会话时的媒体能力。The processor is further configured to determine, according to the media transmission status, a media capability when establishing a session between the calling side device and the called side device.
从以上技术方案可以看出,本发明实施例具有以下优点:It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:
本发明实施例中,呼叫控制网元根据获取的所述主叫侧设备和被叫侧设备在通话路径的媒体传输状态,来确定所述主叫侧设备和所述被叫侧设备之间建立会话时的媒体能力,由于选择的会话媒体能力根据媒体传输状态确定的,与当前会话的媒体传输状态匹配,提高了会话质量,用户体验佳。In the embodiment of the present invention, the call control network element determines that the calling side device and the called side device are established according to the acquired media transmission state of the calling side device and the called side device in the call path. The media capability during the session is improved according to the media transmission status of the selected session media capability, and matches the media transmission status of the current session, thereby improving the session quality and the user experience.
附图说明DRAWINGS
图1是本发明实施例中确定媒体能力的方法的一个实施例示意图;1 is a schematic diagram of an embodiment of a method for determining media capabilities in an embodiment of the present invention;
图2是本发明实施例中确定媒体能力的方法的另一个实施例示意图; 2 is a schematic diagram of another embodiment of a method for determining media capabilities in an embodiment of the present invention;
图3是本发明实施例中确定媒体能力的方法的另一个实施例示意图;3 is a schematic diagram of another embodiment of a method for determining media capabilities in an embodiment of the present invention;
图4是本发明实施例中确定媒体能力的方法的另一个实施例示意图;4 is a schematic diagram of another embodiment of a method for determining media capabilities in an embodiment of the present invention;
图5是本发明实施例中确定媒体能力的方法的另一个实施例示意图;FIG. 5 is a schematic diagram of another embodiment of a method for determining media capabilities in an embodiment of the present invention; FIG.
图6是本发明实施例中呼叫控制网元的一个实施例示意图;6 is a schematic diagram of an embodiment of a call control network element in an embodiment of the present invention;
图7是本发明实施例中呼叫控制网元的另一个实施例示意图。FIG. 7 is a schematic diagram of another embodiment of a call control network element in an embodiment of the present invention.
具体实施方式detailed description
本发明实施例提供了一种确定媒体能力的方法及呼叫控制网元,提高了会话质量,用户体验佳。The embodiment of the invention provides a method for determining media capabilities and a call control network element, which improves session quality and has a good user experience.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", and the like (if any) in the specification and claims of the present invention and the above figures are used to distinguish similar objects, and are not necessarily used to describe a particular order or order. It is to be understood that the data so used may be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than what is illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
本文中描述的各种技术可用于各种通信系统,包括2G、3G通信系统和下一代通信系统,例如全球移动通信(GSM,global system for mobile communication)等2G通信系统,宽带码分多址(WCDMA,wideband code division multiple access),时分同步码分多址(TD-SCDMA,time division-synchronization code division multiple access)等3G通信系统,长期演进(LTE,long-term evolution)通信系统及其后续演进系统等下一代通信系统。The various techniques described herein can be used in a variety of communication systems, including 2G, 3G communication systems, and next generation communication systems, such as 2G communication systems such as Global System for Mobile Communications (GSM), Wideband Code Division Multiple Access ( Longband evolution (CDMA), 3D communication systems such as time division synchronization code division multiple access (TD-SCDMA), long-term evolution (LTE), and its subsequent evolution Next generation communication systems such as systems.
本发明实施例中所述的主叫侧设备、被叫侧设备可以是应用于上述通 信系统中的通讯设备,如通讯终端,具体的,可以是移动电话或具有移动终端的计算机等,例如,还可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置等,此处不作限定。The calling side device and the called side device described in the embodiment of the present invention may be applied to the foregoing The communication device in the information system, such as the communication terminal, may specifically be a mobile phone or a computer with a mobile terminal, for example, a portable, pocket, handheld, computer built-in or vehicle-mounted mobile device, etc. There is no limit.
本发明实施例中所述的媒体能力为通讯双方(如主叫侧设备、被叫侧设备)之间交换媒体内容或数据内容的编码方式(或传输方式),如音频媒体能力、视频媒体能力、图片、传真等。The media capability described in the embodiment of the present invention is a coding mode (or transmission mode) for exchanging media content or data content between two communication parties (such as a calling side device and a called side device), such as audio media capability and video media capability. , pictures, faxes, etc.
请参阅图1,本发明实施例中确定媒体能力的方法的一个实施例包括:Referring to FIG. 1, an embodiment of a method for determining media capabilities in an embodiment of the present invention includes:
101、呼叫控制网元接收主叫侧设备的呼叫请求;101. The call control network element receives a call request of the calling side device.
在通信领域,如实时通话,在会话建立前,主被叫间要交互彼此的媒体能力,确定会话时的媒体能力,交互完成后进行媒体会话。In the field of communication, such as real-time calling, before the session is established, the calling and the called parties must interact with each other's media capabilities, determine the media capabilities during the session, and perform media sessions after the interaction is completed.
本实施例中,在会话建立前,主叫侧设备会向呼叫控制网元发送呼叫请求。In this embodiment, before the session is established, the calling side device sends a call request to the call control network element.
102、呼叫控制网元获取主叫侧设备和被叫侧设备中至少之一在通话路径上的媒体传输状态;102. The call control network element acquires a media transmission status of at least one of the calling side device and the called side device on the call path.
主叫侧设备、被叫侧设备在通话路径上的媒体传输状态可以是主叫侧设备、被叫侧设备所在无线空口的信号状态,根据无线空口的信号状态可以知道可以支持的传输带宽;The media transmission state of the calling side device and the called side device on the call path may be the signal state of the wireless air interface where the calling side device and the called side device are located, and the transmission bandwidth that can be supported can be known according to the signal state of the wireless air interface;
主叫侧设备、被叫侧设备在通话路径上的媒体传输状态也可以是主叫侧设备、被叫侧设备在通话路径上的网络传输质量,对呼叫控制网元,其可以对接很多网络,也可以对接很多设备,但不管如何对接都是基于IP地址来进行通信的,因此呼叫控制网元可以基于IP地址对儿的方式对每个IP地址对儿上的网络传输质量进行实时的统计,该统计可以是对每个地址对儿上所有用户或者部分抽样用户已有业务的统计,IP地址对儿是两个设备IP地址之间的通话路径,呼叫控制网元在会话建立之前,可以获取主叫侧设备、被叫侧设备在通话路径上(IP地址对儿上)的统计的网络传输质量。所述网络传输质量可以包括丢包率、时延、抖动及MOS值等,此处不作限定。The media transmission status of the calling side device and the called side device on the call path may also be the network transmission quality of the calling side device and the called side device on the call path, and the call control network element may be connected to many networks. It is also possible to connect many devices, but no matter how the docking is based on the IP address, the call control network element can perform real-time statistics on the network transmission quality of each IP address pair based on the IP address pair mode. The statistics may be statistics of existing services of all users or partial sampled users of each address pair, and the IP address pair is a call path between two device IP addresses, and the call control network element may acquire before the session is established. The statistical network transmission quality of the calling side device and the called side device on the call path (IP address pair). The network transmission quality may include a packet loss rate, a delay, a jitter, and a MOS value, which are not limited herein.
在实际应用中,主叫侧设备、被叫侧设备在通话路径上的媒体传输状态还可以是主叫侧设备、被叫侧设备的接入方式,如Wi-Fi接入方式、LTE接入方式等。 In an actual application, the media transmission status of the calling side device and the called side device on the call path may also be the access mode of the calling side device and the called side device, such as Wi-Fi access mode and LTE access. Ways, etc.
本实施例中,呼叫控制网元可以仅仅获取主叫侧设备在通话路径上的媒体传输状态,也可以仅仅获取被叫侧设备在通话路径上的媒体传输状态,还可以同时获取主叫侧设备和被叫侧设备在通话路径上的媒体传输状态,此处不作限定。In this embodiment, the call control network element may only obtain the media transmission status of the calling side device on the call path, or may only obtain the media transmission status of the called side device on the call path, and may also acquire the calling side device at the same time. The media transmission status of the called device on the call path is not limited herein.
103、呼叫控制网元根据所述媒体传输状态,确定所述主叫侧设备和所述被叫侧设备之间建立会话时的媒体能力;103. The call control network element determines, according to the media transmission status, a media capability when establishing a session between the calling side device and the called side device;
本实施例中,所述呼叫控制网元根据上述获取的媒体传输状态(主叫侧设备和被叫侧设备中至少之一在通话路径上的媒体状态),确定所述主叫侧设备和所述被叫侧设备之间建立会话时的媒体能力,例如获取的是主叫侧设备的无线空口的信号状态时,根据无线空口的信号状态可以知道可以支持的传输带宽,在主叫侧设备支持的媒体能力中,可以优先选择,或直接选择占用带宽不超过该信号状态所能支持的带宽的媒体能力。In this embodiment, the call control network element determines the calling side device and the device according to the obtained media transmission state (the media state of at least one of the calling side device and the called side device on the call path) The media capability when establishing a session between the called side devices, for example, when acquiring the signal state of the wireless air interface of the calling side device, the transmission bandwidth that can be supported can be known according to the signal state of the wireless air interface, and the calling side device supports Among the media capabilities, the media capability can be prioritized or directly selected to occupy a bandwidth that does not exceed the bandwidth that the signal state can support.
在呼叫请求中如果存在多个媒体能力,那么按照标准的角度,哪个媒体能力在SDP中的顺序在前,则表示会话过程中哪个能力是优选的,则会话就要使用哪个媒体能力。由于会话发起者所携带的媒体能力顺序是固定的,被叫侧设备选择的媒体能力可能并不适合当前的会话环境,也就意味着会话的质量无法达到预期的效果,即使被叫侧设备不优选呼叫请求中的首选媒体编解码,其选择的媒体能力(媒体编解码)仍然可能与当前会话环境不匹配,从而导致会话质量达不到预期,用户体验不佳。If there are multiple media capabilities in the call request, then according to the standard, which media capability is in the SDP order, which capacity is preferred during the session, which media capability is used for the session. Since the media capability sequence carried by the session initiator is fixed, the media capability selected by the called side device may not be suitable for the current session environment, which means that the quality of the session cannot achieve the expected effect even if the called side device does not The preferred media codec in the call request is preferred, and the selected media capability (media codec) may still not match the current session environment, resulting in the session quality being less than expected and the user experience being poor.
本实施例中,呼叫控制网元接收主叫侧设备的呼叫请求后,根据获取的所述主叫侧设备和被叫侧设备在通话路径的媒体传输状态,来确定所述主叫侧设备和所述被叫侧设备之间建立会话时的媒体能力,由于选择的会话媒体能力根据媒体传输状态确定的,与当前会话的媒体传输状态匹配,提高了会话质量,用户体验佳。In this embodiment, after receiving the call request of the calling side device, the call control network element determines the calling side device according to the obtained media transmission state of the calling side device and the called side device in the call path. The media capability when the session is established between the called devices is improved according to the media transmission state, and the media transmission state of the current session is matched, which improves the session quality and the user experience is good.
请参阅图2,本发明实施例中确定媒体能力的方法的另一个实施例包括:Referring to FIG. 2, another embodiment of a method for determining media capabilities in an embodiment of the present invention includes:
201、呼叫控制网元接收主叫侧设备的呼叫请求;201. The call control network element receives a call request of the calling side device.
一般来讲,为了实现尽可能多的媒体互通,发起呼叫方可以携带多种媒体能力,即可以将自身支持的媒体能力全部放在呼叫请求中,如可以携带语音和视频,并且语音和视频中还可以携带多种媒体编解码能力,如同 时包括音频媒体能力AMR和AMR-WB,或者同时包括媒体编解码为G.711编解码、G.729编解码、iLBC编解码的音频媒体能力,在会话建立前,主叫侧设备会向呼叫控制网元发送呼叫请求,所述呼叫请求中包括所述主叫侧设备支持的媒体能力。Generally speaking, in order to achieve as much media intercommunication as possible, the originating caller can carry multiple media capabilities, that is, all the media capabilities supported by the caller can be placed in the call request, such as voice and video, and voice and video. Can also carry a variety of media encoding and decoding capabilities, like The audio media capabilities include AMR and AMR-WB, or audio media capabilities including media codec for G.711 codec, G.729 codec, and iLBC codec. The caller device will call before the session is established. The control network element sends a call request, where the call request includes the media capability supported by the calling side device.
202、呼叫控制网元获取主叫侧设备和被叫侧设备中至少之一在通话路径上的媒体传输状态;202. The call control network element acquires a media transmission status of at least one of the calling side device and the called side device on the call path.
本实施例中,呼叫控制网元可以仅仅获取主叫侧设备在通话路径上的媒体传输状态,也可以仅仅获取被叫侧设备在通话路径上的媒体传输状态,还可以同时获取主叫侧设备和被叫侧设备在通话路径上的媒体传输状态,此处不作限定。In this embodiment, the call control network element may only obtain the media transmission status of the calling side device on the call path, or may only obtain the media transmission status of the called side device on the call path, and may also acquire the calling side device at the same time. The media transmission status of the called device on the call path is not limited herein.
主叫侧设备、被叫侧设备在通话路径上的媒体传输状态可以是主叫侧设备、被叫侧设备所在无线空口的信号状态,根据无线空口的信号状态可以知道可以支持的传输带宽;The media transmission state of the calling side device and the called side device on the call path may be the signal state of the wireless air interface where the calling side device and the called side device are located, and the transmission bandwidth that can be supported can be known according to the signal state of the wireless air interface;
主叫侧设备、被叫侧设备在通话路径上的媒体传输状态也可以是主叫侧设备、被叫侧设备在通话路径上的网络传输质量,对呼叫控制网元,其可以对接很多网络,也可以对接很多设备,但不管如何对接都是基于IP地址来进行通信的,因此呼叫控制网元可以基于IP地址对儿的方式对每个IP地址对儿上的网络传输质量进行实时的统计,该统计可以是对每个地址对儿上所有用户或者部分抽样用户已有业务的统计,IP地址对儿是两个设备IP地址之间的通话路径,呼叫控制网元在会话建立之前,可以获取主叫侧设备、被叫侧设备在通话路径上(IP地址对儿上)的统计的网络传输质量。所述网络传输质量可以包括丢包率、时延、抖动及MOS值等,此处不作限定。The media transmission status of the calling side device and the called side device on the call path may also be the network transmission quality of the calling side device and the called side device on the call path, and the call control network element may be connected to many networks. It is also possible to connect many devices, but no matter how the docking is based on the IP address, the call control network element can perform real-time statistics on the network transmission quality of each IP address pair based on the IP address pair mode. The statistics may be statistics of existing services of all users or partial sampled users of each address pair, and the IP address pair is a call path between two device IP addresses, and the call control network element may acquire before the session is established. The statistical network transmission quality of the calling side device and the called side device on the call path (IP address pair). The network transmission quality may include a packet loss rate, a delay, a jitter, and a MOS value, which are not limited herein.
由于不同的媒体承载方式下其媒体传输状态也可能不一样,比如LTE接入方式下,是有最小带宽保证的,即GBR(Guranteed Bit Rate)保证,但是Wi-Fi接入方式下,所有接入该Wi-Fi节点的用户设备的带宽都是抢占式的,因此如果是Wi-Fi接入方式,那么意味着该用户设备的媒体传输路径的丢包或者延时、抖动值会较大,这时应该选择抗丢包的媒体能力,因此,主叫侧设备、被叫侧设备在通话路径上的媒体传输状态还可以是主叫侧设备、被叫侧设备的接入方式,如Wi-Fi接入方式、LTE接入方式等。 The media transmission status may be different under different media bearer modes. For example, in the LTE access mode, there is a minimum bandwidth guarantee, that is, GBR (Guranteed Bit Rate) guarantee, but in the Wi-Fi access mode, all connections are made. The bandwidth of the user equipment entering the Wi-Fi node is preemptive. Therefore, if it is a Wi-Fi access mode, it means that the packet loss or delay and jitter value of the media transmission path of the user equipment is large. In this case, the media capability of the anti-drop packet should be selected. Therefore, the media transmission status of the calling side device and the called side device on the call path may also be the access mode of the calling side device or the called side device, such as Wi- Fi access mode, LTE access mode, and the like.
本实施例中,呼叫控制网元可以仅仅获取主叫侧设备在通话路径上的媒体传输状态,也可以仅仅获取被叫侧设备在通话路径上的媒体传输状态,还可以同时获取主叫侧设备和被叫侧设备在通话路径上的媒体传输状态,此处不作限定。In this embodiment, the call control network element may only obtain the media transmission status of the calling side device on the call path, or may only obtain the media transmission status of the called side device on the call path, and may also acquire the calling side device at the same time. The media transmission status of the called device on the call path is not limited herein.
203、呼叫控制网元选择与所述媒体传输状态相匹配的优选媒体能力;203. The call control network element selects a preferred media capability that matches the media transmission status.
当步骤202中获取的是主叫侧设备在通话路径上的媒体传输状态时,则选择与主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力,当步骤202中获取的是被叫侧设备在通话路径上的媒体传输状态时,则选择与被叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力,当步骤202中同时获取主叫侧设备和被叫侧设备在通话路径上的媒体传输状态时,则选择与被叫侧设备在通话路径上的媒体传输状态都匹配的优选媒体能力。When the media transmission status of the calling side device on the call path is obtained in step 202, the preferred media capability matching the media transmission status of the calling side device on the call path is selected, and the step 202 is obtained. When the called side device is in the media transmission state on the call path, the preferred media capability matching the media transmission state of the called side device on the call path is selected, and in step 202, the calling side device and the called side are simultaneously acquired. When the device is in the media transmission state on the call path, the preferred media capability that matches the media transmission state of the called device on the call path is selected.
所述优选媒体能力为根据所述获取的媒体传输状态选择的,可以包括主叫侧设备支持的一种或多种媒体能力,例如,当主叫侧设备支持的媒体能力为AMR和AMR-WB时,由于其中AMR-WB是宽带语音编解码,编码速率高,所需要的传输带宽大,AMR是窄带语音编解码,编码速率低,所需要的传输带宽小,当获取的主叫侧设备的无线空口信号状态,不足以支持AMR-WB的音频媒体能力时,则可以选择AMR的音频媒体能力为优选媒体能力。The preferred media capability is selected according to the acquired media transmission status, and may include one or more media capabilities supported by the calling side device, for example, when the media capabilities supported by the calling side device are AMR and AMR-WB. When AMR-WB is a wideband speech codec, the coding rate is high, and the required transmission bandwidth is large, AMR is a narrowband speech codec, the coding rate is low, and the required transmission bandwidth is small, when the acquired calling side device is When the wireless air interface signal status is insufficient to support the AMR-WB audio media capability, the AMR audio media capability can be selected as the preferred media capability.
204、呼叫控制网元将呼叫请求中的主叫侧设备支持的媒体能力更新为优选媒体能力;204. The call control network element updates the media capability supported by the calling side device in the call request to a preferred media capability.
呼叫控制网元将接收到的呼叫请求中的主叫侧设备支持的媒体能力调整为上述确定的优选媒体能力,如主叫侧设备支持的媒体能力为AMR和AMR-WB的音频媒体能力,根据获取的媒体传输状态确定的优选媒体能力为AMR的音频媒体能力,则将呼叫请求中的媒体能力调整为AMR的音频媒体能力。The call control network element adjusts the media capability supported by the calling side device in the received call request to the determined preferred media capability, for example, the media capability supported by the calling side device is AMR and AMR-WB audio media capability, according to The preferred media capability determined by the acquired media transmission status is the AMR audio media capability, and the media capability in the call request is adjusted to the AMR audio media capability.
205、呼叫控制网元向被叫侧设备转发所述更新媒体能力后的呼叫请求;205. The call control network element forwards the call request after updating the media capability to the called side device.
呼叫控制网元在更新呼叫请求中的媒体能力后,向所述被叫侧设备转发所述更新媒体能力后的呼叫请求,以使得被叫侧设备根据更新媒体能力 后的呼叫请求中的优选媒体能力选择会话媒体能力,并向呼叫控制网元返回呼叫响应,所述呼叫响应携带所述被叫侧设备根据所述优选媒体能力选择的会话媒体能力;After updating the media capability in the call request, the call control network element forwards the call request after updating the media capability to the called side device, so that the called side device according to the updated media capability The preferred media capability in the subsequent call request selects the session media capability and returns a call response to the call control network element, the call response carrying the session media capability selected by the called side device according to the preferred media capability;
本实施例中,会话媒体能力为被叫侧设备根据优选媒体能力选择自身与主叫侧设备进行会话时的媒体能力,如AMR,后续被叫侧设备可以直接基于此媒体能力建立会话。In this embodiment, the session media capability is a media capability, such as AMR, when the called side device selects a session with the calling side device according to the preferred media capability, and the subsequent called side device can directly establish a session based on the media capability.
206、呼叫控制网元向所述主叫侧设备发送应答;206. The call control network element sends a response to the calling side device.
呼叫控制网元接收到被叫侧设备返回的呼叫响应后,向所述主叫侧设备发送应答,当步骤202中呼叫控制网元获取主叫侧设备和被叫侧设备其中之一在通话路径上的媒体传输状态时,主叫侧设备也使用被叫侧设备确定的所述会话媒体能力,所述应答中可以携带所述被叫侧设备确定的会话媒体能力;After receiving the call response returned by the called side device, the call control network element sends a response to the calling side device. In step 202, the call control network element obtains one of the calling side device and the called side device in the call path. In the medium transmission state, the calling side device also uses the session media capability determined by the called side device, and the response may carry the session media capability determined by the called side device;
当呼叫控制网元获取所述主叫侧设备和所述被叫侧设备在通话路径上的媒体传输状态时,主叫侧设备可以使用自身确定的媒体能力作为会话时的媒体能力时,此时,所述应答中可以携带所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力,此处不做限定,这样呼叫控制网元就完成了主叫侧设备和被叫侧设备媒体能力的选择,会话就可以基于主叫侧设备和被叫侧设备各自选择的媒体能力进行会话。When the call control network element obtains the media transmission status of the calling side device and the called side device on the call path, when the calling side device can use the media capability determined by itself as the media capability during the session, The response may carry the preferred media capability that matches the media transmission status of the calling side device on the call path, which is not limited herein, so that the call control network element completes the calling side device and the called side. The device media capability is selected, and the session can be based on the media capabilities selected by the calling side device and the called side device.
本发明实施例中,呼叫控制网元在接收主叫侧设备的呼叫请求后,根据获取的主叫侧设备和被叫侧设备中至少之一在通话路径上的媒体传输状态,确定一个优选媒体能力,使得被叫侧设备从优选媒体能力中选择一个会话媒体能力,由于选择的会话媒体能力是从媒体传输状态确定的优选媒体能力中选择出来的,与当前会话的媒体传输状态匹配,提高了会话质量,用户体验佳。In the embodiment of the present invention, after receiving the call request of the calling side device, the call control network element determines a preferred media according to the media transmission status of the at least one of the obtained calling side device and the called side device on the call path. The capability is such that the called side device selects a session media capability from the preferred media capabilities, and since the selected session media capability is selected from the preferred media capabilities determined by the media transmission state, the media transmission state of the current session is matched, and the capability is improved. The quality of the session is good and the user experience is good.
图2所示的实施例中,呼叫控制网元获取主叫侧设备和被叫侧设备中至少之一在通话路径上的媒体传输状态,包括多种实现方式,下面结合具体实施例详细描述:In the embodiment shown in FIG. 2, the call control network element obtains the media transmission status of at least one of the calling side device and the called side device on the call path, and includes multiple implementation manners, which are described in detail below in conjunction with specific embodiments:
一、呼叫控制网元获取主叫侧设备和被叫侧设备其中之一在通话路径上的媒体传输状态;1. The call control network element obtains a media transmission status of one of the calling side device and the called side device on the call path;
请参阅图3,本发明实施例中确定媒体能力的方法的另一个实施例包 括:Referring to FIG. 3, another embodiment of a method for determining media capabilities in an embodiment of the present invention includes include:
301、呼叫控制网元接收主叫侧设备的呼叫请求;301. The call control network element receives a call request of the calling side device.
一般来讲,为了实现尽可能多的媒体互通,发起呼叫方可以携带多种媒体能力,即可以将自身支持的媒体能力全部放在呼叫请求中,如可以携带语音和视频,并且语音和视频中还可以携带多种媒体编解码能力,如同时包括音频媒体能力AMR和AMR-WB,或者同时包括媒体编解码为G.711编解码、G.729编解码、iLBC编解码的音频媒体能力,在会话建立前,主叫侧设备会向呼叫控制网元发送呼叫请求,所述呼叫请求中包括所述主叫侧设备支持的媒体能力。Generally speaking, in order to achieve as much media intercommunication as possible, the originating caller can carry multiple media capabilities, that is, all the media capabilities supported by the caller can be placed in the call request, such as voice and video, and voice and video. Can also carry a variety of media encoding and decoding capabilities, such as including audio media capabilities AMR and AMR-WB, or both media codec for G.711 codec, G.729 codec, iLBC codec audio media capabilities, in Before the session is established, the calling side device sends a call request to the call control network element, where the call request includes the media capability supported by the calling side device.
302、呼叫控制网元获取主叫侧设备和被叫侧设备其中之一在通话路径上的媒体传输状态;302. The call control network element acquires a media transmission status of one of the calling side device and the called side device on the call path.
本实施例中,以呼叫控制网元获取主叫侧设备和被叫侧设备其中之一在通话路径上的媒体传输状态,在实际应用中,还可以是获取主叫侧设备和被叫侧设备其中之一在通话路径上的媒体传输状态,此处不作限定。In this embodiment, the call control network element obtains the media transmission status of one of the calling side device and the called side device on the call path. In an actual application, the calling side device and the called side device may also be acquired. One of the media transmission states on the call path is not limited herein.
在VOLTE场景下,主叫侧设备、被叫侧设备其中之一在通话路径上的媒体传输状态可以是主叫侧设备、被叫侧设备其中之一所在无线空口的信号状态,根据无线空口的信号状态可以知道可以支持的传输带宽;In the VOLTE scenario, the media transmission state of one of the calling side device and the called side device on the call path may be a signal state of the wireless air interface where one of the calling side device and the called side device is located, according to the wireless air interface. The signal state can know the transmission bandwidth that can be supported;
主叫侧设备、被叫侧设备在通话路径上的媒体传输状态也可以是主叫侧设备、被叫侧设备在通话路径上的网络传输质量,对呼叫控制网元,其可以对接很多网络,也可以对接很多设备,但不管如何对接都是基于IP地址来进行通信的,因此呼叫控制网元可以基于IP地址对儿的方式对每个IP地址对儿上的网络传输质量进行实时的统计,该统计可以是对每个地址对儿上所有用户或者部分抽样用户已有业务的统计,IP地址对儿是两个设备IP地址之间的通话路径,呼叫控制网元在会话建立之前,可以获取主叫侧设备、被叫侧设备在通话路径上(IP地址对儿上)的统计的网络传输质量。所述网络传输质量可以包括丢包率、时延、抖动及MOS值等,此处不作限定。The media transmission status of the calling side device and the called side device on the call path may also be the network transmission quality of the calling side device and the called side device on the call path, and the call control network element may be connected to many networks. It is also possible to connect many devices, but no matter how the docking is based on the IP address, the call control network element can perform real-time statistics on the network transmission quality of each IP address pair based on the IP address pair mode. The statistics may be statistics of existing services of all users or partial sampled users of each address pair, and the IP address pair is a call path between two device IP addresses, and the call control network element may acquire before the session is established. The statistical network transmission quality of the calling side device and the called side device on the call path (IP address pair). The network transmission quality may include a packet loss rate, a delay, a jitter, and a MOS value, which are not limited herein.
由于不同的媒体承载方式下其媒体传输状态也可能不一样,比如LTE接入方式下,是有最小带宽保证的,即GBR(Guranteed Bit Rate)保证,但是Wi-Fi接入方式下,所有接入该Wi-Fi节点的用户设备的带宽都是抢占 式的,因此如果是Wi-Fi接入方式,那么意味着该用户设备的媒体传输路径的丢包或者延时、抖动值会较大,这时应该选择抗丢包的媒体能力,因此,主叫侧设备、被叫侧设备在通话路径上的媒体传输状态还可以是主叫侧设备、被叫侧设备的接入方式,如Wi-Fi接入方式、LTE接入方式等。The media transmission status may be different under different media bearer modes. For example, in the LTE access mode, there is a minimum bandwidth guarantee, that is, GBR (Guranteed Bit Rate) guarantee, but in the Wi-Fi access mode, all connections are made. The bandwidth of the user equipment entering the Wi-Fi node is preempted. If the Wi-Fi access mode is used, it means that the packet loss or delay and jitter value of the media transmission path of the user equipment will be large. In this case, the media capability against packet loss should be selected. Therefore, the main The media transmission status of the calling device and the called device on the call path may also be the access mode of the calling device or the called device, such as the Wi-Fi access mode and the LTE access mode.
本实施例中,呼叫控制网元可以仅仅获取主叫侧设备在通话路径上的媒体传输状态,也可以仅仅获取被叫侧设备在通话路径上的媒体传输状态,此处不作限定。In this embodiment, the call control network element may only obtain the media transmission status of the calling side device on the call path, or may only obtain the media transmission status of the called side device on the call path, which is not limited herein.
303、呼叫控制网元根据所述其中之一在通话路径上的媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力;303. The call control network element selects a preferred media capability that matches the media transmission state according to a media transmission status of the one of the ones on the call path.
当步骤302中所述其中之一在通话路径上的媒体传输状态包括所述其中之一所在无线空口的信号状态时,呼叫控制网元根据所述其中之一在通话路径上的媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力可以包括:When the media transmission status of one of the call paths in the step 302 includes the signal status of the wireless air interface, the call control network element is in accordance with the media transmission status of the one of the call paths. Selecting preferred media capabilities that match the media transmission status may include:
呼叫控制网元判断所述信号状态是否满足预置的信号状态条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择占用带宽低的媒体能力为所述优选媒体能力;The call control network element determines whether the signal state satisfies a preset signal state condition, and if yes, selects a media capability supported by the calling side device as the preferred media capability, and if not, at the calling side device Among the supported media capabilities, selecting a media capability that occupies a low bandwidth is the preferred media capability;
当步骤302中获取的是主叫侧设备所在无线空口的信号状态时,则选择与主叫侧设备所在无线空口的信号状态相匹配的优选媒体能力,当步骤302中获取的是被叫侧设备所在无线空口的信号状态时,则选择与被叫侧设备所在无线空口的信号状态相匹配的优选媒体能力。When the signal state of the wireless air interface where the calling device is located is obtained in step 302, the preferred media capability that matches the signal state of the wireless air interface where the calling device is located is selected, and the called device is obtained in step 302. When the signal status of the wireless air interface is located, the preferred media capability matching the signal state of the wireless air interface where the called side device is located is selected.
呼叫控制网元判断所述信号状态是否满足预置的信号状态条件,当获取的信号状态条件满足预置的信号状态条件时,表示空口信号状态好,则可以不控制该会话的媒体能力,将主叫侧设备支持的媒体能力作为优选媒体能力,获取的信号状态条件不满足预置的信号状态条件时,意味着空口信号状态较差,空口可能误码率较高,空口重传的概率较大,需要选择占用带宽低的媒体能力作为优选媒体能力。The call control network element determines whether the signal state satisfies a preset signal state condition. When the acquired signal state condition satisfies the preset signal state condition, indicating that the air interface signal state is good, the media capability of the session may not be controlled. The media capability supported by the calling side device is used as the preferred media capability. When the acquired signal state condition does not meet the preset signal state condition, it means that the air interface signal state is poor, the air interface may have a higher bit error rate, and the probability of air interface retransmission is higher. Large, need to choose the media capacity that occupies low bandwidth as the preferred media capability.
例如,当主叫侧设备支持的媒体能力为AMR和AMR-WB时,由于其中AMR-WB是宽带语音编解码,编码速率高,所需要的传输带宽大,AMR是窄带语音编解码,编码速率低,所需要的传输带宽小,当获取的 主叫侧设备的无线空口信号状态时,即可知道主叫侧设备的无线空口信号状态能够支持的传输带宽,即能够支持的传输速率,而每种类型的编解码对传输带宽都有要求,如当主叫侧设备的无线空口信号状态所支持的传输带宽不足以支持AMR-WB的音频媒体能力时,则可以选择AMR的音频媒体能力。For example, when the media capabilities supported by the calling side device are AMR and AMR-WB, since the AMR-WB is a wideband speech codec, the encoding rate is high, and the required transmission bandwidth is large, the AMR is a narrowband speech codec, and the encoding rate. Low, the required transmission bandwidth is small when acquired When the wireless air interface signal status of the calling side device is known, the transmission bandwidth supported by the wireless air interface signal state of the calling side device, that is, the transmission rate that can be supported, is known, and each type of codec has a requirement for the transmission bandwidth. For example, when the transmission bandwidth supported by the wireless air interface signal state of the calling side device is insufficient to support the audio media capability of the AMR-WB, the audio media capability of the AMR can be selected.
上述呼叫控制网元在获取的信号状态不满足预置的信号状态条件时,在主叫侧设备支持的媒体能力中,选择占用带宽低的媒体能力为优选媒体能力可以为如下一种或多种实现方式:When the acquired signal state does not satisfy the preset signal state condition, the media capability supported by the calling side device is selected as the preferred media capability, which may be one or more of the following: Method to realize:
(1)在主叫侧设备支持的媒体能力中包含音频媒体能力和视频媒体能力时,将视频媒体能力过滤。(1) When the audio media capability and the video media capability are included in the media capabilities supported by the calling side device, the video media capabilities are filtered.
例如呼叫请求中SDP参数如下:For example, the SDP parameters in the call request are as follows:
m=audio xxxxxx RTP/AVP 97m=audio xxxxxx RTP/AVP 97
a=rtpmap:97 AMR/8000a=rtpmap:97 AMR/8000
a=ptime:20a=ptime:20
m=video 49154 RTP/AVP 99m=video 49154 RTP/AVP 99
b=AS:315b=AS:315
a=rtpmap:99 H264/90000a=rtpmap:99 H264/90000
a=fmtp:99 packetization-mode=0;profile-level-id=42e00c;\a=fmtp:99 packetization-mode=0;profile-level-id=42e00c;\
sprop-parameter-sets=J0LgDJWgUH6Af1A=,KM46gA==Sprop-parameter-sets=J0LgDJWgUH6Af1A=, KM46gA==
其中,“m=video”开头的表示视频媒体能力,在SDP参数中将视频媒体能力的m行端口置0,表示这个会话不使用这个视频媒体能力,不进行视频媒体传输。The “m=video” at the beginning of the video media capability indicates that the m-line port of the video media capability is set to 0 in the SDP parameter, indicating that the session does not use the video media capability and does not perform video media transmission.
调整后的SDP参数如下:The adjusted SDP parameters are as follows:
m=audio xxxxxx RTP/AVP 97m=audio xxxxxx RTP/AVP 97
a=rtpmap:97 AMR/8000a=rtpmap:97 AMR/8000
a=ptime:20a=ptime:20
m=video 0 RTP/AVP 99m=video 0 RTP/AVP 99
b=AS:315b=AS:315
a=rtpmap:99 H264/90000a=rtpmap:99 H264/90000
a=fmtp:99 packetization-mode=0;profile-level-id=42e00c;\ a=fmtp:99 packetization-mode=0;profile-level-id=42e00c;\
sprop-parameter-sets=J0LgDJWgUH6Af1A=,KM46gA==Sprop-parameter-sets=J0LgDJWgUH6Af1A=, KM46gA==
(2)当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,根据预置的信号状态与媒体能力的对应关系,在所述主叫侧设备支持的媒体能力中,将与所述信号状态匹配的媒体能力调整到首选;(2) When the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, the media capability supported by the calling side device Medium, adjusting the media capability matching the signal state to a preferred one;
例如,假设呼叫请求中收到的SDP参数如下:For example, suppose the SDP parameters received in a call request are as follows:
m=audio xxxxxx RTP/AVP 96 97m=audio xxxxxx RTP/AVP 96 97
a=rtpmap:96 AMR-WB/16000a=rtpmap:96 AMR-WB/16000
a=rtpmap:97 AMR/8000a=rtpmap:97 AMR/8000
a=ptime:20a=ptime:20
假设获取的信号状态只能匹配AMR音频编解码(PT值97),此时,可以仅调整m行中的PT值顺序即可表示媒体编解码的优先级发生变化,如下所示:It is assumed that the acquired signal state can only match the AMR audio codec (PT value 97). In this case, the order of the PT values in the m rows can be adjusted to indicate that the priority of the media codec changes, as follows:
m=audio xxxxxx RTP/AVP 97 96m=audio xxxxxx RTP/AVP 97 96
a=rtpmap:96 AMR-WB/16000a=rtpmap:96 AMR-WB/16000
a=rtpmap:97 AMR/8000a=rtpmap:97 AMR/8000
a=ptime:20a=ptime:20
此时,可以仅调整m行中的PT值顺序即可表示媒体编解码的优先级发生变化,也可以同时调整a行中顺序,如下所示:In this case, the order of the PT values in the m rows can be adjusted to indicate that the priority of the media codec changes, or the order in the a row can be adjusted at the same time, as follows:
m=audio xxxxxx RTP/AVP 97 96m=audio xxxxxx RTP/AVP 97 96
a=rtpmap:97 AMR/8000a=rtpmap:97 AMR/8000
a=rtpmap:96 AMR-WB/16000a=rtpmap:96 AMR-WB/16000
a=ptime:20a=ptime:20
(3)当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,根据预置的信号状态与媒体能力的对应关系,在所述主叫侧设备支持的媒体能力中,将与所述信号状态不匹配的媒体能力过滤;(3) When the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, the media capability supported by the calling side device Medium, filtering media capabilities that do not match the signal state;
例如,接收到的呼叫请求中的SDP参数如下:For example, the SDP parameters in the received call request are as follows:
m=audio xxxxxx RTP/AVP 96 97m=audio xxxxxx RTP/AVP 96 97
a=rtpmap:96 AMR-WB/16000a=rtpmap:96 AMR-WB/16000
a=rtpmap:97 AMR/8000 a=rtpmap:97 AMR/8000
a=ptime:20a=ptime:20
假设获取的信号状态只能匹配AMR音频编解码(PT值97),此时可以只讲将PT值为96的AMR-WB音频编解码过滤掉,只留下支持的AMR媒体能力,调整SDP参数如下:It is assumed that the acquired signal state can only match the AMR audio codec (PT value 97). In this case, only the AMR-WB audio codec with the PT value of 96 can be filtered out, leaving only the supported AMR media capabilities and adjusting the SDP parameters. as follows:
m=audio xxxxxx RTP/AVP 97m=audio xxxxxx RTP/AVP 97
a=rtpmap:97 AMR/8000a=rtpmap:97 AMR/8000
a=ptime:20a=ptime:20
(4)当所述主叫侧设备支持的媒体能力包括同一类型媒体编解码的多种速率集合时,根据预置的信号状态与速率模式的对应关系,在所述主叫侧设备支持的媒体能力中,选择与所述信号状态相匹配的速率模式集合,所述速率模式集合中包括至少一种速率模式。(4) When the media capability supported by the calling side device includes multiple rate sets of the same type of media codec, according to the corresponding relationship between the preset signal state and the rate mode, the media supported by the calling side device In the capability, a set of rate patterns matching the signal state is selected, and the rate pattern set includes at least one rate mode.
例如,接收到的呼叫请求中的SDP参数如下:For example, the SDP parameters in the received call request are as follows:
m=audio xxxxxx RTP/AVP 96 97m=audio xxxxxx RTP/AVP 96 97
a=rtpmap:96 AMR/8000a=rtpmap:96 AMR/8000
a=fmtp:96 mode-set=0,2,4,7a=fmtp:96 mode-set=0,2,4,7
a=rtpmap:97 AMR/8000a=rtpmap:97 AMR/8000
a=fmtp:97 mode-set=0,1,2a=fmtp:97 mode-set=0,1,2
a=ptime:20a=ptime:20
其中,表示mode-set参数表示该编解码将要使用的速率集合,AMR-WB和AMR都是多速率编解码,以AMR为例,其速率模式与对应的速率值对应关系如下表1所示:The mode-set parameter indicates the rate set to be used by the codec. The AMR-WB and the AMR are both multi-rate codecs. The AMR is used as an example. The correspondence between the rate mode and the corresponding rate value is as follows:
表1Table 1
模式mode 速率rate
00 4.75kbps4.75kbps
11 5.15kbps5.15kbps
22 5.90kbp5.90kbp
33 6.70kbps6.70kbps
44 7.40kbps7.40kbps
55 7.95kbps7.95kbps
66 10.2kbps10.2kbps
77 12.2kbps12.2kbps
上述速率即对应媒体传输带宽,速率越大,编解码传输带宽就越大。The above rate corresponds to the media transmission bandwidth, and the larger the rate, the larger the codec transmission bandwidth.
因此在该用户媒体传输路径质量不好时,如果该编解码有多个速率集合可以选择,则可以选择低带宽的速率集合。Therefore, when the quality of the user media transmission path is not good, if the codec has multiple rate sets to select, a low bandwidth rate set can be selected.
根据获取的所述信号状态,确定可以支持的对应的传输带宽,及可以确定支持对应的速率的模式,假设根据获取的信号状态,可以支持速率模式为0,1,2的速率模式,此时对接收到的SDP参数进行调整即可如下:Determining, according to the obtained signal state, a corresponding transmission bandwidth that can be supported, and determining a mode supporting the corresponding rate, and assuming that the rate mode is 0, 1, and 2, according to the acquired signal state, Adjust the received SDP parameters as follows:
m=audio xxxxxx RTP/AVP 97m=audio xxxxxx RTP/AVP 97
a=rtpmap:97 AMR/8000a=rtpmap:97 AMR/8000
a=fmtp:97 mode-set=0,1,2a=fmtp:97 mode-set=0,1,2
a=ptime:20a=ptime:20
保留了能够支持的速率模式集合,将与所述信号状态不匹配的速率模式集合过滤。A set of rate modes that can be supported is retained, and a set of rate patterns that do not match the signal state are filtered.
上述所述其中之一在通话路径上的媒体传输状态还可以包括所述其中之一的接入方式,如Wi-Fi接入方式、LTE接入方式等。The medium transmission status of the one of the foregoing may also include an access mode of the one of the ones, such as a Wi-Fi access mode, an LTE access mode, and the like.
此时,所述呼叫控制网元根据所述主叫侧设备在通话路径上的媒体传输状态,选择与所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力包括:At this time, the preferred media capability that the call control network element selects to match the media transmission state of the calling side device on the call path according to the media transmission status of the calling side device on the call path includes:
所述呼叫控制网元在所述其中之一的接入方式为Wi-Fi的接入方式,且所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力。The anti-dropping media capability of the call control network element when the access mode of the one of the access modes is a Wi-Fi access mode, and the calling side device supports the anti-drop packet media capability Select preferred media capabilities.
由于不同的媒体承载方式下其媒体传输状态也可能不一样,比如LTE接入方式下,是有最小带宽保证的,即GBR(Guranteed Bit Rate)保证,但是Wi-Fi接入方式下,所有接入该Wi-Fi节点的用户设备的带宽都是抢占式的,因此如果是Wi-Fi接入方式,那么意味着该用户设备的媒体传输路径的丢包或者延时、抖动值会较大,这时应该选择抗丢包的媒体能力,比如选择iLBC编解码或者冗余传输等。The media transmission status may be different under different media bearer modes. For example, in the LTE access mode, there is a minimum bandwidth guarantee, that is, GBR (Guranteed Bit Rate) guarantee, but in the Wi-Fi access mode, all connections are made. The bandwidth of the user equipment entering the Wi-Fi node is preemptive. Therefore, if it is a Wi-Fi access mode, it means that the packet loss or delay and jitter value of the media transmission path of the user equipment is large. At this time, you should choose the media capability against packet loss, such as selecting iLBC codec or redundant transmission.
本实施例中,在所述抗丢包的媒体能力中选择优选媒体能力可以是:In this embodiment, selecting a preferred media capability among the anti-lost media capabilities may be:
(1)当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,在所述主叫侧设备支持的媒体能力中,抗丢包的媒体能力调整 到首选,如接入方式丢包率高,将抗丢包的iLBC编解码的媒体能力调整到首选。(1) When the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, in the media capabilities supported by the calling side device, the anti-dropping media capability is adjusted. To the preferred, if the access mode has a high packet loss rate, the media capability of the anti-lost iLBC codec is adjusted to the preferred one.
(2)当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,在所述主叫侧设备支持的媒体能力中,将不抗丢包的媒体能力过滤。(2) When the media capability supported by the calling device includes media capabilities of multiple types of media encoding and decoding, media capabilities that are not resistant to packet loss are filtered in the media capabilities supported by the calling device.
304、呼叫控制网元将呼叫请求中的主叫侧设备支持的媒体能力更新为优选媒体能力;304. The call control network element updates the media capability supported by the calling side device in the call request to a preferred media capability.
呼叫控制网元将接收到的呼叫请求中的主叫侧设备支持的媒体能力调整为上述确定的优选媒体能力,如主叫侧设备支持的媒体能力为AMR和AMR-WB的音频媒体能力,根据获取的媒体传输状态确定的优选媒体能力为AMR的音频媒体能力,则将呼叫请求中的媒体能力调整为AMR的音频媒体能力。The call control network element adjusts the media capability supported by the calling side device in the received call request to the determined preferred media capability, for example, the media capability supported by the calling side device is AMR and AMR-WB audio media capability, according to The preferred media capability determined by the acquired media transmission status is the AMR audio media capability, and the media capability in the call request is adjusted to the AMR audio media capability.
305、呼叫控制网元向被叫侧设备转发所述更新媒体能力后的呼叫请求;305. The call control network element forwards the call request after updating the media capability to the called side device.
呼叫控制网元在更新呼叫请求中的媒体能力后,向所述被叫侧设备转发所述更新媒体能力后的呼叫请求,以使得被叫侧设备根据更新媒体能力后的呼叫请求中的优选媒体能力选择会话媒体能力,并向呼叫控制网元返回呼叫响应,所述呼叫响应携带所述被叫侧设备根据所述优选媒体能力选择的会话媒体能力;After updating the media capability in the call request, the call control network element forwards the call request after updating the media capability to the called side device, so that the called side device according to the preferred media in the call request after updating the media capability The capability selects the session media capability and returns a call response to the call control network element, the call response carrying the session media capability selected by the called side device according to the preferred media capability;
本实施例中,会话媒体能力为被叫侧设备根据优选媒体能力选择自身与主叫侧设备进行会话时的媒体能力,如AMR,后续被叫侧设备可以直接基于此媒体能力建立会话。In this embodiment, the session media capability is a media capability, such as AMR, when the called side device selects a session with the calling side device according to the preferred media capability, and the subsequent called side device can directly establish a session based on the media capability.
306、所述呼叫控制网元向所述主叫侧设备发送所述应答;306. The call control network element sends the response to the calling side device.
本实施例中,呼叫控制网元接收到被叫侧设备返回的呼叫响应后,向所述主叫侧设备发送应答,步骤302中呼叫控制网元获取主叫侧设备和被叫侧设备其中之一在通话路径上的媒体传输状态,主叫侧设备也使用被叫侧设备确定的所述会话媒体能力,此时,所述应答中可以携带所述被叫侧设备确定的会话媒体能力;In this embodiment, after receiving the call response returned by the called side device, the call control network element sends a response to the calling side device. In step 302, the call control network element obtains the calling side device and the called side device. a media transmission state on the call path, the calling side device also uses the session media capability determined by the called side device, and the response may carry the session media capability determined by the called side device;
在实际应用中,当呼叫控制网元获取所述主叫侧设备和所述被叫侧设备在通话路径上的媒体传输状态时,主叫侧设备可以使用自身确定的媒体 能力作为会话时的媒体能力时,此时,所述应答中可以携带所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力,此处不做限定,这样呼叫控制网元就完成了主叫侧设备和被叫侧设备媒体能力的选择,会话就可以基于主叫侧设备和被叫侧设备各自选择的媒体能力进行会话,此处不作限定。In a practical application, when the call control network element acquires the media transmission status of the calling side device and the called side device on the call path, the calling side device may use the media determined by itself. When the capability is used as the media capability of the session, the response may carry the preferred media capability of the media transmission state of the calling device on the call path, which is not limited, so that the call control network element The session capability of the calling side device and the called side device is completed, and the session can be performed based on the media capabilities selected by the calling side device and the called side device, which are not limited herein.
二、呼叫控制网元获取所述主叫侧设备和所述被叫侧设备在通话路径上的网络传输质量。2. The call control network element acquires the network transmission quality of the calling side device and the called side device on the call path.
请参阅图4,本发明实施例中确定媒体能力的方法的另一个实施例包括:Referring to FIG. 4, another embodiment of a method for determining media capabilities in an embodiment of the present invention includes:
401、呼叫控制网元接收主叫侧设备的呼叫请求;401. The call control network element receives a call request of the calling side device.
一般来讲,为了实现尽可能多的媒体互通,发起呼叫方可以携带多种媒体能力,即可以将自身支持的媒体能力全部放在呼叫请求中,如可以携带语音和视频,并且语音和视频中还可以携带多种媒体编解码能力,如同时包括音频媒体能力AMR和AMR-WB,或者同时包括媒体编解码为G.711编解码、G.729编解码、iLBC编解码的音频媒体能力,在会话建立前,主叫侧设备会向呼叫控制网元发送呼叫请求,所述呼叫请求中包括所述主叫侧设备支持的媒体能力。Generally speaking, in order to achieve as much media intercommunication as possible, the originating caller can carry multiple media capabilities, that is, all the media capabilities supported by the caller can be placed in the call request, such as voice and video, and voice and video. Can also carry a variety of media encoding and decoding capabilities, such as including audio media capabilities AMR and AMR-WB, or both media codec for G.711 codec, G.729 codec, iLBC codec audio media capabilities, in Before the session is established, the calling side device sends a call request to the call control network element, where the call request includes the media capability supported by the calling side device.
402、呼叫控制网元获取主叫侧设备和被叫侧设备在通话路径上的媒体传输状态;402. The call control network element acquires a media transmission status of the calling side device and the called side device on the call path.
本实施例中,以呼叫控制网元获取主叫侧设备和被叫侧设备在通话路径上的媒体传输状态为例,在实际应用中,呼叫控制网元可以仅仅获取主叫侧设备在通话路径上的媒体传输状态,也可以仅仅获取被叫侧设备在通话路径上的媒体传输状态,此处不作限定。In this embodiment, the call control network element obtains the media transmission status of the calling side device and the called side device on the call path as an example. In an actual application, the call control network element may only obtain the calling path of the calling side device. The state of the media transmission on the device can also be used to obtain only the media transmission status of the called device on the call path, which is not limited herein.
在VOLTE场景下,主叫侧设备、被叫侧设备在通话路径上的媒体传输状态可以是主叫侧设备、被叫侧设备所在无线空口的信号状态,根据无线空口的信号状态可以知道可以支持的传输带宽;In the VOLTE scenario, the media transmission status of the calling side device and the called side device on the call path may be the signal state of the wireless air interface where the calling side device and the called side device are located, and can be known according to the signal state of the wireless air interface. Transmission bandwidth
本实施例中,主叫侧设备、被叫侧设备在通话路径上的媒体传输状态也是主叫侧设备、被叫侧设备在通话路径上的网络传输质量,对呼叫控制网元,其可以对接很多网络,也可以对接很多设备,但不管怎么对接都是基于IP地址来进行通信的,因此呼叫控制网元可以基于IP地址对儿的方 式对每个IP地址对儿上的网络传输质量进行实时的统计,该统计可以是对每个地址对儿上所有用户或者部分抽样用户已有业务的统计,IP地址对儿是两个设备IP地址之间的通话路径,呼叫控制网元在会话建立之前,可以获取主叫侧设备、被叫侧设备在通话路径上(IP地址对儿上)的统计的网络传输质量。所述网络传输质量可以包括丢包率、时延、抖动及MOS值等,此处不作限定。In this embodiment, the media transmission status of the calling side device and the called side device on the call path is also the network transmission quality of the calling side device and the called side device on the call path, and the call control network element can be docked. Many networks can also connect many devices, but no matter how the docking is based on IP addresses, the call control network element can be based on the IP address. Perform real-time statistics on the network transmission quality of each IP address pair. The statistics may be statistics on the existing services of all users or partial sample users of each address pair. The IP address pair is two device IPs. The call path between the addresses, before the session is established, the call control network element can obtain the statistical network transmission quality of the calling side device and the called side device on the call path (IP address pair). The network transmission quality may include a packet loss rate, a delay, a jitter, and a MOS value, which are not limited herein.
由于不同的媒体承载方式下其媒体传输状态也可能不一样,比如LTE接入方式下,是有最小带宽保证的,即GBR(Guranteed Bit Rate)保证,但是Wi-Fi接入方式下,所有接入该Wi-Fi节点的用户设备的带宽都是抢占式的,因此如果是Wi-Fi接入方式,那么意味着该用户设备的媒体传输路径的丢包或者延时、抖动值会较大,这时应该选择抗丢包的媒体能力,因此,主叫侧设备、被叫侧设备在通话路径上的媒体传输状态还可以是主叫侧设备、被叫侧设备的接入方式,如Wi-Fi接入方式、LTE接入方式等。The media transmission status may be different under different media bearer modes. For example, in the LTE access mode, there is a minimum bandwidth guarantee, that is, GBR (Guranteed Bit Rate) guarantee, but in the Wi-Fi access mode, all connections are made. The bandwidth of the user equipment entering the Wi-Fi node is preemptive. Therefore, if it is a Wi-Fi access mode, it means that the packet loss or delay and jitter value of the media transmission path of the user equipment is large. In this case, the media capability of the anti-drop packet should be selected. Therefore, the media transmission status of the calling side device and the called side device on the call path may also be the access mode of the calling side device or the called side device, such as Wi- Fi access mode, LTE access mode, and the like.
403、呼叫控制网元根据主叫侧设备和被叫侧设备在通话路径上的媒体传输状态,选择与主叫侧设备和被叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力;403. The call control network element selects a preferred media capability that matches the media transmission status of the calling side device and the called side device on the call path according to the media transmission status of the calling side device and the called side device on the call path. ;
本实施例中,呼叫控制网元根据主叫侧设备和被叫侧设备在通话路径上的媒体传输状态,选择与主叫侧设备和被叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力可以包括:In this embodiment, the call control network element selects a media transmission state matching the calling side device and the called side device on the call path according to the media transmission status of the calling side device and the called side device on the call path. Preferred media capabilities can include:
呼叫控制网元判断所述主叫侧设备和被叫侧设备在通话路径上的网络传输质量是否满足预置的网络传输质量条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述主叫侧设备和被叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力;The call control network element determines whether the network transmission quality of the calling side device and the called side device on the call path meets a preset network transmission quality condition, and if so, selects the media capability supported by the calling side device as a location Determining a preferred media capability, if not, selecting a preferred media capability that matches the network transmission quality of the calling side device and the called side device on the call path among the media capabilities supported by the calling side device;
如下表2所示,可以根据丢包率值,时延长短、抖动值大小及MOS值等网络传输质量指标来选择优选媒体能力,还可以是上述网络传输质量指标中一种或多种的结合,此处不作限定。As shown in Table 2 below, the preferred media capability can be selected according to the network packet quality indicator such as the packet loss rate value, the time length, the jitter value, and the MOS value, or a combination of one or more of the above network transmission quality indicators. This is not limited here.
表2Table 2
Figure PCTCN2015096697-appb-000001
Figure PCTCN2015096697-appb-000001
Figure PCTCN2015096697-appb-000002
Figure PCTCN2015096697-appb-000002
本实施例中,所述呼叫控制网元选择与主叫侧设备和被叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力包括:In this embodiment, the preferred media capabilities that the call control network element selects to match the network transmission quality of the calling side device and the called side device on the call path include:
当所述网络传输质量包括丢包率时,所述呼叫控制网元判断所述丢包率值是否小于预置的丢包率值,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述丢包率值相匹配的优选媒体能力;When the network transmission quality includes a packet loss rate, the call control network element determines whether the packet loss rate value is less than a preset packet loss rate value, and if yes, selects a media capability supported by the calling side device as And the preferred media capability, if not, selecting a preferred media capability that matches the packet loss rate value among the media capabilities supported by the calling side device;
或,or,
当所述网络传输质量包括时延值时,所述呼叫控制网元判断所述时延值是否小于预置的时延值,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述时延值相匹配的优选媒体能力;When the network transmission quality includes a delay value, the call control network element determines whether the delay value is less than a preset delay value, and if yes, selecting a media capability supported by the calling side device as the Optimizing the media capability, if not, selecting a preferred media capability that matches the delay value among the media capabilities supported by the calling side device;
或,or,
当所述网络传输质量包括抖动值时,所述呼叫控制网元判断所述抖动值是否小于预置的第一阈值,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述抖动值相匹配的优选媒体能力;When the network transmission quality includes a jitter value, the call control network element determines whether the jitter value is less than a preset first threshold, and if yes, selects a media capability supported by the calling side device as the preferred media. Capability, if not, selecting a preferred media capability that matches the jitter value among media capabilities supported by the calling side device;
或,or,
当所述网络传输质量包括MOS值时,所述呼叫控制网元判断所述MOS值是否大于第二阈值,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述MOS值相匹配的优选媒体能力。When the network transmission quality includes a MOS value, the call control network element determines whether the MOS value is greater than a second threshold, and if yes, selecting a media capability supported by the calling side device as the preferred media capability, if No, in the media capabilities supported by the calling side device, a preferred media capability that matches the MOS value is selected.
当网络传输质量包括丢包率、时延、抖动及MOS值中一种时,可以根据上述判断各项指标是否符合要求,在主叫侧设备和被叫侧设备均的判断结果为是的时候(如丢包率小于预置的丢包率值、抖动小于预置的第一 阈值、时延小于预置的时延长度、MOS值大于第二阈值),确定所述网络传输质量符合预置的网络传输质量条件,当选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,在判断结果为否的时候,则在所述主叫侧设备支持的媒体能力中,选择与所述网络传输质量(丢包率、时延、抖动、MOS值)相匹配的优选媒体能力。When the network transmission quality includes one of a packet loss rate, a delay, a jitter, and a MOS value, it may be determined according to the foregoing whether the indicators meet the requirements, and when the judgment result of both the calling side device and the called side device is yes, (If the packet loss rate is less than the preset packet loss rate value, the jitter is less than the preset first. The threshold, the delay is less than the preset time extension, and the MOS value is greater than the second threshold, determining that the network transmission quality meets a preset network transmission quality condition, and when selecting the media capability supported by the calling side device is the Preferably, when the result of the determination is no, the media capability supported by the calling side device is selected to match the network transmission quality (loss rate, delay, jitter, MOS value). Media capabilities.
当网络传输质量包括丢包率、时延、抖动及MOS值中多种时,当主叫侧设备和被叫侧设备这多种指标均满足要求(如丢包率小于预置的丢包率值、抖动小于预置的第一阈值、时延小于预置的时延长度、MOS值大于第二阈值)时,确定所述网络传输质量符合预置的网络传输质量条件,选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,当这包含的多种指标只有部分满足,部分不满足,或全部不满足时,则可以根据所述各项指标的是否满足的具体情况选择相匹配的优选媒体能力,例如,假设丢包率大于预置的丢包率值(不满足要求),而其他指标均满足要求,由于iLBC编解码抗丢包能力较强,这时,选择的优选媒体能力中优先选择iLBC编解码的就更为合适,如将iLBC编解码调整到首选,或将其他编解码过滤掉。When the network transmission quality includes multiple types of packet loss rate, delay, jitter, and MOS value, when the calling side device and the called side device meet the requirements, the packet loss rate is smaller than the preset packet loss rate. When the value, the jitter is less than the preset first threshold, the delay is less than the preset time extension, and the MOS value is greater than the second threshold, determining that the network transmission quality meets a preset network transmission quality condition, and selecting the calling party The media capability supported by the side device is the preferred media capability. When the multiple indicators included in this part are only partially satisfied, partially not satisfied, or all are not satisfied, the phase may be selected according to whether the indicators meet the specific conditions. Matching preferred media capabilities, for example, assuming that the packet loss rate is greater than the preset packet loss rate value (not meeting the requirements), and other indicators are satisfactory, because the iLBC codec is more resistant to packet loss, then the selection is preferred. It is more appropriate to prioritize the iLBC codec in the media capabilities, such as adjusting the iLBC codec to the preferred one, or filtering out other codecs.
例如,当主叫侧设备支持的音频媒体能力中包含了三种音频媒体能力,特点分别如下:For example, when the audio media capabilities supported by the calling side device include three audio media capabilities, the features are as follows:
G.711编解码:特点是编码质量好,在不丢包的情况下用户会获得更好的语音质量,但是媒体传输带宽相对较大。G.711 codec: The feature is that the encoding quality is good, and the user will get better voice quality without packet loss, but the media transmission bandwidth is relatively large.
G.729编解码:编码质量不如G.711,但是媒体传输带宽相对较小。G.729 codec: The encoding quality is not as good as G.711, but the media transmission bandwidth is relatively small.
iLBC编解码:编码质量与与G.729类似,带宽稍高于G.729小于G.711,但是抗丢包能力较强。iLBC codec: The encoding quality is similar to that of G.729. The bandwidth is slightly higher than G.729 and smaller than G.711, but the anti-dropping capability is stronger.
(1)若主被叫媒体传输质量均好,则可以选择编码传输质量高的媒体能力,如选择G.711编解码;(1) If the quality of the primary and called media transmission is good, you can choose the media capability with high transmission quality, such as selecting G.711 codec;
假设接收到的呼叫请求中SDP参数(仅列出主要的参数,其他参数略)Assume that the SDP parameters in the received call request (only the main parameters are listed, other parameters are omitted)
m=audio xxxxxx RTP/AVP 18 0 98m=audio xxxxxx RTP/AVP 18 0 98
a=rtpmap:18 G729/8000a=rtpmap:18 G729/8000
a=rtpmap:0 PCMU/8000 a=rtpmap:0 PCMU/8000
a=rtpmap:98 iLBC/8000a=rtpmap:98 iLBC/8000
a=fmtp:98 mode=20a=fmtp:98 mode=20
a=ptime:20a=ptime:20
调整后的SDP参数Adjusted SDP parameters
m=audio xxxxxx RTP/AVP 0 18 98m=audio xxxxxx RTP/AVP 0 18 98
a=rtpmap:0 PCMU/8000a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000a=rtpmap:18 G729/8000
a=rtpmap:98 iLBC/8000a=rtpmap:98 iLBC/8000
a=fmtp:98 mode=20a=fmtp:98 mode=20
a=ptime:20a=ptime:20
这样选择后该会话可以获得较佳的通话质量。After this selection, the session can get better call quality.
(2)若主被叫媒体传输质量均不好,如丢包率高,则可以选择比较抗丢包的媒体能力,如iLBC编解码;(2) If the quality of the primary and called media transmission is not good, such as high packet loss rate, you can choose to compare the anti-drop packet media capabilities, such as iLBC codec;
假设接收到的呼叫请求中SDP参数(仅列出主要的参数,其他参数略)Assume that the SDP parameters in the received call request (only the main parameters are listed, other parameters are omitted)
m=audio xxxxxx RTP/AVP 18 0 98m=audio xxxxxx RTP/AVP 18 0 98
a=rtpmap:18 G729/8000a=rtpmap:18 G729/8000
a=rtpmap:0 PCMU/8000a=rtpmap:0 PCMU/8000
a=rtpmap:98 iLBC/8000a=rtpmap:98 iLBC/8000
a=fmtp:98 mode=20a=fmtp:98 mode=20
a=ptime:20a=ptime:20
调整后的SDP参数:Adjusted SDP parameters:
m=audio xxxxxx RTP/AVP 98 0 18m=audio xxxxxx RTP/AVP 98 0 18
a=rtpmap:98 iLBC/8000a=rtpmap:98 iLBC/8000
a=fmtp:98 mode=20a=fmtp:98 mode=20
a=rtpmap:0 PCMU/8000a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000a=rtpmap:18 G729/8000
a=ptime:20a=ptime:20
这样选择后,虽然该媒体传输路径上有丢包,但是仍然可以获得较好的通话质量保证。 After this selection, although there is packet loss on the media transmission path, a good call quality guarantee can still be obtained.
(3)当主叫侧设备和被叫侧设备的在通话路径上的网络传输质量一个好,一个差时,可以以在通话路径上的网络传输质量差的设备能够支持的为准选择优选媒体能力,此处不做限定。(3) When the quality of the network transmission on the call path of the calling side device and the called side device is good, and one is poor, the preferred medium can be selected based on the support of the device with poor network transmission quality on the call path. Ability, not limited here.
主叫侧设备和被叫设备在通话路径上的网络传输质量的好与差,根据上述丢包率值,时延值长短、抖动值大小及MOS值与预置的丢包率值、时延值、第一阈值、第二阈值的比较得出,当上述比较为是的时,即代表网络传输质量较好,符合要求。The network transmission quality of the calling side device and the called device in the call path is good or bad. According to the packet loss rate value, the delay value, the jitter value, the MOS value, the preset packet loss rate value, and the delay. The comparison of the value, the first threshold, and the second threshold results in that when the above comparison is YES, it means that the network transmission quality is good and meets the requirements.
在网络传输质量不符合预置的网络传输质量条件时,在所述主叫侧设备支持的媒体能力中,选择与所述被叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力可以采用如图3所示的一种或多种方式修改呼叫请求中的SDP参数:When the network transmission quality does not meet the preset network transmission quality condition, among the media capabilities supported by the calling side device, selecting a preferred media capability that matches the network transmission quality of the called side device on the call path The SDP parameters in the call request can be modified in one or more ways as shown in Figure 3:
(1)在主叫侧设备支持的媒体能力中包含音频媒体能力和视频媒体能力时,将视频媒体能力过滤。(1) When the audio media capability and the video media capability are included in the media capabilities supported by the calling side device, the video media capabilities are filtered.
(2)当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,根据所述网络传输质量,在所述主叫侧设备支持的媒体能力中,将媒体能力占用带宽与所述被叫侧设备在通话路径上的网络传输质量匹配的媒体能力调整到首选。(2) when the media capability supported by the calling device includes media capabilities of multiple types of media encoding and decoding, according to the network transmission quality, the media capability is occupied by the media capability supported by the calling device The media capability of the bandwidth matching the network transmission quality of the called side device on the call path is adjusted to the preferred.
(3)当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,根据所述被叫侧设备在通话路径上的网络传输质量,在所述主叫侧设备支持的媒体能力中,将与所述网络传输质量不匹配的媒体能力过滤。(3) when the media capability supported by the calling side device includes media capabilities of multiple types of media codecs, according to the network transmission quality of the called side device on the call path, supported by the calling side device In the media capabilities, media capabilities that do not match the quality of the network transmission are filtered.
(4)当所述主叫侧设备支持的媒体能力包括同一类型媒体编解码的多种速率集合时,根据所述网络传输质量与速率模式的对应关系,在所述主叫侧设备支持的媒体能力中,选择与所述被叫侧设备在通话路径上的网络传输质量相匹配的速率模式集合,所述速率模式集合中包括至少一种速率模式。(4) When the media capability supported by the calling side device includes multiple rate sets of the same type of media codec, according to the correspondence between the network transmission quality and the rate mode, the media supported by the calling side device In the capability, a set of rate patterns matching the network transmission quality of the called side device on the call path is selected, and the rate mode set includes at least one rate mode.
上述具体修改呼叫请求中的SDP参数的详细过程参照图3所示实施例中的具体过程,此处不再赘述。The detailed process of the above-mentioned specific modification of the SDP parameters in the call request refers to the specific process in the embodiment shown in FIG. 3, and details are not described herein again.
当上述所述被叫侧设备在通话路径上的媒体传输状态还可以包括所述其中之一的接入方式时,如Wi-Fi接入方式、LTE接入方式等。 When the media transmission state of the called side device on the call path may further include one of the access modes, such as a Wi-Fi access mode, an LTE access mode, or the like.
此时,所述呼叫控制网元根据所述主叫侧设备在通话路径上的媒体传输状态,选择与所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力包括:At this time, the preferred media capability that the call control network element selects to match the media transmission state of the calling side device on the call path according to the media transmission status of the calling side device on the call path includes:
所述呼叫控制网元在所述其中之一的接入方式为Wi-Fi的接入方式,且所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力。The anti-dropping media capability of the call control network element when the access mode of the one of the access modes is a Wi-Fi access mode, and the calling side device supports the anti-drop packet media capability Select preferred media capabilities.
404、呼叫控制网元将呼叫请求中的主叫侧设备支持的媒体能力更新为优选媒体能力;404. The call control network element updates the media capability supported by the calling side device in the call request to a preferred media capability.
呼叫控制网元将接收到的呼叫请求中的主叫侧设备支持的媒体能力调整为上述确定的优选媒体能力,如主叫侧设备支持的媒体能力为G.711和G.729、iLBC编解码的音频媒体能力,根据获取的网络传输质量(如丢包率不高,传输带宽使用iLBC编解码)确定的优选媒体能力为G.711、G.729的音频媒体能力,则将呼叫请求中的媒体能力调整为G.711、G.729编解码的优选媒体能力。The call control network element adjusts the media capability supported by the calling side device in the received call request to the determined preferred media capability, for example, the media capability supported by the calling side device is G.711 and G.729, iLBC codec. The audio media capability, according to the obtained network transmission quality (such as the packet loss rate is not high, the transmission bandwidth uses the iLBC codec), the preferred media capability is the audio media capability of G.711, G.729, and the call request is The media capability is adjusted to the preferred media capabilities of the G.711, G.729 codec.
405、呼叫控制网元向被叫侧设备转发所述更新媒体能力后的呼叫请求;405. The call control network element forwards the call request after updating the media capability to the called side device.
呼叫控制网元在更新呼叫请求中的媒体能力后,向所述被叫侧设备转发所述更新媒体能力后的呼叫请求,以使得被叫侧设备根据更新媒体能力后的呼叫请求中的优选媒体能力选择会话媒体能力,并向呼叫控制网元返回呼叫响应,所述呼叫响应携带所述被叫侧设备根据所述优选媒体能力选择的会话媒体能力,如被叫侧设备自身也支持G.711、G.729的优选媒体能力,则可以在其中选择一个会话媒体能力,如G.711,并向呼叫控制网元返回呼叫响应,所述呼叫响应中包括会话媒体能力;After updating the media capability in the call request, the call control network element forwards the call request after updating the media capability to the called side device, so that the called side device according to the preferred media in the call request after updating the media capability The capability selects the session media capability, and returns a call response to the call control network element, where the call response carries the session media capability selected by the called side device according to the preferred media capability, for example, the called side device itself also supports G.711. The preferred media capability of G.729 may select a session media capability, such as G.711, and return a call response to the call control network element, where the call response includes session media capabilities;
406、呼叫控制网元向所述主叫侧设备发送应答;406. The call control network element sends a response to the calling side device.
本实施例中,呼叫控制网元接收到被叫侧设备返回的呼叫响应后,向所述主叫侧设备发送应答,步骤402中呼叫控制网元获取主叫侧设备和被叫侧设备其中之一在通话路径上的媒体传输状态,主叫侧设备也使用被叫侧设备确定的所述会话媒体能力,此时,所述应答中可以携带所述被叫侧设备确定的会话媒体能力;In this embodiment, after receiving the call response returned by the called side device, the call control network element sends a response to the calling side device. In step 402, the call control network element obtains the calling side device and the called side device. a media transmission state on the call path, the calling side device also uses the session media capability determined by the called side device, and the response may carry the session media capability determined by the called side device;
在实际应用中,当呼叫控制网元获取所述主叫侧设备和所述被叫侧设 备在通话路径上的媒体传输状态时,主叫侧设备可以使用自身确定的媒体能力作为会话时的媒体能力时,此时,所述应答中可以携带所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力,此处不做限定,这样呼叫控制网元就完成了主叫侧设备和被叫侧设备媒体能力的选择,会话就可以基于主叫侧设备和被叫侧设备各自选择的媒体能力进行会话,此处不作限定。In a practical application, when the call control network element acquires the calling side device and the called side device When the media side of the call is in the media transmission state, the calling device can use the media capability determined by itself as the media capability of the session. In this case, the response can carry the calling device on the call path. The preferred media capability that matches the media transmission status is not limited herein, so that the call control network element completes the selection of the media capabilities of the calling side device and the called side device, and the session can be based on the calling side device and the called side. The media capabilities selected by the devices are used for the session, which is not limited herein.
图4所示的实施例中,呼叫控制网元还可以基于主被叫媒体传输路径的状态分别为主被叫选择媒体能力数,以更精细化的控制不同媒体传输路径上所使用的媒体能力,请参阅图5,本发明实施例中确定媒体能力的方法的另一个实施例包括:In the embodiment shown in FIG. 4, the call control network element may also select the media capability number for the primary called party based on the status of the primary and the called media transmission path, to more finely control the media capabilities used on different media transmission paths. Referring to FIG. 5, another embodiment of a method for determining media capabilities in an embodiment of the present invention includes:
501、呼叫控制网元接收主叫侧设备的呼叫请求;501. The call control network element receives a call request of the calling side device.
一般来讲,为了实现尽可能多的媒体互通,发起呼叫方可以携带多种媒体能力,即可以将自身支持的媒体能力全部放在呼叫请求中,如可以携带语音和视频,并且语音和视频中还可以携带多种媒体编解码能力,如同时包括音频媒体能力AMR和AMR-WB,或者同时包括媒体编解码为G.711编解码、G.729编解码、iLBC编解码的音频媒体能力,在会话建立前,主叫侧设备会向呼叫控制网元发送呼叫请求,所述呼叫请求中包括所述主叫侧设备支持的媒体能力。Generally speaking, in order to achieve as much media intercommunication as possible, the originating caller can carry multiple media capabilities, that is, all the media capabilities supported by the caller can be placed in the call request, such as voice and video, and voice and video. Can also carry a variety of media encoding and decoding capabilities, such as including audio media capabilities AMR and AMR-WB, or both media codec for G.711 codec, G.729 codec, iLBC codec audio media capabilities, in Before the session is established, the calling side device sends a call request to the call control network element, where the call request includes the media capability supported by the calling side device.
502、呼叫控制网元获取主叫侧设备和被叫侧设备在通话路径上的媒体传输状态;502. The call control network element acquires a media transmission status of the calling side device and the called side device on the call path.
本实施例中,以呼叫控制网元获取主叫侧设备和被叫侧设备在通话路径上的媒体传输状态为例,在实际应用中,呼叫控制网元可以仅仅获取主叫侧设备在通话路径上的媒体传输状态,也可以仅仅获取被叫侧设备在通话路径上的媒体传输状态,此处不作限定。In this embodiment, the call control network element obtains the media transmission status of the calling side device and the called side device on the call path as an example. In an actual application, the call control network element may only obtain the calling path of the calling side device. The state of the media transmission on the device can also be used to obtain only the media transmission status of the called device on the call path, which is not limited herein.
在VOLTE场景下,主叫侧设备、被叫侧设备在通话路径上的媒体传输状态可以是主叫侧设备、被叫侧设备所在无线空口的信号状态,根据无线空口的信号状态可以知道可以支持的传输带宽;In the VOLTE scenario, the media transmission status of the calling side device and the called side device on the call path may be the signal state of the wireless air interface where the calling side device and the called side device are located, and can be known according to the signal state of the wireless air interface. Transmission bandwidth
本实施例中,主叫侧设备、被叫侧设备在通话路径上的媒体传输状态也是主叫侧设备、被叫侧设备在通话路径上的网络传输质量,对呼叫控制网元,其可以对接很多网络,也可以对接很多设备,但不管怎么对接都是 基于IP地址来进行通信的,因此呼叫控制网元可以基于IP地址对儿的方式对每个IP地址对儿上的网络传输质量进行实时的统计,该统计可以是对每个地址对儿上所有用户或者部分抽样用户已有业务的统计,IP地址对儿是两个设备IP地址之间的通话路径,呼叫控制网元在会话建立之前,可以获取主叫侧设备、被叫侧设备在通话路径上(IP地址对儿上)的统计的网络传输质量。所述网络传输质量可以包括丢包率、时延、抖动及MOS值等,此处不作限定。In this embodiment, the media transmission status of the calling side device and the called side device on the call path is also the network transmission quality of the calling side device and the called side device on the call path, and the call control network element can be docked. Many networks can also dock many devices, but no matter how they are connected The communication is performed based on the IP address, so the call control network element can perform real-time statistics on the network transmission quality of each IP address pair on the basis of the IP address pair, and the statistics can be all for each address pair. The user or part of the sampled user has the statistics of the service. The IP address pair is the call path between the IP addresses of the two devices. Before the session is established, the call control network element can obtain the call path of the calling side device and the called side device. The quality of the network transmission on the (IP address pair). The network transmission quality may include a packet loss rate, a delay, a jitter, and a MOS value, which are not limited herein.
由于不同的媒体承载方式下其媒体传输状态也可能不一样,比如LTE接入方式下,是有最小带宽保证的,即GBR(Guranteed Bit Rate)保证,但是Wi-Fi接入方式下,所有接入该Wi-Fi节点的用户设备的带宽都是抢占式的,因此如果是Wi-Fi接入方式,那么意味着该用户设备的媒体传输路径的丢包或者延时、抖动值会较大,这时应该选择抗丢包的媒体能力,因此,主叫侧设备、被叫侧设备在通话路径上的媒体传输状态还可以是主叫侧设备、被叫侧设备的接入方式,如Wi-Fi接入方式、LTE接入方式等。The media transmission status may be different under different media bearer modes. For example, in the LTE access mode, there is a minimum bandwidth guarantee, that is, GBR (Guranteed Bit Rate) guarantee, but in the Wi-Fi access mode, all connections are made. The bandwidth of the user equipment entering the Wi-Fi node is preemptive. Therefore, if it is a Wi-Fi access mode, it means that the packet loss or delay and jitter value of the media transmission path of the user equipment is large. In this case, the media capability of the anti-drop packet should be selected. Therefore, the media transmission status of the calling side device and the called side device on the call path may also be the access mode of the calling side device or the called side device, such as Wi- Fi access mode, LTE access mode, and the like.
503、呼叫控制网元根据被叫侧设备在通话路径上的媒体传输状态,选择与被叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力;503. The call control network element selects a preferred media capability that matches a media transmission state of the called side device on the call path according to a media transmission state of the called side device on the call path.
本实施例中,呼叫控制网元根据所述被叫侧设备在通话路径上的媒体传输状态,选择与所述被叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力包括:In this embodiment, the preferred media capability that the call control network element selects to match the media transmission status of the called side device on the call path according to the media transmission status of the called side device on the call path includes:
呼叫控制网元判断所述被叫侧设备在通话路径上的网络传输质量是否满足预置的网络传输质量条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述被叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力;The call control network element determines whether the network transmission quality of the called side device on the call path meets a preset network transmission quality condition, and if yes, selects the media capability supported by the calling side device as the preferred media capability, If not, selecting, among the media capabilities supported by the calling side device, a preferred media capability that matches the network transmission quality of the called side device on the call path;
例如,当主叫侧设备支持的音频媒体能力中包含了三种音频媒体能力,特点分别如下:For example, when the audio media capabilities supported by the calling side device include three audio media capabilities, the features are as follows:
G.711编解码:特点是编码质量好,在不丢包的情况下用户会获得更好的语音质量,但是媒体传输带宽相对较大。G.711 codec: The feature is that the encoding quality is good, and the user will get better voice quality without packet loss, but the media transmission bandwidth is relatively large.
G.729编解码:编码质量不如G.711,但是媒体传输带宽相对较小。G.729 codec: The encoding quality is not as good as G.711, but the media transmission bandwidth is relatively small.
iLBC编解码:编码质量与与G.729类似,带宽稍高于G.729小于G.711, 但是抗丢包能力较强。iLBC codec: The encoding quality is similar to that of G.729, and the bandwidth is slightly higher than G.729 and smaller than G.711. However, the ability to resist packet loss is strong.
假设这三种媒体能力均可以用于当前的媒体会话,但是必须仅选择一种,如果按照基本的流程,假设G.729编解码是首选,所以不做特殊控制的话被叫侧设备选择的媒体编解码就是G.729,但是这样选择可能并不是最佳选择,假设根据获取的被叫侧设备网络传输质量,知道被叫侧设备在该通话路径(媒体传输路径)上的丢包率高,由于iLBC编解码抗丢包能力较强,这时,使用iLBC编解码就更为合适,此时,iLBC编解码的媒体能力即为与所述被叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力。Assume that all three media capabilities can be used for the current media session, but only one must be selected. If the G.729 codec is preferred according to the basic process, the media selected by the called device is not used for special control. The codec is G.729, but this choice may not be the best choice. It is assumed that the packet loss rate of the called side device on the call path (media transmission path) is high according to the acquired network transmission quality of the called side device. Since the iLBC codec is more resistant to packet loss, the iLBC codec is more suitable. In this case, the media capability of the iLBC codec is the quality of the network transmission on the call path of the called device. Matching preferred media capabilities.
如表2所示,同样的,根据时延长短、抖动大小及MOS值等网络传输质量指标也可以来选择优选媒体能力,还可以是上述网络传输质量指标中一种或多种的结合,此处不作限定。As shown in Table 2, similarly, the network transmission quality indicator such as the time extension length, the jitter size, and the MOS value may also select a preferred media capability, or may be a combination of one or more of the above network transmission quality indicators. There is no limit.
本实施例中,所述呼叫控制网元选择与被叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力包括:In this embodiment, the preferred media capability that the call control network element selects to match the network transmission quality of the called side device on the call path includes:
当所述网络传输质量包括丢包率时,所述呼叫控制网元判断所述丢包率值是否小于预置的丢包率值,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述丢包率值相匹配的优选媒体能力;When the network transmission quality includes a packet loss rate, the call control network element determines whether the packet loss rate value is less than a preset packet loss rate value, and if yes, selects a media capability supported by the calling side device as And the preferred media capability, if not, selecting a preferred media capability that matches the packet loss rate value among the media capabilities supported by the calling side device;
或,or,
当所述网络传输质量包括时延值时,所述呼叫控制网元判断所述时延值是否小于预置的时延值,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述时延值相匹配的优选媒体能力;When the network transmission quality includes a delay value, the call control network element determines whether the delay value is less than a preset delay value, and if yes, selecting a media capability supported by the calling side device as the Optimizing the media capability, if not, selecting a preferred media capability that matches the delay value among the media capabilities supported by the calling side device;
或,or,
当所述网络传输质量包括抖动值时,所述呼叫控制网元判断所述抖动值是否小于预置的第一阈值,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述抖动值相匹配的优选媒体能力;When the network transmission quality includes a jitter value, the call control network element determines whether the jitter value is less than a preset first threshold, and if yes, selects a media capability supported by the calling side device as the preferred media. Capability, if not, selecting a preferred media capability that matches the jitter value among media capabilities supported by the calling side device;
或,or,
当所述网络传输质量包括MOS值时,所述呼叫控制网元判断所述MOS值是否大于第二阈值,若是,则选择所述主叫侧设备支持的媒体能力 为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述MOS值相匹配的优选媒体能力。When the network transmission quality includes a MOS value, the call control network element determines whether the MOS value is greater than a second threshold, and if yes, selects a media capability supported by the calling side device For the preferred media capability, if not, selecting a preferred media capability that matches the MOS value among the media capabilities supported by the calling side device.
当网络传输质量包括丢包率、时延、抖动及MOS值中一种时,可以根据上述判断各项指标是否符合要求,在判断结果为是的时候(如丢包率小于预置的丢包率值、抖动小于预置的第一阈值、时延小于预置的时延长度、MOS值大于第二阈值),确定所述网络传输质量符合预置的网络传输质量条件,选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,在判断结果为否的时候,则在所述主叫侧设备支持的媒体能力中,选择与所述网络传输质量(丢包率、时延、抖动、MOS值)相匹配的优选媒体能力。When the network transmission quality includes one of the packet loss rate, the delay, the jitter, and the MOS value, it may be determined according to the foregoing whether the indicators meet the requirements, and when the judgment result is yes (for example, the packet loss rate is less than the preset packet loss) The rate value, the jitter is less than the preset first threshold, the delay is less than the preset time extension, and the MOS value is greater than the second threshold. The network transmission quality is determined to meet the preset network transmission quality condition, and the calling party is selected. The media capability supported by the side device is the preferred media capability. When the determination result is no, the media transmission quality (the packet loss rate, the delay, and the packet loss rate) are selected among the media capabilities supported by the calling device. Preferred media capabilities that match jitter, MOS values).
当网络传输质量包括丢包率、时延、抖动及MOS值中多种时,当这多种指标均满足要求(如丢包率小于预置的丢包率值、抖动小于预置的第一阈值、时延小于预置的时延长度、MOS值大于第二阈值)时,确定所述网络传输质量符合预置的网络传输质量条件,选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,当这包含的多种指标只有部分满足,部分不满足,或全部不满足时,则可以根据所述各项指标的是否满足的具体情况选择相匹配的优选媒体能力,例如,假设丢包率大于预置的丢包率值(不满足要求),而其他指标均满足要求,由于iLBC编解码抗丢包能力较强,这时,选择的优选媒体能力中优先选择iLBC编解码的就更为合适,如将iLBC编解码调整到首选,或将其他编解码过滤掉。When the network transmission quality includes multiple types of packet loss rate, delay, jitter, and MOS value, when these multiple indicators meet the requirements (such as the packet loss rate is less than the preset packet loss rate value, the jitter is less than the preset first). When the threshold, the delay is less than the preset time extension, and the MOS value is greater than the second threshold, determining that the network transmission quality meets a preset network transmission quality condition, and selecting a media capability supported by the calling side device is the Preferably, the media capability, when the plurality of indicators included in the plurality of indicators are only partially satisfied, partially not satisfied, or all are not satisfied, may select a matching preferred media capability according to whether the indicators meet the specific conditions, for example, assuming The packet loss rate is greater than the preset packet loss rate (not satisfied), and other indicators meet the requirements. Because the iLBC codec has strong anti-drop capability, the selected preferred media capability is preferred to the iLBC codec. It is more appropriate, such as adjusting the iLBC codec to the preferred one, or filtering out other codecs.
在网络传输质量不符合预置的网络传输质量条件时,在所述主叫侧设备支持的媒体能力中,选择与所述被叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力可以采用如图3所示的一种或多种方式修改呼叫请求中的SDP参数:When the network transmission quality does not meet the preset network transmission quality condition, among the media capabilities supported by the calling side device, selecting a preferred media capability that matches the network transmission quality of the called side device on the call path The SDP parameters in the call request can be modified in one or more ways as shown in Figure 3:
(1)在主叫侧设备支持的媒体能力中包含音频媒体能力和视频媒体能力时,将视频媒体能力过滤。(1) When the audio media capability and the video media capability are included in the media capabilities supported by the calling side device, the video media capabilities are filtered.
(2)当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,根据所述网络传输质量,在所述主叫侧设备支持的媒体能力中,将媒体能力占用带宽与所述被叫侧设备在通话路径上的网络传输质量匹配的媒体能力调整到首选。(2) when the media capability supported by the calling device includes media capabilities of multiple types of media encoding and decoding, according to the network transmission quality, the media capability is occupied by the media capability supported by the calling device The media capability of the bandwidth matching the network transmission quality of the called side device on the call path is adjusted to the preferred.
(3)当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒 体能力时,根据所述被叫侧设备在通话路径上的网络传输质量,在所述主叫侧设备支持的媒体能力中,将与所述网络传输质量不匹配的媒体能力过滤。(3) When the media capability supported by the calling side device includes multiple types of media codec media In the physical capability, according to the network transmission quality of the called side device on the call path, media capabilities that do not match the network transmission quality are filtered in the media capabilities supported by the calling side device.
(4)当所述主叫侧设备支持的媒体能力包括同一类型媒体编解码的多种速率集合时,根据所述网络传输质量与速率模式的对应关系,在所述主叫侧设备支持的媒体能力中,选择与所述被叫侧设备在通话路径上的网络传输质量相匹配的速率模式集合,所述速率模式集合中包括至少一种速率模式。(4) When the media capability supported by the calling side device includes multiple rate sets of the same type of media codec, according to the correspondence between the network transmission quality and the rate mode, the media supported by the calling side device In the capability, a set of rate patterns matching the network transmission quality of the called side device on the call path is selected, and the rate mode set includes at least one rate mode.
上述具体修改呼叫请求中的SDP参数的详细过程参照图3所示实施例中的具体过程,此处不再赘述。The detailed process of the above-mentioned specific modification of the SDP parameters in the call request refers to the specific process in the embodiment shown in FIG. 3, and details are not described herein again.
当上述所述被叫侧设备在通话路径上的媒体传输状态还可以包括所述其中之一的接入方式时,如Wi-Fi接入方式、LTE接入方式等。When the media transmission state of the called side device on the call path may further include one of the access modes, such as a Wi-Fi access mode, an LTE access mode, or the like.
此时,所述呼叫控制网元根据所述主叫侧设备在通话路径上的媒体传输状态,选择与所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力包括:At this time, the preferred media capability that the call control network element selects to match the media transmission state of the calling side device on the call path according to the media transmission status of the calling side device on the call path includes:
所述呼叫控制网元在所述其中之一的接入方式为Wi-Fi的接入方式,且所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力。The anti-dropping media capability of the call control network element when the access mode of the one of the access modes is a Wi-Fi access mode, and the calling side device supports the anti-drop packet media capability Select preferred media capabilities.
504、呼叫控制网元将呼叫请求中的主叫侧设备支持的媒体能力更新为优选媒体能力;504. The call control network element updates the media capability supported by the calling side device in the call request to a preferred media capability.
呼叫控制网元将接收到的呼叫请求中的主叫侧设备支持的媒体能力调整为上述确定的优选媒体能力,如主叫侧设备支持的媒体能力为G.711和G.729、iLBC编解码的音频媒体能力,根据获取的网络传输质量(如丢包率不高,传输带宽使用iLBC编解码)确定的优选媒体能力为G.711、G.729的音频媒体能力,则将呼叫请求中的媒体能力调整为G.711、G.729编解码的优选媒体能力。The call control network element adjusts the media capability supported by the calling side device in the received call request to the determined preferred media capability, for example, the media capability supported by the calling side device is G.711 and G.729, iLBC codec. The audio media capability, according to the obtained network transmission quality (such as the packet loss rate is not high, the transmission bandwidth uses the iLBC codec), the preferred media capability is the audio media capability of G.711, G.729, and the call request is The media capability is adjusted to the preferred media capabilities of the G.711, G.729 codec.
505、呼叫控制网元向被叫侧设备转发所述更新媒体能力后的呼叫请求;505. The call control network element forwards the call request after updating the media capability to the called side device.
呼叫控制网元在更新呼叫请求中的媒体能力后,向所述被叫侧设备转发所述更新媒体能力后的呼叫请求,以使得被叫侧设备根据更新媒体能力 后的呼叫请求中的优选媒体能力选择会话媒体能力,并向呼叫控制网元返回呼叫响应,所述呼叫响应携带所述被叫侧设备根据所述优选媒体能力选择的会话媒体能力,如被叫侧设备自身也支持G.711、G.729的优选媒体能力,则可以在其中选择一个会话媒体能力,如G.711,并向呼叫控制网元返回呼叫响应,所述呼叫响应中包括会话媒体能力;After updating the media capability in the call request, the call control network element forwards the call request after updating the media capability to the called side device, so that the called side device according to the updated media capability The preferred media capability in the subsequent call request selects the session media capability and returns a call response to the call control network element, the call response carrying the session media capabilities selected by the called side device according to the preferred media capability, such as called The side device itself also supports the preferred media capabilities of G.711 and G.729, and then a session media capability, such as G.711, can be selected and a call response is returned to the call control network element, where the call response includes session media. ability;
506、呼叫控制网元根据主叫侧设备在通话路径上的媒体传输状态,选择与主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力;506. The call control network element selects a preferred media capability that matches a media transmission state of the calling side device on the call path according to a media transmission state of the calling side device on the call path.
本实施例中,呼叫控制网元根据主叫侧设备在通话路径上的媒体传输状态,选择与主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力包括:In this embodiment, the preferred media capability that the call control network element selects to match the media transmission status of the calling side device on the call path according to the media transmission status of the calling side device on the call path includes:
呼叫控制网元判断主叫侧设备在通话路径上的网络传输质量是否满足预置的网络传输质量条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述主叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力。The call control network element determines whether the network transmission quality of the calling side device on the call path satisfies the preset network transmission quality condition, and if so, selects the media capability supported by the calling side device as the preferred media capability, and if not And selecting, among the media capabilities supported by the calling side device, a preferred media capability that matches the network transmission quality of the calling side device on the call path.
本实施例总,呼叫控制网元根据主叫侧设备在通话路径上的媒体传输状态,选择与主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力,与步骤403中的实现方式类似,此处不再赘述。In this embodiment, the call control network element selects a preferred media capability that matches the media transmission state of the calling side device on the call path according to the media transmission status of the calling side device on the call path, and implements in step 403. The method is similar and will not be described here.
507、呼叫控制网元向所述主叫侧设备发送应答;507. The call control network element sends a response to the calling side device.
呼叫控制网元在确定与主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力后,向所述主叫侧设备发送应答,所述应答中携带所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力,以使得所述主叫侧设备根据此优选媒体能力,选择自身与被叫侧设备进行会话时的媒体能力,这样呼叫控制网元就完成了主叫侧设备和被叫侧设备媒体能力的选择,会话就可以基于主叫侧设备和被叫侧设备各自选择的媒体能力进行会话。After the call control network element determines the preferred media capability that matches the media transmission status of the calling side device on the call path, the call control network element sends a response to the calling side device, where the response carries the calling side device in the call. The media transmission status on the path matches the preferred media capability, so that the calling side device selects the media capability when the session is performed with the called side device according to the preferred media capability, so that the call control network element completes the main By selecting the media capabilities of the side device and the called side device, the session can be based on the media capabilities selected by the calling side device and the called side device.
本发明实施例中,呼叫控制网元在接收主叫侧设备的呼叫请求后,根据获取的主叫侧设备和被叫侧设备中至少之一在通话路径上的媒体传输状态,确定一个优选媒体能力,使得被叫侧设备从优选媒体能力中选择一个会话媒体能力,由于选择的会话媒体能力是从媒体传输状态确定的优选 媒体能力中选择出来的,与当前会话的媒体传输状态匹配,提高了会话质量,用户体验佳;In the embodiment of the present invention, after receiving the call request of the calling side device, the call control network element determines a preferred media according to the media transmission status of the at least one of the obtained calling side device and the called side device on the call path. Capability, enabling the called side device to select a session media capability from the preferred media capabilities, since the selected session media capability is a preference determined from the media transmission state The media capability is selected to match the media transmission status of the current session, which improves the session quality and the user experience is good;
其次,根据主叫侧设备和被叫侧设备在通话路径上的媒体传输状态,分别确定主叫侧设备、被叫侧设备进行会话的优选媒体能力,这样不同路径分别处理,还可以避免一侧媒体传输状态无法获取而整个会话媒体能力无法进行优化的情况。Secondly, according to the media transmission status of the calling side device and the called side device on the call path, the preferred media capabilities of the calling side device and the called side device for the session are respectively determined, so that different paths are processed separately, and one side can be avoided. The situation where the media transfer status is not available and the entire session media capability cannot be optimized.
需要说明的是,上述各方法实施例中,均以音频媒体能力举例作出说明,可以理解的是,视频媒体能力同样适用于上述各方法实施例,此处不作限定。It should be noted that, in the foregoing method embodiments, the audio media capability is used as an example for illustration. It is to be understood that the video media capability is also applicable to the foregoing method embodiments, which are not limited herein.
下面介绍本发明实施例中的呼叫控制网元实施例,请参阅图6,本发明实施例中的呼叫控制网元一个实施例包括:The following describes an embodiment of the call control network element in the embodiment of the present invention. Referring to FIG. 6, an embodiment of the call control network element in the embodiment of the present invention includes:
接收单元601,用于接收主叫侧设备的呼叫请求;The receiving unit 601 is configured to receive a call request of the calling side device;
处理单元602,用于获取主叫侧设备和被叫侧设备中至少之一在通话路径上的媒体传输状态;The processing unit 602 is configured to obtain a media transmission status of at least one of the calling side device and the called side device on the call path.
所述处理单元602还用于根据获取的所述媒体传输状态,确定所述主叫侧设备和所述被叫侧设备之间建立会话时的媒体能力。The processing unit 602 is further configured to determine, according to the acquired media transmission status, a media capability when establishing a session between the calling side device and the called side device.
本实施例中,呼叫控制网元的处理单元602根据获取的所述主叫侧设备和被叫侧设备在通话路径的媒体传输状态,来确定所述主叫侧设备和所述被叫侧设备之间建立会话时的媒体能力,由于选择的会话媒体能力根据媒体传输状态确定的,与当前会话的媒体传输状态匹配,提高了会话质量,用户体验佳。In this embodiment, the processing unit 602 of the call control network element determines the calling side device and the called side device according to the acquired media transmission status of the calling side device and the called side device in the call path. The media capability between the establishment of the session is improved. The selected session media capability is determined according to the media transmission status, and matches the media transmission status of the current session, thereby improving the session quality and the user experience is good.
可选的,所述处理单元602还可以用于:Optionally, the processing unit 602 is further configured to:
在所述呼叫请求中包括所述主叫侧设备支持的媒体能力时,根据所述媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力;When the media capability supported by the calling side device is included in the call request, selecting a preferred media capability that matches the media transmission state according to the media transmission state;
将所述呼叫请求中的所述主叫侧设备支持的媒体能力更新为所述优选媒体能力;Updating the media capability supported by the calling side device in the call request to the preferred media capability;
可选的,所述呼叫控制网元还包括:Optionally, the call control network element further includes:
发送单元603,用于向所述被叫侧设备转发更新媒体能力后的呼叫请求;The sending unit 603 is configured to forward, to the called side device, a call request after updating the media capability;
则所述接收单元601还用于接收所述被叫侧设备返回的呼叫响应,所 述呼叫响应携带所述被叫侧设备根据所述优选媒体能力选择的会话媒体能力;The receiving unit 601 is further configured to receive a call response returned by the called side device, where The call response carries the session media capability selected by the called side device according to the preferred media capability;
则所述发送单元603还用于向所述主叫侧设备发送应答。The sending unit 603 is further configured to send a response to the calling side device.
可选的,所述处理单元602具体用于:Optionally, the processing unit 602 is specifically configured to:
获取主叫侧设备和被叫侧设备其中之一在通话路径上的媒体传输状态;Obtaining a media transmission status of one of the calling side device and the called side device on the call path;
根据所述其中之一在通话路径上的媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力;Selecting a preferred media capability that matches the media transmission state according to a media transmission status of one of the ones on the call path;
则所述发送单元603具体用于向所述主叫侧设备发送所述应答,所述应答中携带所述会话媒体能力。The sending unit 603 is specifically configured to send the response to the calling side device, where the response carries the session media capability.
可选的,所述处理单元602具体用于在所述其中之一在通话路径上的媒体传输状态包括所述其中之一所在无线空口的信号状态时,判断所述信号状态是否满足预置的信号状态条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择占用带宽低的媒体能力为所述优选媒体能力。Optionally, the processing unit 602 is configured to determine whether the signal state meets a preset state when a media transmission state of the one of the call paths includes a signal state of the wireless air interface. a signal state condition, if yes, selecting a media capability supported by the calling side device as the preferred media capability, and if not, selecting a media capability with a low occupied bandwidth among the media capabilities supported by the calling side device The preferred media capabilities.
可选的,所述处理单元602具体用于在所述主叫侧设备支持的媒体能力中包含音频媒体能力和视频媒体能力时,将所述视频媒体能力过滤。Optionally, the processing unit 602 is specifically configured to: when the audio media capability and the video media capability are included in the media capability supported by the calling side device, filter the video media capability.
可选的,所述处理单元602具体用于:Optionally, the processing unit 602 is specifically configured to:
当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,根据预置的信号状态与媒体能力的对应关系,在所述主叫侧设备支持的媒体能力中,将与所述信号状态匹配的媒体能力调整到首选,When the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, in the media capability supported by the calling side device, The media capabilities that match the signal state are adjusted to preferred,
或,or,
当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,根据预置的信号状态与媒体能力的对应关系,在所述主叫侧设备支持的媒体能力中,将与所述信号状态不匹配的媒体能力过滤,When the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, in the media capability supported by the calling side device, Media capability filtering that does not match the signal state,
或,or,
当所述主叫侧设备支持的媒体能力包括同一类型媒体编解码的多种速率集合时,根据预置的信号状态与速率模式的对应关系,在所述主叫侧设备支持的媒体能力中,选择与所述信号状态相匹配的速率模式集合,所述速率模式集合中包括至少一种速率模式。 When the media capabilities supported by the calling side device include multiple rate sets of the same type of media codec, according to the corresponding relationship between the preset signal state and the rate mode, among the media capabilities supported by the calling side device, A set of rate patterns is selected that match the state of the signal, the set of rate patterns including at least one rate pattern.
可选的,所述处理单元602具体用于当所述其中之一在通话路径上的媒体传输状态包括所述其中之一的接入方式,且在所述其中之一的接入方式为Wi-Fi的接入方式,所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力。Optionally, the processing unit 602 is specifically configured to: when the one of the media transmission states on the call path includes the access mode of the one of the ones, and the access mode of the one of the ones is Wi In the access mode of the Fi, when the calling side device supports the anti-drop packet media capability, the preferred media capability is selected among the anti-lost media capabilities.
可选的,所述处理单元602具体用于:Optionally, the processing unit 602 is specifically configured to:
获取所述主叫侧设备和所述被叫侧设备在通话路径上的媒体传输状态;Obtaining a media transmission status of the calling side device and the called side device on a call path;
根据所述被叫侧设备在通话路径上的媒体传输状态,选择与所述被叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力;Determining, according to the media transmission status of the called side device on the call path, a preferred media capability that matches the media transmission status of the called side device on the call path;
所述处理单元602还用于根据所述主叫侧设备在通话路径上的媒体传输状态,选择与所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力;The processing unit 602 is further configured to: select, according to a media transmission status of the calling side device on a call path, a preferred media capability that matches a media transmission state of the calling side device on a call path;
则所述发送单元603具体用于向所述主叫侧设备发送所述应答,所述应答中携带所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力。The sending unit 603 is specifically configured to send the response to the calling side device, where the response carries a preferred media capability that matches the media transmission status of the calling side device on the call path.
可选的,所述处理单元602具体用于:Optionally, the processing unit 602 is specifically configured to:
获取所述主叫侧设备和所述被叫侧设备在通话路径上的网络传输质量;Obtaining network transmission quality of the calling side device and the called side device on a call path;
判断所述被叫侧设备在通话路径上的网络传输质量是否满足预置的网络传输质量条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述被叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力;Determining whether the network transmission quality of the called side device on the call path meets a preset network transmission quality condition, and if yes, selecting the media capability supported by the calling side device as the preferred media capability, and if not, Selecting, among the media capabilities supported by the calling side device, a preferred media capability that matches the network transmission quality of the called side device on the call path;
所述处理单元602具体还用于判断所述主叫侧设备在通话路径上的网络传输质量是否满足预置的网络传输质量条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述主叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力。The processing unit 602 is further configured to determine whether the network transmission quality of the calling side device on the call path meets a preset network transmission quality condition, and if yes, select the media capability supported by the calling side device as a location. The preferred media capability, if not, selects a preferred media capability that matches the network transmission quality of the calling side device on the call path among the media capabilities supported by the calling side device.
可选的,所述处理单元602具体用于:Optionally, the processing unit 602 is specifically configured to:
获取所述主叫侧设备和所述被叫侧设备的接入方式;Obtaining an access mode of the calling side device and the called side device;
在所述被叫侧设备的接入方式为Wi-Fi的接入方式,且所述主叫侧设 备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力;The access mode of the called side device is a Wi-Fi access mode, and the calling side is set. When the media capability against packet loss is supported, the preferred media capability is selected among the anti-lost media capabilities;
所述处理单元602具体还用于在所述主叫侧设备的接入方式为Wi-Fi的接入方式,且所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力。The processing unit 602 is further configured to: when the access mode of the calling side device is a Wi-Fi access mode, and the calling side device supports the media capability against packet loss, The preferred media capabilities are selected among the media capabilities of the package.
上面从单元化功能实体的角度对本发明实施例中的呼叫控制网元进行了描述,下面从硬件处理的角度对本发明实施例中的呼叫控制网元进行描述,请参阅图7,本发明实施例中的呼叫控制网元包括:接收器701、发送器702和处理器703(可以有一个或多个)。The call control network element in the embodiment of the present invention is described above from the perspective of a unitized functional entity. The following describes the call control network element in the embodiment of the present invention from the perspective of hardware processing. Referring to FIG. 7, the embodiment of the present invention is described. The call control network element in the middle includes: a receiver 701, a transmitter 702, and a processor 703 (which may have one or more).
本发明实施例涉及的终端可以具有比图7所示出的更多或更少的部件,可以组合两个或更多个部件,或者可以具有不同的部件配置或设置,各个部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件或硬件和软件的组合实现。The terminal according to the embodiment of the present invention may have more or less components than those shown in FIG. 7, may combine two or more components, or may have different component configurations or settings, and each component may include one Hardware, software, or a combination of hardware and software, including multiple signal processing and/or application specific integrated circuits.
所述接收器701用于执行如下操作:The receiver 701 is configured to perform the following operations:
接收主叫侧设备的呼叫请求。Receive a call request from the calling side device.
所述处理器703用于执行如下操作:The processor 703 is configured to perform the following operations:
获取主叫侧设备和被叫侧设备中至少之一在通话路径上的媒体传输状态。Obtaining a media transmission status of at least one of the calling side device and the called side device on the call path.
所述处理器703还用于执行如下操作:The processor 703 is further configured to perform the following operations:
根据所述媒体传输状态,确定所述主叫侧设备和所述被叫侧设备之间建立会话时的媒体能力;Determining, according to the media transmission status, a media capability when establishing a session between the calling side device and the called side device;
在本发明一些实施例中,所述处理器703还可以用于执行如下操作:In some embodiments of the present invention, the processor 703 is further configured to perform the following operations:
在所述呼叫请求中包括所述主叫侧设备支持的媒体能力时,根据所述媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力;When the media capability supported by the calling side device is included in the call request, selecting a preferred media capability that matches the media transmission state according to the media transmission state;
将所述呼叫请求中的所述主叫侧设备支持的媒体能力更新为所述优选媒体能力。Updating the media capabilities supported by the calling side device in the call request to the preferred media capabilities.
则所述发送器702还可以用于执行如下操作:The transmitter 702 can also be used to perform the following operations:
向所述被叫侧设备转发更新媒体能力后的呼叫请求。Forwarding the call request after updating the media capability to the called side device.
则所述接收器701还用于执行如下操作:The receiver 701 is further configured to perform the following operations:
接收所述被叫侧设备返回的呼叫响应,所述呼叫响应携带所述被叫侧 设备根据所述优选媒体能力选择的会话媒体能力Receiving a call response returned by the called side device, where the call response carries the called side Session media capabilities selected by the device based on the preferred media capabilities
所述发送器702还可以用于执行如下操作:The transmitter 702 can also be configured to perform the following operations:
向所述主叫侧设备发送应答。A response is sent to the calling side device.
在本发明一些实施例中,所述处理器703还可以用于执行如下操作:In some embodiments of the present invention, the processor 703 is further configured to perform the following operations:
获取主叫侧设备和被叫侧设备其中之一在通话路径上的媒体传输状态;Obtaining a media transmission status of one of the calling side device and the called side device on the call path;
根据所述其中之一在通话路径上的媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力;Selecting a preferred media capability that matches the media transmission state according to a media transmission status of one of the ones on the call path;
所述发送器703还可以用于执行如下操作:The transmitter 703 can also be configured to perform the following operations:
向所述主叫侧设备发送所述应答,所述应答中携带所述会话媒体能力。Sending the response to the calling side device, where the response carries the session media capability.
在本发明一些实施例中,所述处理器703还可以用于执行如下操作:In some embodiments of the present invention, the processor 703 is further configured to perform the following operations:
在所述其中之一在通话路径上的媒体传输状态包括所述其中之一所在无线空口的信号状态时,判断所述信号状态是否满足预置的信号状态条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择占用带宽低的媒体能力为所述优选媒体能力。Determining whether the signal state satisfies a preset signal state condition when the media transmission state of the one of the call paths includes a signal state of the wireless air interface, and if so, selecting the caller The media capability supported by the side device is the preferred media capability. If not, the media capability that is low in bandwidth is selected as the preferred media capability among the media capabilities supported by the calling device.
在本发明一些实施例中,所述处理器703还可以用于执行如下操作:In some embodiments of the present invention, the processor 703 is further configured to perform the following operations:
在所述主叫侧设备支持的媒体能力中包含音频媒体能力和视频媒体能力时,将所述视频媒体能力过滤。The video media capability is filtered when the media capabilities supported by the calling side device include audio media capabilities and video media capabilities.
在本发明一些实施例中,所述处理器703还可以用于执行如下操作:In some embodiments of the present invention, the processor 703 is further configured to perform the following operations:
当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,根据预置的信号状态与媒体能力的对应关系,在所述主叫侧设备支持的媒体能力中,将与所述信号状态匹配的媒体能力调整到首选,When the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, in the media capability supported by the calling side device, The media capabilities that match the signal state are adjusted to preferred,
或,or,
当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,根据预置的信号状态与媒体能力的对应关系,在所述主叫侧设备支持的媒体能力中,将与所述信号状态不匹配的媒体能力过滤,When the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, in the media capability supported by the calling side device, Media capability filtering that does not match the signal state,
或,or,
当所述主叫侧设备支持的媒体能力包括同一类型媒体编解码的多种 速率集合时,根据预置的信号状态与速率模式的对应关系,在所述主叫侧设备支持的媒体能力中,选择与所述信号状态相匹配的速率模式集合,所述速率模式集合中包括至少一种速率模式。When the media capabilities supported by the calling side device include multiple types of media codecs of the same type And selecting, according to a preset relationship between the preset signal state and the rate mode, a media mode set supported by the calling side device, and selecting a rate mode set that matches the signal state, where the rate mode set includes At least one rate mode.
在本发明一些实施例中,所述处理器703还可以用于执行如下操作:In some embodiments of the present invention, the processor 703 is further configured to perform the following operations:
当所述其中之一在通话路径上的媒体传输状态包括所述其中之一的接入方式,且在所述其中之一的接入方式为Wi-Fi的接入方式,所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力。When the one of the media transmission states on the call path includes the access mode of one of the access modes, and the access mode of one of the access modes is a Wi-Fi access mode, the calling side When the device supports the anti-drop packet media capability, the preferred media capability is selected among the anti-lost media capabilities.
在本发明一些实施例中,所述处理器703还可以用于执行如下操作:In some embodiments of the present invention, the processor 703 is further configured to perform the following operations:
获取所述主叫侧设备和所述被叫侧设备在通话路径上的媒体传输状态;Obtaining a media transmission status of the calling side device and the called side device on a call path;
根据所述被叫侧设备在通话路径上的媒体传输状态,选择与所述被叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力;Determining, according to the media transmission status of the called side device on the call path, a preferred media capability that matches the media transmission status of the called side device on the call path;
根据所述主叫侧设备在通话路径上的媒体传输状态,选择与所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力;Selecting a preferred media capability that matches the media transmission state of the calling side device on the call path according to the media transmission status of the calling side device on the call path;
则所述发送器702还可以用于执行如下操作:The transmitter 702 can also be used to perform the following operations:
向所述主叫侧设备发送所述应答,所述应答中携带所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力。Sending the response to the calling side device, where the response carries a preferred media capability that matches the media transmission status of the calling side device on the call path.
在本发明一些实施例中,所述处理器703还可以用于执行如下操作:In some embodiments of the present invention, the processor 703 is further configured to perform the following operations:
获取所述主叫侧设备和所述被叫侧设备在通话路径上的网络传输质量;Obtaining network transmission quality of the calling side device and the called side device on a call path;
判断所述被叫侧设备在通话路径上的网络传输质量是否满足预置的网络传输质量条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述被叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力;Determining whether the network transmission quality of the called side device on the call path meets a preset network transmission quality condition, and if yes, selecting the media capability supported by the calling side device as the preferred media capability, and if not, Selecting, among the media capabilities supported by the calling side device, a preferred media capability that matches the network transmission quality of the called side device on the call path;
判断所述主叫侧设备在通话路径上的网络传输质量是否满足预置的网络传输质量条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述主叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力。Determining whether the network transmission quality of the calling side device on the call path meets a preset network transmission quality condition, and if yes, selecting the media capability supported by the calling side device as the preferred media capability, and if not, Among the media capabilities supported by the calling side device, a preferred media capability that matches the network transmission quality of the calling side device on the call path is selected.
在本发明一些实施例中,所述处理器703还可以用于执行如下操作: In some embodiments of the present invention, the processor 703 is further configured to perform the following operations:
获取所述主叫侧设备和所述被叫侧设备的接入方式;Obtaining an access mode of the calling side device and the called side device;
在所述被叫侧设备的接入方式为Wi-Fi的接入方式,且所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力;Selecting a preferred media capability among the anti-dropping media capabilities when the access mode of the called device is a Wi-Fi access mode, and the calling device supports the anti-dropping media capability. ;
在所述主叫侧设备的接入方式为Wi-Fi的接入方式,且所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力。Selecting a preferred media capability among the anti-dropping media capabilities when the access mode of the calling device is a Wi-Fi access mode, and the calling device supports the anti-dropping media capability. .
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是 个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. , including a number of instructions to make a computer device (may be A personal computer, server, or network device, etc.) performs all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the embodiments are modified, or the equivalents of the technical features are replaced by the equivalents of the technical solutions of the embodiments of the present invention.

Claims (21)

  1. 一种确定媒体能力的方法,其特征在于,包括:A method of determining media capabilities, comprising:
    呼叫控制网元接收主叫侧设备的呼叫请求;The call control network element receives the call request of the calling side device;
    所述呼叫控制网元获取主叫侧设备和被叫侧设备中至少之一在通话路径上的媒体传输状态;The call control network element acquires a media transmission status of at least one of the calling side device and the called side device on the call path;
    所述呼叫控制网元根据所述媒体传输状态,确定所述主叫侧设备和所述被叫侧设备之间建立会话时的媒体能力。The call control network element determines, according to the media transmission status, a media capability when establishing a session between the calling side device and the called side device.
  2. 根据权利要求1所述的方法,其特征在于,所述呼叫请求中包括所述主叫侧设备支持的媒体能力;The method according to claim 1, wherein the call request includes a media capability supported by the calling side device;
    所述呼叫控制网元根据所述媒体传输状态,确定所述主叫侧设备和所述被叫侧设备之间建立会话时的媒体能力包括:The determining, by the call control network element, the media capability when establishing a session between the calling side device and the called side device according to the media transmission status includes:
    所述呼叫控制网元根据所述媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力;The call control network element selects a preferred media capability that matches the media transmission state according to the media transmission status;
    所述呼叫控制网元将所述呼叫请求中的所述主叫侧设备支持的媒体能力更新为所述优选媒体能力;The call control network element updates the media capability supported by the calling side device in the call request to the preferred media capability;
    所述呼叫控制网元向所述被叫侧设备转发更新媒体能力后的呼叫请求;The call control network element forwards a call request after updating the media capability to the called side device;
    所述呼叫控制网元接收所述被叫侧设备返回的呼叫响应,所述呼叫响应携带所述被叫侧设备根据所述优选媒体能力选择的会话媒体能力;Receiving, by the call control network element, a call response returned by the called side device, where the call response carries a session media capability selected by the called side device according to the preferred media capability;
    所述呼叫控制网元向所述主叫侧设备发送应答。The call control network element sends a response to the calling side device.
  3. 根据权利要求2所述的方法,其特征在于,所述呼叫控制网元获取主叫侧设备和被叫侧设备中至少之一在通话路径上的媒体传输状态包括:The method according to claim 2, wherein the obtaining, by the call control network element, the media transmission status of at least one of the calling side device and the called side device on the call path comprises:
    所述呼叫控制网元获取主叫侧设备和被叫侧设备其中之一在通话路径上的媒体传输状态;The call control network element acquires a media transmission status of one of the calling side device and the called side device on the call path;
    所述呼叫控制网元根据所述媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力包括:The selecting, by the call control network element, the preferred media capabilities that match the media transmission status according to the media transmission status includes:
    所述呼叫控制网元根据所述其中之一在通话路径上的媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力; The call control network element selects a preferred media capability that matches the media transmission state according to a media transmission status of the one of the ones on the call path;
    所述呼叫控制网元向所述主叫侧设备发送应答,包括:The call control network element sends a response to the calling side device, including:
    所述呼叫控制网元向所述主叫侧设备发送所述应答,所述应答中携带所述会话媒体能力。The call control network element sends the response to the calling side device, where the response carries the session media capability.
  4. 根据权利要求3所述的方法,其特征在于,所述其中之一在通话路径上的媒体传输状态包括所述其中之一所在无线空口的信号状态;The method according to claim 3, wherein the media transmission state of one of the call paths includes a signal state of the wireless air interface of the one of the ones;
    所述呼叫控制网元根据所述媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力包括:The selecting, by the call control network element, the preferred media capabilities that match the media transmission status according to the media transmission status includes:
    所述呼叫控制网元判断所述信号状态是否满足预置的信号状态条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择占用带宽低的媒体能力为所述优选媒体能力。Determining, by the call control network element, whether the signal state satisfies a preset signal state condition, and if yes, selecting a media capability supported by the calling side device as the preferred media capability, and if not, at the calling Among the media capabilities supported by the side devices, the media capability that occupies a low bandwidth is selected as the preferred media capability.
  5. 根据权利要求4所述的方法,其特征在于,所述选择占用带宽低的媒体能力为所述优选媒体能力包括:The method according to claim 4, wherein the selecting the media capability that occupies a low bandwidth for the preferred media capability comprises:
    在所述主叫侧设备支持的媒体能力中包含音频媒体能力和视频媒体能力时,将所述视频媒体能力过滤。The video media capability is filtered when the media capabilities supported by the calling side device include audio media capabilities and video media capabilities.
  6. 根据权利要求4或5所述的方法,其特征在于,所述在所述主叫侧设备支持的媒体能力中选择占用带宽低的媒体能力为所述优选媒体能力包括:The method according to claim 4 or 5, wherein the selecting a medium capacity that occupies a low bandwidth among the media capabilities supported by the calling side device is the preferred media capability comprises:
    当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,根据预置的信号状态与媒体能力的对应关系,在所述主叫侧设备支持的媒体能力中,将与所述信号状态匹配的媒体能力调整到首选,When the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, in the media capability supported by the calling side device, The media capabilities that match the signal state are adjusted to preferred,
    或,or,
    当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,根据预置的信号状态与媒体能力的对应关系,在所述主叫侧设备支持的媒体能力中,将与所述信号状态不匹配的媒体能力过滤,When the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, in the media capability supported by the calling side device, Media capability filtering that does not match the signal state,
    或,or,
    当所述主叫侧设备支持的媒体能力包括同一类型媒体编解码的多种速率集合时,根据预置的信号状态与速率模式的对应关系,在所述主叫侧设备支持的媒体能力中,选择与所述信号状态相匹配的速率模式集合,所述速率模式集合中包括至少一种速率模式。 When the media capabilities supported by the calling side device include multiple rate sets of the same type of media codec, according to the corresponding relationship between the preset signal state and the rate mode, among the media capabilities supported by the calling side device, A set of rate patterns is selected that match the state of the signal, the set of rate patterns including at least one rate pattern.
  7. 根据权利要求3所述的方法,其特征在于,所述其中之一在通话路径上的媒体传输状态包括所述其中之一的接入方式;The method according to claim 3, wherein the media transmission status of one of the call paths comprises an access mode of one of the ones;
    所述呼叫控制网元根据所述主叫侧设备在通话路径上的媒体传输状态,选择与所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力包括:The selecting, by the call control network element, the preferred media capability that matches the media transmission status of the calling side device on the call path according to the media transmission status of the calling side device on the call path includes:
    所述呼叫控制网元在所述其中之一的接入方式为Wi-Fi的接入方式,且所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力。The anti-dropping media capability of the call control network element when the access mode of the one of the access modes is a Wi-Fi access mode, and the calling side device supports the anti-drop packet media capability Select preferred media capabilities.
  8. 根据权利要求2所述的方法,其特征在于,所述呼叫控制网元获取主叫侧设备和被叫侧设备中至少之一在通话路径上的媒体传输状态包括:The method according to claim 2, wherein the obtaining, by the call control network element, the media transmission status of at least one of the calling side device and the called side device on the call path comprises:
    所述呼叫控制网元获取所述主叫侧设备和所述被叫侧设备在通话路径上的媒体传输状态;The call control network element acquires a media transmission status of the calling side device and the called side device on a call path;
    所述呼叫控制网元根据所述媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力包括:The selecting, by the call control network element, the preferred media capabilities that match the media transmission status according to the media transmission status includes:
    所述呼叫控制网元根据所述被叫侧设备在通话路径上的媒体传输状态,选择与所述被叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力;The call control network element selects a preferred media capability that matches the media transmission state of the called side device on the call path according to the media transmission status of the called side device on the call path;
    所述方法还包括:The method further includes:
    所述呼叫控制网元根据所述主叫侧设备在通话路径上的媒体传输状态,选择与所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力;Selecting, by the call control network element, a preferred media capability that matches a media transmission state of the calling side device on a call path according to a media transmission state of the calling side device on a call path;
    则所述呼叫控制网元向所述主叫侧设备发送应答,包括:The call control network element sends a response to the calling side device, including:
    所述呼叫控制网元向所述主叫侧设备发送所述应答,所述应答中携带所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力。The call control network element sends the response to the calling side device, where the response carries a preferred media capability that matches the media transmission status of the calling side device on the call path.
  9. 根据权利要求8所述的方法,其特征在于,所述呼叫控制网元获取所述主叫侧设备和所述被叫侧设备在通话路径上的媒体传输状态包括:The method according to claim 8, wherein the obtaining, by the call control network element, the media transmission status of the calling side device and the called side device on the call path comprises:
    所述呼叫控制网元获取所述主叫侧设备和所述被叫侧设备在通话路径上的网络传输质量;The call control network element acquires network transmission quality of the calling side device and the called side device on a call path;
    所述呼叫控制网元根据所述被叫侧设备在通话路径上的媒体传输状 态,选择与所述被叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力包括:The call control network element according to the media transmission state of the called side device on the call path The preferred media capabilities that match the media transmission status of the called side device on the call path include:
    所述呼叫控制网元判断所述被叫侧设备在通话路径上的网络传输质量是否满足预置的网络传输质量条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述被叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力;The call control network element determines whether the network transmission quality of the called side device on the call path meets a preset network transmission quality condition, and if yes, selects the media capability supported by the calling side device as the preferred medium. Capability, if not, selecting a preferred media capability that matches the network transmission quality of the called side device on the call path among the media capabilities supported by the calling side device;
    所述呼叫控制网元根据所述主叫侧设备在通话路径上的媒体传输状态,选择与所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力包括:The selecting, by the call control network element, the preferred media capability that matches the media transmission status of the calling side device on the call path according to the media transmission status of the calling side device on the call path includes:
    所述呼叫控制网元判断所述主叫侧设备在通话路径上的网络传输质量是否满足预置的网络传输质量条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述主叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力。The call control network element determines whether the network transmission quality of the calling side device on the call path meets a preset network transmission quality condition, and if yes, selects the media capability supported by the calling side device as the preferred media. The capability, if not, selects a preferred media capability that matches the network transmission quality of the calling side device on the call path among the media capabilities supported by the calling side device.
  10. 根据权利要求8所述的方法,其特征在于,所述呼叫控制网元获取所述主叫侧设备和所述被叫侧设备在通话路径上的媒体传输状态包括:The method according to claim 8, wherein the call control network element acquires the media transmission status of the calling side device and the called side device on the call path, including:
    所述呼叫控制网元获取所述主叫侧设备和所述被叫侧设备的接入方式;The call control network element acquires an access mode of the calling side device and the called side device;
    所述呼叫控制网元根据所述被叫侧设备在通话路径上的媒体传输状态,选择与所述被叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力包括:The selecting, by the call control network element, the preferred media capability that matches the media transmission state of the called side device on the call path according to the media transmission status of the called side device on the call path includes:
    所述呼叫控制网元在所述被叫侧设备的接入方式为Wi-Fi的接入方式,且所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力;When the access control mode of the call control network element is a Wi-Fi access mode, and the calling side device supports the anti-drop packet media capability, the anti-drop packet media Selecting preferred media capabilities among capabilities;
    所述呼叫控制网元根据所述主叫侧设备在通话路径上的媒体传输状态,选择与所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力包括:The selecting, by the call control network element, the preferred media capability that matches the media transmission status of the calling side device on the call path according to the media transmission status of the calling side device on the call path includes:
    所述呼叫控制网元在所述主叫侧设备的接入方式为Wi-Fi的接入方式,且所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能 力中选择优选媒体能力。When the access control mode of the calling control device is a Wi-Fi access mode, and the calling side device supports the anti-drop packet media capability, the anti-drop packet media can Select the preferred media capabilities.
  11. 一种呼叫控制网元,其特征在于,包括:A call control network element, comprising:
    接收单元,用于接收主叫侧设备的呼叫请求;a receiving unit, configured to receive a call request of the calling side device;
    处理单元,用于获取主叫侧设备和被叫侧设备中至少之一在通话路径上的媒体传输状态;a processing unit, configured to acquire a media transmission status of at least one of the calling side device and the called side device on the call path;
    所述处理单元还用于根据获取的所述媒体传输状态,确定所述主叫侧设备和所述被叫侧设备之间建立会话时的媒体能力。The processing unit is further configured to determine, according to the acquired media transmission status, a media capability when establishing a session between the calling side device and the called side device.
  12. 根据权利要求11所述的呼叫控制网元,其特征在于,所述处理单元还用于:The call control network element according to claim 11, wherein the processing unit is further configured to:
    在所述呼叫请求中包括所述主叫侧设备支持的媒体能力时,根据所述媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力;When the media capability supported by the calling side device is included in the call request, selecting a preferred media capability that matches the media transmission state according to the media transmission state;
    将所述呼叫请求中的所述主叫侧设备支持的媒体能力更新为所述优选媒体能力;Updating the media capability supported by the calling side device in the call request to the preferred media capability;
    所述呼叫控制网元还包括:The call control network element further includes:
    发送单元,用于向所述被叫侧设备转发更新媒体能力后的呼叫请求;a sending unit, configured to forward, to the called side device, a call request after updating the media capability;
    所述接收单元还用于接收所述被叫侧设备返回的呼叫响应,所述呼叫响应携带所述被叫侧设备根据所述优选媒体能力选择的会话媒体能力;The receiving unit is further configured to receive a call response returned by the called side device, where the call response carries a session media capability selected by the called side device according to the preferred media capability;
    所述发送单元还用于向所述主叫侧设备发送应答。The sending unit is further configured to send a response to the calling side device.
  13. 根据权利要求12所述的呼叫控制网元,其特征在于,所述处理单元具体用于:The call control network element according to claim 12, wherein the processing unit is specifically configured to:
    获取主叫侧设备和被叫侧设备其中之一在通话路径上的媒体传输状态;Obtaining a media transmission status of one of the calling side device and the called side device on the call path;
    根据所述其中之一在通话路径上的媒体传输状态,选择与所述媒体传输状态相匹配的优选媒体能力;Selecting a preferred media capability that matches the media transmission state according to a media transmission status of one of the ones on the call path;
    所述发送单元具体用于向所述主叫侧设备发送所述应答,所述应答中携带所述会话媒体能力。The sending unit is specifically configured to send the response to the calling side device, where the response carries the session media capability.
  14. 根据权利要求13所述的呼叫控制网元,其特征在于,所述处理单元具体用于在所述其中之一在通话路径上的媒体传输状态包括所述其中之一所在无线空口的信号状态时,判断所述信号状态是否满足预置的信号状态条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒 体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择占用带宽低的媒体能力为所述优选媒体能力。The call control network element according to claim 13, wherein the processing unit is configured to: when the media transmission state of the one of the call paths includes a signal state of the wireless air interface Determining whether the signal state satisfies a preset signal state condition, and if yes, selecting a media capability supported by the calling side device as the preferred media The physical capability, if not, selects a medium capacity that occupies a low bandwidth as the preferred media capability among the media capabilities supported by the calling side device.
  15. 根据权利要求14所述的呼叫控制网元,其特征在于,所述处理单元具体用于在所述主叫侧设备支持的媒体能力中包含音频媒体能力和视频媒体能力时,将所述视频媒体能力过滤。The call control network element according to claim 14, wherein the processing unit is specifically configured to: when the audio media capability and the video media capability are included in a media capability supported by the calling side device, the video media Ability to filter.
  16. 根据权利要求14或15所述的呼叫控制网元,其特征在于,所述处理单元具体用于:The call control network element according to claim 14 or 15, wherein the processing unit is specifically configured to:
    当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,根据预置的信号状态与媒体能力的对应关系,在所述主叫侧设备支持的媒体能力中,将与所述信号状态匹配的媒体能力调整到首选,When the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, in the media capability supported by the calling side device, The media capabilities that match the signal state are adjusted to preferred,
    或,or,
    当所述主叫侧设备支持的媒体能力包括多种类型媒体编解码的媒体能力时,根据预置的信号状态与媒体能力的对应关系,在所述主叫侧设备支持的媒体能力中,将与所述信号状态不匹配的媒体能力过滤,When the media capability supported by the calling side device includes media capabilities of multiple types of media encoding and decoding, according to the corresponding relationship between the preset signal state and the media capability, in the media capability supported by the calling side device, Media capability filtering that does not match the signal state,
    或,or,
    当所述主叫侧设备支持的媒体能力包括同一类型媒体编解码的多种速率集合时,根据预置的信号状态与速率模式的对应关系,在所述主叫侧设备支持的媒体能力中,选择与所述信号状态相匹配的速率模式集合,所述速率模式集合中包括至少一种速率模式。When the media capabilities supported by the calling side device include multiple rate sets of the same type of media codec, according to the corresponding relationship between the preset signal state and the rate mode, among the media capabilities supported by the calling side device, A set of rate patterns is selected that match the state of the signal, the set of rate patterns including at least one rate pattern.
  17. 根据权利要求13所述的呼叫控制网元,其特征在于,所述处理单元具体用于当所述其中之一在通话路径上的媒体传输状态包括所述其中之一的接入方式,且在所述其中之一的接入方式为Wi-Fi的接入方式,所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力。The call control network element according to claim 13, wherein the processing unit is specifically configured to: when the one of the media transmission states on the call path includes one of the access modes, and The access mode of the one of the access modes is a Wi-Fi access mode, and when the calling side device supports the anti-drop packet media capability, the preferred media capability is selected among the anti-lost media capabilities.
  18. 根据权利要求12所述的呼叫控制网元,其特征在于,所述处理单元具体用于:The call control network element according to claim 12, wherein the processing unit is specifically configured to:
    获取所述主叫侧设备和所述被叫侧设备在通话路径上的媒体传输状态;Obtaining a media transmission status of the calling side device and the called side device on a call path;
    根据所述被叫侧设备在通话路径上的媒体传输状态,选择与所述被叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力; Determining, according to the media transmission status of the called side device on the call path, a preferred media capability that matches the media transmission status of the called side device on the call path;
    所述处理单元还用于根据所述主叫侧设备在通话路径上的媒体传输状态,选择与所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力;The processing unit is further configured to select, according to a media transmission status of the calling side device on a call path, a preferred media capability that matches a media transmission state of the calling side device on a call path;
    则所述发送单元具体用于向所述主叫侧设备发送所述应答,所述应答中携带所述主叫侧设备在通话路径上的媒体传输状态相匹配的优选媒体能力。The sending unit is specifically configured to send the response to the calling side device, where the response carries a preferred media capability that matches the media transmission status of the calling side device on the call path.
  19. 根据权利要求18所述的呼叫控制网元,所述处理单元具体用于:The call control network element according to claim 18, wherein the processing unit is specifically configured to:
    获取所述主叫侧设备和所述被叫侧设备在通话路径上的网络传输质量;Obtaining network transmission quality of the calling side device and the called side device on a call path;
    判断所述被叫侧设备在通话路径上的网络传输质量是否满足预置的网络传输质量条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述被叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力;Determining whether the network transmission quality of the called side device on the call path meets a preset network transmission quality condition, and if yes, selecting the media capability supported by the calling side device as the preferred media capability, and if not, Selecting, among the media capabilities supported by the calling side device, a preferred media capability that matches the network transmission quality of the called side device on the call path;
    所述处理单元具体还用于判断所述主叫侧设备在通话路径上的网络传输质量是否满足预置的网络传输质量条件,若是,则选择所述主叫侧设备支持的媒体能力为所述优选媒体能力,若否,则在所述主叫侧设备支持的媒体能力中,选择与所述主叫侧设备在通话路径上的网络传输质量相匹配的优选媒体能力。The processing unit is further configured to determine whether the network transmission quality of the calling side device on the call path meets a preset network transmission quality condition, and if yes, select the media capability supported by the calling side device to be the Preferably, the media capability, if not, selects a preferred media capability that matches the network transmission quality of the calling side device on the call path among the media capabilities supported by the calling side device.
  20. 根据权利要求18所述的呼叫控制网元,其特征在于,所述处理单元具体用于:The call control network element according to claim 18, wherein the processing unit is specifically configured to:
    获取所述主叫侧设备和所述被叫侧设备的接入方式;Obtaining an access mode of the calling side device and the called side device;
    在所述被叫侧设备的接入方式为Wi-Fi的接入方式,且所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力;Selecting a preferred media capability among the anti-dropping media capabilities when the access mode of the called device is a Wi-Fi access mode, and the calling device supports the anti-dropping media capability. ;
    所述处理单元具体还用于在所述主叫侧设备的接入方式为Wi-Fi的接入方式,且所述主叫侧设备支持抗丢包的媒体能力时,在所述抗丢包的媒体能力中选择优选媒体能力。The processing unit is further configured to: when the access mode of the calling side device is a Wi-Fi access mode, and the calling side device supports the anti-drop packet media capability, the anti-drop packet The preferred media capabilities are selected among the media capabilities.
  21. 一种呼叫控制网元,其特征在于,包括:A call control network element, comprising:
    接收器,用于接收主叫侧设备的呼叫请求;a receiver, configured to receive a call request of the calling side device;
    处理器,用于获取主叫侧设备和被叫侧设备中至少之一在通话路径上 的媒体传输状态;a processor, configured to acquire at least one of a calling side device and a called side device on a call path Media transfer status;
    所述处理器还用于根据所述媒体传输状态,确定所述主叫侧设备和所述被叫侧设备之间建立会话时的媒体能力。 The processor is further configured to determine, according to the media transmission status, a media capability when establishing a session between the calling side device and the called side device.
PCT/CN2015/096697 2014-12-09 2015-12-08 Method for determining media capabilities and call control network element WO2016091154A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410749242.0 2014-12-09
CN201410749242.0A CN104539588B (en) 2014-12-09 2014-12-09 A kind of method and Call- Control1 network element of determining media capability

Publications (1)

Publication Number Publication Date
WO2016091154A1 true WO2016091154A1 (en) 2016-06-16

Family

ID=52855057

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/096697 WO2016091154A1 (en) 2014-12-09 2015-12-08 Method for determining media capabilities and call control network element

Country Status (2)

Country Link
CN (1) CN104539588B (en)
WO (1) WO2016091154A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539588B (en) * 2014-12-09 2019-04-12 华为技术有限公司 A kind of method and Call- Control1 network element of determining media capability
CN106817351A (en) * 2015-12-01 2017-06-09 大唐移动通信设备有限公司 A kind of method and device of media negotiation
CN108401263B (en) * 2017-02-07 2021-09-17 大唐移动通信设备有限公司 Voice quality assessment method and device
CN111049995A (en) * 2018-10-12 2020-04-21 华为技术有限公司 Method and related device for controlling video color ring in call

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007035572A2 (en) * 2005-09-16 2007-03-29 Acme Packet, Inc. Improvements to a session border controller
CN101465926A (en) * 2009-01-07 2009-06-24 中兴通讯股份有限公司 Method and device for processing call through network telephone gateway
CN102611809A (en) * 2012-03-29 2012-07-25 华为技术有限公司 Call processing method, call control device, automatic call distribution device and seat terminal
CN104486293A (en) * 2014-11-25 2015-04-01 中国电子科技集团公司第三十研究所 Media negotiation method and system based on network and terminal capability under wireless VoIP (Voice Over Internet Protocol) environment
CN104539588A (en) * 2014-12-09 2015-04-22 华为技术有限公司 Method and call controlling network element for determining media ability

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1878295A1 (en) * 2005-05-03 2008-01-16 Nokia Corporation Signaling quality of service (qos) parameters for a multimedia session
CN100596108C (en) * 2007-04-20 2010-03-24 杭州华三通信技术有限公司 Data transfer method and device
US7801543B2 (en) * 2007-12-14 2010-09-21 Motorola, Inc. Dynamic vocoder assignment in a communication system
CN101854671B (en) * 2009-04-02 2013-03-20 华为软件技术有限公司 Configuration processing method and device
CN102710617A (en) * 2012-05-21 2012-10-03 深圳市共进电子股份有限公司 Negotiation method for SDP (session description protocol) of SIP (session initiation protocol) terminal
CN103517287B (en) * 2012-06-18 2018-01-05 中国移动通信集团广东有限公司 Method of testing, system and the tone testing server of end-to-end double-directional speech quality

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007035572A2 (en) * 2005-09-16 2007-03-29 Acme Packet, Inc. Improvements to a session border controller
CN101465926A (en) * 2009-01-07 2009-06-24 中兴通讯股份有限公司 Method and device for processing call through network telephone gateway
CN102611809A (en) * 2012-03-29 2012-07-25 华为技术有限公司 Call processing method, call control device, automatic call distribution device and seat terminal
CN104486293A (en) * 2014-11-25 2015-04-01 中国电子科技集团公司第三十研究所 Media negotiation method and system based on network and terminal capability under wireless VoIP (Voice Over Internet Protocol) environment
CN104539588A (en) * 2014-12-09 2015-04-22 华为技术有限公司 Method and call controlling network element for determining media ability

Also Published As

Publication number Publication date
CN104539588B (en) 2019-04-12
CN104539588A (en) 2015-04-22

Similar Documents

Publication Publication Date Title
US11799922B2 (en) Network core facilitating terminal interoperation
JP6423439B2 (en) Multiplexing selectively arriving WebRTC traffic and / or demultiplexing outgoing WebRTC traffic with a client-based WebRTC proxy instead of a WebRTC multimedia client application
EP3297195B1 (en) Adjustment method and device for service rate
JP4763800B2 (en) Method and apparatus for establishing a multimedia communication session
WO2016091154A1 (en) Method for determining media capabilities and call control network element
US9325941B2 (en) Communication channel management for real-time applications
WO2016049977A1 (en) Network selection method and apparatus based on communications terminal, and terminal
JP6113905B2 (en) Enhanced call control that directs the content path through multiple connections
US9826072B1 (en) Network-terminal interoperation using compatible payloads
US9332094B2 (en) Communication system and method
WO2017147959A1 (en) Service carrying method, communication terminal, control element s-cscf and system
WO2017045568A1 (en) Media stream transmission method, device, and system
WO2017045125A1 (en) Method and system for adjusting voice adaptive parameter, and related device
WO2016106547A1 (en) Voice call method, device and voice call apparatus
WO2015135408A1 (en) Peer-to-peer network conference accessing method, client, and system
CN107404363B (en) Method, system, terminal and network side equipment for adjusting voice code rate
US9774463B2 (en) Optimizing user experiences of web conferences that send data with source-specific multicast and automatic multicast tunneling
US10097594B1 (en) Resource-managed codec selection
US9578283B1 (en) Audio level based management of communication resources
WO2018019102A1 (en) Bandwidth adjustment method, device and system in video communication process
WO2016062013A1 (en) Data transmission method and device
CN101919216A (en) Gateway device, system, and communication method
WO2014087764A1 (en) Terminal and communication system
CN107786836A (en) A kind of audio frequency and video conversation service realizing method and device
KR20150027040A (en) Controlling cpu usage to balance fast and slow devices

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

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

Country of ref document: EP

Kind code of ref document: A1