A session establishment method and apparatus, an electronic device, and a storage medium

By managing session requests from different types of terminals through the SSCCF network element and constructing response confirmation messages using SIP encoding and decoding functions, the problems of function reduction and high cost in the IMS system are solved, enabling voice interoperability between IPPBX terminals and 5G mobile terminals, and improving system clarity and call efficiency.

CN119299436BActive Publication Date: 2026-01-16LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411392092.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2026-01-16
Estimated Expiration
2044-09-30

AI Technical Summary

Technical Problem

The existing IMS system cannot be customized according to user needs within the enterprise, resulting in high software and hardware implementation costs and complex maintenance, and it cannot effectively manage session requests from different types of terminals.

Method used

By managing and coordinating session requests from different types of terminals through the SSCCF network element, and using SIP codec functions to construct response confirmation messages, the network element structure is simplified, the MMTEL AS network element is omitted, and voice interoperability between IPPBX terminals and 5G mobile terminals is realized.

Benefits of technology

It achieves a clear and maintainable system architecture, reduces deployment and maintenance costs, improves call efficiency, and simplifies signaling interaction processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299436B_ABST
    Figure CN119299436B_ABST
Patent Text Reader

Abstract

The present disclosure provides a session establishment method, device, equipment and storage medium. The method is applied to a first network element connected to a first terminal, and includes: receiving a first session request message from the first terminal, and sending the first session request message to a second terminal; receiving a temporary response message from the second terminal, the temporary response message being generated and sent by the second terminal according to the first session request message; constructing a message according to the temporary response message to obtain a response confirmation message; and sending the response confirmation message to the first terminal and the second terminal respectively; the response confirmation message is used for the first terminal and the second terminal to establish a session; wherein the first terminal and the second terminal support different types of communication connections.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the field of communication technology, and particularly relates to a session establishment method and device, electronic equipment and storage medium. BACKGROUND

[0002] With the development of the mobile Internet era, multimedia services are ubiquitous in life, such as text, pictures, sound and video, which are used as media to convey and receive various information to people, and are used to meet the rich multimedia service needs of terminal users, so more and more enterprises and institutions have researched the deployment and application of IMS (IP Multimedia Subsystem, IP Multimedia Subsystem) network. IMS can not only realize the integration of mobile and fixed networks, but also can integrate different service forms such as voice, data and video. IPPBX (Internet Protocol Private Branch Exchange, a private branch exchange system based on Internet Protocol) can realize network calls and transmission of text, data and images among various telephone terminals in the system by using IP mode.

[0003] At present, in order to protect the safe call environment and use more rich multimedia services, most enterprises access IPPBX to IMS network to provide services for users. However, in most cases, the services provided by IMS are redundant for users, and cannot be trimmed according to the actual needs of users and reduce the implementation cost of software and hardware to meet the needs of users. SUMMARY

[0004] The present disclosure provides a session establishment method, device, electronic equipment and storage medium to at least solve the above technical problems in the prior art.

[0005] According to a first aspect of the present disclosure, a session establishment method is provided, the method is applied to a first network element connected to a first terminal, and the method comprises the following steps:

[0006] receiving a first session request message from the first terminal, and sending the first session request message to a second terminal;

[0007] receiving a temporary response message from the second terminal, the temporary response message being generated and sent by the second terminal according to the first session request message;

[0008] performing message construction according to the temporary response message to obtain a response confirmation message;

[0009] sending the response confirmation message to the first terminal and the second terminal respectively; the response confirmation message is used for the first terminal and the second terminal to establish a session.

[0010] The first terminal and the second terminal support different types of communication connections.

[0011] According to a second aspect of the present disclosure, a session establishment apparatus is provided, the apparatus being applied to a first network element, the apparatus comprising:

[0012] a receiving module, configured to receive a first session request message from a first terminal, and send the first session request message to a second terminal;

[0013] receive a temporary response message from the second terminal, the temporary response message being generated and sent by the second terminal according to the session request message sent by the first terminal;

[0014] a processing module, configured to perform message construction according to the temporary response message, to obtain a response confirmation message;

[0015] a sending module, configured to send the response confirmation message to the first terminal and the second terminal respectively, the response confirmation message being used for the first terminal and the second terminal to establish a session;

[0016] The first terminal and the second terminal support different types of communication connections.

[0017] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0018] at least one processor; and

[0019] a memory connected with the at least one processor; wherein,

[0020] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of the present disclosure.

[0021] According to a fourth aspect of the present disclosure, a non-transitory computer readable storage medium storing computer instructions is provided, the computer instructions being used to enable the computer to perform the method of the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0022] The above and other objects, features and advantages of the present disclosure exemplary embodiments will be more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which:

[0023] In the drawings, identical or corresponding reference signs indicate identical or corresponding parts.

[0024] Figure 1A flowchart of a session establishment method provided by an embodiment of the present disclosure is shown.

[0025] Figure 2 A flowchart of a session establishment method provided by an embodiment of the present disclosure is shown.

[0026] Figure 3 A structural diagram of a session establishment apparatus provided by an embodiment of the present disclosure is shown.

[0027] Figure 4 A structural diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0028] In order to make the objectives, features and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only some of the embodiments of the present disclosure, but not all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work fall within the scope of the present disclosure.

[0029] In the following description, "some embodiments" are described, which describe a subset of all possible embodiments, but it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.

[0030] In the following description, the term "first\second" is only to distinguish similar objects, and does not represent a specific order of the objects. It can be understood that "first\second" can be interchanged in a specific order or sequence as allowed, so that the embodiments of the present disclosure described herein can be implemented in an order other than that illustrated or described herein.

[0031] Unless otherwise defined, all technical and scientific terms used in the present disclosure have the same meanings as commonly understood by those skilled in the art to which the present disclosure belongs. The terms used in the present disclosure are only for the purpose of describing the embodiments of the present disclosure, and are not intended to limit the present disclosure.

[0032] It should be understood that in various embodiments of the present disclosure, the size of the serial number of each implementation process does not mean the order of execution, and the execution order of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.

[0033] Figure 1 A flowchart of a session establishment method provided by an embodiment of the present disclosure is shown. As shown in FIG. 1, the method comprises the following steps. Figure 1As shown, the session establishment method is applied to a first network element connected to a first terminal, and the method comprises:

[0034] Step 101, receiving a first session request message from the first terminal, and sending the first session request message to a second terminal;

[0035] Step 102, receiving a temporary response message from the second terminal, the temporary response message being generated and sent by the second terminal according to the first session request message;

[0036] Step 103, message construction according to the temporary response message to obtain a response confirmation message;

[0037] Step 104, sending the response confirmation message to the first terminal and the second terminal respectively; the response confirmation message is used for the first terminal and the second terminal to establish a session;

[0038] Wherein, the first terminal and the second terminal support different types of communication connections.

[0039] In some embodiments, the first network element is an SCSCF network element, which is an important component in IP Multimedia Subsystem (IMS), and the full name is Serving Call / Session Control Function, that is, service call or session control function.

[0040] The first terminal and the second terminal support different types of communication connections, which means that the first terminal and the second terminal can be connected using different types of communication technologies. For example, the first terminal is an IPPBX (Internet Protocol Private Branch Exchange) terminal, which is usually used in the communication system of an enterprise, and the second terminal is a 5G mobile terminal that can be connected through the fifth generation mobile communication technology, of course, it can also be a terminal connected through other communication technologies such as 4G.

[0041] In this way, the SCSCF can effectively manage and coordinate the session request between different types of terminals, ensure that the session can be successfully established, and make the system architecture more clear and easy to maintain.

[0042] In some embodiments, the first network element is a first service call or session control function network element (denoted as SCSCF1) connected to the first terminal, and the first terminal is an Internet Protocol-based private branch exchange system terminal, such as an IPPBX terminal.

[0043] The first network element sends a message to the second terminal and / or receives a message from the second terminal through a second network element, which is a second service call or session control function network element (denoted as SCSCF2) connected with the second terminal;

[0044] The second terminal is a terminal of a private branch exchange system not based on an Internet protocol, such as a 5G mobile terminal.

[0045] Here, the first terminal and the second terminal establish a session through the SCSCF1 and the SCSCF2. Through the SCSCF1, the session request between different types of terminals can be effectively managed and coordinated, and the session can be smoothly established, so that the system architecture is clearer and easier to maintain.

[0046] In some embodiments, the temporary response message is a 183 session message, and the response confirmation message is a provisional response confirmation (PRACK) message for responding to the 183 session message.

[0047] In some embodiments, the message is constructed according to the temporary response message to obtain a response confirmation message, including:

[0048] According to the temporary response message, target information is determined; the target information includes at least one of the following: a message sender, a message receiver, a session identifier, a message identifier, a message request, communication address information, and routing information for tracking messages.

[0049] According to the target information, the response confirmation message is constructed.

[0050] In some embodiments, the target information is determined according to the temporary response message, including:

[0051] At least one of the following header fields is extracted from the temporary response message: a sender header field, a receiver header field, a session identifier header field, a message identifier header field, a message request header field, communication address information header field, and routing information header field for tracking messages.

[0052] According to the extracted at least one header field, the target information is determined.

[0053] Here, the target information determined by the first network element according to the temporary response message can include but is not limited to at least one of the following: a message sender, a message receiver, a session identifier, a message identifier, a message request, communication address information, and routing information for tracking messages; according to the target information, the response confirmation message can be constructed.

[0054] It should be noted that the target information can include but is not limited to at least one of the above, and the content of the target information is determined based on requirements, protocols, and / or information required for building the response confirmation message, which is not limited here.

[0055] Correspondingly, the header field extracted from the temporary response message can also include but is not limited to at least one of the above, and the extracted header field is determined based on requirements, protocols, and / or information required for building the response confirmation message, which is not limited here.

[0056] Here, the first session request message can be an INVITE request message, the temporary response message can be a 183 session message, and the response confirmation message can be a PRACK message; the first network element can build the response confirmation message according to the temporary response message, so as to establish a session between the first terminal and the second terminal.

[0057] In this way, the method provided by the embodiment of the disclosure establishes a session between the first terminal and the second terminal through the first network element, that is, the function in voice communication is implemented through the first network element, and the response confirmation message is built by using the first network element, so that a complete call process is implemented.

[0058] Here, the first network element can reuse a SIP (Session Initiation Protocol) codec function to build the response confirmation message according to the temporary response message, that is, the message is built according to the temporary response message to obtain the response confirmation message.

[0059] In this way, the response confirmation message is built by the first network element, which simplifies the network element structure, saves deployment and maintenance costs, simplifies the signaling interaction process in the call process, and improves the call efficiency. Moreover, the SIP codec function is reused to implement the parsing and building of the message, which is convenient for maintenance and shortens the development cycle.

[0060] In some embodiments, the method further includes:

[0061] receiving a response message, a second session request message, and a ring message from the second terminal for the response confirmation message;

[0062] sending the response message, the second session request message, and the ring message to the first terminal;

[0063] receiving a response message from the first terminal, and establishing a session between the first terminal and the second terminal according to the response message.

[0064] Here, the response acknowledgement message can be a PRACK message, and the response message can be a message responding to the PRACK message, such as a 200 OK (PRACK) message. This can be understood as an acknowledgement of the PRACK message, indicating that the previous provisional response (such as a 183 Session message) has been successfully received.

[0065] The second session request can be a request for establishing a session, such as a 200 OK (INVITE) request, and after sending the second session request, the initiator hopes to establish media communication with the other party.

[0066] The ring message can be a 180 Ringing ring, which is a provisional response to the session request, indicating that the called party is ringing and the call is being processed.

[0067] Subsequently, the first terminal sends a response message, such as an ACK (Acknowledgment) message, to confirm the received response, i.e., the first terminal and the second terminal establish a session and are ready for communication.

[0068] Here, the response message of the second terminal, the second session request message and the ring message can be sent to SCSCF1 through SCSCF2 and ICSCF2 in turn.

[0069] Correspondingly, the response message, the second session request message and the ring message are sent to the first terminal by SCSCF1, and the response message from the first terminal is received.

[0070] In some embodiments, sending the first session request message to the second terminal comprises:

[0071] According to the first session request message, a receiving end query is performed to determine the second terminal and send the first session request message to the second terminal.

[0072] Here, after the first network element receives the first session request message from the initiator (i.e., the first terminal), in order to communicate with the requested sender (i.e., the second terminal), a preset routing rule or strategy is used to query the second terminal to determine the second terminal, and of course it can also be determined which specific network nodes the first session request message is forwarded to in order to communicate with the second terminal.

[0073] For example, the first network element is denoted as SCSCF1, and the second terminal and the SCSCF2 and ICSCF2 corresponding to the second terminal are determined by querying to achieve communication.

[0074] Thus, the method provided by the embodiment of the disclosure implements the voice interworking requirement of the specific scenario of the next IPPBX terminal and the mobile terminal (such as a 5G terminal) through the SCSCF network element, without the MMTEL AS (Multimedia Telephony Application Server, multimedia telephone application server) in the IMS and the interaction between the MMTEL AS and the SCSCF network element (that is, the function of the MMTEL AS is trimmed, and the MMTEL AS network element is removed), thereby simplifying the network element structure, transplanting the function in the voice communication to the SCSCF network element, constructing the response confirmation message by using the SCSCF network element, implementing the complete call process, and omitting the process of the interaction between the SCSCF network element and the MMETL AS network element and the function of the MMTEL AS network element to judge the service type.

[0075] In some embodiments, the first network element is the SCSCF, and the SCSCF can reuse the SIP codec function of the SCSCF to implement message construction according to the temporary response message to obtain the response confirmation message.

[0076] Specifically, after the SCSCF receives the temporary response message (such as the 183 session message), the message field is parsed before being forwarded to the next route, and the valid fields of the PRACK message are stored in the reconstructed structure, mainly including the fields of from (message sender), to (message receiver), call-id (session identifier), cseq (request sequence number), rseq (response sequence number), and the like. Then, the Handle_response() function is called to construct the PRACK message on the basis of the existing 183 session message field, and the PRACK message is forwarded to the PCSCF network element of the calling terminal and the called terminal, to complete the entire complete call process.

[0077] The following provides an example of a method for constructing a PRACK message, including but not limited to at least one of the following:

[0078] 1), the Cseq header field and the Require header field are obtained from the INVITE request message (the INVITE request message corresponding to the 183 session message) by using the Get_header function, and the Method (method field, indicating the method type of the message) in the Require header field is filled with PRACK;

[0079] Here, the Cseq header field is used to identify the uniqueness and sequence of each request;

[0080] The Require header field is used to indicate a specific function or extension required by a request, which indicates that the SIP reliable temporary response is required or supported here.

[0081] 2) Extract from the structure of the 183 session message the from header and the to header, and update the tag field in the to header to obtain a new to header;

[0082] Here, the update includes updating the User part and the host part of the address to form a new to header;

[0083] The to header is used to identify the message receiver; the tag field can be a random string with a length of at least 32 bits, which is added to the to and from headers to uniquely identify a session;

[0084] The User part and the host part represent the user part and the host part of the address information;

[0085] 3) Read the call-id header, the Rseq header, and the Contact header from the structure of the 183 session message;

[0086] Here, the call-id header represents a session identifier, which is used to uniquely identify a specific SIP dialogue or session established between two SIP entities;

[0087] The Rseq header represents a repeated sequence number, which is used to confirm whether a certain request or response is repeated;

[0088] The Contact header is used to give a direct address through which the two parties can communicate.

[0089] 4) Call the t_calc_branch() function to generate a new branch parameter, and construct a new via header according to the local ip and port (port number);

[0090] Here, the Branch is a transaction id, which is used to distinguish different transactions initiated by the same client;

[0091] The Via header indicates the transmission device used for transaction transmission, and also indicates the address to which the response is sent back.

[0092] 5) Update the user-agent field, read the user-agent parameter from the structure of the 183 session message, and after detecting that the parameter is a mobile terminal parameter, replace the parameter with IMS;

[0093] 6) update the contact parameter of the Contact header field, delete the vedio, audio (video parameter and voice parameter) and the related 3gpp (third generation communication system related parameter) parameter of the mobile terminal contact field, and update the host part field in the contact field according to the domain name and port of the called party, and construct a new contact header field;

[0094] 7) call the find_sip_method function to extract the Method parameter in the Cseq header field;

[0095] 8) construct the Rack header field according to the Cseq header field, Rseq header field, via header field, call-id header field, from header field, to header field, Contact header field, Require header field, etc., and the return value of the find_sip_method function, and construct the PRACK message according to the Rack header field;

[0096] 9) calculate the message length, and fill the context-length field (message field, indicating the message field length);

[0097] 10) call the Send_request() function to forward the PRACK message to the PCSCF;

[0098] Here, the Send_request() function is a forwarding function, which is used to forward the PRACK message recombined by the SCSCF to the PCSCF network element.

[0099] The above Get_header function, t_calc_branch() function, find_sip_method function, Send_request() function, and Handle_response() function are part of the multiplexed SIP codec function, and of course, other functions can also be included, which are not limited here. The Handle_response() function is used to call the above Get_header function, t_calc_branch() function, find_sip_method function, and Send_request() function.

[0100] In this way, the SCSCF constructs the PRACK message according to the parsed fields of the 183 session message, realizes the response to the 183 session message, and realizes the parsing of the 183 session message through the SIP codec function of the SCSCF, which is convenient for maintenance and shortens the development cycle.

[0101] Meanwhile, the PRACK message is constructed by the SCSCF, which simplifies the network element structure (i.e., without the MMTEL AS network element), saves the deployment and maintenance costs, simplifies the signaling interaction process in the call process, and improves the call efficiency.

[0102] Figure 2 A flowchart of a session establishment method provided by an application embodiment of the present disclosure is shown. As shown in the flowchart, the session establishment method comprises the following steps. Figure 2

[0103] Step 201: UE1 initiates an INVITE request message as a caller, and the SCSCF1 receives the INVITE request message and queries the field, and then forwards the INVITE request message to UE2 as a callee.

[0104] Here, the SCSCF1 sends the INVITE message to UE2 through the ICSCF2 and the SCSCF2.

[0105] Here, UE1 is an IPPBX terminal, and UE2 is a 5G mobile terminal; UE1 communicates through the PCSCF1, and UE2 communicates through the PCSCF2.

[0106] The PCSCF (Proxy Call Session Control Function) is a key component in the IMS (IP Multimedia Subsystem) architecture, mainly responsible for processing the signaling and control of multimedia sessions, and serving as a proxy between terminals (such as mobile phones or other devices) and the core network.

[0107] Step 202: UE2 responds to the INVITE request message as a callee and sends a 100 trying (a temporary response) and a 183 session message to initiate a 183 session process.

[0108] Step 203: After receiving the 183 session message initiated by the callee, the SCSCF1 analyzes the 183 session message, extracts the message field, and constructs a PRACK message according to the extracted message field, and sends the PRACK message to UE1 and UE2 respectively.

[0109] Here, after the SCSCF1 constructs the PRACK message, the SCSCF1 forwards it to the PCSCF1, which in turn forwards it to UE1; at the same time, the SCSCF1 also forwards the PRACK message to the ICSCF2, which forwards it to the SCSCF2, which forwards it to the PCSCF2, which forwards it to UE2.

[0110] ​Through the above routing logic, the 183 session message is responded by the IPPBX calling terminal UE1 through bidirectional forwarding.

[0111] In step 204, after receiving the PRACK message, UE2 initiates a 200 OK (PRACK) to respond to the PRACK message, and initiates a 200 OK (INVITE) message and replies to the 180 ringing;

[0112] In step 205, UE1 replies to the ACK, and the call flow is completed.

[0113] Thus, the method provided by the embodiment of the disclosure realizes the voice interworking requirement of the IPPBX terminal (UE1) and the 5G mobile terminal (UE2) through the SCSCF network element, so that the function of the MMTEL AS is cut, the MMTEL AS network element is removed, the network element structure is simplified, the function in the voice communication is transplanted to the SCSCF network element, the response confirmation message is constructed by using the SCSCF network element, the complete call flow is realized, the process of interaction between the SCSCF network element and the MMETL AS network element is omitted, and the function of the MMTEL AS network element to judge the service type is omitted.

[0114] Figure 3 Fig. 1 shows a structural schematic diagram of a session establishment device provided by an embodiment of the disclosure; as shown in the figure, the session establishment device is applied to a first network element, and the device comprises: Figure 3

[0115] a receiving module, configured to receive a first session request message from a first terminal;

[0116] a sending module, configured to send the first session request message to a second terminal;

[0117] the receiving module is further configured to receive a temporary response message from the second terminal, the temporary response message being generated and sent by the second terminal according to the session request message sent by the first terminal;

[0118] a processing module, configured to construct a response confirmation message according to the temporary response message;

[0119] the sending module is configured to send the response confirmation message to the first terminal and the second terminal respectively; the response confirmation message is used for the first terminal and the second terminal to establish a session;

[0120] wherein the first terminal and the second terminal support different types of communication connections.

[0121] ​In some embodiments, the processing module is configured to determine target information based on the temporary response message; the target information includes at least one of the following: message sender, message receiver, session identifier, message identifier, message request, communication address information, and routing information for tracking messages;

[0122] Based on the target information, construct the response confirmation message.

[0123] In some embodiments, the processing module is configured to extract at least one of the following header fields from the temporary response message: sender header field, receiver header field, session identifier header field, message identifier header field, message request header field, communication address information header field, and routing information header field for tracking messages;

[0124] Target information is determined based on at least one of the extracted header fields.

[0125] In some embodiments, the receiving module is further configured to receive a response message, a second session request message, and a ringing message from the second terminal in response to the acknowledgment message;

[0126] The sending module is also used to send the response message, the second session request message, and the ringing message to the first terminal;

[0127] The receiving module is further configured to receive a response message from the first terminal and establish a session between the first terminal and the second terminal based on the response message.

[0128] In some embodiments, the sending module is configured to perform a receiving end query based on the first session request message, determine the second terminal, and send the first session request message to the second terminal.

[0129] In some embodiments, the first network element is a first service call or session control function network element connected to the first terminal, and the first terminal is a terminal of a private branch exchange system based on Internet Protocol.

[0130] The first network element sends messages to the second terminal and / or receives messages from the second terminal through the second network element. The second network element is a second service call or session control function network element connected to the second terminal. The second terminal is not a terminal of a private branch exchange system based on Internet Protocol.

[0131] In some embodiments, the temporary response message is a 183 session message, and the response confirmation message is a temporary response confirmation (PRACK) message used in response to the 183 session message.

[0132] It can be understood that the session establishment apparatus provided by the above-mentioned embodiments can be used to complete the above-mentioned processing by different program modules according to the needs when implementing the corresponding session establishment method, to complete all or part of the above-mentioned processing. In addition, the apparatus provided by the above-mentioned embodiments and the embodiments of the corresponding method belong to the same concept, and the specific implementation process is described in the method embodiments, which will not be repeated here.

[0133] The computer readable storage medium provided by the embodiment of the present disclosure stores executable instructions, and when the executable instructions are executed by the processor, the processor executes the session establishment method provided by the embodiment of the present disclosure.

[0134] In some embodiments, the computer readable storage medium can be a Ferroelectric RAM (FRAM), a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable ROM (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a flash memory, a magnetic surface memory, an optical disc, or a CD-ROM, etc. memory; it can also be various devices including one or any combination of the above memories.

[0135] In some embodiments, the executable instructions can be in the form of programs, software, software modules, scripts or codes, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and can be deployed in any form, including being deployed as independent programs or as modules, models, subroutines or other units suitable for use in a computing environment.

[0136] As an example, the executable instructions can be deployed to execute on one computing device, or on multiple computing devices located in one place, or on multiple computing devices distributed in multiple places and interconnected through a communication network.

[0137] The embodiment of the present disclosure provides a computer program product, which comprises computer programs / instructions, and the computer programs / instructions are executed by the processor to implement the session establishment method provided by the present disclosure.

[0138] Figure 4 A structural schematic diagram of an electronic device provided by an embodiment of the present disclosure is shown. As shown in FIG. 1, the electronic device comprises a processor 100 and a memory 200. Figure 4As shown, the electronic device 40 includes a processor 401 and a memory 402 configured to store computer programs capable of running on the processor; and the processor 401 is configured to execute the session establishment method provided by the embodiments of the present disclosure when running the computer programs.

[0139] In actual application, the electronic device 40 can further include at least one network interface 403. The various components in the electronic device 40 are coupled together by a bus system 404. It can be understood that the bus system 404 is configured to realize the connection and communication between the components. The bus system 404 includes a data bus, a power supply bus, a control bus and a status signal bus. However, for the purpose of clear illustration, all the buses are marked as the bus system 404 in the figure. Figure 4 The number of the processor 401 can be at least one. The network interface 403 is configured to realize the wired or wireless communication between the electronic device 40 and other devices.

[0140] The memory 402 in the embodiments of the present disclosure is configured to store various types of data to support the operation of the electronic device 40.

[0141] The method disclosed in the above embodiments of the present disclosure can be applied in or implemented by the processor 401. The processor 401 can be an integrated circuit chip having the processing capability of signals. In the implementation process, each step of the above method can be completed by the integrated logic circuit of hardware or the instruction in the form of software in the processor 401. The processor 401 can be a general-purpose processor, a digital signal processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The processor 401 can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure. The general-purpose processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiments of the present disclosure, the hardware decoding processor can be directly embodied to execute the above steps, or the hardware and software modules in the decoding processor can be combined to execute the above steps. The software module can be located in the storage medium in the memory 402, and the processor 401 reads the information in the memory 402 and combines the hardware to complete the steps of the above method.

[0142] In some embodiments, the electronic device 40 can be implemented with one or more Application Specific Integrated Circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general purpose processors, controllers, microcontrollers (MCUs), microprocessors (Microprocessors), or other electronic elements for executing the aforementioned methods.

[0143] It should be understood that the various forms of flow shown above can be re-ordered, steps added or removed. For example, the steps recited in the present disclosure can be performed in parallel, in series, or in a different order, as long as the desired results of the technology disclosed in the present disclosure can be achieved, which is not limited herein.

[0144] In addition, the terms "first", "second", "third", etc. are used only for descriptive purposes and should not be construed as indicating or implying relative importance or a specific number of the technical features indicated. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "a plurality of" is two or more, unless otherwise specifically limited.

[0145] The above description is merely a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present disclosure, which should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims

1.A method for session establishment, the method is applied to a first network element connected to a first terminal, comprising: receiving a first session request message from the first terminal, and sending the first session request message to a second terminal; receiving a provisional response message from the second terminal, the provisional response message is generated and sent by the second terminal according to the first session request message; constructing a message according to the provisional response message to obtain a response confirmation message; and sending the response confirmation message to the first terminal and the second terminal respectively, the response confirmation message is used for the first terminal and the second terminal to establish a session; wherein the first terminal and the second terminal support different types of communication connection; the first network element is a first serving call or session control function network element connected to the first terminal, and the first terminal is a terminal of an Internet protocol private branch exchange system; the first network element sends messages to the second terminal and / or receives messages from the second terminal through a second network element, the second network element is a second serving call or session control function network element connected to the second terminal, and the second terminal is a terminal other than the Internet protocol private branch exchange system. 2.The method of claim 1, wherein constructing a message according to the provisional response message to obtain a response confirmation message comprises: determining target information according to the provisional response message; the target information comprises at least one of the following: a message sender, a message receiver, a session identifier, a message identifier, a message request, communication address information, and routing information for tracking messages; and constructing the response confirmation message according to the target information. 3.The method of claim 2, wherein determining target information according to the provisional response message comprises: extracting at least one of the following header fields from the provisional response message: a sender header field, a receiver header field, a session identifier header field, a message identifier header field, a message request header field, a communication address information header field, and a routing information header field for tracking messages; and determining the target information according to the extracted at least one header field. 4.The method of claim 1, further comprising: receiving a response message, a second session request message, and a ring message for the response confirmation message from the second terminal; sending the response message, the second session request message, and the ring message to the first terminal; and receiving a response message from the first terminal, and establishing a session between the first terminal and the second terminal according to the response message. 5.The method of claim 1, wherein sending the first session request message to the second terminal comprises: performing a receiving end query according to the first session request message to determine the second terminal and send the first session request message to the second terminal. 6.The method of claim 1, wherein the provisional response message is a 183 session message, and the response confirmation message is a provisional response confirmation (PRACK) message for responding to the 183 session message. 7.A session establishment apparatus, the apparatus is applied to a first network element, and the apparatus comprises: ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ receiving a first session request message from a first terminal; sending the first session request message to a second terminal; receiving a temporary response message from the second terminal, the temporary response message being generated and sent by the second terminal according to the session request message sent by the first terminal; processing the temporary response message to construct a response confirmation message; sending the response confirmation message to the first terminal and the second terminal respectively, the response confirmation message being used by the first terminal and the second terminal to establish a session; wherein the first terminal and the second terminal support different types of communication connection; the first network element is a first serving call or session control function network element connected with the first terminal, and the first terminal is a terminal of an Internet Protocol private branch exchange system; the first network element sends messages to and / or receives messages from the second terminal through a second network element, the second network element being a second serving call or session control function network element connected with the second terminal, and the second terminal being a terminal other than the Internet Protocol private branch exchange system. 8.An electronic device applied to a first network element, comprising: at least one processor; and a memory in communication connection with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform: receiving a first session request message from a first terminal, and sending the first session request message to a second terminal; receiving a temporary response message from the second terminal, the temporary response message being generated and sent by the second terminal according to the first session request message; processing the temporary response message to construct a response confirmation message; sending the response confirmation message to the first terminal and the second terminal respectively, the response confirmation message being used by the first terminal and the second terminal to establish a session; wherein the first terminal and the second terminal support different types of communication connection; the first network element is a first serving call or session control function network element connected with the first terminal, and the first terminal is a terminal of an Internet Protocol private branch exchange system; the first network element sends messages to and / or receives messages from the second terminal through a second network element, the second network element being a second serving call or session control function network element connected with the second terminal, and the second terminal being a terminal other than the Internet Protocol private branch exchange system. 9.A non-transitory computer readable storage medium storing computer instructions, applied to a first network element, the computer instructions being used to enable the computer to perform: receiving a first session request message from a first terminal, and sending the first session request message to a second terminal; receiving a temporary response message from the second terminal, the temporary response message being generated and sent by the second terminal according to the first session request message; constructing a message according to the temporary response message to obtain a response confirmation message; sending the response confirmation message to the first terminal and the second terminal respectively, wherein the response confirmation message is used for the first terminal and the second terminal to establish a session; wherein the first terminal and the second terminal support different types of communication connection; the first network element is a first serving call or session control function network element connected with the first terminal, and the first terminal is a terminal of an Internet protocol private branch exchange system; the first network element sends a message to the second terminal and / or receives a message from the second terminal through a second network element, wherein the second network element is a second serving call or session control function network element connected with the second terminal, and the second terminal is a terminal other than the Internet protocol private branch exchange system.

Citation Information

Patent Citations

  • VoLTE encrypted call identification method, apparatus and system

    CN106713261A

  • Communication method and device, first network element and communication system

    CN111835674A