Communication negotiation method and device, electronic device, and computer-readable storage medium

By detecting the early media mode and operator type of the called device in the calling device, the calling device can solve the problem of early media mode in cross-operator calls and ensure the normal progress of the call.

CN115460322BActive Publication Date: 2025-04-29BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110641455.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-09
Publication Date
2025-04-29
Estimated Expiration
2041-06-09

AI Technical Summary

Technical Problem

In the cross-operator call scenario, due to the incompatibility of the early media mode adopted by the caller and the called device, negotiation failed and the call could not be conducted normally.

Method used

The calling device determines whether a network sound playback link needs to be established by detecting the target early media field in the called device's response message, and when the link does not meet the expected requirements, it detects whether its operator belongs to the preset operator. If so, performs network sound playback and continues the call.

Benefits of technology

It effectively solves the problem of call negotiation failure caused by early media mode incompatibility, ensuring that communication between the caller and the called device is carried out normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115460322B_ABST
    Figure CN115460322B_ABST
Patent Text Reader

Abstract

The present disclosure is about a method and apparatus for communication negotiation, an electronic device, and a computer-readable storage medium. The method includes: sending an invitation message to establish a call to the called device, and receiving a response message returned by the called device; in response to the called device requesting the network to play a sound, establishing a link with the calling side server according to the link message in the response message; in response to the established link not meeting the link requirements corresponding to the target early media field in the response message, determining whether the calling device operator belongs to the preset operator; in response to the calling device operator belonging to the preset operator, determining that the two have negotiated successfully and continuing the call. The present disclosure addresses the problem of incompatibility between the early media modes adopted by the calling and called operators. When the calling party determines that the link it has established cannot meet the called party's link requirements, it determines whether the calling operator is the preset operator, and if so, determines that the two have negotiated successfully for early media, thereby ensuring that the call between the two can proceed normally.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a method and device for communication negotiation, an electronic device, and a computer-readable storage medium. Background Art

[0002] The color ring back tone service has always been one of the main value-added services of operators. In the actual communication process, in order to distinguish the call data and the color ring back tone data between the caller and the called, the call data is defined as regular media, and the color ring back tone data is defined as early media.

[0003] There are multiple modes of early media, including local voice playback mode and network voice playback mode. The network voice playback mode can be further divided into two-way network voice playback mode and one-way network voice playback mode. The early media modes adopted by different operators may be different. If the early media modes adopted by the calling and called operators are incompatible, the negotiation between the calling and called for early media will fail, resulting in the problem that the calling and called cannot communicate normally. Summary of the invention

[0004] The present disclosure provides a communication negotiation method and device, an electronic device, and a computer-readable storage medium to address deficiencies in related technologies.

[0005] According to a first aspect of an embodiment of the present disclosure, a communication negotiation method is provided, the method being applied to a calling device and comprising:

[0006] Sending an invitation message to establish a call to the called device, and receiving a response message returned by the called device;

[0007] In response to the called device requesting network announcement, establishing a link for transmitting network announcement data with the calling-side server according to the link message in the response message;

[0008] In response to the established link not meeting the link requirement corresponding to the target early media field in the response message, determining whether the operator of the calling device belongs to a preset operator;

[0009] In response to the operator of the calling device belonging to the preset operator, it is determined that the early media negotiation with the called device is successful, and after performing network playback, the call with the called device is continued.

[0010] According to a second aspect of an embodiment of the present disclosure, a communication negotiation device is provided. The device uses a calling device, including a message transceiver module, a link establishment module, an operator determination module, and a call execution module:

[0011] The message transceiver module is used to send an invitation message for establishing a call to the called device and receive a response message returned by the called device;

[0012] The link establishment module is used to establish a link for transmitting network playback data with the calling side server according to the link message in the response message in response to the called device requesting network playback;

[0013] The operator determination module is used to determine whether the operator of the calling device belongs to a preset operator in response to the established link not meeting the link requirement corresponding to the target early media field in the response message;

[0014] The call execution module is used for determining that the early media negotiation with the called device is successful in response to the operator of the calling device belonging to the preset operator, and continuing the call with the called device after executing network playback.

[0015] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising a processor and a memory for storing instructions executable by the processor;

[0016] The processor implements the steps in the method described in the first aspect above by running the executable instructions.

[0017] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps in the method described in the first aspect are implemented.

[0018] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0019] In response to the incompatibility of the early media modes adopted by the operators of the calling and called parties, when the calling party detects that the link it has established cannot meet the link requirements corresponding to the target early media field in the called party's response message, it detects whether the operator of the calling device is the preset operator. If so, it determines that the two have successfully negotiated for early media. After the calling party executes network playback, it continues the call process with the called party without canceling the call, thereby ensuring normal communication between the two.

[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0022] Figure 1The present invention is a flow chart of a communication negotiation method according to an exemplary embodiment.

[0023] Figure 2 The present invention is a flow chart of a communication negotiation method according to another exemplary embodiment.

[0024] Figure 3 The present invention is a flow chart of a communication negotiation method according to another exemplary embodiment.

[0025] Figure 4 It is a block diagram of a communication negotiation device according to an exemplary embodiment.

[0026] Figure 5 The present invention is a schematic block diagram of an electronic device where a communication negotiation apparatus is located according to an exemplary embodiment. DETAILED DESCRIPTION

[0027] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0028] In the field of communications, the party that actively initiates a call is the calling party, and the party that passively receives the call is the called party. In the scenario of a cross-operator call, the calling device used by the calling party will communicate with the called device through the calling side server, which is provided by the operator of the calling device; while the called device used by the called party will communicate with the calling device through the called side server, which is provided by the operator of the called device. It can be understood that in addition to the calling side server and the called side server, the interactive data between the calling device and the called device can also pass through network devices such as switches and gateways, which will not be repeated here.

[0029] Before the actual call, the calling device and the called device can exchange multimedia data such as color ringback tone and color vibration, which is different from the actual call data of both parties. This data transmission before the actual call is defined as early media.

[0030] Early media modes include local playback mode and network playback mode. In the local playback mode, the call device can play the audio cached locally without establishing a link with the server on its side; while in the network playback mode, the call device will establish a link with the server on its side, thereby sending the other party the early media data specified by itself or receiving the early media data specified by the other party, that is, the call device will play the audio conveyed by the server on its side.

[0031] The network playback mode further includes a two-way network playback mode and a one-way network playback mode. The difference between the two is that when the early media mode supported by the operator of the call device is a two-way network playback mode, the call device can simultaneously establish an uplink and a downlink with the server on its side, so that it can send the early media data specified by itself to the other party and receive the early media data specified by itself sent by the other party; when the early media mode supported by the operator of the call device is a one-way network playback mode, the call device can only establish a downlink with the server on its side but not an uplink with the server on its side, so that it can only receive the early media data specified by itself sent by the other party but not send the early media data specified by itself to the other party.

[0032] Different operators use different early media modes. In the case of cross-operator calls, it often happens that the operators of the calling and called parties use incompatible early media modes, resulting in the failure of early media negotiation between the calling and called parties and the inability to continue the call.

[0033] For example, when the early media mode adopted by the operator of the calling device is a one-way network playback mode, if the early media mode adopted by the operator of the called device is a two-way network playback mode, based on the protocol specification of 3GPP (3rd Generation Partnership Project), the calling device will determine that the early media negotiation with the called device has failed after detecting that it cannot establish the uplink required by the two-way network playback mode with the calling side server, and actively cancel the call with the called device. However, in fact, the lack of an uplink between the calling device and the calling side server does not affect the transmission of early media data. The downlink between the calling device and the calling side server can already transmit the audio data such as the ringback tone of the called device to the calling device, so there is no need for the calling device to cancel the call with the called device.

[0034] In view of this, this specification provides a communication negotiation method, which avoids the above-mentioned problem of being unable to make calls due to early media negotiation failure by detecting the operator of the calling device without requiring the supplier server to change the configuration and maintaining the original protocol specifications.

[0035] Figure 1 The present invention is a flow chart of a communication negotiation method according to an exemplary embodiment.

[0036] The communication negotiation method is applied to an electronic device, and the electronic device is a calling device during the communication negotiation process. The communication negotiation method includes the following steps:

[0037] Step 102: The calling device sends an invitation message to the called device to establish a call, and receives a response message returned by the called device.

[0038] In the process of establishing a call between the calling device and the called device, first, the calling device will actively send an invitation message to the called device to establish the call, and the invitation message can be forwarded by the calling side server, the switch, gateway and other network devices between the calling party and the called party, and the called side server, and finally reach the called device. It can be understood that in some implementations, before sending the invitation message, the calling device needs to query the communication address or number of the called device from the calling side server, switch, roaming server, etc. The specific content can be referred to the relevant technology, which will not be repeated here.

[0039] After receiving the invitation message from the calling device, the called device will return a response message to the calling device according to its own status. Usually, the response message is a signaling message for negotiating early media, and there is a target early media field in its message header field, which can represent the early media mode adopted by the operator of the called device. After receiving the response message, the calling device will extract the target early media field therein, and detect whether the target early media field corresponds to the network playback mode to determine whether the called device requires network playback.

[0040] For example, when the field value of the target early media field P-Early-Media (abbreviated as PEM field) in the response message header field is sendrecv or sendonly, it indicates that the early media mode adopted by the operator of the called device is the network playback mode, wherein the PEM field value is sendrecv corresponding to the two-way network playback mode, and the PEM field value is sendonly corresponding to the one-way network playback mode. If the calling device extracts the field value of the P-Early-Media field in the response message header field as sendrecv or sendonly, it can be determined that the called device requires the calling device to perform network playback.

[0041] Step 104: In response to the called device requesting network announcement, the calling device establishes a link for transmitting network announcement data with the calling-side server according to the link information in the response message.

[0042] In the case where the called device requires network playback, the response message returned by the called device to the calling device carries a link message, wherein the link message is used to instruct the calling device how to establish a link with the calling-side server to transmit network playback data, including link requirements such as traffic limit, etc. The link message includes an uplink message and / or a downlink message, and the specific number and type of the link messages included correspond to the early media mode adopted by the operator of the called device.

[0043] After determining that the called device requires network playback, the calling device will establish a link with the calling side server according to the link message in the response message. Specifically, the calling device can establish a corresponding uplink with the calling side server according to the uplink message in the response message, and establish a corresponding downlink with the calling side server according to the downlink message in the response message.

[0044] Step 106: In response to the established link not meeting the link requirement corresponding to the target early media field in the response message, the calling device determines whether its operator is a preset operator.

[0045] After determining that the uplink and / or downlink requested to be established with the calling side server is successfully established, the calling device will determine whether the successfully established link meets the link requirement corresponding to the target early media field in the response message.

[0046] Target Early Media Field in Response Message Link requirements PEM=sendrecv Both uplink and downlink are established successfully PEM=sendonly Downlink established successfully

[0047] Table 1

[0048] As shown in Table 1, when the target early media field in the response message is sendrecv, the operator of the called device adopts a two-way network playback mode, and its corresponding link requirement is: both the uplink and the downlink are successfully established; when the target early media field in the response message is sendonly, the operator of the called device adopts a one-way network playback mode, and its corresponding link requirement is: the downlink is successfully established. According to Table 1, the calling device can detect whether the link established between it and the calling side server meets the link requirement corresponding to the target early media field in the response message.

[0049] Taking the field value of the target early media field P-Early-Media in the response message as sendrecv as an example, the corresponding link requirement is: both the uplink and the downlink are successfully established. When the calling device detects that the successfully established links include both the uplink and the downlink, it means that both use the two-way network playback mode and can perform network playback normally.

[0050] When the calling device detects that the established link does not meet the link requirement corresponding to the target early media field, in order to avoid the problem of the calling party canceling the call due to incompatibility of the early media modes of the calling party and the called party as mentioned above, the calling device will detect whether its operator is the preset operator.

[0051] When the link requirement corresponding to the target early media field in the response message requires the establishment of an uplink, and the calling device detects that the successfully established link does not include an uplink, the calling device can detect whether its operator belongs to the preset operator. The early media mode used by several operators preset on the calling device is a one-way network playback mode. The specific preset operator and the specific number of operators can be configured by the technical staff according to the business cooperation and application scenarios.

[0052] Step 108: In response to the operator of the calling device belonging to the preset operator, it is determined that the early media negotiation between the calling device and the called device is successful, and the call between the calling device and the called device continues.

[0053] After determining that the operator of the calling device belongs to the preset operator, the calling device can determine that it has successfully negotiated the early media with the called device and perform network playback normally, including feeding back the early media negotiation success to the called device, receiving and playing the subsequent audio data, etc.; after the network playback ends, the calling device can continue the call with the called device. For the specific process of the calling device continuing to talk with the called device after the network playback, please refer to the relevant technology, which will not be repeated here.

[0054] After determining that the operator of the calling device is not a preset operator, the calling device may determine that the early media negotiation between it and the called device has failed, and cancel the call with the called device.

[0055] Taking the case where the operator of the called device adopts the two-way network playback mode as an example, the response message will carry an uplink message and a downlink message so that the calling device and the calling side server can establish the corresponding uplink and downlink. However, if the early media mode adopted by the operator of the calling device is incompatible with the one-way network playback mode, based on the 3GPP protocol specification, the calling side server will delete the uplink message in the response message when forwarding the response message to the calling device. The calling device can only establish a downlink with the calling side server, and the successfully established link cannot include the uplink required by the target early media field sendrecv. However, by setting the operator of the calling device to the preset operator, after detecting that the successfully established link does not meet the link requirements, the calling device can still determine that the early media negotiation is successful through operator identification, perform network playback normally, and continue the call with the called device.

[0056] In summary, using Figure 1 The communication negotiation method proposed in the illustrated embodiment addresses the problem of incompatibility of early media modes adopted by the operators of the calling party and the called party. When the calling party detects that the link it has successfully established cannot meet the link requirements corresponding to the target early media field in the called party's response message, it detects whether the operator of the calling device is the preset operator. If so, it determines that the two have successfully negotiated on early media. After the calling party executes network playback, it continues to execute the call process with the called party without canceling the call, thereby ensuring normal communication between the two.

[0057] There are multiple selectable implementations for determining whether the operator of the calling device is a preset operator in step 106 .

[0058] In an optional implementation, several operator identifiers may be preset on the calling device, and by matching the operator identifier of the calling device with the preset operator identifier, it is determined whether the negotiation between the calling device and the called device for the early media is successful or not; including:

[0059] The operator identifier of the calling device is obtained, and the calling device detects whether the operator identifier matches the preset operator identifier.

[0060] Specifically, the calling device may obtain its own MCC (Mobile Country Code) and MNC (Mobile Network Code), and match them with the MCC and MNC of a preset operator to determine a specific operator in combination with the MCC and MNC.

[0061] In response to the operator identifier of the calling device matching any preset operator identifier, it is determined that the operator of the calling device belongs to the preset operator, the calling device determines that the early media negotiation with the called device is successful, and continues the call with the called device after executing network playback; in response to the operator identifier of the calling device not matching all preset operator identifiers, it is determined that the operator of the calling device does not belong to the preset operator, the calling device determines that the early media negotiation with the called device has failed, and cancels the call with the called device.

[0062] This implementation method can improve the accuracy of the calling device confirming whether its operator is the preset operator.

[0063] Figure 2 The present invention is a flow chart of another communication negotiation method according to an exemplary embodiment, in which a downlink actually used to transmit the network playback data of the called party is confirmed to further ensure a smooth call between the calling device and the called device. The communication negotiation method includes the following steps:

[0064] Step 202: The calling device sends an invitation message to the called device to establish a call, and receives a response message returned by the called device.

[0065] Step 204: In response to the called device requesting network announcement, the calling device establishes a link for transmitting network announcement data with the calling-side server according to the link information in the response message.

[0066] For the specific implementation of steps 202 to 204, please refer to the above Figure 1 Steps 102 to 104 of the illustrated embodiment will not be described in detail here.

[0067] Step 206: In response to the established link not meeting the link requirement corresponding to the target early media field, the calling device determines whether the link message of the response message includes a downlink message.

[0068] Step 208: In response to the link message in the response message not including a downlink message, the calling device determines that the early media negotiation between it and the called device has failed, and cancels the call with the called device.

[0069] When a link is established with the calling side server based on the link message in the response message and both are successfully established, it is detected that the successfully established link does not meet the link requirement corresponding to the target early media field. The calling device further detects whether the link message includes a downlink message to determine whether the downlink actually used to transmit the called party's audio data is successfully established.

[0070] If the link message does not include a downlink message, it means that the downlink between the calling device and the calling side server is not established successfully, and the early media data cannot be transmitted. The calling device determines that the early media negotiation fails and cancels the call to the called device.

[0071] Step 210: In response to the link message of the response message including a downlink message, the calling device determines whether its operator is a preset operator.

[0072] Step 212: In response to the operator of the calling device being a preset operator, the calling device determines that the early media negotiation with the called device is successful, and continues the call with the called device after performing network playback.

[0073] For the specific implementation of steps 210 to 212, please refer to the above Figure 1 Steps 106 to 108 of the illustrated embodiment will not be described in detail here.

[0074] Figure 2 The illustrated embodiment confirms whether the downlink actually used to transmit the network announcement data to the calling device is successfully established, which can further ensure that the call between the calling device and the called device proceeds smoothly.

[0075] Figure 3 is a flow chart of another communication negotiation method according to an exemplary embodiment, further including the case of executing local playback and canceling the call due to rejection by the called device. The communication negotiation method includes:

[0076] Step 302: The calling device sends an invitation message to the called device to establish a call, and receives a response message returned by the called device.

[0077] Step 304: The calling device determines whether the response message is a response message for agreeing to establish a call.

[0078] Step 306: In response to the response message not being a response message for agreeing to establish the call, the calling device cancels the call with the called device.

[0079] In some specific scenarios, the response message returned by the called device is not a signaling message for negotiating early media, but other response messages indicating that the call is not agreed to be established, including signaling messages indicating that the other party refuses the call or is continuously busy, etc. Therefore, when the calling device receives the response message, it can first detect the nature of the message. After detecting that the response message is not a message agreeing to establish the call, it can cancel the call to the called device without negotiating the early media.

[0080] Step 308: In response to the response message being a response message for agreeing to establish a call, the calling device determines whether the called device requires the network to play the audio according to the target early media field in the response message.

[0081] Refer to the above Figure 1 In step 102 of the illustrated embodiment, the calling device extracts the target early media field in the response message returned by the called device after receiving the response message, and determines whether the called device requires network playback according to the target early media field in the response message.

[0082] Step 310: In response to the called device not requiring network playback, the calling device performs local playback.

[0083] When the calling device determines that the target early media field in the response message does not correspond to the network playback mode, that is, the called device does not require network playback, which means that the called device has not activated the color ring back tone service, the calling device can directly read the local audio cached in the calling device to perform local playback without establishing a link with the calling side server. After performing local playback, the calling device can continue the call with the called device.

[0084] Step 312: In response to the called device requesting network announcement, the calling device establishes a link for transmitting network announcement data with the calling-side server according to the link message in the response message.

[0085] Step 314: In response to the established link not meeting the link requirement corresponding to the target early media field, the calling device determines whether its operator is a preset operator.

[0086] Step 316: In response to the operator of the calling device being a preset operator, the calling device determines that the early media negotiation between the calling device and the called device is successful, and continues the call with the called device.

[0087] For the specific implementation of steps 312 to 316, please refer to the above Figure 1 Steps 104 to 108 of the illustrated embodiment will not be described in detail here.

[0088] Figure 3 The illustrated embodiment further includes processing for situations such as local playback and the called party rejecting the call.

[0089] In order to enable those skilled in the art to better understand the communication negotiation method proposed in the present disclosure, further detailed description is given below. The embodiments described subsequently are only part of the embodiments of the present disclosure, rather than all the embodiments.

[0090] In the cross-operator call scenario, the early media mode adopted by the operator of the calling device is the one-way network playback mode, and the early media mode adopted by the operator of the called device is the two-way network playback mode. Both support network playback.

[0091] At a certain moment, the calling device sends an invitation message to the called device to establish a call, which is forwarded to the called device by the calling side server, switch, called side server, etc.

[0092] The called device has activated the color ring back tone service, and it returns a signaling message for negotiating early media to the calling device as a response message, wherein the response message includes an uplink message and a downlink message.

[0093] The calling-side server deletes the uplink message in the response message and retains the downlink message in the response message based on the 3GPP protocol specification and the one-way network playback mode adopted by the operator of the calling device.

[0094] After receiving the response message from the called device, the calling device confirms that the response message is a message for agreeing to establish a call, obtains the target early media field PEM=sendrecv in the response message, and confirms that the called device requires the network to play the voice.

[0095] The calling device successfully establishes a downlink with the calling side server according to the downlink message in the response message, and detects whether the successfully established downlink meets the link requirement corresponding to the target early media field PEM=sendrecv: both the uplink and the downlink are successfully established.

[0096] The successfully established downlink does not meet the link requirement corresponding to the target early media field PEM=sendrecv, including the successful establishment of an uplink. The calling device detects whether the link message of the response message includes a downlink message.

[0097] After confirming that the response message includes a downlink message, the calling device detects whether its MCC and MNC belong to the preset MCC and MNC. After confirming that the MCC and MNC of the calling device belong to the preset MCC and MNC, it feeds back to the called device that the early media negotiation is successful, waits for the audio data of the called party, and continues the call with the called device after the network playback ends.

[0098] Corresponding to the aforementioned communication negotiation method embodiment, the present disclosure also provides a communication negotiation device embodiment.

[0099] Figure 4 It is a block diagram of a communication negotiation device according to an exemplary embodiment.

[0100] The device is applied to a calling device, and includes a message transceiver module 410, a link establishment module 420, an operator determination module 430, and a call execution module 440:

[0101] The message transceiver module 410 is used to send an invitation message to the called device to establish a call, and receive a response message returned by the called device;

[0102] A link establishing module 420, configured to establish a link for transmitting network announcement data with a calling-side server according to a link message in the response message in response to a request from the called device for network announcement.

[0103] An operator determination module 430, configured to determine whether the operator of the calling device belongs to a preset operator in response to the established link not meeting the link requirement corresponding to the target early media field in the response message;

[0104] The call execution module 440 is used to determine that the early media negotiation with the called device is successful in response to the operator of the calling device belonging to the preset operator, and continue the call with the called device after executing network playback.

[0105] Furthermore, the operator determination module 430 is further configured to:

[0106] Before determining whether the operator of the calling device belongs to a preset operator, determining whether the link message includes a downlink message;

[0107] In response to the link message including a downlink message, determining whether the operator of the calling device belongs to the preset operator;

[0108] In response to the link message not including a downlink message, it is determined that early media negotiation with the called device has failed, and the call with the called device is canceled.

[0109] Furthermore, the operator determination module 430 is further configured to:

[0110] In response to the operator of the calling device not belonging to the preset operator, it is determined that the early media negotiation with the called device has failed, and the call with the called device is cancelled.

[0111] Optionally, the calling device is preset with several operator identifiers; when determining whether the operator of the calling device belongs to the preset operator, the operator determination module 430 is specifically used to:

[0112] Obtaining the operator identifier of the calling device, and determining whether the obtained operator identifier matches the preset operator identifier;

[0113] In response to the acquired operator identifier matching any of the preset operator identifiers, determining that the operator of the calling device belongs to the preset operator;

[0114] In response to the acquired operator identifier not matching any of the preset operator identifiers, it is determined that the operator of the calling device does not belong to the preset operator.

[0115] Furthermore, the link establishing module 420 is further configured to:

[0116] After receiving the response message, determining whether the called device requires network playback according to the target early media field in the response message;

[0117] In response to the called device not requiring network voice playback, the call with the called device is continued after local voice playback is performed.

[0118] Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the relevant method, and will not be elaborated here.

[0119] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art can understand and implement it without paying creative labor.

[0120] The embodiment of the present disclosure further provides an electronic device, including:

[0121] processor;

[0122] a memory for storing processor-executable instructions;

[0123] The processor implements the steps in the method described in any of the above embodiments by running the executable instructions.

[0124] Figure 5 1 is a schematic block diagram of an electronic device 500 in which a communication negotiation device is located according to an embodiment of the present disclosure. For example, the electronic device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0125] Reference Figure 5 , the electronic device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .

[0126] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0127] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0128] Power supply component 506 provides power to various components of device 500. Power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 500.

[0129] The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0130] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0131] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0132] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, and the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500, and the temperature change of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0133] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5G NR, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0134] In an exemplary embodiment, the electronic device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to execute the method described in any of the above embodiments.

[0135] In an exemplary embodiment of the present disclosure, a non-transitory computer-readable storage medium is also provided, on which a computer program is stored, such as a memory 504 including instructions, which can be executed by a processor 520 of a device 500 to complete the steps in the method described in any of the above embodiments. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0136] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0137] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A communication negotiation method, characterized in that: The method is applied to a calling device, comprising: Sending an invitation message to establish a call to the called device, and receiving a response message returned by the called device; In response to the called device requesting network announcement, establishing a link for transmitting network announcement data with the calling-side server according to the link message in the response message; In response to the established link not meeting the link requirement corresponding to the target early media field in the response message, determining whether the link message includes a downlink message; In response to the link message including a downlink message, determining whether the operator of the calling device belongs to a preset operator; In response to the operator of the calling device belonging to the preset operator, it is determined that the early media negotiation with the called device is successful, and after performing network playback, the call with the called device is continued.

2. The method according to claim 1, characterized in that: The method further comprises: In response to the link message not including a downlink message, it is determined that early media negotiation with the called device has failed, and the call with the called device is canceled.

3. The method according to claim 1, characterized in that The method further comprises: In response to the operator of the calling device not belonging to the preset operator, it is determined that the early media negotiation with the called device has failed, and the call with the called device is cancelled.

4. The method according to claim 1, characterized in that The calling device is preset with several operator identifiers; The determining whether the operator of the calling device belongs to a preset operator includes: Obtaining the operator identifier of the calling device, and determining whether the obtained operator identifier matches the preset operator identifier; In response to the acquired operator identifier matching any of the preset operator identifiers, determining that the operator of the calling device belongs to the preset operator; In response to the acquired operator identifier not matching any of the preset operator identifiers, it is determined that the operator of the calling device does not belong to the preset operator.

5. The method according to claim 1, characterized in that The method further comprises: After receiving the response message, determining whether the called device requires network playback according to the target early media field in the response message; In response to the called device not requiring network voice playback, the call with the called device is continued after local voice playback is performed.

6. A communication negotiation device, characterized in that: The device is applied to a calling device, and includes a message transceiver module, a link establishment module, an operator determination module, and a call execution module: The message transceiver module is used to send an invitation message for establishing a call to the called device and receive a response message returned by the called device; The link establishment module is used to establish a link for transmitting network playback data with the calling side server according to the link message in the response message in response to the called device requesting network playback; The operator determination module is used to determine whether the link message includes a downlink message in response to the established link not meeting the link requirement corresponding to the target early media field in the response message; in response to the link message including the downlink message, determine whether the operator of the calling device belongs to a preset operator; The call execution module is used for determining that the early media negotiation with the called device is successful in response to the operator of the calling device belonging to the preset operator, and continuing the call with the called device after executing network playback.

7. The device according to claim 6, characterized in that The operator determination module is further used for: In response to the link message not including a downlink message, it is determined that early media negotiation with the called device has failed, and the call with the called device is canceled.

8. The device according to claim 6, characterized in that The operator determination module is further used for: In response to the operator of the calling device not belonging to the preset operator, it is determined that the early media negotiation with the called device has failed, and the call with the called device is cancelled.

9. The device according to claim 6, characterized in that The calling device is preset with several operator identifiers; When determining whether the operator of the calling device belongs to a preset operator, the operator determination module is specifically used to: Obtaining the operator identifier of the calling device, and determining whether the obtained operator identifier matches the preset operator identifier; In response to the acquired operator identifier matching any of the preset operator identifiers, determining that the operator of the calling device belongs to the preset operator; In response to the acquired operator identifier not matching any of the preset operator identifiers, it is determined that the operator of the calling device does not belong to the preset operator.

10. The device according to claim 6, characterized in that The link establishment module is further used for: After receiving the response message, determining whether the called device requires network playback according to the target early media field in the response message; In response to the called device not requiring network voice playback, the call with the called device is continued after local voice playback is performed.

11. An electronic device, comprising: processor; a memory for storing processor-executable instructions; The processor implements the steps in the method according to any one of claims 1 to 5 by running the executable instructions.

12. A computer-readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to implement the steps in the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method for transferring multimedia message among networks

    CN101202711A

  • Method for processing early media negotiation failure, associated equipment and communication system

    CN101662736A