Method and device for processing early media, and terminal

By receiving and setting the direction parameters of the media stream sent by the network device, it ensures the one-way reception and playback of the ring tone or ring tone, solves the problem of two-way media flow caused by misconfiguration on the network side, and improves the stability and user experience of the ring tone or ring ring. .

CN118677992APending Publication Date: 2024-09-20GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310270347.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-17
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

During a voice or video call, if the ring tone/ring ring direction is incorrectly configured on the network side, the mobile phone will cause the media flow to be bidirectional, causing the dial pad to automatically turn on the hands-free mode, and the ring tone/ring ring function cannot be used normally, resulting in a poor user experience.

Method used

By receiving the media flow direction parameter in the session initialization protocol update message sent by the network device, detecting and setting it as the receiving direction value, and sending it to the dial-up application to ensure one-way reception and playback of early media data.

Benefits of technology

It avoids the phenomenon of automatically turning on the hands-free media flow direction due to network-side configuration errors, ensuring the stability of the ring tone or ringing, and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677992A
    Figure CN118677992A
Patent Text Reader

Abstract

The invention provides a method and device for processing early media and a terminal. The method for processing the early media is applied to the terminal, and the method comprises the following steps: receiving a session initial protocol update message sent by network equipment, the session initial protocol update message comprising a direction parameter of a media stream of the early media; in response to detecting that the value of the direction parameter is an abnormal value, setting the value of the direction parameter as a receiving direction value; and sending the receiving direction value to the dialing application, so that the dialing application plays the data of the early media according to the receiving direction value. According to the embodiment of the invention, the terminal can normally report the direction of the early media to the application layer, the abnormal phenomenon of automatically starting the hands-free mode in the direction of reporting the media stream with wrong configuration at the network side is avoided, the unidirectional receiving of the early media stream is ensured, the stability of the polyphonic ringtone or the polyphonic ringtone is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of wireless communication technology, and more specifically, to a method, device, and terminal for processing early media. Background Art

[0002] By accessing the operator's IP multimedia subsystem network through the LTE or NR network architecture, voice calls / video calls, short messages, audio / video ringback tone and other services can be carried out. The ringback tone is a personalized colorful ringback tone service provided to customers, and the ringback tone is a personalized customized ringback tone that can be played by the called terminal during the ringing stage. The ringback tone and ringback tone are also early media. During a voice or video call, if the network side misconfigures the ringback tone / ringback tone direction, the phone will automatically turn on the hands-free function on the dial pad because the media stream of the ringback tone / ringback tone is bidirectional, and the ringback tone / ringback tone function cannot be used normally. Summary of the invention

[0003] The embodiment of the present application provides a method, device and terminal for processing early media. The following introduces various aspects involved in the embodiment of the present application.

[0004] In a first aspect, a method for processing early media is provided, which is applied to a terminal, and the method comprises: receiving a session initiation protocol update message sent by a network device, the session initiation protocol update message comprising a direction parameter of a media stream of the early media; in response to detecting that the value of the direction parameter is an abnormal value, setting the value of the direction parameter to a receiving direction value; and sending the receiving direction value to a dial-up application so that the dial-up application plays data of the early media according to the receiving direction value.

[0005] In a second aspect, a device for processing early media is provided, which is applied to a terminal, and the device includes: a receiving module, which is used to receive a session initiation protocol update message sent by a network device, and the session initiation protocol update message includes a direction parameter of a media stream of the early media; a setting module, which is used to set the value of the direction parameter to a receiving direction value in response to detecting that the value of the direction parameter is an abnormal value; and a dialing application module, which is used to play the data of the early media according to the receiving direction value.

[0006] In a third aspect, a terminal is provided, comprising: a memory for storing code; a transceiver for sending and receiving wireless communication information; and a processor connected to the transceiver, for executing the code stored in the memory to execute the method described in the first aspect.

[0007] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program is used to execute the method according to the first aspect.

[0008] According to a fifth aspect, a computer program product is provided, comprising instructions for executing the method according to the first aspect.

[0009] The embodiments of the present application can enable the terminal (such as a mobile phone) to normally report the direction of early media to the dial-up application, avoiding the abnormal phenomenon of automatically turning on the hands-free function due to reporting the media stream direction with incorrect network side configuration, helping to ensure unidirectional reception of early media streams, improving the stability of color ringback tone or color vibration, and enhancing user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 It is a schematic diagram of an application scenario of an embodiment of the present application.

[0011] Figure 2 It is a flowchart of a method for processing early media provided in an embodiment of the present application.

[0012] Figure 3 yes Figure 2 A flowchart of a possible implementation of the method.

[0013] Figure 4 yes Figure 3 A flowchart of a possible implementation method of step S330 in FIG.

[0014] Figure 5 yes Figure 2 A flowchart of another possible implementation of the method.

[0015] Figure 6 It is a schematic diagram of the structure of the device for processing early media provided in an embodiment of the present application.

[0016] Figure 7 It is a schematic diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0017] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0018] In order to facilitate understanding of the technical solutions provided by the embodiments of the present application, the application scenarios of the embodiments of the present application, the technical terms that may be involved, and the existing negotiation mechanisms in the relevant technologies are first introduced.

[0019] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: global system of mobile communication (GSM) system, code division multiple access (CDMA) system, wideband code division multiple access (WCDMA) system, general packet radio service (GPRS), long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD), universal mobile telecommunication system (UMTS), worldwide interoperability for microwave access (WiMAX) communication system, fifth generation (5G) system or new radio (NR), etc. The technical solutions provided in the present application can also be applied to future communication systems, such as the sixth generation mobile communication system, and satellite communication system, etc.

[0020] Figure 1 Schematic diagram of a communication scenario of an embodiment of the present application. Figure 1 As shown, the application scenario includes a network device 110 and a terminal device 120. The network device 110 may be an access network device, such as a base station. Each network device 110 includes one or more cells. The terminal device 120 may be a calling terminal, and in some embodiments, the terminal device 120 may be a called terminal.

[0021] With the introduction of voice over long term evolution (VoLTE), the quality of voice calls has been significantly improved compared to the 2G and 3G eras. VoLTE accesses the operator's IP multimedia subsystem (IMS) network through the LTE network architecture, and can provide voice calls / video calls, short messages, audio / video ringback tone and other services. With the upgrade of terminal equipment, core network capabilities, etc., the development of LTE video calls (video call over LTE, ViLTE) and new wireless video calls (video call over NR, ViNR), high-definition audio ringback tone, video ringback tone and other services have emerged. Color ring back tone (CRBT) is a personalized colorful ringback tone service provided to customers. It is an audio and video service pushed by the IMS network to the calling terminal when a terminal that supports audio / video calls and early media makes a call and the called terminal is in the ringing state.

[0022] The called terminal can play a customized ringing signal (CRS) during the ringing phase, also known as color ringing. Color ringing is an early media ringing tone that the called terminal hears before the called terminal picks up the phone.

[0023] Among them, early media is the media stream generated between the calling terminal and the network device from the time the calling terminal initiates the call to the time the called terminal answers. During this period, although the called terminal does not answer, media streams may also be generated between the calling terminal and the network device. To distinguish it from user media, this media is called early media. For example, the audio ringback tone and video ringback tone involved in the solution provided in the embodiment of the present application are both a type of early media, and early media may include audio early media and video early media. The audio color ringback tone and video color ringback tone mentioned in the embodiment of the present application are also a type of early media.

[0024] The IP multimedia subsystem network can implement color ring back tone and color vibration services through early session. The calling terminal and the called terminal exchange each other's resource reservation status through session initiation protocol (SIP) messages. The session initiation protocol is used to create, modify or release a session between one or more terminals. SIP messages can be divided into two types: request messages and response messages.

[0025] Type 1: Request message. Common request messages include:

[0026] 1) INVITE: Initiates a session invitation request (also called a call request) to invite a user to join a session. The session description is contained in the message body. For a two-party call, the calling terminal indicates the media information it can accept (such as media type and its parameters) in the session description. The called terminal indicates the media information it wants to receive in the message body of the response message, and can also indicate the media information it will send. Among them, INVITE includes two parts: a message header and a data area. The message header contains the address information of the calling terminal and the called terminal, the call subject, and the call priority. The data area includes information about the session media, which can be implemented by the session description protocol (SDP). SDP includes media types (video, audio, or text, etc.), real-time transport protocol (RTP), user datagram protocol (UDP), media format (MP3 audio or MPEG video, etc.) and ports, etc.

[0027] 2) ACK: Acknowledgement message, used to confirm that the final response to the INVITE message has been received. This message corresponds to the INVITE message.

[0028] 3)PRACK: Temporary confirmation / response, similar to ACK function.

[0029] 4) UPDATE: Session Initiation Protocol updates information, that is, modifies the session without modifying the dialog state.

[0030] Type 2: Response message. The response message may include:

[0031] 1) Temporary response 1XX indicates that the request message is being processed. For example, 180 may indicate that the called party is ringing, and the called terminal agent has obtained the called party's location and is reminding the called terminal.

[0032] 2) Final response 2XX, 3XX, 4XX, 5XX or 6XX. 2XX means the request has been successfully received, fully understood and accepted.

[0033] The following is an example of a mobile phone in a terminal. For mobile phones that support color ring back tone (CRBT) or color vibration (CRS), when making a ViNR call on a standalone (SA) network, the network side will configure the direction parameters for the color ring back tone / color vibration through a session initialization protocol update (SIP UPDATE) message with a send direction parameter code (a=sendonly). SA and non-standalone (NSA) are the two major deployment solutions for 5G.

[0034] The following describes the direction of configuring the color ring tone on the network side in combination with the above Table 1 and the corresponding codes.

[0035] Table 1 is a message flow chart of SIP. As shown in the bold box in Table 1, at the time "2022Dec 17 07:35:17.229", the network side configured the direction parameter of the first ringback tone, and the network side configured the session initiation protocol update message sub-item sent to the terminal side (BS>>MS). The direction parameter corresponding to the message sub-item is "a=sendonly", as shown in the code step (box part) corresponding to "2022Dec1707:35:17.229". In the SIP UPDATE message, the direction parameter of the first ringback tone is a=sendonly, indicating that the terminal only receives the ringback tone.

[0036] Table 1

[0037]

[0038] For a more detailed process, see Table 1 SIP message flow chart, and refer to the following code steps (partial code). SIPMessage Length = 2177

[0039] SIP Message Logged Bytes=2178

[0040] Message ID = IMS SIP UPDATE

[0041] Response Code=INFORMAL RESPONSE (0)

[0042] CM Call ID = 258

[0043] Content-Length:1356

[0044] Content-Type:application / sdp

[0045] V=0

[0046] O=-57873931 57873933 IN IP6 2409:8054:5002:222B:0008:0000:0000:0005S=SBC callC=IN IP6 2409:8054:5002:222B:0008:0000:0000:0005b=AS:49

[0047] b=RS:600

[0048] b=RR:2000

[0049] t=00

[0050] m=audio 58276 RTP / AVP 104 101 8 18 96 0 97 111 106b=AS:90

[0051] b=RS:600

[0052] b=RR:2000

[0053] a=rtpmap:104 AMR-VB / 16000 / 1

[0054] a=fmtp:104 mode--change-capability=2:max red=0

[0055] a=rtpmap:101 AMR / 8000

[0056] a=fmtp:101 mode-change-capability=2;max-red=0

[0057] a=rtpmap:8 PCMA / 8000

[0058] a=rtpmap:18 G729 / 8000

[0059] a=fmtp:18 annexb=no

[0060] a=rtpmap:96 telephone event / 16000

[0061] a=fmtp:96 0-15

[0062] a=sendrecv

[0063] a=maxptine:240

[0064] a=ptime:20

[0065] a=rtpmap:0 PCMU / 8000

[0066] a=rtpmap:97 telephone-event / 8000

[0067] a=fmtp:97 0-15

[0068] a=content:g.3gpp.cat

[0069] a=curr:qos local sendrecv

[0070] a=curr:qos remote none

[0071] a=des:qos mandatory local sendrecv

[0072] a=des:qos optional remote sendrecy

[0073] a=rtpmap:111EVS / 16000

[0074] a=fmtp:111br=9.6-64:bw=swb:mode-change-capability=2:cmr=0:dtx=0:

[0075] a=rtpmap:106EVS / 1 6000

[0076] a=fmtp:106br-5 9-64:bw=wb:mode--change capability=2:cmr=0:dtx=0:

[0077] n=video 52478RTP / AVP 116

[0078] a=rtpmap:116H264 / 90000

[0079] a=framerate:30

[0080] a=fmtp:116profile-level-id=42C01F:packetization-mode=1;sprop-parament

[0081] a=content g 3gpp.cat

[0082] a=curr:qos local sendrecv

[0083] a=curr:qos remote none

[0084] a=des:qos mandatory local sendrecv

[0085] a=des:qos optional remote sendrecv

[0086]

[0087] As shown in the gray box in Table 1, at the time "2022Dec 17 07:35:38.924", the network side configured the direction parameter of the second ringback tone. In the UPDATE SIP message sub-item configured by the network side and sent to the terminal side (BS>>MS), the code corresponding to the direction parameter of the second ringback tone is also "a=sendonly", as shown in the code in the following box, indicating that the terminal only receives the ringback tone.

[0088] At 2022Dec 17 07:35:38.924 (corresponding to the gray box in Table 1), a more detailed process can be found in the following code steps (partial code):

[0089] a=rtpmap:0PCMU 8000

[0090] m=video 0RTP / AVP 116

[0091] b=AS:2162

[0092] b=RS:8000

[0093] b=RR:6000

[0094] a=rtpmap:116H264 / 90000

[0095] a=fmtp:116profile-level-id=42C01F; packetization-mode

[0096]

[0097] a=curr:qos remote sendrecv

[0098] a=curr:qos local sendrecv

[0099] a=des:qos mandatory remote sendrecv

[0100] As shown in Table 1, the network side will also configure the wireless bearer of the color ring tone / color vibration, and the RTP packets of the color ring tone audio and video can be transmitted on the corresponding wireless bearer, and finally the mobile phone user can watch the color ring tone or color vibration.

[0101] Table 1 and the corresponding codes above are normal configuration situations. The network side performs RBT negotiation and configures a SIP update message with a direction parameter a=sendonly for the RBT, indicating that the RBT direction is only receiving and not sending.

[0102] Table 2

[0103]

[0104] If the network side mistakenly configures the UPDATE SIP message with the direction parameter a=sendrecv for the color ring tone, it means that the color ring tone is both received and sent. Table 2 is another message flow table of SIP. The following describes another direction of configuring the color ring tone on the network side in conjunction with Table 2 and its corresponding code.

[0105] As shown in the box line in Table 2, at time 2022Dec 17 07:06:05.155, in the SIP UPDATE message sub-item configured by the network side and sent to the terminal side (BS>>MS), the direction parameter of the ringback tone is a=sendrecv, as shown in the code in the box below, indicating that the terminal only receives the ringback tone.

[0106] For a more detailed process, at 2022Dec 17 07:06:05.155, please refer to the following code steps:

[0107] a=fmtp:980-15

[0108] m = video 12616RTP / AVP 114 34

[0109] a=content:9.3gpp.cat

[0110] a=rtpmap:114H264 / 90000

[0111] a=fmtp:114max-br-2176:profile-level-id=42C01F;packetization

[0112] a=rtpmap:34H263 / 90000

[0113] a=fmtp:34CIF=2 / MaxBR=3840

[0114] a=framerate:30

[0115] a=framesize:114 720-1280

[0116] a=tcap:1RTP AVPF

[0117] a=pcfg:1t=1

[0118] a=rtcp-fb:*trr-int 5000

[0119] a=rtcp-fb:nack

[0120] a=rtcp--fb:bittercom fir

[0121] a=rtcp-fb:*ccm tmmbr

[0122]

[0123] a=curr:qos remote none

[0124] a=des:qos optional remote sendrecv

[0125] a=conf:qos remote sendrecv

[0126] The specific program corresponding to the direction parameter a=sendrecv can be shown in the following code (the code is in the box).

[0127]

[0128]

[0129] The direction parameter is a=sendrecv, and the corresponding media attributes (video_attrib) are transmit and receive (TX and RX). This means that the terminal has both downlink and uplink. However, this is not consistent with the actual situation, because the terminal only needs to receive the ringback tone / ringback vibration, and does not need to send it. At this time, the mobile phone will report the message that the multimedia video / audio is bidirectional (Audio Tx Rx), and the dial pad will receive the message. According to the existing logic, the hands-free function will be automatically turned on, which will cause the hands-free function to be automatically turned on when the ringback tone is played, resulting in a poor user experience.

[0130] It can be seen that during a voice or video call, if the network side incorrectly configures the color ring tone / color vibration direction, the mobile phone will automatically turn on the hands-free function on the dial pad because the color ring tone / color vibration media stream is bidirectional, and the color ring tone / color vibration function cannot be used normally, resulting in a poor user experience.

[0131] It should be noted that the above-mentioned mobile phone encounters an example in which the network side incorrectly configures the ringback tone / color ring media stream as bidirectional during a voice or video call, causing the dial pad to automatically turn on the hands-free function. The embodiments of the present application can be applied to any type of scenario in which the terminal (such as a phone watch) cannot use the color back tone / color ring function normally due to the early media stream being bidirectional.

[0132] Therefore, how to develop a technical solution that can continue to use the color ring back tone / color vibration function normally when the early media stream is bidirectional is a problem that needs to be solved.

[0133] Based on this, an embodiment of the present application proposes a method for processing early media. Figure 2 The method of the embodiment of the present application is applied to a terminal, and the following is combined with Figure 2 The method of the embodiment of the present application is described in detail. Figure 2 As shown, the method for processing early media may mainly include steps S210 to S230, which are described in detail below.

[0134] It should be pointed out that the size of the serial numbers of the steps in the embodiments of the present application does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0135] In step S210, a session initiation protocol update (SIP UPDATE) message sent by a network device is received, where the session initiation protocol update message includes a direction parameter of a media stream of early media.

[0136] Terminals can be divided into calling terminals and called terminals. The calling terminal is a terminal that actively initiates a call request. It should be understood that in some embodiments, the same terminal can be a calling terminal, and in other embodiments, the same terminal can also be a called terminal. Early media can be a color ring tone or a color vibration. When the terminal is a calling terminal, the early media received by the calling terminal is a color ring tone. The color ring tone can be an audio color ring tone and a video color ring tone. The audio color ring tone can be an audio color ring tone in VoLTE and VoNR, or a video color ring tone in ViLTE and ViNR. Or, when the terminal is a called terminal, the early media received by the called terminal is a color vibration, and the color vibration can be an audio color vibration and a video color vibration. The audio color vibration can be an audio color vibration in VoLTE and VoNR, or a video color vibration in ViLTE and ViNR.

[0137] In some implementations, after the calling terminal initiates a voice or video call request to the called terminal, the network device sends a session initiation protocol update message to the calling terminal for early media negotiation. The session initiation protocol update message includes the direction parameter of the media stream of the early media. For example, when the direction parameter is the receiving direction (such as a=sendonly), it means that the terminal only receives and does not send. When the direction parameter is sending and receiving bidirectional (such as a=sendrecv), it means that the terminal both receives and sends.

[0138] The calling terminal and the called terminal need to reach an agreement on multimedia information during the session establishment process. To this end, the session description protocol (SDP) request and response mechanism multimedia information can be used for negotiation. This process is called media negotiation. Multimedia information includes but is not limited to media type, encoding method, resolution and rate. Media types can include video, audio or text, etc. Therefore, the network device will send a SIP update message to the calling terminal to negotiate the ringback tone. The SIP update message can include the direction parameter of the media stream of the early media (ringback tone).

[0139] In some implementations, after the calling terminal initiates a voice or video call request to the called terminal, the network device sends a SIP update message to the called terminal to negotiate a color ring tone. The SIP update message may include a direction parameter of the color ring tone media stream.

[0140] In step S220, in response to detecting that the value of the direction parameter is an abnormal value, the value of the direction parameter is set to a receiving direction value.

[0141] Since the color ring tone or color vibration media stream is received unidirectionally, the value of the direction parameter should be the receiving direction value. If the value of the direction parameter is detected to be an abnormal value, for example, the value of the direction parameter is detected to be a sending and receiving bidirectional value (i.e., Audio Tx Rx), it indicates that the direction of the color ring tone media stream of the calling terminal is both transmitting and receiving, or the direction of the color vibration media stream of the called terminal is both transmitting and receiving. This is inconsistent with the actual situation, that is, the bidirectional value of the direction parameter is an abnormal value. After the value of the direction parameter is detected to be an abnormal value, the value of the direction parameter is set (or reset) to the receiving direction value.

[0142] In some embodiments, the value of the direction parameter may be represented by 1 bit, such as a value of 0 indicating bidirectional transmission and reception, and a value of 1 indicating the receiving direction. In some embodiments, the value of the direction parameter may be represented by 2 bits, such as a value of 0 indicating bidirectional transmission and reception, a value of 1 indicating the receiving direction, and a value of 2 indicating the transmitting direction.

[0143] In step S230, the receiving direction value is sent to the dial-up application, so that the dial-up application plays the data of the early media according to the receiving direction value.

[0144] The dialing application can be in many forms, and the dialing application can include a dial. In some embodiments, the dialing application can also be a dial. The dial is a software that is manually operated on an automatic telephone to send out each digit of the telephone number. For example, a touch dial can be composed of several parts such as a touch key, a number sending selection circuit, a circuit number, a register, a controller, a cord conversion circuit, a display and an audio circuit. When dialing, the telephone number is converted into a decimal pulse number through the touch key and sent to the register for temporary storage, and is displayed by a digital tube. When the telephone number is dialed, the controller sends the telephone number data serially to the automatic switch through the cord conversion circuit at a standard speed. After the telephone number data is sent, the cord conversion circuit automatically resets, and then waits for the called user and the calling user to connect.

[0145] After the value of the direction parameter is set (or updated) to the receiving direction value, the updated direction parameter can be sent to the dialing application so that the dialing application processes the data of the early media according to the receiving direction value (i.e., the value of the direction parameter). For example, in the calling terminal, the dialing application can play the color ring data according to the updated receiving direction parameter. For another example, in the called terminal, the dialer can play the color vibration data according to the updated receiving direction parameter.

[0146] Before the dial-up application plays the data of the early media according to the updated direction parameter, the terminal may send a response message to the session initiation protocol update message to the network device, wherein the response message is used by the network device to determine the data of the early media to be sent. The response message may include the result of the early media negotiation. In some embodiments, the result of the early media negotiation may be used by the network device to determine the data of the early media to be sent. The early media data sent by the network device is received, and the media stream of the early media is usually played while being received. The response message generally includes the direction parameter of the media stream. The result of the media negotiation may include the multimedia information determined after the negotiation, and the multimedia information includes but is not limited to the media type and the encoding method. The media type may include video, audio or text, etc. Since the automatic opening of the hands-free is controlled by the dial-up application of the terminal, the direction parameter in the response message may be an unchanged value. In some embodiments, the direction parameter in the response message may also be a changed value.

[0147] In some implementations, before the dialing application plays the color ring data according to the updated direction parameter, the calling terminal may send a response message to the session initiation protocol update message to the network device, the response message including the result of the color ring negotiation; and receive the color ring data sent by the network device. In some implementations, the called terminal may send a response message to the session initiation protocol update message to the network device, the response message including the result of the color ring negotiation; and receive the color ring data sent by the network device, and then the dialing application plays the color ring data according to the updated direction parameter.

[0148] In some implementations, the media stream state of the early media may be sent to the dial-up application. The media stream state (such as videostate) may include a receiving direction value representing a direction parameter, and the media stream state may also include but is not limited to the type, resolution, and encoding method of the media. For example, the media stream state may include the video type and resolution of the video ringback tone.

[0149] In some implementations, the executor of the method of the embodiment of the present application may be a calling terminal. Before receiving the session initiation protocol update message sent by the network device, the calling terminal may send an initial call request to the called terminal; and receive a temporary response to the initial call request sent by the network device. The temporary response may be used by the network device to determine the initial information of the early media. The initial message of the early media may be whether the calling terminal supports early media, such as whether it supports video ringback tone.

[0150] In some implementations, the executor of the method of the embodiment of the present application may be the called terminal. Before receiving the session initiation protocol update message sent by the network device, the called terminal receives an initial call request from the calling terminal; and sends a temporary response to the initial call request to the network device. The temporary response can be used by the network device to determine the initial information of the early media. The initial message of the early media can be whether the called terminal supports early media, such as whether it supports video color vibration.

[0151] The embodiment of the present application detects the direction parameter of the media stream of the early media (color ringtone or color vibration) in the session initiation protocol update message sent by the network device. When the direction parameter is found to be an abnormal value, the direction parameter of the media stream is set to one-way reception, and the updated reception direction parameter is sent to the dial-up application. In this way, the terminal (such as a mobile phone) can report the direction of the early media to the application layer normally, which helps to avoid the abnormal phenomenon of automatically turning on the hands-free due to the wrong media stream direction reported due to the configuration error on the network side, which helps to ensure the one-way reception of the early media stream, improve the stability of the color ringtone or color vibration, and enhance the user experience.

[0152] The method for processing early media in the embodiment of the application is further described below in conjunction with some possible implementations of the embodiment of the application.

[0153] Figure 3 yes Figure 2 A flowchart of a possible implementation of the method is shown in FIG. Figure 3 The method is applied to the calling terminal. Figure 3 As shown, the method of the embodiment of the present application may mainly include steps S310 to S340, and these steps are described in detail below.

[0154] In step S310, a video call is initiated. The calling terminal supporting color ring back tone initiates a video call on the SA network (such as ViNR). It can also initiate a high-definition voice call.

[0155] In step S320, the CRBT negotiation is performed. A Session Initiation Protocol Update (SIP UPDATE) message sent by the network device is received to perform the CRBT negotiation. The Session Initiation Protocol Update message includes a direction parameter of the CRBT media stream.

[0156] In step S330, the direction of the color ring back tone media stream is detected.

[0157] A detection module can be used to detect the direction of the ringback tone media stream. Obtain the value of the direction parameter (video_attrib) of the media stream in the session initiation protocol update message. If the value of the direction parameter is a=sendonly, it indicates that the direction parameter is the receiving direction, which is the correct direction, and then directly proceed to step S340. If the value of the direction parameter is a=sendrecv, it indicates that the direction parameter is bidirectional for sending and receiving (i.e., Audio Tx Rx), which is an abnormal value, then ignore the sending direction and set (or reset) the value of the direction parameter to the receiving direction value (such as Audio Rx). Then report the media stream status (videostate) to the application layer (dial-up application), which includes the updated direction parameter value, media type (audio or video), and other information. Then proceed to step S340.

[0158] Media streaming is a technology that uses streaming transmission to play streaming media on the Internet. The audio, video or multimedia files transmitted over the network do not download the entire file before playing. The data stream is transmitted and played at any time, but there is some delay at the beginning. For example, the media stream of ringback tone or color vibration can be transmitted and played at any time.

[0159] In step S340, the color ring tone is played. The dial can play the received video color ring tone data and display the image of the video color ring tone according to the updated receiving direction parameter.

[0160] The embodiment of the present application detects the direction parameter of the color ring tone media stream in the session initiation protocol update message sent by the network device. When the direction parameter is an abnormal value, the direction parameter of the media stream is set to one-way reception, and the updated reception direction parameter is sent to the dial-up application. In this way, the terminal can report the direction of the early media normally, which helps to avoid the abnormal phenomenon of automatically turning on the hands-free function due to reporting the wrong media stream direction configured on the network side, helps to ensure the one-way reception of the early media stream, improve the stability of the color ring tone, and enhance the user experience.

[0161] Figure 4 yes Figure 3 A flowchart of a possible implementation of step S330 is shown in FIG. Figure 4 As shown, further, the detection setting of the color ring tone direction may include steps S410 to S430, and these steps are described in detail below.

[0162] In step S410, the value of the media stream direction parameter of the color ring tone is obtained. When performing color ring tone negotiation, the attribute configuration of the color ring tone (such as a=content:g.3gpp.cat) is obtained from the session initiation protocol update message. The value of the direction parameter (video_attrib) of the media stream is detected in the attribute configuration. If the direction parameter of the media stream is displayed as a=sendrecv, it indicates that the direction is bidirectional (i.e., Audio Tx Rx), which is an abnormal value, then step S420 is entered.

[0163] In step S420, the direction of the media stream is reset. The direction of the media stream is reset (or set) to the receiving direction (Audio Rx), that is, the direction parameter (video_attrib) of the color ring tone media stream is set to a=sendonly.

[0164] In step S430, the media stream status is sent. After resetting the direction parameter value to the receiving direction value, the media stream status is reported to the dial, and the media stream status includes information such as the updated direction parameter value and the type of media (audio or video).

[0165] Figure 5 yes Figure 2 A flowchart of another possible implementation of the method is shown below. Figure 5 The method is applied to the called terminal. Figure 5 As shown, the method of the embodiment of the present application may mainly include steps S510 to S540, and these steps are described in detail below.

[0166] In step S510, responding to the video call, the called terminal supporting color ringing responds to the video call initiated by the calling terminal on the SA network (such as ViNR). It can also be responding to a high-definition voice call.

[0167] In step S520, color ring negotiation is performed. A session initiation protocol update (SIP UPDATE) message sent by the network device is received to perform color ring negotiation. The session initiation protocol update message includes a direction parameter of the color ring media stream.

[0168] In step S530, the direction of the color vibration media flow is detected.

[0169] A detection module can be used to detect the direction of the color vibration media stream. Obtain the value of the media stream direction parameter (video_attrib) in the session initiation protocol update message. If the value of the direction parameter is a=sendonly, it indicates that the direction parameter is the receiving direction, which is an accurate direction, and then directly proceed to step S540. If the value of the direction parameter is a=sendrecv, it indicates that the direction parameter is bidirectional sending and receiving (i.e., Audio Tx Rx), which is an abnormal value, then the value of the direction parameter is set to the receiving direction value (such as Audio Rx). Then report the media stream status to the dial-up application. The media stream status information includes the updated direction parameter value, the type of media (audio, video), etc. Then proceed to step S540.

[0170] In step S540, the color vibration is played. The dial can play the received video color vibration data and display the image of the video color vibration according to the updated receiving direction parameter.

[0171] The embodiments of the present application can enable the terminal (such as a mobile phone) to normally report the direction of early media, help avoid reporting the wrong media flow direction configured on the network side, and the abnormal phenomenon of automatically turning on the hands-free function, help ensure unidirectional reception of color ring media flow, improve the stability of color ring, and enhance user experience.

[0172] Combination of the above Figures 1 to 5 The method embodiment of the present application is described in detail. Figure 6 and Figure 7 The device embodiment of the present application is described in detail. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment, so the parts not described in detail can refer to the previous method embodiment.

[0173] Figure 6 Schematic diagram of a device for processing early media provided by an embodiment of the present application. Figure 6 As shown, the apparatus 600 for processing early media includes a receiving module 610 , a setting module 620 and a dialing application module 630 .

[0174] The receiving module 610 is used to receive a session initiation protocol update message sent by a network device, where the session initiation protocol update message includes a direction parameter of a media stream of early media.

[0175] The setting module 620 is used for setting the value of the direction parameter to a receiving direction value in response to detecting that the value of the direction parameter is an abnormal value.

[0176] The dialing application module 630 is used to play the data of the early media according to the receiving direction value.

[0177] Optionally, the early media may be a color ring tone or a color vibration. When the terminal is a calling terminal, the early media is a color ring tone; or when the terminal is a called terminal, the early media is a color vibration.

[0178] Optionally, the apparatus 600 may include a sending module, such as Figure 6 As shown in the dashed box. Figure 6 The dashed box in the figure indicates an optional item. The sending module is used to send a response message to the session initiation protocol update message to the network device; the receiving module is also used to receive the early media data sent by the network device. The response message is used by the network device to determine the early media data to be sent.

[0179] Optionally, a media stream state of the early media is sent to the dial-up application, where the media stream state includes a receiving direction value.

[0180] Optionally, the terminal may be a calling terminal. Before receiving the session initiation protocol update message sent by the network device, the calling terminal sends an initial call request to the called terminal; and receives a temporary response to the initial call request sent by the network device. The temporary response is used by the network device to determine initial information of early media.

[0181] Optionally, the terminal may be a called terminal. Before receiving the session initiation protocol update message sent by the network device, the called terminal receives an initial call request from the calling terminal and sends a temporary response to the initial call request to the network device. The temporary response is used by the network device to determine initial information of early media.

[0182] Optionally, the abnormal value is a send-receive bidirectional value, and the dialing application is a dial pad.

[0183] Figure 7 700 may be any of the terminal devices mentioned above, and may be used to implement the method described in the above method embodiment. The terminal 700 may include a memory 710, a transceiver 720, and a processor 730.

[0184] The memory 710 is used to store codes.

[0185] The transceiver 720 is used to send and receive wireless communication information.

[0186] The processor 730 is connected to the transceiver 720 and is configured to execute the code stored in the memory 710 to perform any of the methods described above.

[0187] The processor is the computing and control core of the electronic device and is the final execution unit for information processing and program operation. The processor 730 can be a general-purpose processor, including a central processing unit, a microcontroller unit, a network processor, or other conventional processors. It can also be a dedicated processor, including a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.

[0188] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and the computer program is used to execute any of the methods described above.

[0189] The terminal device in the embodiment of the present application may also be referred to as a terminal, user equipment (UE), user terminal, access terminal, user unit, user station, mobile station, mobile station (MS), mobile terminal (MT), remote terminal, remote station, mobile device, wireless communication device, user agent or user device. The terminal device in the embodiment of the present application may be a device that provides voice and / or data connectivity to a user, and may be used to connect people, objects and machines, such as a handheld device with wireless connection function, a vehicle-mounted device, etc. The terminal device in the embodiment of the present application can be a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. Optionally, the UE can be used to act as a base station. For example, the UE can act as a scheduling entity that provides sidelink signals between UEs in V2X or D2D, etc. For example, a cellular phone and a car communicate with each other using a sidelink signal. The cellular phone and the smart home device communicate with each other without relaying the communication signal through the base station.

[0190] The network device in the embodiment of the present application may be a device for communicating with a terminal device, and the network device may also be referred to as an access network device or a wireless access network device, such as a base station. The network device in the embodiment of the present application may refer to a wireless access network (RAN) node (or device) that connects a terminal device to a wireless network. Base station can broadly cover various names as follows, or replace with the following names, such as: NodeB, evolved NodeB (eNB), next generation NodeB (gNB), relay station, access point, transmission point (TRP), transmission point (TP), master station MeNB, auxiliary station SeNB, multi-standard radio (MSR) node, home base station, network controller, access node, wireless node, access point (AP), transmission node, transceiver node, base band unit (BBU), remote radio unit (RRU), active antenna unit (AAU), remote radio head (RRH), central unit (CU), distributed unit (DU), positioning node, etc. The base station can be a macro base station, a micro base station, a relay node, a donor node or the like, or a combination thereof. The base station can also refer to a communication module, a modem or a chip for being arranged in the aforementioned device or apparatus. The base station can also be a mobile switching center and a device that performs base station functions in device-to-device D2D, vehicle-to-everything (V2X), machine-to-machine (M2M) communications, a network-side device in a 6G network, and a device that performs base station functions in future communication systems. The base station can support networks with the same or different access technologies. The embodiments of the present application do not limit the specific technology and specific device form used by the network equipment.

[0191] Base stations can be fixed or mobile. For example, a helicopter or drone can be configured to act as a mobile base station, and one or more cells can move based on the location of the mobile base station. In other examples, a helicopter or drone can be configured to act as a device that communicates with another base station.

[0192] In some deployments, the network device in the embodiments of the present application may refer to a CU or a DU, or the network device includes a CU and a DU. The gNB may also include an AAU.

[0193] The network equipment and terminal equipment can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; they can also be deployed on the water surface; they can also be deployed on aircraft, balloons and satellites in the air. The embodiments of the present application do not limit the scenarios in which the network equipment and terminal equipment are located.

[0194] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a machine-readable storage medium, or transmitted from one machine-readable storage medium to another machine-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The machine-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0195] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments of the present disclosure can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present disclosure.

[0196] In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0197] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0198] In addition, each functional unit in each embodiment of the present disclosure 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.

[0199] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A method for processing early media, characterized in that Applied to a terminal, the method comprises: receiving a session initiation protocol update message sent by a network device, wherein the session initiation protocol update message includes a direction parameter of a media stream of the early media; In response to detecting that the value of the direction parameter is an abnormal value, setting the value of the direction parameter to a receiving direction value; The receiving direction value is sent to a dial-up application, so that the dial-up application plays the data of the early media according to the receiving direction value.

2. The method according to claim 1, characterized in that Before the dial-up application plays the data of the early media according to the receiving direction value, the method includes: Sending a response message to the session initiation protocol update message to the network device; Receive the early media data sent by the network device.

3. The method according to claim 1, characterized in that The sending the receiving direction value to the dial-up application includes: The media stream state of the early media is sent to the dial-up application, where the media stream state includes the receiving direction value.

4. The method according to any one of claims 1 to 3, characterized in that The terminal is a calling terminal, and before receiving a session initiation protocol update message sent by a network device, the method includes: Sending an initial call request to the called terminal; A temporary response to the initial call request sent by the network device is received, where the temporary response is used by the network device to determine initial information of the early media.

5. The method according to any one of claims 1 to 3, characterized in that: The terminal is a called terminal, and before receiving a session initiation protocol update message sent by a network device, the method includes: Receiving an initial call request from a calling terminal; A provisional response to the initial call request is sent to the network device, where the provisional response is used by the network device to determine initial information of the early media.

6. The method according to any one of claims 1 to 3, characterized in that The early media is color ring back tone or color vibration. When the terminal is a calling terminal, the early media is a ring back tone, or When the terminal is a called terminal, the early media is color ringing.

7. The method according to any one of claims 1 to 3, characterized in that The abnormal value is a sending and receiving bidirectional value, and the dialing application is a dial pad.

8. An apparatus for processing early media, characterized in that Applied to a terminal, the device comprises: A receiving module, configured to receive a session initiation protocol update message sent by a network device, wherein the session initiation protocol update message includes a direction parameter of a media stream of the early media; A setting module, configured to set the value of the direction parameter to a receiving direction value in response to detecting that the value of the direction parameter is an abnormal value; The dial-up application module is used to play the data of the early media according to the receiving direction value.

9. A terminal, characterized in that: include: A memory for storing codes; A transceiver for sending and receiving wireless communication information; A processor, connected to the transceiver, configured to execute the code stored in the memory to perform the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed, the computer program is used to implement the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Message transmission method and apparatus, device, and storage medium

    WO2026098400A1