[go: up one dir, main page]

CN119299436A - A method, device, electronic device and storage medium for establishing a session - Google Patents

A method, device, electronic device and storage medium for establishing a session Download PDF

Info

Publication number
CN119299436A
CN119299436A CN202411392092.2A CN202411392092A CN119299436A CN 119299436 A CN119299436 A CN 119299436A CN 202411392092 A CN202411392092 A CN 202411392092A CN 119299436 A CN119299436 A CN 119299436A
Authority
CN
China
Prior art keywords
terminal
message
session
response
network element
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202411392092.2A
Other languages
Chinese (zh)
Inventor
王萧阳
高睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202411392092.2A priority Critical patent/CN119299436A/en
Publication of CN119299436A publication Critical patent/CN119299436A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1016IP multimedia subsystem [IMS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present disclosure provides a session establishment method, a device, equipment and a storage medium, wherein the method is applied to a first network element, the first network element is connected with a first terminal, the method comprises the steps of receiving a first session request message from the first terminal, sending the first session request message to a second terminal, receiving a temporary response message from the second terminal, generating and sending the temporary response message by the second terminal according to the first session request message, constructing a message according to the temporary response message, obtaining a response confirmation message, sending the response confirmation message to the first terminal and the second terminal respectively, and the response confirmation message is used for establishing a session between the first terminal and the second terminal, wherein the first terminal and the second terminal support different types of communication connection.

Description

Session establishment method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a session establishment method, a session establishment device, an electronic device, and a storage medium.
Background
With the development of the mobile internet age, multimedia services such as text, pictures, sound, and video are used as media for conveying and receiving various information to people everywhere in life, so as to meet the current rich multimedia service demands of end users, and thus more and more enterprises and institutions are researching the deployment and application of IMS (IP Multimedia Subsystem ) networks. The IMS not only can realize the fusion of mobile and fixed networks, but also can fuse different service forms of voice, data, video and the like together. An IP pbx (Internet Protocol Private Branch Exchange, an internet protocol based private branch exchange system) may implement network calls and text, data, and image transmissions by IP at each telephony terminal within the system.
At present, most enterprises use richer multimedia services in order to ensure a safe call environment, and an IPPBX is accessed to an IMS network to provide services for users thereof. In most cases, however, the services provided by IMS are redundant for users, and cannot be tailored to the actual needs of the users and reduce the implementation costs of hardware and software if the needs of the users are met.
Disclosure of Invention
The present disclosure provides a session establishment method, apparatus, electronic device, and storage medium, so as to at least solve the above technical problems in the prior art.
According to a first aspect of the present disclosure, there is provided a session establishment method, the method being applied to a first network element, the first network element being connected to a first terminal, including:
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, wherein the temporary response message is 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;
The response confirmation message is respectively sent to a first terminal and a second terminal, and is used for establishing a session between the first terminal and the second terminal;
wherein the first terminal and the second terminal support different types of communication connection.
According to a second aspect of the present disclosure, there is provided a session establishment apparatus, the apparatus being applied to a first network element, the apparatus comprising:
The receiving module is used for 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, wherein the temporary response message is generated and sent by the second terminal according to a session request message sent by the first terminal;
the processing module is used for constructing the message according to the temporary response message to obtain a response confirmation message;
The sending module is used for respectively sending the response confirmation message to the first terminal and the second terminal, wherein the response confirmation message is used for establishing a session between the first terminal and the second terminal;
wherein the first terminal and the second terminal support different types of communication connection.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
At least one processor, and
A memory communicatively coupled to the at least one processor, wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the methods described in the present disclosure.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of the present disclosure.
Drawings
The above, as well as additional purposes, features, and advantages of exemplary embodiments of the present disclosure will become readily apparent from the following detailed description when read in conjunction with the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings, in which:
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Fig. 1 is a flow chart illustrating a session establishment method according to an embodiment of the present disclosure;
fig. 2 is a flow chart illustrating a session establishment method provided by an embodiment of the application of the present disclosure;
fig. 3 is a schematic structural diagram of a session establishment apparatus according to an embodiment of the present disclosure;
fig. 4 shows a schematic diagram of a composition structure of an electronic device according to an embodiment of the disclosure.
Detailed Description
In order to make the objects, features and advantages of the present disclosure more comprehensible, the technical solutions in the embodiments of the present disclosure will be clearly described in conjunction with the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only some embodiments of the present disclosure, but not all embodiments. Based on the embodiments in this disclosure, all other embodiments that a person skilled in the art would obtain without making any inventive effort are within the scope of protection of this disclosure.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
In the following description, the terms "first", "second", and the like are merely used to distinguish between similar objects and do not represent a particular ordering of the objects, it being understood that the "first", "second", or the like may be interchanged with one another, if permitted, to enable embodiments of the disclosure described herein to be implemented in an order other than that illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terminology used in the present disclosure is for the purpose of describing embodiments of the present disclosure only and is not intended to be limiting of the present disclosure.
It should be understood that, in various embodiments of the present disclosure, the size of the sequence number of each implementation process does not mean that the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.
Fig. 1 shows a flow chart of a session establishment method provided by an embodiment of the present disclosure, where, as shown in fig. 1, the session establishment method is applied to a first network element, and the first network element is connected to a first terminal, and the method includes:
Step 101, receiving a first session request message from a first terminal, and sending the first session request message to a second terminal;
102, receiving a temporary response message from the second terminal, wherein the temporary response message is generated and sent by the second terminal according to the first session request message;
Step 103, constructing a message according to the temporary response message to obtain a response confirmation message;
Step 104, the response confirmation message is sent to a first terminal and a second terminal respectively, wherein the response confirmation message is used for establishing a session between the first terminal and the second terminal;
wherein the first terminal and the second terminal support different types of communication connection.
In some embodiments, the first network element is an SCSCF network element, which is an important component in the IP Multimedia Subsystem (IMS), all referred to as SERVING CALL/Session Control Function, i.e. serving call or session control function.
The first terminal and the second terminal support different types of communication connection, it being understood that the first terminal and the second terminal may be connected using different types of communication technologies. For example, the first terminal is an ip pbx (internet protocol private branch exchange) terminal, which is commonly used in a communication system in an enterprise, and the second terminal is a 5G mobile terminal, which can be connected through a fifth generation mobile communication technology, and may be a terminal through other communication technologies such as 4G.
Therefore, the SCSCF can effectively manage and coordinate session requests among different types of terminals, ensures that the session can be successfully established, and ensures that the system architecture is clearer and is easy to maintain.
In some embodiments, the first network element is a first service call or session control function network element (denoted SCSCF 1) connected to the first terminal, which is a terminal of an internet protocol based private branch exchange system, such as an ip pbx terminal;
the first network element sends and/or receives a message to and/or from a second terminal through a second network element, wherein the second network element is a second service call or session control function network element (noted as SCSCF 2) connected with the second terminal;
the second terminal is not a terminal of an internet protocol based private branch exchange system, such as a 5G mobile terminal.
Here, the first terminal and the second terminal establish a session through SCSCF1 and SCSCF 2. Through SCSCF1, session requests between different types of terminals can be effectively managed and coordinated, so that smooth establishment of session is ensured, and the system architecture is clearer and is easy to maintain.
In some embodiments, the interim reply message is a 183 session message and the reply acknowledge message is an interim response acknowledge (PRACK, provisional Acknowledgment) message for responding to the 183 session message.
In some embodiments, the message construction is performed according to the temporary response message, so as to obtain a response confirmation message, which includes:
determining target information according to the temporary response message, wherein the target information comprises at least one of a message sender, a message receiver, a session identifier, a message request, communication address information and routing information of a tracking message;
And constructing the response confirmation message according to the target information.
In some embodiments, determining the target information from the temporary response message includes:
Extracting at least one header field from the temporary response message, wherein the header field comprises a sender header field, a receiver header field, a session identification header field, a message request header field, a communication address information header field and a routing information header field of a tracking message;
And determining target information according to the at least one extracted header.
Here, the first network element may determine, according to the temporary acknowledgement message, target information including, but not limited to, at least one of a message sender, a message receiver, a session identifier, a message request, communication address information, and routing information of a trace message, and may construct the acknowledgement message according to the target information.
It should be noted that the target information may include, but is not limited to, at least one of the foregoing, and the content specifically included in the target information is determined based on the requirement, the protocol, and/or the information required for constructing the acknowledgement message, which is not limited herein.
Accordingly, the header field extracted from the temporary acknowledgement message may also include, but is not limited to, at least one of the above, the extracted header field being determined based on requirements, protocols, and/or information required to construct the acknowledgement message, without limitation.
Here, the first session request message may be an INVITE request message, the temporary response message may be a 183session (session) message, and the response acknowledgement message may be a PRACK message, and the first network element may construct the response acknowledgement message according to the temporary response message so that the first terminal and the second terminal establish a session.
In this way, the method provided by the embodiment of the disclosure establishes a session for the first terminal and the second terminal through the first network element, that is, the function in voice communication is realized through the first network element, and the first network element is utilized to construct the response confirmation message, so that a complete call flow is realized.
Here, the first network element may multiplex a SIP (Session Initiation Protocol ) codec function to construct a reply acknowledgement message from the temporary reply message, i.e. implement message construction from the temporary reply message, resulting in a reply acknowledgement message.
Therefore, the first network element realizes the construction of the response confirmation message, simplifies the network element structure, saves the deployment cost and the maintenance cost, simplifies the signaling interaction flow in the calling process, and improves the calling efficiency. And the multiplexing SIP encoding and decoding function realizes the analysis and construction of the message, is convenient for maintenance and shortens the development period.
In some embodiments, the method further comprises:
Receiving a response message, a second session request message and a ringing message for the acknowledgement message from the second terminal;
Transmitting the response message, the second session request message and the ringing 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.
Here, the acknowledgement message may be a PRACK message, and correspondingly, the response message may be a message responding to the PRACK message, such as 200OK (PRACK). This may be understood as an acknowledgement to the PRACK message indicating that a previous temporary response (e.g., 183Session message) has been successfully received.
The second session request may be a request for requesting to establish a session, such as a 200OK (INVITE) request, and the initiator desires to establish media communication with the counterpart after sending the second session request.
The Ringing message may be a 180Ringing ring, a temporary response to the session request, indicating that the called party is Ringing and the call is being processed.
The subsequent first terminal sends a reply message, such as ACK (Acknowledgment) message, acknowledging the received response, i.e. the first terminal establishes a session with the second terminal, both parties being ready for communication.
Here, the response message, the second session request message, and the ringing message of the second terminal may be sequentially transmitted to the SCSCF1 through the SCSCF2, ICSCF 2;
accordingly, the SCSCF1 transmits the response message, the second session request message, and the ringing message to the first terminal, and receives the response message from the first terminal.
In some embodiments, sending the first session request message to the second terminal includes:
And carrying out receiving end inquiry according to the first session request message, determining a second terminal and sending the first session request message to the second terminal.
Here, after the first network element receives the first session request message of the initiator (i.e. the first terminal), in order to communicate with the requested sender (i.e. the second terminal), the second terminal is queried using a preset routing rule or policy, etc., to determine the second terminal, and it is of course also possible to determine to which specific network nodes the first session request message is forwarded for communicating with the second terminal.
For example, the first network element acts as SCSCF1 and queries to determine the second terminal and the SCSCF2, ICSCF2 corresponding to the second terminal to effect communication.
Thus, the method provided by the embodiment of the disclosure realizes the voice intercommunication requirement of the lower ip pbx terminal and the mobile terminal (such AS the 5G terminal) in the specific scene through the SCSCF network element, does not need MMTEL AS (Multimedia Telephony Application Server, multimedia telephone application server) in the IMS, and does not need MMTEL AS to interact with the SCSCF network element (i.e., the function of MMTEL AS is cut and the MMTEL AS network element is removed), thereby simplifying the network element structure, transplanting the function in the voice communication into the SCSCF network element, constructing a response confirmation message by utilizing the SCSCF network element, realizing a complete call flow, omitting the interaction process of the SCSCF network element and the MMETL AS network element and judging the service type function of the MMTEL AS network element.
In some embodiments, the first network element is an SCSCF, and the SCSCF may multiplex the SIP codec function of the SCSCF to implement message construction according to the temporary response message, so as to obtain a response acknowledgement message.
Specifically, when the SCSCF receives the temporary response message (such as 183 session message), parses the message field before forwarding to the next route, and stores the valid field for constructing the PRACK message into the reconstructed structure body, which mainly includes from (message sender), to (message receiver), call-id (session identifier), cseq (request sequence number), rseq (response sequence number), and other fields. And then, calling a handle_response () function, constructing a PRACK message on the basis of the existing 183 session message field, and forwarding the PRACK message to the PCSCF network elements of the calling party and the called party to complete the whole complete call flow.
Examples of a method of constructing a PRACK message are provided below, including but not limited to at least one of:
1) Acquiring a Cseq header field and a request header field from an INVITE request message (an INVITE request message corresponding to a 183 session message) by using a get_header function, and filling a Method (a Method field, which indicates a Method type of the message) in the request header field as a PRACK;
here, cseq header field for identifying the uniqueness and order of each request;
the Require header field is used to indicate the specific functionality or extension required for a request, here to enforce the requirements or support SIP reliable temporary responses.
2) Extracting from header field and to header field from the structure body of 183 session message, and updating tag field in the to header field to obtain new to header field;
the updating includes updating the User part and host part of the address to construct new to header domain;
the tag field can be a random character string with the length of at least 32 bits, and is added into the to and from header fields to uniquely identify the session;
user part and host part represent User part and host part composing address information;
3) Reading a call-id header field, a Rseq header field and a Contact header field from a structure body of the 183 session message;
here, the call-id header field indicates a session identification for uniquely identifying a specific SIP dialog or session established between two SIP entities;
rseq header fields represent repeated sequence numbers for confirming whether a certain request or response is repeated;
the Contact header field is used to give the direct address that the two parties can communicate with.
4) Calling a t_calc_branch () function to generate a new branch parameter, and constructing a new via header field according to a local ip and port (port number);
Here, branch is a transaction id, used to distinguish between different transactions initiated by the same client;
the Via header field marks the transmission device used for the transmission of the transaction and also marks the address where the acknowledgement is sent back.
5) Updating a user-agent field, reading user-agent parameters from a structure body of the 183 session message, and replacing the parameters with IMS after detecting the parameters as parameters of the mobile terminal;
6) Updating the Contact parameters of the Contact header field, deleting the video, audio (video parameters and voice parameters) and related 3gpp (related parameters of a third generation communication system) parameters of the Contact field of the mobile terminal, updating the host part field in the Contact field according to the called domain name and the port, and constructing a new Contact header field;
7) Calling find_sip_method function to extract Method parameter in Ceq header domain;
8) Constructing a Rack header field according to a Ceq header field, rseq header fields, via header fields, call-id header fields, from header fields, to header fields, contact header fields, required header fields and the like, and the return value of the find_sip_method function, and constructing a PRACK message according to the Rack header field;
9) Calculating the message length, filling context-length field (message field, representing the message field length);
10 Calling a send_request () function to PCSCF for forwarding the PRACK message;
here, the send_request () function is a forwarding function for forwarding the PRACK message obtained by the SCSCF reassembly to PCSCF network elements.
The above get_header function, t_calc_branch () function, find_sip_method function, send_request () function, handle_response () function are part of the multiplexed SIP codec function, and of course other functions may 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.
In this way, SCSCCF builds PRACK message according to the analysis field of 183 session message to realize response to 183 session message, and realizes analysis of 183 session message by adapting SIP coding and decoding function of SCSCF, which is convenient for maintenance and shortens development period.
Meanwhile, the SCSCF realizes the construction of PRACK information, simplifies the network element structure (i.e. does not need MMTEL AS network elements), saves the deployment cost and the maintenance cost, simplifies the signaling interaction flow in the calling process, and improves the calling efficiency.
Fig. 2 shows a flow chart of a session establishment method provided by an embodiment of the application of the present disclosure, and as shown in fig. 2, the session establishment method includes:
step 201, UE1 initiates an INVITE request message as a caller, after SCSCF1 receives the INVITE request message and performs a query field, forwards the INVITE request message to UE2 as a callee;
Here, SCSCF1 transmits the INVITE message to UE2 through ICSCF and SCSCF 2.
Here, UE1 is an ip pbx terminal, UE2 is a 5G mobile terminal, UE1 communicates through PCSCF a1, and UE2 communicates through PCSCF a 2.
PCSCF (Proxy Call Session Control Function) is a key component in the IMS (IP Multimedia Subsystem) architecture, mainly responsible for handling signaling and control of multimedia sessions, acting as a proxy between the terminal (e.g. handset or other device) and the core network.
Step 202, UE2 responds 100trying (a temporary response) after receiving the INVITE request message as a called party, and sends 183 session message to initiate 183 session flow;
Step 203, after receiving the 183 session message initiated by the called party, the SCSCF1 parses the 183 session message, extracts the message field, constructs a PRACK message according to the extracted message field, and sends the PRACK message to the UE1 and the UE2 respectively;
here, after the SCSCF1 constructs the PRACK message, the SCSCF1 forwards the PRACK message to PCSCF and then to the UE1 from PCSCF, and at the same time, the SCSCF1 forwards the PRACK message to ICSCF, to SCSCF2 from ICSCF and then to PCSCF2 from SCSCF2 and then to PCSCF to the UE2.
And the response of the IPPBX calling terminal UE1 to the 183 session message is completed by bidirectional forwarding through the routing logic.
Step 204, after receiving the PRACK message, UE2 initiates a 200OK (PRACK) message in response to the PRACK message, and initiates a 200OK (INVITE) message and replies 180 ringing;
Step 205, the UE1 replies ACK to complete the call flow.
Thus, the method provided by the embodiment of the disclosure realizes the voice intercommunication requirement of the IPPBX terminal (UE 1) and the 5G mobile terminal (UE 2) through the SCSCF network element, so that the function of the MMTEL AS can be cut, the MMTEL AS network element is removed, the simplification of the network element structure is realized, the function in the voice communication is transplanted to the SCSCSCF network element, the SCSCSCF network element is utilized to construct a response confirmation message, the complete call flow is realized, the interaction process of the SCSCF network element and the MMETL AS network element is omitted, and the function of the MMTEL AS network element for judging the service type is also realized.
Fig. 3 shows a schematic structural diagram of a session establishment apparatus provided by an embodiment of the present disclosure, where, as shown in fig. 3, the session establishment apparatus is applied to a first network element, and the apparatus includes:
A receiving module, configured to receive a first session request message from a first terminal;
a sending module, configured to send the first session request message to a second terminal;
the receiving module is further used for receiving a temporary response message from the second terminal, wherein the temporary response message is generated and sent by the second terminal according to the session request message sent by the first terminal;
the processing module is used for constructing the message according to the temporary response message to obtain a response confirmation message;
The sending module is used for respectively sending the response confirmation message to the first terminal and the second terminal, wherein the response confirmation message is used for establishing a session between the first terminal and the second terminal;
wherein the first terminal and the second terminal support different types of communication connection.
In some embodiments, the processing module is used for determining target information according to the temporary response message, wherein the target information comprises at least one of a message sender, a message receiver, a session identifier, a message request, communication address information and routing information of a trace message;
And constructing the response confirmation message according to the target information.
In some embodiments, the processing module is configured to extract at least one of a sender header field, a receiver header field, a session identifier header field, a message request header field, a communication address information header field, and a routing information header field for tracking a message from the temporary response message;
And determining target information according to the at least one extracted header.
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 for the acknowledgement message;
the sending module is further configured to send the response message, the second session request message, and the ringing message to the first terminal;
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 according to the response message.
In some embodiments, the sending module is configured to perform a receiving end query according to the first session request message, determine a second terminal, and send the first session request message to the second terminal.
In some embodiments, the first network element is a first service call or session control function network element connected to the first terminal, the first terminal being a terminal of an internet protocol based private branch exchange system;
The first network element sends and/or receives a message to and/or from a second terminal through a second network element, wherein the second network element is a second service call or session control function network element connected with the second terminal, and the second terminal is not a terminal of an internet protocol-based private branch exchange system.
In some embodiments, the interim reply message is a 183 session message and the reply acknowledge message is an interim response acknowledge (PRACK) message for responding to the 183 session message.
It will be appreciated that, when implementing the corresponding session establishment method, the session establishment apparatus provided in the foregoing embodiment may allocate the foregoing processes to be completed by different program modules as needed to complete all or part of the processes described above. In addition, the apparatus provided in the foregoing embodiments and the embodiments of the corresponding methods belong to the same concept, and specific implementation processes of the apparatus and the embodiments of the methods are detailed in the method embodiments, which are not described herein again.
The present disclosure provides a computer-readable storage medium having stored therein executable instructions that, when executed by a processor, will trigger the processor to perform the session establishment method provided by the embodiments of the present disclosure.
In some embodiments, the computer readable storage medium may be ferroelectric random access Memory (Ferroelectric RAM, FRAM), read-Only Memory (ROM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable ROM, EPROM), electrically erasable programmable Read-Only Memory (ELECTRICALLY ERASABLE PROGRAMMABLE READ-Only Memory, EEPROM), flash Memory, magnetic surface Memory, optical disk, or CD-ROM, or various devices including one or any combination of the above.
In some embodiments, the executable instructions may be in the form of programs, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and they may be deployed in any form, including as stand-alone programs or as modules, models, subroutines, or other units suitable for use in a computing environment.
As an example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices located at one site or distributed across multiple sites and interconnected by a communication network.
Embodiments of the present disclosure provide a computer program product comprising computer programs/instructions which, when executed by a processor, implement the session establishment method described in the present disclosure.
Fig. 4 shows a schematic structural diagram of an electronic device according to an embodiment of the disclosure. As shown in fig. 4, the electronic device 40 includes a processor 401 and a memory 402 for storing a computer program capable of running on the processor, where the processor 401 is configured to execute the session establishment method provided by the embodiment of the present disclosure when running the computer program.
In practical applications, the electronic device 40 may further comprise at least one network interface 403. The various components in the electronic device 40 are coupled together by a bus system 404. It is appreciated that the bus system 404 serves to facilitate connected communications between these components. The bus system 404 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration the various buses are labeled as bus system 404 in fig. 4. The number of the processors 401 may be at least one. The network interface 403 is used for wired or wireless communication between the electronic device 40 and other devices.
The memory 402 in the disclosed embodiments is used to store various types of data to support the operation of the electronic device 40.
The method disclosed in the embodiments of the present disclosure may be applied to the processor 401 or implemented by the processor 401. The processor 401 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 401 or by instructions in the form of software. The Processor 401 may be a general purpose Processor, a digital signal Processor (DSP, diGital Signal Processor), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The processor 401 may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present disclosure. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present disclosure may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in the decoded processor. The software module may be located in a storage medium located in the memory 402, the processor 401 reading information in the memory 402, in combination with its hardware performing the steps of the method described above.
In some embodiments, the electronic device 40 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, programmable logic devices (PLDs, programmable Logic Device), complex Programmable logic devices (CPLDs, complex Programmable Logic Device), field-Programmable gate arrays (FPGAs), general purpose processors, controllers, microcontrollers (MCUs, micro Controller Unit), microprocessors (microprocessors), or other electronic elements for performing the foregoing methods.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
The foregoing is merely specific embodiments of the disclosure, but the protection scope of the disclosure is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the disclosure, and it is intended to cover the scope of the disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1.一种会话建立方法,所述方法应用于第一网元,所述第一网元连接第一终端,包括:1. A session establishment method, the method being applied to a first network element, the first network element being connected to a first terminal, comprising: 接收来自第一终端的第一会话请求消息,将所述第一会话请求消息发送至第二终端;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, where the temporary response message is 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; the response confirmation message is used to establish a session between the first terminal and the second terminal; 其中,所述第一终端和所述第二终端支持不同类型的通信连接。The first terminal and the second terminal support different types of communication connections. 2.根据权利要求1所述的方法,根据所述临时应答消息进行消息构建,得到应答确认消息,包括:2. The method according to claim 1, constructing a message according to the temporary response message to obtain a response confirmation message, comprising: 根据所述临时应答消息,确定目标信息;所述目标信息包括以下至少之一:消息发送者、消息接收者、会话标识、消息标识、消息请求、通信地址信息、跟踪消息的路由信息;Determine target information according to 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; 根据所述目标信息,构建所述应答确认消息。The response confirmation message is constructed according to the target information. 3.根据权利要求2所述的方法,根据所述临时应答消息,确定目标信息,包括:3. The method according to claim 2, determining target information according to the temporary response message, comprising: 从所述临时应答消息中提取以下至少之一头域:发送者头域、接收者头域、会话标识头域、消息标识头域、消息请求头域、通信地址信息头域、跟踪消息的路由信息头域;Extract at least one of the following header fields from the temporary response message: a sender header field, a receiver header field, a session identification header field, a message identification header field, a message request header field, a communication address information header field, and a routing information header field of a tracking message; 根据提取的所述至少之一头域,确定目标信息。Target information is determined according to the extracted at least one header field. 4.根据权利要求1所述的方法,所述方法还包括:4. The method according to claim 1, further comprising: 接收来自所述第二终端的针对所述应答确认消息的响应消息、第二会话请求消息和振铃消息;receiving a response message, a second session request message and a ringing message for the answer confirmation message from the second terminal; 将所述响应消息、第二会话请求消息和振铃消息发送至第一终端;Sending the response message, the second session request message and the ringing message to the first terminal; 接收来自所述第一终端的应答消息,根据所述应答消息建立所述第一终端与所述第二终端之间的会话。A response message is received from the first terminal, and a session is established between the first terminal and the second terminal according to the response message. 5.根据权利要求1所述的方法,将所述第一会话请求消息发送至第二终端,包括:5. The method according to claim 1, sending the first session request message to the second terminal, comprising: 根据所述第一会话请求消息进行接收端查询,确定第二终端并向所述第二终端发送所述第一会话请求消息。A receiving end query is performed according to the first session request message, a second terminal is determined, and the first session request message is sent to the second terminal. 6.根据权利要求1所述的方法,所述第一网元为与所述第一终端连接的第一服务呼叫或会话控制功能网元,所述第一终端为基于互联网协议的私人分支交换机系统的终端;6. The method according to claim 1, wherein 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 switch system based on Internet Protocol; 所述第一网元通过第二网元向所述第二终端发送消息和/或接收来自所述第二终端的消息,所述第二网元为与所述第二终端连接的第二服务呼叫或会话控制功能网元,所述第二终端非基于互联网协议的私人分支交换机系统的终端。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. 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 switch system based on the Internet Protocol. 7.根据权利要求1所述的方法,所述临时应答消息为183会话消息,所述应答确认消息为用于响应所述183会话消息的临时响应确认PRACK消息。7. According to the method of claim 1, the temporary response message is a 183 session message, and the response confirmation message is a temporary response confirmation PRACK message used to respond to the 183 session message. 8.一种会话建立装置,所述装置应用于第一网元,所述装置包括:8. A session establishment device, the device being applied to a first network element, the device comprising: 接收模块,用于接收来自第一终端的第一会话请求消息;A receiving module, configured to receive a first session request message from a first terminal; 发送模块,用于将所述第一会话请求消息发送至第二终端;A sending module, used for sending the first session request message to the second terminal; 所述接收模块,还用于接收来自所述第二终端的临时应答消息,所述临时应答消息由第二终端根据第一终端发送的会话请求消息生成并发送;The receiving module is further configured to receive a temporary response message from the second terminal, where the temporary response message is generated and sent by the second terminal according to the session request message sent by the first terminal; 处理模块,用于根据所述临时应答消息进行消息构建,得到应答确认消息;A processing module, used for constructing a message according to the temporary response message to obtain a response confirmation message; 所述发送模块,还用于将所述应答确认消息分别发送至第一终端和第二终端;所述应答确认消息用于所述第一终端和所述第二终端建立会话;The sending module is further used to send the response confirmation message to the first terminal and the second terminal respectively; the response confirmation message is used to establish a session between the first terminal and the second terminal; 其中,所述第一终端和所述第二终端支持不同类型的通信连接。The first terminal and the second terminal support different types of communication connections. 9.一种电子设备,包括:9. An electronic device comprising: 至少一个处理器;以及at least one processor; and 与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute: 接收来自第一终端的第一会话请求消息,将所述第一会话请求消息发送至第二终端;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, where the temporary response message is 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; the response confirmation message is used to establish a session between the first terminal and the second terminal; 其中,所述第一终端和所述第二终端支持不同类型的通信连接。The first terminal and the second terminal support different types of communication connections. 10.一种存储有计算机指令的非瞬时计算机可读存储介质,所述计算机指令用于使所述计算机执行:10. A non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute: 接收来自第一终端的第一会话请求消息,将所述第一会话请求消息发送至第二终端;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, where the temporary response message is 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; the response confirmation message is used to establish a session between the first terminal and the second terminal; 其中,所述第一终端和所述第二终端支持不同类型的通信连接。The first terminal and the second terminal support different types of communication connections.
CN202411392092.2A 2024-09-30 2024-09-30 A method, device, electronic device and storage medium for establishing a session Pending CN119299436A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411392092.2A CN119299436A (en) 2024-09-30 2024-09-30 A method, device, electronic device and storage medium for establishing a session

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411392092.2A CN119299436A (en) 2024-09-30 2024-09-30 A method, device, electronic device and storage medium for establishing a session

Publications (1)

Publication Number Publication Date
CN119299436A true CN119299436A (en) 2025-01-10

Family

ID=94166228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411392092.2A Pending CN119299436A (en) 2024-09-30 2024-09-30 A method, device, electronic device and storage medium for establishing a session

Country Status (1)

Country Link
CN (1) CN119299436A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079927A (en) * 2007-06-28 2007-11-28 中兴通讯股份有限公司 Method and system for realizing multimedia color image service in IP multimedia subsystem network
CN101990305A (en) * 2009-07-30 2011-03-23 中兴通讯股份有限公司 Call method, call center, application server and terminal for realizing multi-session
US20120020314A1 (en) * 2007-11-15 2012-01-26 Christopher Martin Edward Osborn System, method, and computer-readable medium for mobile terminated call processing by a femtocell system
CN103152785A (en) * 2011-12-06 2013-06-12 中国移动通信集团福建有限公司 Method and system for routing response message of service gateway of internet of things
CN106713261A (en) * 2015-11-17 2017-05-24 中国移动通信集团公司 VoLTE encrypted call identification method, apparatus and system
CN107872588A (en) * 2016-09-28 2018-04-03 华为技术有限公司 Call processing method, relevant apparatus and system
CN110324874A (en) * 2018-03-29 2019-10-11 华为技术有限公司 A kind of method, apparatus and storage medium of media session processing
CN111835674A (en) * 2019-03-29 2020-10-27 华为技术有限公司 Communication method, device, first network element and communication system
CN114448946A (en) * 2022-01-25 2022-05-06 重庆智铸华信科技有限公司 IMS service processing method, device, system equipment and storage medium
WO2023187534A1 (en) * 2022-03-30 2023-10-05 Jio Platforms Limited A network device and method for a universal central exchange
CN118678398A (en) * 2018-05-08 2024-09-20 华为技术有限公司 Network element selection method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079927A (en) * 2007-06-28 2007-11-28 中兴通讯股份有限公司 Method and system for realizing multimedia color image service in IP multimedia subsystem network
US20120020314A1 (en) * 2007-11-15 2012-01-26 Christopher Martin Edward Osborn System, method, and computer-readable medium for mobile terminated call processing by a femtocell system
CN101990305A (en) * 2009-07-30 2011-03-23 中兴通讯股份有限公司 Call method, call center, application server and terminal for realizing multi-session
CN103152785A (en) * 2011-12-06 2013-06-12 中国移动通信集团福建有限公司 Method and system for routing response message of service gateway of internet of things
CN106713261A (en) * 2015-11-17 2017-05-24 中国移动通信集团公司 VoLTE encrypted call identification method, apparatus and system
CN107872588A (en) * 2016-09-28 2018-04-03 华为技术有限公司 Call processing method, relevant apparatus and system
CN110324874A (en) * 2018-03-29 2019-10-11 华为技术有限公司 A kind of method, apparatus and storage medium of media session processing
CN118678398A (en) * 2018-05-08 2024-09-20 华为技术有限公司 Network element selection method and device
CN111835674A (en) * 2019-03-29 2020-10-27 华为技术有限公司 Communication method, device, first network element and communication system
CN114448946A (en) * 2022-01-25 2022-05-06 重庆智铸华信科技有限公司 IMS service processing method, device, system equipment and storage medium
WO2023187534A1 (en) * 2022-03-30 2023-10-05 Jio Platforms Limited A network device and method for a universal central exchange

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
NADA M. ALAMRI等: "Integrated MIP-SIP for IMS-based WiMAX-UMTS vertical handover", 《2012 19TH INTERNATIONAL CONFERENCE ON TELECOMMUNICATIONS (ICT)》, 21 June 2012 (2012-06-21) *
冯剑川;丁志文;胡正;: "基于IKAAP的IMS信息安全传输方案的设计与实现", 信息化研究, no. 04, 20 August 2018 (2018-08-20) *
杨光达;周达飞;王琳;: "基于网络功能虚拟化的VoLTE用户上网业务引导方法研究", 通信管理与技术, no. 06, 15 December 2019 (2019-12-15) *

Similar Documents

Publication Publication Date Title
US8335852B2 (en) Contact destination information registration method, network system, node, and contact destination information registration program
US11431774B2 (en) Method, user equipment and application server for adding media stream of multimedia session
CN104283760B (en) A kind of WebRTC communication means, relevant device and system
CN101682617B (en) Method for determining multimedia capability, multimedia application server and system
KR101150594B1 (en) Method and apparatus for cpm session management
WO2008022596A1 (en) A method, system and apparatus for delivering sms in forking mode
JP2005318503A (en) Presence server, session control server, packet relay system, server, and system
JP2017510116A (en) Method and server for enabling a first user to automatically detect a second user's social network identifier and the respective status of this second user in those social networks
US9246955B2 (en) Capability query handling in a communication network
CN103379096A (en) Internet and operator network service sharing method, service side and webpage gateway
CN100574474C (en) Set up the method that communication traffic connects in a kind of communication system
US7937463B2 (en) Method and server for invoking application servers in a SIP network
KR101051826B1 (en) System and method for providing binding services to anonymous callers
RU2665303C2 (en) Multimedia subsystem on basis of internet protocol (ims) and method and device for configuring service in ims
WO2008006311A1 (en) A method and corresponding device for using of user terminal identifier
KR100693038B1 (en) Subscriber information providing method and apparatus of VIO service providing system
CN100446528C (en) Click-to dial service realizing method
KR20050002335A (en) System and method for processing call in SIP network
EP2863603A1 (en) A method for optimizing the capability discovery of terminals in an IMS network
KR100922953B1 (en) Method and system for handling call change request in internet protocol multimedia subsystem
CN119299436A (en) A method, device, electronic device and storage medium for establishing a session
CN103618739B (en) Data processing method and device of reinforced S-CSCF server
EP3281376A1 (en) In-session communication
CN105830412B (en) Session initiation handling
WO2008080334A1 (en) Back to back user agent and the method for transmitting information thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination