Address and IMS (IP Multimedia Subsystem) message sending method, terminal and network side equipment
The relay terminal sends the NAT-processed address to P-CSCF, which solves the problem that P-CSCF cannot obtain the relay terminal address, ensures the normal registration and calling of the remote terminal, and improves the effectiveness of communication.
Patent Information
- Application Number
- CN202310330822.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-01
AI Technical Summary
In the Layer 3 relay communication scenario, P-CSCF cannot obtain the address of the relay terminal, causing remote terminal registration or call failure.
The relay terminal receives the IMS message from the remote terminal and sends the NAT-processed address to the P-CSCF to ensure that the P-CSCF can obtain the address of the relay terminal.
This effectively avoids remote terminal registration or call failures and improves the effectiveness of communication.
Smart Images

Figure CN118740786A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a method for sending an address and an Internet Protocol Multimedia Subsystem (IP Multimedia Subsystem, IMS) message, a terminal, and a network-side device. Background Art
[0002] In order to expand network coverage, terminals at the edge of a cell or outside network coverage can access the network through relay terminals to obtain network services. This method can be called relay communication.
[0003] In the Layer-3 UE-to-Network relay communication scenario, the relay terminal (relay UE) can provide relay services for the remote terminal (Remote UE). For example, the relay terminal receives service data from the remote terminal and then routes it to the network, or the relay terminal receives data sent by the network to the remote terminal and then routes it to the remote terminal.
[0004] When a remote terminal registers with IMS or initiates a call (e.g., an emergency call) through a relay terminal, the Proxy-Call Session Control Function (P-CSCF) may request information about the relay terminal, such as location information or identification information, from the Policy Control Function (PCF), and the address of the relay terminal (e.g., IP address) must be carried in the request message. However, the P-CSCF cannot obtain the address of the relay terminal, resulting in the failure of the remote terminal registration or call. Summary of the invention
[0005] The embodiments of the present application provide an address, an IMS message sending method, a terminal, and a network-side device, which can solve the problem of remote terminal registration or call failure caused by the P-CSCF being unable to obtain the address of the relay terminal.
[0006] In a first aspect, a method for sending an IMS message is provided, the method comprising: a relay terminal receives a first IMS message from a remote terminal, the first IMS message including a first address allocated by the relay terminal to the remote terminal; the relay terminal sends a second IMS message to a P-CSCF, the second IMS message including a second address, the second address being an address obtained by the relay terminal after performing NAT on the first address.
[0007] In a second aspect, a method for sending an address is provided, comprising: a relay terminal receives a first request message from a remote terminal, the first request message is used to request allocation of an address for the remote terminal, or the first request message is used to request establishment of a communication connection between the remote terminal and the relay terminal; the relay terminal sends a second address to the remote terminal, the second address is the IP address of the PDU session of the relay terminal; or the second address is the IP address and a first port number of the PDU session of the relay terminal; or the second address is an address obtained after performing NAT on the first address allocated to the remote terminal.
[0008] In a third aspect, a method for sending an IMS message is provided, comprising: a P-CSCF receives a second IMS message, the second IMS message is a message sent by a remote terminal via a relay terminal, the second IMS message includes a second address, and the second address is an address obtained by the relay terminal after performing NAT on a first address of the remote terminal; the P-CSCF sends a third request message to a PCF, the third request message including the second address.
[0009] In a fourth aspect, a device for sending an IMS message is provided, comprising: a receiving module for receiving a first IMS message from a remote terminal, wherein the first IMS message includes a first address allocated by the device to the remote terminal; and a sending module for sending a second IMS message to a P-CSCF, wherein the second IMS message includes a second address, and the second address is an address obtained after the device performs NAT on the first address.
[0010] In a fifth aspect, a device for sending an address is provided, comprising: a receiving module, used to receive a first request message from a remote terminal, wherein the first request message is used to request allocation of an address to the remote terminal, or the first request message is used to request establishment of a communication connection between the remote terminal and the device; a sending module, used to send a second address to the remote terminal, wherein the second address is the IP address of the PDU session of the device; or the second address is the IP address and a first port number of the PDU session of the device; or the second address is the address obtained after performing NAT on the first address allocated to the remote terminal.
[0011] In a sixth aspect, a device for sending an IMS message is provided, comprising: a receiving module, used to receive a second IMS message, wherein the second IMS message is a message sent by a remote terminal via a relay terminal, and the second IMS message includes a second address, which is an address obtained by the relay terminal after performing NAT on the first address of the remote terminal; and a sending module, used to send a third request message to a PCF, wherein the third request message includes the second address.
[0012] In a seventh aspect, a terminal is provided, comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect or the second aspect are implemented.
[0013] In an eighth aspect, a terminal is provided, comprising a processor and a communication interface, wherein the communication interface is used to receive a first IMS message from a remote terminal, the first IMS message including a first address allocated by the terminal to the remote terminal; send a second IMS message to a P-CSCF, the second IMS message including a second address, the second address being an address obtained by the terminal after performing NAT on the first address. Alternatively, the communication interface is used to receive a first request message from a remote terminal, the first request message being used to request allocation of an address to the remote terminal, or the first request message being used to request establishment of a communication connection between the remote terminal and the terminal; send a second address to the remote terminal, the second address being an IP address of a PDU session of the terminal; or the second address being an IP address and a first port number of the PDU session of the terminal; or the second address being an address obtained after performing NAT on the first address allocated to the remote terminal.
[0014] In a ninth aspect, a network side device is provided, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the third aspect are implemented.
[0015] In the tenth aspect, a network side device is provided, including a processor and a communication interface, wherein the communication interface is used to receive a second IMS message, the second IMS message is a message sent by a remote terminal via a relay terminal, and the second IMS message includes a second address, which is an address obtained by the relay terminal after performing NAT on the first address of the remote terminal; and send a third request message to the PCF, wherein the third request message includes the second address.
[0016] In the eleventh aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect, the second aspect or the third aspect are implemented.
[0017] In the twelfth aspect, a wireless communication system is provided, including: a terminal and a network side device, wherein the terminal can be used to execute the steps of the method described in the first aspect or the second aspect, and the network side device can be used to execute the steps of the method described in the third aspect.
[0018] In the thirteenth aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instructions to implement the steps of the method described in the first aspect, the second aspect or the third aspect.
[0019] In a fourteenth aspect, a computer program / program product is provided, wherein the computer program / program product is stored in a storage medium and is executed by at least one processor to implement the steps of the method described in the first aspect, the second aspect or the third aspect.
[0020] In an embodiment of the present application, the relay terminal receives a first IMS message from a remote terminal, the first IMS message includes a first address assigned by the relay terminal to the remote terminal; the relay terminal sends a second IMS message to the P-CSCF, the second IMS message includes a second address, and the second address is an address obtained after the relay terminal performs NAT on the first address. In this way, the P-CSCF can obtain the address of the relay terminal, avoid registration or call failure of the remote terminal, and improve communication effectiveness. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 is a schematic diagram of a wireless communication system according to an embodiment of the present application;
[0022] Figure 2 is a schematic flow chart of a method for sending an IMS message according to an embodiment of the present application;
[0023] Figure 3 is a schematic flow chart of a method for sending an address according to an embodiment of the present application;
[0024] Figure 4 is a schematic flow chart of a method for sending an IMS message according to an embodiment of the present application;
[0025] Figure 5 is a schematic flow chart of a method for sending an IMS message according to an embodiment of the present application;
[0026] Figure 6is a schematic flow chart of a method for sending an IMS message according to an embodiment of the present application;
[0027] Figure 7 is a schematic flow chart of a method for sending an address according to an embodiment of the present application;
[0028] Figure 8 is a structural diagram of an IMS message sending device according to an embodiment of the present application;
[0029] Fig. 9 is a schematic diagram of the structure of an address sending device according to an embodiment of the present application;
[0030] Fig.10 is a structural diagram of an IMS message sending device according to an embodiment of the present application;
[0031] Fig.11 is a schematic diagram of the structure of a communication device according to an embodiment of the present application;
[0032] Fig.12 is a schematic diagram of the structure of a terminal according to an embodiment of the present application;
[0033] Fig.13 It is a schematic diagram of the structure of a network side device according to an embodiment of the present application. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.
[0035] The terms "first", "second", etc. of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of one type, and the number of objects is not limited, for example, the first object can be one or more. In addition, "or" in the present application represents at least one of the connected objects. For example, "A or B" covers three schemes, namely, Scheme 1: including A but not including B; Scheme 2: including B but not including A; Scheme 3: including both A and B. The character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0036] The term "indication" in this application can be a direct indication (or explicit indication) or an indirect indication (or implicit indication). A direct indication can be understood as the sender explicitly informing the receiver of specific information, operations to be performed, or request results in the sent indication; an indirect indication can be understood as the receiver determining the corresponding information according to the indication sent by the sender, or making a judgment and determining the operation to be performed or the request result according to the judgment result.
[0037] It is worth noting that the technology described in the embodiments of the present application is not limited to the Long Term Evolution (LTE) / LTE-Advanced (LTE-A) system, but can also be used in other wireless communication systems, such as Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Frequency Division Multiple Access (FDMA), Orthogonal Frequency Division Multiple Access (OFDMA), Single-carrier Frequency Division Multiple Access (SC-FDMA) or other systems. The terms "system" and "network" in the embodiments of the present application are often used interchangeably, and the described technology can be used for the systems and radio technologies mentioned above as well as for other systems and radio technologies. The following description describes a New Radio (NR) system for illustrative purposes, and NR terminology is used in most of the following descriptions, but these technologies can also be applied to systems other than NR systems, such as the 6th generation (6 th Generation, 6G) communication system.
[0038] Figure 1A block diagram of a wireless communication system applicable to an embodiment of the present application is shown. The wireless communication system includes a terminal 11 and a network side device 12. Among them, the terminal 11 can be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a notebook computer, a personal digital assistant (Personal Digital Assistant, PDA), a handheld computer, a netbook, an ultra-mobile personal computer (Ultra-mobile Personal Computer, UMPC), a mobile Internet device (Mobile Internet Device, MID), an augmented reality (Augmented Reality, AR), a virtual reality (Virtual Reality, VR) device, a robot, a wearable device (Wearable Device), an aircraft (flight vehicle), a vehicle-mounted device (Vehicle User Equipment, VUE), a ship-mounted device, a pedestrian terminal (Pedestrian User Equipment, PUE), a smart home (home appliances with wireless communication functions, such as refrigerators, televisions, washing machines or furniture, etc.), a game console, a personal computer (Personal Computer, PC), a teller machine or a self-service machine and other terminal side devices. Wearable devices include: smart watches, smart bracelets, smart headphones, smart glasses, smart jewelry (smart bracelets, smart bracelets, smart rings, smart necklaces, smart anklets, smart anklets, etc.), smart wristbands, smart clothing, etc. Among them, the vehicle-mounted device can also be called a vehicle-mounted terminal, a vehicle-mounted controller, a vehicle-mounted module, a vehicle-mounted component, a vehicle-mounted chip or a vehicle-mounted unit, etc. In addition to the above-mentioned terminal devices, it can also be a chip in the terminal, such as a modem chip, a system-on-chip (System on Chip, SoC). It should be noted that the specific type of the terminal 11 is not limited in the embodiment of the present application. The network side device 12 may include an access network device or a core network device, wherein the access network device may also be referred to as a radio access network (Radio Access Network, RAN) device, a radio access network function or a radio access network unit. The access network device may include a base station, a wireless local area network (Wireless Local Area Network, WLAN) access point (AccessPoint, AS) or a wireless fidelity (Wireless Fidelity, WiFi) node, etc.Among them, the base station may be referred to as a Node B (NB), an evolved Node B (eNB), a next generation Node B (gNB), a New Radio Node B (NR Node B), an access point, a Relay Base Station (RBS), a Serving Base Station (SBS), a Base Transceiver Station (BTS), a radio base station, a radio transceiver, a Basic Service Set (BSS), an Extended Service Set (ESS), a Home Node B (HNB), a Home Evolved Node B (home evolved Node B), a Transmission Reception Point (TRP) or other appropriate terms in the field. As long as the same technical effect is achieved, the base station is not limited to specific technical terms. It should be noted that in the embodiments of the present application, only the base station in the NR system is used as an example for introduction, and the specific type of the base station is not limited.
[0039] The core network equipment may include but is not limited to at least one of the following: core network node, core network function, mobility management entity (Mobility Management Entity, MME), access mobility management function (Access and Mobility Management Function, AMF), session management function (Session Management Function, SMF), user plane function (User Plane Function, UPF), policy control function (Policy Control Function, PCF), policy and charging rules function unit (Policy and Charging Rules Function, PCRF), edge application service discovery function (Edge Application Server Discovery Function, EASDF), unified data management (Unified Data Management, UDM), unified data storage (Unified Data Repository, UDR), home user server (Home Subscriber Server, HSS), centralized network configuration (CNC), network storage function (Network Repository Function, NRF), network exposure function (Network Exposure Function, NEF), local NEF (Local NEF, or L-NEF), binding support function (Binding Support Function, BSF), application function (Application Function, AF), etc. It should be noted that in the embodiment of the present application, only the core network device in the NR system is introduced as an example, and the specific type of the core network device is not limited.But not limited to at least one of the following: core network node, core network function, mobility management entity (Mobility Management Entity, MME), access mobility management function (Access and Mobility Management Function, AMF), session management function (Session Management Function, SMF), user plane function (UserPlane Function, UPF), policy control function (Policy Control Function, PCF), policy and charging rules function unit (Policy and Charging Rules Function, PCRF), edge application service discovery function (Edge Application Server Discovery Function, EASDF), unified data management (Unified Data Management, UDM), unified data storage (Unified Data Repository, UDR), home user server (Home Subscriber Server, HSS), centralized network configuration (CNC), network storage function (Network Repository Function, NRF), network exposure function (Network Exposure Function, NEF), local NEF (Local NEF, or L-NEF), binding support function (Binding Support Function, BSF), application function (Application Function, AF), etc. It should be noted that in the embodiment of the present application, only the core network device in the NR system is introduced as an example, and the specific type of the core network device is not limited.
[0040] In the following, in conjunction with the accompanying drawings, the method for sending an address and the method for sending an IMS message provided in the embodiments of the present application are described in detail through some embodiments and their application scenarios.
[0041] like Figure 2 As shown, an embodiment of the present application provides a method 200 for sending an IMS message. The method can be executed by a relay terminal. In other words, the method can be executed by software or hardware installed in the relay terminal. The method includes the following steps.
[0042] S202: The relay terminal receives a first IMS message from a remote terminal, where the first IMS message includes a first address allocated by the relay terminal to the remote terminal.
[0043] The first address in each embodiment of the present application may be a private IP address. The second address in each embodiment of the present application may be a private IP address or a public IP address.
[0044] In this embodiment, the first address is an address allocated by the relay terminal to the remote terminal, and the first address may be a private network IPv4 address.
[0045] In this embodiment, the first IMS message may be an IMS registration message, an emergency IMS registration message, an IMS call message, an emergency IMS call message, or other types of IMS messages. For details, please refer to the IMS registration request message in Embodiment 1 and Embodiment 2.
[0046] Optionally, in this embodiment, the relay terminal may modify (or replace) the first address in the first IMS message with a second address to obtain a second IMS message; or, the relay terminal may add the second address to the first IMS message to obtain a second IMS message.
[0047] S204: The relay terminal sends a second IMS message to the P-CSCF, where the second IMS message includes a second address, and the second address is an address obtained after the relay terminal performs Network Address Translation (NAT) on the first address.
[0048] For details of the second IMS message, please refer to the IMS registration request message in Embodiment 1 and Embodiment 2.
[0049] In this embodiment, the second address is an address obtained by the relay terminal after performing NAT on the first address, and the second address may be a private network IP address or a public network IP address. The second address may be an IP address, or a combination of an IP address and a port number (Port).
[0050] Optionally, in various embodiments of the present application, the second address includes an IP address of a protocol data unit (PDU) session of the relay terminal; or, the second address includes an IP address and a port number of the PDU session of the relay terminal.
[0051] Optionally, the above PDU session may be an emergency PDU session. In this example, the first IMS message sent by the remote terminal may be an emergency IMS registration message or an emergency IMS call message. This example is applicable to a scenario in which the remote terminal initiates an IMS registration or makes a call (e.g., an emergency call) through a relay terminal.
[0052] In the method for sending an IMS message provided in an embodiment of the present application, a relay terminal receives a first IMS message from a remote terminal, the first IMS message includes a first address allocated by the relay terminal to the remote terminal; the relay terminal sends a second IMS message to a P-CSCF, the second IMS message includes a second address, and the second address is an address obtained after the relay terminal performs NAT on the first address. In this way, the P-CSCF can obtain the address of the relay terminal, avoid registration or call failure of the remote terminal, and improve communication effectiveness.
[0053] The IMS message sending method provided in the embodiment of the present application can enable a remote terminal to execute an emergency service through a relay terminal.
[0054] In one example, before S204, the method further includes the following step: the relay terminal modifies the first address in a via header or a contact header in the first IMS message to the second address, to obtain the second IMS message.
[0055] This embodiment only needs to improve the behavior executed on the relay terminal side, and other devices such as the P-CSCF side do not need to be improved, which has little impact on the protocol and is low in cost.
[0056] Optionally, in this example, the second address may be a private IP address or a public IP address. In the case where the second address is a public IP address, after S204, the method further includes: the relay terminal receives a response message sent by the P-CSCF, such as a 401 message. For the convenience of description, the following is introduced by taking the response message being a 401 message as an example. The relay terminal adds the second address in the via header in the 401 message; and sends the modified 401 message to the remote terminal. Optionally, the method further includes: the relay terminal adds a received parameter in the via header in the 401 message. This embodiment mentions that the second address is added in the via header, which may be a new addition of the second address in the via header, or replacing the existing address in the via header with the second address. Optionally, the second address is added in the via header, and the second address may be added in the received parameter in the via header. For example, received = second address.
[0057] Optionally, adding the second address in the via header in the 401 message includes: adding the second address in the via header in the 401 message when the via header of the 401 message does not include a received parameter.
[0058] In this example, by adding the second address, the remote terminal can carry the second address in the message sent in the subsequent signaling process, which is helpful for the P-CSCF to obtain the second address of the relay terminal.
[0059] In one example, before S204, the method further includes the following steps: the relay terminal adds the second address to a first protocol header in the first IMS message to obtain the second IMS message; wherein the first protocol header includes at least one of the following: a via header, a contact header, and a Record-Route header.
[0060] Optionally, in this example, the first protocol header includes multiple addresses, each address corresponds to a qvalue value, and the qvalue value corresponding to the second address is the highest value, for example, the qvalue value is 1, which is conducive to P-CSCF to preferentially decode and obtain the second address.
[0061] The embodiment of the present application also provides a method for sending an address, which can be executed by a relay terminal. In other words, the method can be executed by software or hardware installed in the relay terminal, such as Figure 3 As shown, the method includes the following steps.
[0062] S302: The relay terminal receives a first request message from a remote terminal, where the first request message is used to request allocation of an address for the remote terminal, or the first request message is used to request establishment of a communication connection between the remote terminal and the relay terminal.
[0063] S304: The relay terminal sends a second address to the remote terminal, where the second address is the IP address of the PDU session of the relay terminal; or, the second address is the IP address of the PDU session of the relay terminal and the first port number; or, the second address is the address obtained after performing NAT on the first address assigned to the remote terminal.
[0064] Optionally, the PDU session in this embodiment may be an emergency PDU session.
[0065] For this step, please refer to step 1 to step 3 of embodiment 3.
[0066] The address sending method provided in the embodiment of the present application is that the relay terminal allocates a second address to the remote terminal, and the second address is the IP address of the PDU session of the relay terminal, or the IP address and the first port number of the PDU session; or the second address is the address obtained after performing NAT on the first address allocated to the remote terminal. In this way, the remote terminal can carry the second address in subsequent communication processes, which is beneficial for the P-CSCF to obtain the address of the relay terminal, avoid remote terminal registration or call failure, and improve communication effectiveness.
[0067] The address sending method provided in the embodiment of the present application can enable a remote terminal to perform emergency services through a relay terminal.
[0068] Optionally, as an embodiment, the second address is the IP address and the first port number of the relay terminal PDU session, including: the relay terminal allocates the first port number to the remote terminal, and uses the combination of the IP address and the first port number of the relay terminal PDU session as the second address.
[0069] Optionally, as an embodiment, the second address is an address obtained after performing NAT on the first address assigned to the remote terminal, including: the relay terminal assigns a first address to the remote terminal, the first address is a private network IP address, and the relay terminal performs NAT on the first address to obtain the second address.
[0070] Optionally, as an embodiment, the relay terminal sending the second address to the remote terminal includes: when the relay terminal receives an emergency relay service code (RSC) sent by the remote terminal, the relay terminal sends the second address to the remote terminal. Optionally, the emergency RSC can be carried in a direct link establishment request (Direct Link Establishment Request), or carried by the first request message, or can also be carried by other messages.
[0071] Optionally, as an embodiment, the above method further includes the following steps: the relay terminal receives an IP packet from the remote terminal; and directly forwards the IP packet (the NAT process can be skipped) when the IP packet includes the second address. In this example, since the second address assigned by the relay terminal to the remote terminal is the IP address of the PDU session of the relay terminal, or the IP address and the first port number of the PDU session; or the second address is the address obtained after NAT is performed on the first address assigned to the remote terminal, the relay terminal can skip the NAT process when forwarding the IP packet of the remote terminal.
[0072] Optionally, as an embodiment, the method provided in each of the above embodiments also includes the following steps: the relay terminal receives a second request message from the remote terminal, the second request message is used to request allocation of an address for transmitting a target service; the relay terminal sends a third address to the remote terminal, the third address is the IP address and the second port number of the PDU session of the relay terminal; or, the third address is the address obtained after performing NAT on the first address allocated to the remote terminal.
[0073] This embodiment may be implemented in combination with the embodiment of the method for sending an address in the foregoing text, or may be implemented independently.
[0074] In this embodiment, for example, when the remote terminal completes registration, if the remote terminal initiates a request to establish a voice service, before establishing the voice service, the remote terminal can initiate a request to the relay terminal through a second request message, and the relay terminal allocates an IP address and a port number for the voice service. The remote terminal uses the third address to establish a voice connection with the communication peer, for example, during the Session Description Protocol (SDP) negotiation, the third address is carried.
[0075] Optionally, the PDU session in this embodiment may be an emergency PDU session.
[0076] The embodiment of the present application also provides a method for sending an address, which can be executed by a relay terminal. In other words, the method can be executed by software or hardware installed in the relay terminal. The method includes the following steps.
[0077] The relay terminal receives a second request message from a remote terminal, wherein the second request message is used to request allocation of an address for transmitting a target service; the relay terminal sends a third address to the remote terminal, wherein the third address is the IP address and the second port number of the PDU session of the relay terminal; or, the third address is the address obtained after performing NAT on the first address allocated to the remote terminal.
[0078] In this embodiment, for example, when the remote terminal completes registration, if the remote terminal initiates a request to establish a voice service, before establishing the voice service, the remote terminal can initiate a request to the relay terminal through a second request message, and the relay terminal allocates an IP address and a port number for the voice service. The remote terminal uses the third address to establish a voice connection with the communication peer, for example, during the Session Description Protocol (SDP) negotiation, the third address is carried.
[0079] Combination of the above Figure 2 The method for sending an IMS message according to an embodiment of the present application is described in detail. Figure 4 A method for sending an IMS message according to another embodiment of the present application is described in detail. It can be understood that the interaction between the P-CSCF and the relay terminal described in the P-CSCF is similar to Figure 2 The descriptions on the relay terminal side in the methods shown are the same or corresponding, and to avoid repetition, the relevant descriptions are appropriately omitted.
[0080] Figure 4 FIG. 1 is a flow chart of a method for sending an IMS message according to an embodiment of the present application, which can be applied to a P-CSCF. Figure 4 As shown, the method 400 includes the following steps.
[0081] S402: The P-CSCF receives a second IMS message, where the second IMS message is a message sent by a remote terminal via a relay terminal, and the second IMS message includes a second address, where the second address is an address obtained by the relay terminal after performing NAT on a first address of the remote terminal.
[0082] S404: The P-CSCF sends a third request message to the PCF, where the third request message includes the second address.
[0083] The third request message may correspond to the steps after step 15 of the first embodiment and the steps after step 14 of the second embodiment.
[0084] Optionally, the third request message is used to request location information or identification information of the relay terminal.
[0085] In the method for sending an IMS message provided in an embodiment of the present application, a P-CSCF receives a second IMS message, where the second IMS message is a message sent by a remote terminal via a relay terminal, and the second IMS message includes a second address, where the second address is an address obtained after the relay terminal performs NAT on a first address of the remote terminal; the P-CSCF sends a third request message to the PCF, where the third request message includes the second address. This embodiment helps the P-CSCF obtain the address of the relay terminal, avoids registration or call failure of the remote terminal, and improves communication effectiveness.
[0086] The IMS message sending method provided in the embodiment of the present application can enable a remote terminal to execute an emergency service through a relay terminal.
[0087] Optionally, as an embodiment, the second address is carried by a first protocol header in the second IMS message. The first protocol header may include at least one of the following: a via header, a contact header, and a Record-Route header.
[0088] Optionally, as an embodiment, the method further includes: the P-CSCF saving a correspondence between the second address and a third address; the third address is an IP address in a packet header of an IP packet carrying the second IMS message.
[0089] Optionally, as an embodiment, the P-CSCF sends a third request message to the PCF, and the third request message includes the second address, including: the P-CSCF receives a third IMS message, the third IMS message is a message sent by the remote terminal via the relay terminal, and the third IMS message includes a third address; the P-CSCF obtains the second address according to the corresponding relationship, and sends a third request message to the PCF, and the third request message includes the second address.
[0090] Optionally, as an embodiment, the method further includes: when the access type contained in the second IMS message is The 3rd Generation Partnership Project-New radio-Proximity-services-Layer3UE to Network Relay (3GPP-NR-ProSe-L3UNR) or The 3rd Generation Partnership Project-Evolved Universal Terrestrial Radio Access Network-Proximity Service-UE to Network Relay (3GPP-E-UTRAN-ProSe-UNR), obtaining the second address from the first protocol header; or, when the P-CSCF determines that the remote terminal is behind NAT, obtaining the second address from the first protocol header.
[0091] It should be noted that in the 5G communication system, the value of the access type contained in the second IMS message is 3GPP-NR-ProSe-L3UNR; in the 4G communication system, the value of the access type contained in the second IMS message is 3GPP-E-UTRAN-ProSe-UNR; similarly, in the 6G communication system, the value of the access type contained in the second IMS message can be 3GPP-6G-ProSe-L3UNR, where 6G can be replaced according to the actual naming of the 6G communication system. It should be noted that the access type contained in the second IMS message can be included in the access network information (P-Access-Network-Info) header of the second IMS message.
[0092] Optionally, the first protocol header includes at least one of the following: a via header, a contact header, and a Record-Route header.
[0093] To explain in detail the address and IMS message sending method provided in the embodiments of the present application, several specific embodiments will be described below.
[0094] Embodiment 1
[0095] like Figure 5 As shown, the method includes the following steps.
[0096] Step 1: The Remote UE establishes a PC5 connection with the Relay UE.
[0097] Step 2: The Relay UE establishes an emergency PDU session according to the emergency RCS provided by the Remote UE, and obtains an IP address: IP-2 (corresponding to the second address mentioned above).
[0098] Step 3: The Relay UE allocates an IP address to the Remote UE: IP-1 (corresponding to the first address mentioned above).
[0099] Step 4: The Remote UE uses IP-1 to initiate an IMS registration request message.
[0100] Step 5: The Relay UE performs NAT and replaces the address of the IP packet carrying the IMS registration request message with IP-2 and the corresponding port number.
[0101] The relay UE replaces the IP-1 in the contact header and via header of the IMS registration request message with IP-2 or IP-2 and the corresponding port number.
[0102] Step 6: The Relay UE initiates an IMS registration request message. Both the via and contact headers of the registration request message include IP-2. For example, the IP packet header carrying the IMS registration request message also includes IP-2.
[0103] Step 7: UPF performs the NAT function and replaces the address of the IP packet header with IP-3, or IP3+Port (port number), where IP-3 is the IP (public network IP) after UPF performs NAT on IP-2.
[0104] Step 8: The P-CSCF receives the IMS registration request message.
[0105] Step 9: The P-CSCF saves the correspondence between IP-2 and IP-3 in the IP header according to the difference between IP-2 in the via header and IP-3 in the IP header.
[0106] Step 10: The P-CSCF forwards the IMS registration request message to the S-CSCF.
[0107] Step 11: The S-CSCF performs an authentication process and rejects the registration request through a 401 message, which includes authentication parameters.
[0108] Step 12: The P-CSCF sends a 401 message to the Relay UE.
[0109] Step 13: When the Relay UE determines that the via header of 401 does not contain the received header field, it modifies the IP address of the via header of the topmost to IP-2 or IP-2 and the corresponding port number, and adds the received header field.
[0110] Step 14: The Remote UE determines that it is behind NAT according to 401.
[0111] Step 15: The Remote UE initiates an IMS registration request again according to the 401 message, and includes the IP-2 carried in the via header in the 401 message in the request.
[0112] Subsequently, the S-CSCF replies 200OK to the P-CSCF, and the P-CSCF replies 200OK to the Relay UE, completing the IMS registration process. Optionally, the P-CSCF requests the PCF for the access network information of the Relay UE, and the message includes IP-2.
[0113] Embodiment 2
[0114] like Figure 6 As shown, the method includes the following steps.
[0115] Step 1: The Remote UE establishes a PC5 connection with the Relay UE.
[0116] Step 2: The Relay UE establishes an emergency PDU session according to the emergency RCS provided by the Remote UE, and obtains an IP address: IP-2 (corresponding to the second address mentioned above).
[0117] Step 3: The Relay UE allocates an IP address to the Remote UE: IP-1 (corresponding to the first address mentioned above).
[0118] Step 4: The Remote UE uses IP-1 to initiate an IMS registration request message (Register request).
[0119] Step 5: When the Relay UE receives the IMS registration request message from the Remote UE, it adds IP-2 to a specific header. The specific header can be an existing header (for example, via, contact, Record-Route, etc.) or a newly added header.
[0120] When the specific header is a contact header, replace the IP address in the contact with IP-2 + port number, or add IP-2 to the existing contact header and set the qvalue of IP-2 to the highest value.
[0121] When the contact header contains multiple IP addresses, each IP address corresponds to a qvalue, and the value of qvalue is 0-1.
[0122] Step 6: The Relay UE initiates an IMS registration request message. Both the via and contact headers of the registration request message include IP-2. For example, the IP packet header carrying the registration request message also includes IP-2.
[0123] Step 7: UPF performs the NAT function and replaces the address of the IP packet header with IP-3, or IP3+Port (port number), where IP-3 is the IP (public network IP) after UPF performs NAT on IP-2.
[0124] Step 8: The P-CSCF receives the IMS registration request message.
[0125] Step 9: After determining that the Remote UE is behind NAT, the P-CSCF obtains IP-2+port number from the specific header according to the access type, and saves the correspondence between IP-2+port number and IP packet header IP address (IP-3)+port number.
[0126] Step 10: The P-CSCF forwards the IMS registration request message to the S-CSCF.
[0127] Step 11: The S-CSCF performs an authentication process and rejects the registration request through a 401 message, which includes authentication parameters.
[0128] Step 12: The P-CSCF sends a 401 message to the Relay UE.
[0129] Step 13: The Relay UE sends a 401 message to the Remote UE.
[0130] Step 14: The Remote UE initiates an IMS registration request again according to the 401 message, and includes the IP-2 carried in the via header in the 401 message in the request.
[0131] Subsequently, the S-CSCF replies 200OK to the P-CSCF, and the P-CSCF replies 200OK to the Relay UE to complete the IMS registration process. Optionally, the P-CSCF requests the PCF for the access network information of the Relay UE, and the message includes IP-2.
[0132] Embodiment 3
[0133] like Figure 7 As shown, the method includes the following steps.
[0134] Step 1: The Remote UE establishes a PC5 connection with the Relay UE.
[0135] Step 2: The Relay UE establishes an emergency PDUsession based on the emergency RCS provided by the Remote UE and obtains the IP address: IP-2.
[0136] Step 3: The Relay UE allocates an IP address to the Remote UE: IP-2+port number.
[0137] When the Relay UE receives the IP address allocation request message sent by the Remote UE, the Relay UE sends the IP address and port number corresponding to the emergency PDU session to the Remote UE. The Relay UE determines the IP address and port number corresponding to the emergency PDU session to be sent to the Remote UE based on the emergency RCS provided by the Remote UE.
[0138] The IP address and port number corresponding to the emergency PDU session can also be understood as the IP address and port number after NAT.
[0139] Step 4: The Remote UE initiates an IMS registration request using the IP address and port number allocated by the Relay UE.
[0140] Step 5: The Relay UE skips the NAT process and directly forwards the IP packet based on the IP address in the IP packet header.
[0141] Step 6: The Relay UE initiates an IMS registration request message. Both the via and contact headers of the registration request message include IP-2. For example, the IP packet header carrying the registration request message also includes IP-2.
[0142] Step 7: UPF performs the NAT function and replaces the address of the IP packet header with IP-3, or IP3+Port (port number), where IP-3 is the IP (public network IP) after UPF performs NAT on IP-2.
[0143] Step 8: The P-CSCF receives the IMS registration request message.
[0144] Step 9: The P-CSCF saves the correspondence between IP-2+port number and IP packet header IP address (IP-3)+port number.
[0145] Step 10: The P-CSCF forwards the IMS registration request message to the S-CSCF.
[0146] Step 11: The S-CSCF performs an authentication process and rejects the registration request through a 401 message, which includes authentication parameters.
[0147] Step 12: The P-CSCF sends a 401 message to the Relay UE.
[0148] Step 13: The Relay UE sends a 401 message to the Remote UE.
[0149] Step 14: The Remote UE initiates an IMS registration request again according to the 401 message, and includes the IP-2 carried in the via header in the 401 message in the request.
[0150] Subsequently, the S-CSCF replies 200OK to the P-CSCF, and the P-CSCF replies 200OK to the Relay UE, completing the IMS registration process. Optionally, the P-CSCF requests the PCF for the access network information of the Relay UE, and the message includes IP-2.
[0151] After the Remote UE completes registration, if the Remote UE initiates a request to establish a voice service, before establishing the voice service, the Remote UE can initiate a request to the Relay UE (corresponding to the second request message in the previous text), and the Relay UE allocates an IP address and port number for the voice service. The IP address is the same as the IP address in step 3, and the port number may be different.
[0152] The above three embodiments are introduced by taking emergency IMS registration as an example, and the above three embodiments can also be used for the case of initiating an emergency IMS call. At this time, the IMS registration request message in step 4, step 5, step 6, step 8, step 10 and step 15 of embodiment 1 can be an IMS call request message; the IMS registration request message in step 4, step 5, step 6, step 8, step 10 and step 14 of embodiment 2 can be an IMS call request message; the IMS registration request message in step 4, step 6, step 8, step 10 and step 14 of embodiment 3 can be an IMS call request message.
[0153] The address and IMS message sending method provided in the embodiment of the present application can be executed by a sending device of the address and IMS message. In the embodiment of the present application, the sending device of the address and IMS message executing the address and IMS message sending method is taken as an example to illustrate the sending device of the address and IMS message provided in the embodiment of the present application.
[0154] Figure 8 1 is a schematic diagram of the structure of an IMS message sending device according to an embodiment of the present application, and the device may correspond to a remote terminal in other embodiments. Figure 8 As shown, the device 800 includes the following modules.
[0155] The receiving module 802 is configured to receive a first IMS message from a remote terminal, where the first IMS message includes a first address allocated by the device to the remote terminal.
[0156] The sending module 804 is configured to send a second IMS message to the P-CSCF, where the second IMS message includes a second address, and the second address is an address obtained after the device performs NAT on the first address.
[0157] The IMS message sending device provided in the embodiment of the present application comprises a receiving module that receives a first IMS message from a remote terminal, wherein the first IMS message includes a first address assigned by the device to the remote terminal; and a sending module that sends a second IMS message to a P-CSCF, wherein the second IMS message includes a second address, and the second address is an address obtained after the device performs NAT on the first address. In this way, the P-CSCF can obtain the address of the device, thereby avoiding registration or call failure of the remote terminal and improving communication effectiveness.
[0158] Optionally, as an embodiment, the sending module 804 is further configured to modify the first address in a via header or a contact header in the first IMS message to the second address, so as to obtain the second IMS message.
[0159] Optionally, as an embodiment, the receiving module 802 is further used to receive the 401 message sent by the P-CSCF; the sending module 804 is further used to add the second address in the via header in the 401 message; and send the modified 401 message to the remote terminal.
[0160] Optionally, as an embodiment, the sending module 804 is further used to add the second address to the first protocol header in the first IMS message to obtain the second IMS message; wherein the first protocol header includes at least one of the following: a via header, a contact header, and a Record-Route header.
[0161] According to the device 800 of the embodiment of the present application, the process of the method 200 corresponding to the embodiment of the present application can be referred to, and the various units / modules in the device 800 and the above-mentioned other operations and / or functions are respectively for implementing the corresponding processes in the method 200, and can achieve the same or equivalent technical effects. For the sake of brevity, they will not be repeated here.
[0162] Fig. 9 is a schematic diagram of the structure of an address sending device according to an embodiment of the present application, and the device may correspond to a remote terminal in other embodiments. Fig. 9 As shown, the device 900 includes the following modules.
[0163] The receiving module 902 is used to receive a first request message from a remote terminal, where the first request message is used to request allocation of an address for the remote terminal, or the first request message is used to request establishment of a communication connection between the remote terminal and the device.
[0164] The sending module 904 is used to send a second address to the remote terminal, where the second address is the IP address of the PDU session of the device; or, the second address is the IP address of the PDU session of the device and the first port number; or, the second address is the address obtained after performing NAT on the first address assigned to the remote terminal.
[0165] The address sending device provided in the embodiment of the present application, the sending module allocates a second address to the remote terminal, so that the remote terminal can carry the second address in the subsequent communication process, which is beneficial for the P-CSCF to obtain the address of the device, avoid remote terminal registration or call failure, and improve communication effectiveness.
[0166] Optionally, as an embodiment, the sending module 904 is used to send the second address to the remote terminal when the device receives the RSC sent by the remote terminal.
[0167] Optionally, as an embodiment, the receiving module 902 is further used to receive an IP packet from the remote terminal; the sending module 904 is further used to directly forward the IP packet when the IP packet includes the second address.
[0168] Optionally, as an embodiment, the receiving module 902 is also used to receive a second request message from the remote terminal, the second request message is used to request allocation of an address for transmitting a target service; the sending module 904 is also used to send a third address to the remote terminal, the third address is the IP address and the second port number of the PDU session of the device; or, the third address is the address obtained after performing NAT on the first address allocated to the remote terminal.
[0169] According to the device 900 of the embodiment of the present application, the process of the method 300 corresponding to the embodiment of the present application can be referred to, and the various units / modules in the device 900 and the above-mentioned other operations and / or functions are respectively for implementing the corresponding processes in the method 300, and can achieve the same or equivalent technical effects. For the sake of brevity, they will not be repeated here.
[0170] The device for sending the address and IMS message in the embodiment of the present application may be an electronic device, such as an electronic device with an operating system, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices other than a terminal. For example, the terminal may include but is not limited to the types of the terminal 11 listed above, and other devices may be servers, network attached storage (NAS), etc., which are not specifically limited in the embodiment of the present application.
[0171] Fig.10 1 is a schematic diagram of the structure of an apparatus for sending an IMS message according to an embodiment of the present application, and the apparatus may correspond to a network side device in other embodiments, such as a P-CSCF. Fig.10 As shown, the device 1000 includes the following modules.
[0172] The receiving module 1002 is used to receive a second IMS message, where the second IMS message is a message sent by the remote terminal via the relay terminal, and the second IMS message includes a second address, which is an address obtained by the relay terminal after performing NAT on the first address of the remote terminal.
[0173] The sending module 1004 is used to send a third request message to the PCF, where the third request message includes the second address.
[0174] The IMS message sending device provided in the embodiment of the present application, the receiving module receives a second IMS message, the second IMS message is a message sent by the remote terminal via the relay terminal, the second IMS message includes a second address, and the second address is an address obtained after the relay terminal performs NAT on the first address of the remote terminal; the sending module sends a third request message to the PCF, and the third request message includes the second address. This embodiment is conducive to obtaining the address of the relay terminal, avoiding remote terminal registration or call failure, and improving communication effectiveness.
[0175] Optionally, as an embodiment, the sending module 1004 is further used to save the corresponding relationship between the second address and a third address; the third address is the IP address in the packet header of the IP packet carrying the second IMS message.
[0176] Optionally, as an embodiment, the receiving module 1002 is also used to receive a third IMS message, where the third IMS message is a message sent by the remote terminal via the relay terminal, and the third IMS message includes a third address; the sending module 1004 is used to obtain the second address according to the corresponding relationship, and send a third request message to the PCF, where the third request message includes the second address.
[0177] Optionally, as an embodiment, the second address is carried by the first protocol header in the second IMS message, and the receiving module 1002 is also used to obtain the second address from the first protocol header when the access type contained in the second IMS message is 3GPP-NR-ProSe-L3UNR or 3GPP-E-UTRAN-ProSe-UNR, or, when it is determined that the remote terminal is behind NAT, obtain the second address from the first protocol header.
[0178] According to the device 1000 of the embodiment of the present application, the process of the method 400 corresponding to the embodiment of the present application can be referred to, and the various units / modules in the device 1000 and the above-mentioned other operations and / or functions are respectively for implementing the corresponding processes in the method 400, and can achieve the same or equivalent technical effects. For the sake of brevity, they will not be repeated here.
[0179] The address and IMS message sending device provided in the embodiment of the present application can achieve Figures 2 to 7 The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.
[0180] Optional, such as Fig.11As shown, the embodiment of the present application further provides a communication device 1100, including a processor 1101 and a memory 1102, and the memory 1102 stores a program or instruction that can be run on the processor 1101. For example, when the communication device 1100 is a terminal, the program or instruction is executed by the processor 1101 to implement the various steps of the above-mentioned address and IMS message sending method embodiment, and can achieve the same technical effect. When the communication device 1100 is a network side device, the program or instruction is executed by the processor 1101 to implement the various steps of the above-mentioned IMS message sending method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0181] An embodiment of the present application also provides a terminal, including a processor and a communication interface, wherein the communication interface is used to receive a first IMS message from a remote terminal, wherein the first IMS message includes a first address assigned by the terminal to the remote terminal; and send a second IMS message to a P-CSCF, wherein the second IMS message includes a second address, and the second address is an address obtained by the terminal after performing NAT on the first address. Alternatively, the communication interface is used to receive a first request message from a remote terminal, wherein the first request message is used to request allocation of an address to the remote terminal, or wherein the first request message is used to request establishment of a communication connection between the remote terminal and the terminal; and send a second address to the remote terminal, wherein the second address is an IP address of a PDU session of the terminal; or wherein the second address is an IP address and a first port number of a PDU session of the terminal; or wherein the second address is an address obtained after performing NAT on the first address assigned to the remote terminal. This terminal embodiment corresponds to the above-mentioned terminal side method embodiment, and each implementation process and implementation method of the above-mentioned method embodiment can be applied to this terminal embodiment and can achieve the same technical effect. Specifically, Fig.12 A schematic diagram of the hardware structure of a terminal for implementing an embodiment of the present application.
[0182] The terminal 1200 includes but is not limited to: a radio frequency unit 1201, a network module 1202, an audio output unit 1203, an input unit 1204, a sensor 1205, a display unit 1206, a user input unit 1207, an interface unit 1208, a memory 1209 and at least some of the components of the processor 1210.
[0183] Those skilled in the art will appreciate that the terminal 1200 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1210 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.12The terminal structure shown in the figure does not constitute a limitation on the terminal. The terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0184] It should be understood that in the embodiment of the present application, the input unit 1204 may include a graphics processor (Graphics Processing Unit, GPU) 12041 and a microphone 12042, and the graphics processor 12041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1207 includes a touch panel 12071 and at least one of other input devices 12072. The touch panel 12071 is also called a touch screen. The touch panel 12071 may include two parts: a touch detection device and a touch controller. Other input devices 12072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0185] In the embodiment of the present application, after receiving downlink data from the network side device, the RF unit 1201 can transmit the data to the processor 1210 for processing; in addition, the RF unit 1201 can send uplink data to the network side device. Generally, the RF unit 1201 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.
[0186] The memory 1209 can be used to store software programs or instructions and various data. The memory 1209 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instruction required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1209 may include a volatile memory or a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1209 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0187] The processor 1210 may include one or more processing units; optionally, the processor 1210 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1210.
[0188] Among them, the radio frequency unit 1201 can be used to receive a first IMS message from a remote terminal, the first IMS message includes a first address allocated by the terminal to the remote terminal; send a second IMS message to the P-CSCF, the second IMS message includes a second address, and the second address is the address obtained by the terminal after performing NAT on the first address. Alternatively, the radio frequency unit 1201 can be used to receive a first request message from a remote terminal, the first request message is used to request to allocate an address to the remote terminal, or the first request message is used to request to establish a communication connection between the remote terminal and the terminal; send a second address to the remote terminal, the second address is the IP address of the PDU session of the terminal; or the second address is the IP address and the first port number of the PDU session of the terminal; or the second address is the address obtained after performing NAT on the first address allocated to the remote terminal.
[0189] The embodiment of the present application is helpful for the P-CSCF to obtain the address of the relay terminal, avoid remote terminal registration or call failure, and improve communication effectiveness.
[0190] The terminal 1200 provided in the embodiment of the present application can also implement the various processes of the embodiment of the method for sending the address and IMS message, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0191] The present application embodiment also provides a network side device. Fig.13 As shown, the network side device 1300 includes: a processor 1301, a network interface 1302 and a memory 1303. The network interface 1302 is, for example, a Common Public Radio Interface (CPRI).
[0192] Specifically, the network side device 1300 of the embodiment of the present invention further includes: an instruction or program stored in the memory 1303 and executable on the processor 1301, and the processor 1301 calls the instruction or program in the memory 1303 to execute Fig.10 The methods executed by the modules shown achieve the same technical effects, and therefore will not be described here in detail to avoid repetition.
[0193] The embodiment of the present application further provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the embodiment of the method for sending an address and an IMS message is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0194] The processor is the processor in the terminal described in the above embodiment. The readable storage medium may be non-volatile or non-transient. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0195] The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is used to run a program or instruction to implement the various processes of the above-mentioned address and IMS message sending method embodiment, and can achieve the same technical effect, to avoid repetition, it will not be repeated here.
[0196] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0197] The embodiment of the present application further provides a computer program / program product, which is stored in a storage medium, and is executed by at least one processor to implement the various processes of the above-mentioned address and IMS message sending method embodiment, and can achieve the same technical effect. To avoid repetition, it is not repeated here.
[0198] An embodiment of the present application also provides a system for sending an address and an IMS message, including: a terminal and a network side device, wherein the terminal can be used to execute the steps of the method for sending an address and an IMS message as described above, and the network side device can be used to execute the steps of the method for sending an IMS message as described above.
[0199] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises one..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0200] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of a computer software product plus a necessary general hardware platform, and of course, can also be implemented by hardware. The computer software product is stored in a storage medium (such as ROM, RAM, disk, CD, etc.), including several instructions to enable a terminal or a network-side device to execute the methods described in each embodiment of the present application.
[0201] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms of implementation methods without departing from the purpose of the present application and the scope of protection of the claims, and these implementation methods are all within the protection of the present application.
Claims
1. A method for sending an Internet Protocol Multimedia Subsystem IMS message, characterized in that: include: The relay terminal receives a first IMS message from a remote terminal, where the first IMS message includes a first address allocated by the relay terminal to the remote terminal; The relay terminal sends a second IMS message to the proxy call session control function P-CSCF, where the second IMS message includes a second address, and the second address is an address obtained after the relay terminal performs network address translation NAT on the first address.
2. The method according to claim 1, characterized in that: The method further comprises: The relay terminal modifies the first address in the via header or the contact header in the first IMS message to the second address to obtain the second IMS message.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: The relay terminal receives a 401 message sent by the P-CSCF; Add the second address in the via header in the 401 message; Send the modified 401 message to the remote terminal.
4. The method according to claim 3, characterized in that Adding the second address in the via header of the 401 message includes: When the via header of the 401 message does not include the received parameter, the second address is added to the via header in the 401 message.
5. The method according to claim 3, characterized in that: The method further comprises: The relay terminal adds a received parameter in the via header of the 401 message.
6. The method according to claim 1, characterized in that The method further comprises: The relay terminal adds the second address to a first protocol header in the first IMS message to obtain the second IMS message; wherein the first protocol header includes at least one of the following: a via header, a contact header, and a Record-Route header.
7. The method according to claim 6, characterized in that The first protocol header includes multiple addresses, each address corresponds to a qvalue, and the qvalue corresponding to the second address is the highest value.
8. The method according to any one of claims 1 to 7, characterized in that: The second address includes an IP address of a protocol data unit (PDU) session of the relay terminal; or, The second address includes the IP address and port number of the PDU session of the relay terminal.
9. The method according to claim 8, characterized in that The PDU session is an emergency PDU session.
10. A method for sending an address, characterized in that: include: The relay terminal receives a first request message from a remote terminal, where the first request message is used to request allocation of an address to the remote terminal, or the first request message is used to request establishment of a communication connection between the remote terminal and the relay terminal; The relay terminal sends a second address to the remote terminal, where the second address is the IP address of the PDU session of the relay terminal; or, the second address is the IP address of the PDU session of the relay terminal and the first port number; or, the second address is the address obtained after performing NAT on the first address assigned to the remote terminal.
11. The method according to claim 10, characterized in that The relay terminal sending the second address to the remote terminal includes: In a case where the relay terminal receives the emergency relay service code RSC sent by the remote terminal, the relay terminal sends the second address to the remote terminal.
12. The method according to claim 10 or 11, characterized in that: The method further comprises: The relay terminal receives the IP packet from the remote terminal; In the case where the IP packet includes the second address, the IP packet is directly forwarded.
13. The method according to any one of claims 10 to 12, characterized in that: The method further comprises: The relay terminal receives a second request message from the remote terminal, where the second request message is used to request allocation of an address for transmitting a target service; The relay terminal sends a third address to the remote terminal, where the third address is the IP address and the second port number of the PDU session of the relay terminal; or, the third address is an address obtained by performing NAT on the first address allocated to the remote terminal.
14. The method according to claim 10 or 13, characterized in that The PDU session is an emergency PDU session.
15. A method for sending an IMS message, characterized in that: include: The P-CSCF receives a second IMS message, where the second IMS message is a message sent by the remote terminal via the relay terminal, and the second IMS message includes a second address, where the second address is an address obtained by the relay terminal after performing NAT on the first address of the remote terminal; The P-CSCF sends a third request message to a policy control function PCF, where the third request message includes the second address.
16. The method according to claim 15, characterized in that The second address is carried by a first protocol header in the second IMS message.
17. The method according to claim 15 or 16, characterized in that The method further comprises: The P-CSCF stores a correspondence between the second address and the third address; The third address is an IP address in a packet header of an IP packet carrying the second IMS message.
18. The method according to claim 17, characterized in that The P-CSCF sends a third request message to the PCF, where the third request message includes the second address, including: The P-CSCF receives a third IMS message, where the third IMS message is a message sent by the remote terminal via the relay terminal, and the third IMS message includes a third address; The P-CSCF obtains the second address according to the corresponding relationship, and sends a third request message to the PCF, where the third request message includes the second address.
19. The method according to claim 16, characterized in that The method further comprises: In the case where the access type contained in the second IMS message is Third Generation Mobile Communications Partnership Project-New Radio-Short Range Service-Layer 3 User Equipment to Network Relay 3GPP-NR-ProSe-L3UNR or Third Generation Mobile Communications Partnership Project Evolved Universal Terrestrial Radio Access Network-Short Range Service-User Equipment to Network Relay 3GPP-E-UTRAN-ProSe-UNR, the second address is obtained from the first protocol header, or, in the case where the P-CSCF determines that the remote terminal is behind NAT, the second address is obtained from the first protocol header.
20. The method according to claim 16 or 19, characterized in that The first protocol header includes at least one of the following: a via header, a contact header, and a Record-Route header.
21. The method according to any one of claims 15 to 20, characterized in that The third request message is used to request the location information or identification information of the relay terminal.
22. The method according to any one of claims 1 to 21, characterized in that The first address is a private IP address; or, The second address is a private IP address or a public IP address.
23. An IMS message sending device, characterized in that: include: A receiving module, configured to receive a first IMS message from a remote terminal, wherein the first IMS message includes a first address allocated by the device to the remote terminal; The sending module is used to send a second IMS message to the P-CSCF, where the second IMS message includes a second address, and the second address is an address obtained after the device performs NAT on the first address.
24. A device for sending an address, characterized in that: include: A receiving module, configured to receive a first request message from a remote terminal, wherein the first request message is used to request allocation of an address to the remote terminal, or the first request message is used to request establishment of a communication connection between the remote terminal and the device; A sending module is used to send a second address to the remote terminal, where the second address is the IP address of the PDU session of the device; or, the second address is the IP address of the PDU session of the device and the first port number; or, the second address is the address obtained after performing NAT on the first address assigned to the remote terminal.
25. An IMS message sending device, characterized in that: include: a receiving module, configured to receive a second IMS message, wherein the second IMS message is a message sent by a remote terminal via a relay terminal, and the second IMS message includes a second address, which is an address obtained by the relay terminal after performing NAT on a first address of the remote terminal; A sending module is used to send a third request message to the PCF, wherein the third request message includes the second address.
26. A terminal, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 14 are implemented.
27. A network side device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 15 to 22 are implemented.
28. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 22 are implemented.
