Calling method and related device
By detecting and reconstructing SA exceptions in call signaling, the call process interruption caused by SA loss in IMS communication is solved, and the normal establishment of the call process and the improvement of user experience is achieved.
Patent Information
- Application Number
- CN202411269656.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-11-08
AI Technical Summary
During IMS communication, SA loss caused by network abnormalities or device operation abnormalities causes the call process to be unable to be established normally, affecting the user experience.
By detecting SA exceptions in the call signaling in the mobile initiator and the mobile terminal side, a reauthentication signaling is generated, and reauthentication operation is performed to obtain new SA information. This re-establishes the call connection.
It realizes the normal establishment of the call process in the case of SA loss, improves the user experience, and ensures the security and stability of call signaling.
Smart Images

Figure CN118921354A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and more particularly to a calling method and related devices. Background Art
[0002] IMS (IP Multimedia Subsystem) is a multimedia communication system architecture based on IP (Internet Protocol) network, which provides various multimedia services such as voice, video, data and real-time communication.
[0003] During IMS communication, due to network anomalies or device operation anomalies, SA (Security Association) may be lost, resulting in the inability to establish a call process normally, affecting user experience. Summary of the invention
[0004] In view of this, the present invention provides a calling method and related devices to solve the problem that when SA is lost, the calling operation cannot be continued, resulting in the call process being unable to be established normally, affecting the user experience.
[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0006] A calling method is applied to a proxy call session control terminal P-CSCF on a mobile originating terminal side, the calling method comprising:
[0007] Receiving call signaling sent by the mobile originating terminal;
[0008] If it is detected that the first security association information in the call signaling is abnormal, a re-authentication signaling corresponding to the call signaling is generated; the Require message header in the re-authentication signaling is configured with a re-authentication identifier;
[0009] Sending the re-authentication signaling to a serving call session controller S-CSCF, so that the S-CSCF outputs a re-authentication notification message to the P-CSCF;
[0010] The re-authentication notification message is forwarded to the mobile originating end, so that the mobile originating end performs a re-authentication operation to obtain new first security association information, and re-executes a call operation using the new first security association information.
[0011] Optionally, detecting that the first security association information in the call signaling sent by the mobile initiating end is abnormal includes:
[0012] Detecting whether the call signaling is plain text signaling, detecting whether the first security association information in the call signaling is about to expire, and detecting whether the preset parameters in the call signaling are abnormal;
[0013] If the call signaling is plain text signaling, the first security association information in the call signaling is about to expire, or the preset parameters in the call signaling are abnormal, it is determined that the first security association information in the call signaling sent by the mobile initiating terminal is detected to be abnormal.
[0014] Optionally, detecting whether a preset parameter in the call signaling is abnormal includes:
[0015] Obtaining a reference value of a preset parameter; the preset parameter includes a sequence number in an encapsulating security payload layer;
[0016] Comparing the parameter value of the preset parameter in the call signaling with the reference value to obtain a comparison result;
[0017] If the comparison result is inconsistent, it is determined that a preset parameter in the call signaling is detected to be abnormal.
[0018] Optionally, generating a re-authentication signaling corresponding to the call signaling includes:
[0019] Get the re-authentication ID;
[0020] The re-authentication identifier is added to the token field in the Require message header in the call signaling to obtain the re-authentication signaling.
[0021] A calling system, comprising:
[0022] A mobile originating terminal, an S-CSCF on the mobile originating terminal side, and the above-mentioned P-CSCF;
[0023] The mobile initiating terminal is used to send a call signaling to the P-CSCF, receive a re-authentication notification message sent by the P-CSCF, perform a re-authentication operation to obtain new first security association information, and re-execute a call operation using the new first security association information;
[0024] The S-CSCF is used to receive the re-authentication signaling sent by the P-CSCF, and output a re-authentication notification message to the P-CSCF.
[0025] Optionally, the re-authentication notification message includes an expiration time; when the mobile initiating end is used to perform the re-authentication operation to obtain new first security association information, it is specifically used to:
[0026] Determine whether the expiration time has expired;
[0027] If yes, perform a re-authentication operation to obtain new first security association information.
[0028] A calling method, applied to a proxy call session control terminal P-CSCF on a mobile terminal side, the calling method comprising:
[0029] If a call signaling forwarded by the service call session control terminal S-CSCF on the mobile terminal side to the P-CSCF is received, detecting whether the second security association information between the P-CSCF and the mobile terminal is abnormal;
[0030] If abnormal, output re-authentication response information to the S-CSCF, so that the S-CSCF controls the mobile terminal to perform a re-authentication operation and obtain new second security association information;
[0031] The call signaling is encrypted using the new second security association information, and the signaling obtained by the encryption operation is forwarded to the mobile terminal.
[0032] Optionally, outputting re-authentication response information to the S-CSCF includes:
[0033] Generate a 100 Trying response message carrying a re-authentication identifier;
[0034] The 100 Trying response message is sent to the S-CSCF as re-authentication response information.
[0035] A calling system, comprising:
[0036] A mobile terminal, an S-CSCF on the mobile terminal side, and the above-mentioned P-CSCF;
[0037] The S-CSCF is used to receive the re-authentication response information sent by the P-CSCF, control the mobile terminal to perform a re-authentication operation, and obtain new second security association information.
[0038] An electronic device comprises at least one processor and a memory connected to the processor, wherein:
[0039] The memory is used to store computer programs;
[0040] The processor is used to execute the computer program so that the electronic device can implement the above-mentioned calling method.
[0041] Compared with the prior art, the present invention has the following beneficial effects:
[0042] The present invention provides a calling method and related devices. In the present invention, when SA is abnormal, such as lost, a re-authentication operation is performed to obtain new security association information, so that the mobile initiating end uses the new security association information to re-execute the calling operation, or the P-CSCF on the mobile terminating end side uses the new security association information to encrypt the call signaling, and forwards the signaling obtained by the encryption operation to the mobile terminating end, thereby realizing the normal execution of the call, so that the call process is normally established and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0044] Figure 1 An IMS architecture diagram provided for an embodiment of the present invention;
[0045] Figure 2 A flowchart of a calling method provided by an embodiment of the present invention;
[0046] Figure 3 A flowchart of a re-authentication method provided by an embodiment of the present invention;
[0047] Figure 4 A specific implementation flow chart of re-authentication provided by an embodiment of the present invention;
[0048] Figure 5 A schematic diagram of a scenario of a calling method provided by an embodiment of the present invention;
[0049] Figure 6 A flowchart of another calling method provided by an embodiment of the present invention;
[0050] Figure 7 A schematic diagram of another calling method provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] IMS (IP Multimedia Subsystem) is a multimedia communication system architecture based on IP network, which provides various multimedia services such as voice, video, data and real-time communication. Figure 1 As shown in the box in , the IMS system includes a serving CSCF (Call Session Control Function), S-CSCF, an interrogating CSCF, an proxy CSCF, P-CSCF, a home subscriber server (HSS), a transition gateway (TrGW), an interconnection border control function (IBCF), a breakout gateway control function (BGCF), an application server (AS), an IP Multimedia - Media Gateway Function (IM-MGW), a media resource broker (MRB), a multimedia resource function controller (MRFC), a multimedia resource function processor (MRFP), a subscription location function (SLF), an IMS access gateway (IMS-AGW), and a user equipment (UE).
[0053] The connection interface between the user equipment UE and the P-CSCF is the Gm port, the connection interface between the P-CSCF, I-CSCF and S-CSCF is the Mw port, and the other interfaces (such as Izi, Ici, Ma, Mx, etc.) refer to Figure 1 To ensure the security of signaling, Gm port signaling is usually transmitted using Internet Protocol Security (IPSec).
[0054] The process of UE registering to the IMS system includes initial registration and subsequent registration. During the initial registration process, the UE will establish an IPSec Security Association (SA) with the P-CSCF. During the subsequent registration process and call process, the signaling message is encrypted and protected by the SA.
[0055] After obtaining the SA through registration, the mobile originating end (MO) can initiate a call to the mobile terminating end (MT). During the call process, due to network anomalies, the mobile originating end MO may not be able to update the SA between it and the P-CSCF on the MO side in time, causing the SA to expire or be about to expire, or due to anomalies in the operation process (such as abnormal power loss of the mobile phone, the mobile phone battery suddenly runs out of power and shuts down), causing the MO to lose the SA information between it and the P-CSCF on the MO side. If the MO loses the SA information between it and the P-CSCF on the MO side, when the MO initiates a call establishment request to the P-CSCF on the MO side, the P-CSCF on the MO side will detect that the call signaling initiated by the MO is abnormal, and thus reject the call signaling initiated by the MO, resulting in the inability to establish the call initiated by the MO normally, affecting the user experience.
[0056] In addition, the P-CSCF on the MT side may restart abnormally during operation, and lose the SA established with the MT. If the P-CSCF on the MT side of the mobile terminal loses the SA between it and the MT, when the call signaling reaches the P-CSCF on the MT side, the P-CSCF on the MT side cannot encrypt the call signaling through IPSec or the SA information used is incorrect, resulting in the call signaling not being recognized by the MT, which causes the call process to fail to be established normally, affecting the user experience.
[0057] Then, when the above-mentioned SA is lost or abnormal, how to continue to establish a communication connection is a technical problem that those skilled in the art need to solve urgently.
[0058] To this end, the present invention provides a calling method for solving the problem that a call cannot be established when an MO abnormally loses SA information between the MO and a P-CSCF on the MO side or when a P-CSCF on the MT side loses SA information between the MT and the MT.
[0059] Specifically, in order to achieve the purpose of continuing to establish a call when the SA is lost, it is found through analysis that according to the description of 3GPP TS24229, the S-CSCF can initiate a re-authentication process for the UE at any time. Through the re-authentication process, the S-CSCF can instruct the UE to initiate a subsequent registration message to the IMS network within a specified time. In the subsequent registration process, the UE can update the SA information between the P-CSCF. Therefore, the re-authentication process is embedded in the call process, so that the call process can rebuild the SA between the P-CSCF and the UE through the re-authentication process, thereby ensuring the security of the call signaling. That is, in the embodiment of the present invention, when the SA is lost, the P-CSCF can instruct the S-CSCF to trigger the re-authentication process in the call process, obtain a new SA, and use the new SA to continue to establish the call, thereby ensuring the security of this call and subsequent calls.
[0060] Based on the above content, an embodiment of the present invention provides a calling method, which is applied to the P-CSCF at the mobile originating end MO side, referring to Figure 1 , the calling method comprises:
[0061] S11. Receive call signaling sent by the mobile originating terminal.
[0062] In actual applications, MO can initiate a call to MT. MO can be the calling mobile phone and MT can be the called mobile phone. For example, if Zhang San calls Li Si, Zhang San's mobile phone is MO and Li Si's mobile phone is MT.
[0063] When Zhang San calls Li Si, the MO will send call signaling (such as invitation signaling INVITE signaling) to the P-CSCF on the MO side. After receiving the call signaling, the P-CSCF will perform an abnormality detection operation on the call signaling to determine whether the SA in the call signaling is abnormal.
[0064] In this embodiment, in order to distinguish the SA on the MO side from the SA on the MT side, in this embodiment, the SA on the MO side is called the first security association information, and the SA on the MT side is called the second security association information.
[0065] S12: If it is detected that the first security association information in the call signaling is abnormal, generate a re-authentication signaling corresponding to the call signaling.
[0066] In practical applications, whether the SA on the MO side is abnormal can be detected from the following three aspects:
[0067] 1) Detect whether the call signaling is plain text signaling.
[0068] Among them, if the call signaling is plain text signaling, it means that the MO does not use SA for encryption operation, that is, it is not encrypted by IPSec, which means that the SA on the MO side is lost or abnormal.
[0069] 2) Detecting whether the first security association information in the call signaling is about to expire.
[0070] If the SA on the MO side is about to expire, it means that the SA will soon be unavailable and the SA needs to be updated in time.
[0071] It should be noted that, in addition to detecting whether SA is about to expire, it is also possible to detect whether SA has expired.
[0072] 3) Detect whether the preset parameters in the call signaling are abnormal.
[0073] Specifically, the parameter value of the preset parameter in the SA in the call signaling should be a standard parameter value. The standard parameter value in this embodiment is a reference value.
[0074] If the preset parameter is a reference value, it means that the parameter value of the preset parameter is normal. If it is not a reference value, it means that the parameter value of the preset parameter is abnormal, which means that the SA on the MO side is abnormal.
[0075] Among them, the preset parameters may include a serial number in the Encapsulating Security Payload (ESP) layer, etc.
[0076] In practical applications, a reference value of a preset parameter may be obtained, and the parameter value of the preset parameter in the call signaling may be compared with the reference value to obtain a comparison result. If the comparison result is inconsistent, it is determined that an abnormality in the preset parameter in the call signaling is detected.
[0077] If at least one abnormality is found in the above three tests, the SA on the MO side is considered abnormal. That is, if the call signaling is plain text signaling, the first security association information in the call signaling is about to expire, or the preset parameters in the call signaling are abnormal, it is determined that the first security association information in the call signaling sent by the mobile initiating end is detected to be abnormal.
[0078] It should be noted that the above three detection processes can be performed simultaneously. At this time, as long as one detection result is abnormal, the SA on the MO side is considered abnormal. In addition, they can also be performed sequentially. If one detection result is abnormal, the SA on the MO side is considered abnormal, and there is no need to continue the subsequent detection operation.
[0079] In actual application, if the first security association information in the call signaling is detected to be abnormal, a re-authentication signaling corresponding to the call signaling is generated, wherein a re-authentication identifier is configured in a Require message header in the re-authentication signaling.
[0080] In this embodiment, in order to inform the S-CSCF on the MO side that a re-authentication operation needs to be performed, in this embodiment, corresponding adjustments need to be made to the signaling sent from the P-CSCF on the MO side to the S-CSCF on the MO side.
[0081] Generally, the communication between P-CSCF and S-CSCF is based on the SIP (Session Initialization Protocol) protocol described in RFC 3261. The format of the Require header field in RFC 3261 is defined as follows:
[0082] Require = "Require" HCOLON option-tag *(COMMA option-tag)
[0083] option-tag = token
[0084] token = 1*(alphanum / "-" / "." / "!" / "%" / "*" / "_" / "+" / "`" / "'" / "~" )
[0085] In the embodiment of the present invention, the reauth value type is added to the Require message header defined in the SIP protocol. Reauth is the re-authentication identifier in this embodiment, which is used by the P-CSCF to instruct the S-CSCF to initiate a re-authentication request to the UE in the INVITE signaling or the 100 Trying signaling.
[0086] Since the content of the token can be adjusted as needed, the reauth value type can be added to the token. Currently, the token values of the Require field include 100rel, sec-agree, etc., and the reauth value type needs to be added on this basis. The Require field containing 100rel, sec-agree, and reauth is as follows:
[0087] Require: 100rel, sec-agree, reauth
[0088] reauth is a new value type.
[0089] In this embodiment, when generating the re-authentication signaling corresponding to the call signaling, the re-authentication identifier, namely the above-mentioned reauth, can be obtained, and then the re-authentication identifier reauth is added to the token field in the Require message header in the call signaling to obtain the re-authentication signaling.
[0090] S13. Send the re-authentication signaling to the serving call session controller S-CSCF, so that the S-CSCF outputs a re-authentication notification message to the P-CSCF.
[0091] In this embodiment, since the re-authentication operation of MO and MT is initiated by S-CSCF, P-CSCF sends the re-authentication signaling to the S-CSCF on the MO side, and the S-CSCF outputs the re-authentication notification message to the P-CSCF, and the P-CSCF forwards the re-authentication notification message to the MO.
[0092] S14. Forward the re-authentication notification message to the mobile originating end, so that the mobile originating end performs a re-authentication operation to obtain new first security association information, and re-executes a call operation using the new first security association information.
[0093] Specifically, after receiving the re-authentication notification message forwarded by the P-CSCF, the MO will perform a re-authentication operation to obtain a new SA, and then re-use the SA to encrypt the call signaling and re-execute the call operation.
[0094] The re-authentication process includes two processes. The first process is that the S-CSCF initiates a notification message to the UE, such as the MO, and the notification message indicates that the UE needs to initiate re-authentication. The second process is that the UE initiates the re-authentication process.
[0095] The notification process is as follows: Figure 3 Specifically, the method comprises the following steps:
[0096] 1. The S-CSCF sends a SIP NOTIFY notification message to the P-CSCF.
[0097] 2. P-CSCF sends a SIP NOTIFY notification message to the UE;
[0098] 3. The UE replies a SIP 200 OK response message to the P-CSCF;
[0099] 4. The P-CSCF replies a SIP 200 OK response message to the S-CSCF.
[0100] 5. UE initiates the re-authentication process.
[0101] The specific implementation of the UE-initiated re-authentication process is as follows: Figure 4As shown. The re-authentication process initiated by the UE is the subsequent registration process. In the normal process, upon receiving the subsequent registration message, the S-CSCF needs to reply to the UE with a 200 OK response message. During the re-authentication process, the S-CSCF needs to treat the subsequent registration process as the first registration process and reply to the UE with a 401 Unauthorized message. The detailed implementation steps are as follows:
[0102] 1. The UE sends a REGISTER message to the P-CSCF.
[0103] 2. The P-CSCF forwards the REGISTER message to the I-CSCF.
[0104] 3. I-CSCF queries HSS for user registration status (Cx: User registration status query procedure).
[0105] 4. The I-CSCF forwards the REGISTER message to the S-CSCF.
[0106] 5. The S-CSCF processes the subsequent registration message as the first registration message, that is, replies with a 401 Unauthorized message to the I-CSCF.
[0107] 6. The I-CSCF forwards the 401 Unauthorized message to the P-CSCF.
[0108] 7. The P-CSCF forwards the 401 Unauthorized message to the UE.
[0109] 8. The UE sends a REGISTER message to the P-CSCF.
[0110] 9. The P-CSCF forwards the REGISTER message to the I-CSCF.
[0111] 10. I-CSCF queries HSS for user registration status.
[0112] 11. The I-CSCF forwards the REGISTER message to the S-CSCF.
[0113] 12. The S-CSCF replies a 200 OK message to the I-CSCF.
[0114] 13. The I-CSCF forwards the 200 OK message to the P-CSCF.
[0115] 14. The P-CSCF forwards the 200 OK message to the UE.
[0116] As can be seen from the above, the processing flow when the SA on the MO side of the present invention is lost is:
[0117] When the P-CSCF on the MO side receives the call signaling from the MO, the P-CSCF on the MO side detects that the call signaling is abnormal, such as the call signaling is not encrypted by IPSec or the SA information parameters used in the call signaling, the SA is about to expire, or the sequence number value of the encapsulated security payload layer is abnormal, then the P-CSCF on the MO side forwards the call signaling to the S-CSCF on the MO side and carries the re-authentication identifier, instructing the S-CSCF to immediately initiate re-authentication to the MO. After the S-CSCF on the MO side receives the call signaling carrying the re-authentication identifier, it immediately initiates re-authentication of the MO and re-establishes the SA between the MO and the P-CSCF on the MO side through the re-authentication process. After the MO receives the re-authentication request initiated by the S-CSCF on the MO side during the call process, it first performs the re-authentication process and establishes the SA between it and the P-CSCF on the MO side during the re-authentication process. After the re-authentication process is completed, the MO uses the re-established SA to re-initiate a call to the P-CSCF on the MO side. The P-CSCF on the MO side uses the re-established SA to decrypt the call signaling and continue the subsequent call process.
[0118] In the present invention, when SA is abnormal, such as lost, a re-authentication operation is performed to obtain new security association information, so that the mobile initiating end uses the new security association information to re-execute the call operation, thereby achieving normal execution of the call, thereby allowing the call process to be established normally and improving the user experience.
[0119] Based on the above-mentioned embodiment of the calling method applied to the P-CSCF on the mobile originating terminal side, another embodiment of the present invention provides a calling system, including:
[0120] A mobile originating terminal MO, an S-CSCF on the mobile originating terminal side, and the P-CSCF on the mobile originating terminal side;
[0121] The mobile initiating terminal is used to send a call signaling to the P-CSCF, receive a re-authentication notification message sent by the P-CSCF, perform a re-authentication operation to obtain new first security association information, and re-execute a call operation using the new first security association information;
[0122] The S-CSCF is used to receive the re-authentication signaling sent by the P-CSCF, and output a re-authentication notification message to the P-CSCF.
[0123] The specific workflow of MO, S-CSCF and P-CSCF is as follows Figure 5 As shown, the following steps are included:
[0124] When MO loses SA, the specific implementation process is as follows:
[0125] 1. MO initiates a call process to P-CSCF, that is, sends INVITE signaling.
[0126] 2. The P-CSCF detects that the INVITE signaling is plain text signaling, that is, it is not encrypted by IPSec, or the P-CSCF detects that the SA of the MO is about to expire, or the P-CSCF detects that the ESP parameters carried in the INVITE signaling are abnormal, such as abnormal sequence number parameters.
[0127] 3. The P-CSCF forwards the INVITE signaling to the S-CSCF, where the Require header field carries the reauth identifier.
[0128] 4. The S-CSCF sends a NOTIFY re-authentication notification to the P-CSCF.
[0129] 5. P-CSCF forwards the re-authentication notification to MO.
[0130] 6. The MO, P-CSCF and S-CSCF perform the re-authentication process.
[0131] 7. The MO uses the newly established SA during the re-authentication process to re-initiate the call process, that is, uses the new SA to encrypt the call signaling.
[0132] 8. The P-CSCF forwards the INVITE signaling to the S-CSCF.
[0133] 9. The S-CSCF forwards the INVITE signaling to the I-CSCF.
[0134] 10. The I-CSCF forwards the INVITE signaling to the S-CSCF.
[0135] 11. The S-CSCF forwards the INVITE signaling to the P-CSCF.
[0136] 12. P-CSCF forwards the INVITE signaling to MT.
[0137] Among them, steps 8-12 are the normal call process.
[0138] It should be noted that the NOTIFY re-authentication notification message initiated by the S-CSCF to the P-CSCF carries an expiration time expires parameter. When the mobile initiating end performs the re-authentication operation, it will determine whether the expiration time has expired. If so, it will perform the re-authentication operation to obtain new first security association information.
[0139] For example, the expiration time may be set to expire after 1 second. Then, after the mobile initiating end receives the NOTIFY re-authentication notification message, a re-authentication operation is performed after 1 second.
[0140] Since the present invention obtains a new SA through a re-authentication operation during the call process, and from the user's perspective, the shorter the call establishment process is, the better. Therefore, in this embodiment, the parameter value of the expires parameter is set to a relatively small value to shorten the time the MO waits for re-authentication, shorten the time required for re-authentication, and thereby shorten the call establishment time.
[0141] After the call is established, the MT side can ring the phone to prompt the user that there is an incoming call. After the user answers the call, he can have a voice call with the MO.
[0142] In this embodiment, when the P-CSCF on the MO side detects that the signaling between the MO and the MO in the call process is not protected by IPSec, or the P-CSCF on the MO side believes that the SA between the MO and the MO is about to expire or has expired, or the P-CSCF on the MO side detects that the ESP parameters used in the call signaling initiated by the MO are abnormal, the P-CSCF on the MO side can notify the S-CSCF on the MO side to initiate a re-authentication process for the MO in the call process, and rebuild the SA between the MO and the P-CSCF on the MO side through the re-authentication process, thereby ensuring the security of this and subsequent calls.
[0143] In addition, when the S-CSCF notifies the UE to initiate the re-authentication process, the value of the expires parameter in the notification message body can be set to a relatively small value to ensure that the call process can be established in time and avoid affecting the user's calling experience.
[0144] Another embodiment of the present invention provides a calling method, which is applied to a proxy call session control terminal P-CSCF on a mobile terminal side, referring to Figure 6 , the calling method comprises:
[0145] S21: If a call signaling forwarded by the serving call session control terminal S-CSCF on the mobile terminal side to the P-CSCF is received, detect whether the second security association information between the P-CSCF and the mobile terminal is abnormal.
[0146] according to Figure 5 As shown in the figure, when MO calls MT, the flow process of INVITE call signaling is as follows:
[0147] MO sends INVITE signaling, the P-CSCF on the MO side forwards the INVITE signaling to the S-CSCF on the MO side, the S-CSCF on the MO side forwards the INVITE signaling to the I-CSCF, the I-CSCF forwards the INVITE signaling to the S-CSCF on the MT side, the S-CSCF on the MT side forwards the INVITE signaling to the P-CSCF on the MT side, and the P-CSCF on the MT side forwards the INVITE signaling to the MT.
[0148] Therefore, on the MT side, if there is an SA anomaly, the P-CSCF on the MT side finds that the SA between the MT is abnormal. The anomaly in this embodiment may be expiration, imminent expiration, loss, parameter value error, etc. The specific detection process can refer to the above corresponding content.
[0149] S22: If abnormal, output re-authentication response information to the S-CSCF, so that the S-CSCF controls the mobile terminal to perform a re-authentication operation and obtain new second security association information.
[0150] In this embodiment, since the S-CSCF on the MT side forwards the INVITE signaling to the P-CSCF on the MT side, when the P-CSCF on the MT side initiates re-authentication to the S-CSCF on the MT side, it can directly reply to the INVITE signaling. At this time, a 100 Trying response message carrying a re-authentication identifier (the above-mentioned reauth) can be generated. The generation process refers to the above-mentioned corresponding instructions, and then the 100 Trying response message is sent to the S-CSCF as re-authentication response information.
[0151] S23: encrypt the call signaling using the new second security association information, and forward the signaling obtained by the encryption operation to the mobile terminal.
[0152] After the re-authentication operation, MT will obtain a new SA, that is, the new second security association information. The P-CSCF on the MT side will use the new SA to encrypt the above-mentioned S-CSCF on the MT side and forward the INVITE signaling to the P-CSCF on the MT side, and forward the encrypted signaling to MT, so that MO and MT establish a communication connection.
[0153] From the above, we can see that the SA loss processing flow on the MT side is:
[0154] When the P-CSCF on the MT side receives the call signaling sent by the S-CSCF on the MT side, if the P-CSCF on the MT side loses the SA with the MT side, the P-CSCF carries the re-authentication identifier in the 100 Trying response message sent to the S-CSCF to instruct the S-CSCF to initiate the re-authentication process for the MT, and rebuild the SA between the P-CSCF on the MT side and the MT through the re-authentication process. After the re-authentication process is completed, the P-CSCF on the MT side uses the newly established SA to encrypt the call signaling with the MT side and continue the subsequent call process.
[0155] Among them, the re-authentication process on the MT side is the same as the re-authentication process on the MO side mentioned above, please refer to the corresponding instructions above.
[0156] In the present invention, when SA is abnormal, such as lost, a re-authentication operation will be performed to obtain new security association information, so that the P-CSCF on the mobile terminal side uses the new security association information to encrypt the call signaling, and forwards the signaling obtained by the encryption operation to the mobile terminal, thereby realizing the normal execution of the call, thereby enabling the call process to be established normally and improving the user experience.
[0157] Based on the above embodiment of the calling method applied to the P-CSCF on the mobile terminal side, another embodiment of the present invention provides a calling system, including:
[0158] A mobile terminal, an S-CSCF on the mobile terminal side, and the P-CSCF on the mobile terminal side;
[0159] The S-CSCF is used to receive the re-authentication response information sent by the P-CSCF, control the mobile terminal to perform a re-authentication operation, and obtain new second security association information.
[0160] Specifically, refer to Figure 7 When the P-CSCF loses the SA, the specific implementation process is as follows:
[0161] 1. The MO initiates the call process and the INVITE signaling reaches the I-CSCF.
[0162] 2. The I-CSCF forwards the call signaling to the S-CSCF on the MT side.
[0163] 3. The S-CSCF on the MT side forwards the INVITE signaling to the P-CSCF on the MT side.
[0164] 4. The P-CSCF on the MT side detects that the SA between the MT and the MT is lost.
[0165] 5. The P-CSCF on the MT side replies to the S-CSCF on the MT side with a 100 Trying response message carrying a re-authentication identifier.
[0166] 6. The S-CSCF on the MT side initiates the re-authentication process for the MT.
[0167] 7. The P-CSCF on the MT side uses the newly created SA to encrypt the INVITE signaling and forwards it to the MT.
[0168] In this embodiment, when the P-CSCF on the MT side detects that the SA between it and the MT is lost, it can notify the S-CSCF on the MT side to initiate re-authentication of the MT during the call process, and rebuild the SA between the MT and the P-CSCF on the MT side through the re-authentication process, thereby ensuring the security of this and subsequent calls.
[0169] It should be noted that the embodiment of the present invention embeds the re-authentication process in the call process. The actual call process involves more network elements, such as HSS network elements, AS network elements, MRFC, MRFP, etc. The signaling interaction of these network elements in the call process is Figure 2 and Figure 3 It is not reflected in the figure, and corresponding network elements can be added according to the actual scenario.
[0170] In addition, the manner in which the P-CSCF notifies the S-CSCF to initiate re-authentication of the MO or MT in the call flow is an example, which is only used to clearly describe the use of the present invention, and is not used to limit the use scenario of the present invention. For those skilled in the art, the present invention may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0171] An embodiment of the present application further provides an electronic device, which may be a P-CSCF. The electronic device includes at least one processor and a memory connected to the processor, wherein:
[0172] The memory is used to store computer programs;
[0173] The processor is used to execute the computer program so that the electronic device can implement the above-mentioned calling method.
[0174] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any one of the calling methods provided in the embodiments of the present application.
[0175] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any calling method provided in the embodiment of the present application.
[0176] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A calling method, characterized in that: Applied to a proxy call session control terminal P-CSCF on the mobile originating terminal side, the calling method comprises: Receiving call signaling sent by the mobile originating terminal; If it is detected that the first security association information in the call signaling is abnormal, a re-authentication signaling corresponding to the call signaling is generated; a re-authentication identifier is configured in a Require message header in the re-authentication signaling; Sending the re-authentication signaling to a serving call session controller S-CSCF, so that the S-CSCF outputs a re-authentication notification message to the P-CSCF; The re-authentication notification message is forwarded to the mobile originating end, so that the mobile originating end performs a re-authentication operation to obtain new first security association information, and re-executes a call operation using the new first security association information.
2. The calling method according to claim 1, characterized in that: Detecting that the first security association information in the call signaling sent by the mobile initiating end is abnormal, including: Detecting whether the call signaling is plain text signaling, detecting whether the first security association information in the call signaling is about to expire, and detecting whether the preset parameters in the call signaling are abnormal; If the call signaling is plain text signaling, the first security association information in the call signaling is about to expire, or the preset parameters in the call signaling are abnormal, it is determined that the first security association information in the call signaling sent by the mobile initiating terminal is detected to be abnormal.
3. The calling method according to claim 2, characterized in that: Detecting whether a preset parameter in the call signaling is abnormal includes: Obtaining a reference value of a preset parameter; the preset parameter includes a sequence number in an encapsulating security payload layer; Comparing the parameter value of the preset parameter in the call signaling with the reference value to obtain a comparison result; If the comparison result is inconsistent, it is determined that a preset parameter in the call signaling is detected to be abnormal.
4. The calling method according to claim 1, characterized in that: Generating a re-authentication signaling corresponding to the call signaling, comprising: Get the re-authentication ID; The re-authentication identifier is added to the token field in the Require message header in the call signaling to obtain the re-authentication signaling.
5. A calling system, characterized in that: include: A mobile originating end, an S-CSCF on the mobile originating end side, and a P-CSCF according to any one of claims 1 to 4; The mobile initiating terminal is used to send a call signaling to the P-CSCF, receive a re-authentication notification message sent by the P-CSCF, perform a re-authentication operation to obtain new first security association information, and re-execute a call operation using the new first security association information; The S-CSCF is used to receive the re-authentication signaling sent by the P-CSCF, and output a re-authentication notification message to the P-CSCF.
6. The calling system according to claim 5, characterized in that: The re-authentication notification message includes an expiration time; when the mobile initiating end is used to perform a re-authentication operation to obtain new first security association information, it is specifically used to: Determine whether the expiration time has expired; If yes, perform a re-authentication operation to obtain new first security association information.
7. A calling method, characterized in that: Applied to a proxy call session control terminal P-CSCF on a mobile terminal side, the calling method comprises: If a call signaling forwarded by the service call session control terminal S-CSCF on the mobile terminal side to the P-CSCF is received, detecting whether the second security association information between the P-CSCF and the mobile terminal is abnormal; If abnormal, output re-authentication response information to the S-CSCF, so that the S-CSCF controls the mobile terminal to perform a re-authentication operation and obtain new second security association information; The call signaling is encrypted using the new second security association information, and the signaling obtained by the encryption operation is forwarded to the mobile terminal.
8. The calling method according to claim 7, characterized in that: Outputting re-authentication response information to the S-CSCF includes: Generate a 100 Trying response message carrying a re-authentication identifier; The 100 Trying response message is sent to the S-CSCF as re-authentication response information.
9. A calling system, characterized in that: include: A mobile terminal, an S-CSCF on the mobile terminal side, and a P-CSCF as claimed in any one of claims 7 to 8; The S-CSCF is used to receive the re-authentication response information sent by the P-CSCF, control the mobile terminal to perform a re-authentication operation, and obtain new second security association information.
10. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the calling method as described in any one of claims 1 to 4, or implement the calling method as described in any one of claims 7 to 8.
