Communication session method and system, and storage medium
By using blockchain technology to verify the signature of terminal session states and determine transaction records in SIP communication networks, the problem of poor interoperability of SIP networks is solved, user convenience and system flexibility are improved, and communication interconnection with multiple blockchain networks is supported.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- 陈军
- Filing Date
- 2023-12-31
- Publication Date
- 2026-05-01
AI Technical Summary
Existing SIP communication networks have poor interoperability, and closed communication systems cannot achieve terminal roaming and unified identity authentication, resulting in poor user convenience.
By leveraging blockchain technology and utilizing blockchain address session states and transaction records, the signature verification of terminal session request and response messages is achieved, the terminal session state is determined, and connection services are provided on the visited server, supporting the interconnection of multiple blockchain networks.
It enables terminal interconnection across blockchain networks, improves user convenience and communication system flexibility, supports instant payment and identity authentication, and expands user management of existing SIP systems.
Smart Images

Figure CN121967505A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of blockchain technology, and in particular to a method and system for communication sessions. Background Technology
[0002] In existing technologies, blockchain identity recognition (BID) technology can be used to identify IoT terminals, and blockchain email technology can also be used to send and receive messages. Furthermore, the SIP communication protocol, after decades of robust development, is increasingly active in various in-use communication systems. Summary of the Invention
[0003] The inventors discovered that while existing SIP communication networks are open, they are not interconnected, have numerous user systems, and terminals cannot connect to any SIP server. Furthermore, various dedicated communication networks are mostly closed, relying on proprietary physical connections for security and reliability. SIP terminals cannot use communication services when roaming from one internal communication system to another without registration. Blockchain systems, on the other hand, can provide a unified identity authentication and real-time payment system. Terminals using BID technology urgently need to connect to communication networks through flexible network routing to achieve interconnection; therefore, building a unified blockchain communication system is imperative.
[0004] In order to overcome the shortcomings of existing independent communication systems where terminals cannot connect to private network communication servers and improve user convenience, this invention provides a method and system for communication sessions to solve the problems mentioned in the background.
[0005] To achieve the above objectives, the present invention provides the following technical solution: a method for a communication session, the method comprising: A session request message is sent based on the session status of the first terminal blockchain address. The session request message includes: a session request message identifier and a first terminal session account. The first terminal session account includes: the first terminal blockchain address or an address mapped one-to-one with the first terminal blockchain address, and the connection address of the first terminal home server. The session status of the first terminal blockchain address is determined based on the transaction records between the visited server blockchain address and the first terminal blockchain address. Receive the session response message corresponding to the session request message identifier.
[0006] Furthermore, the session request message also includes a session request message signature, which is a blockchain signature message generated based on the first terminal blockchain address and the session request message identifier.
[0007] Furthermore, the session state includes at least one of the following: connectable state, inaccessible state, connectable duration, and connectable type.
[0008] Furthermore, the method further includes: obtaining the blockchain address of the first terminal, the connection address of the server to which the first terminal belongs, and determining the session account of the first terminal.
[0009] Furthermore, the method further includes: obtaining the blockchain address of the first terminal and the connection address of the server to which the first terminal belongs from the blockchain identity card, and determining the session account of the first terminal.
[0010] Furthermore, the method also includes: The method further includes, prior to, obtaining the blockchain address of the second terminal, the connection address of the server to which the second terminal belongs, and determining the session account of the second terminal; The session request message includes: the second terminal session account.
[0011] Furthermore, the method further includes: obtaining the second terminal blockchain address and the second terminal home server connection address from the payment file, and determining the second terminal session account.
[0012] Furthermore, the session state of the first terminal blockchain address is determined based on the transaction records between the visited server blockchain address and the first terminal blockchain address, including: the session state of the first terminal blockchain address is determined based on the most recent transaction records initiated by the visited server blockchain address to the first terminal blockchain address.
[0013] Furthermore, the method further includes sending session fees or session credits from the first terminal blockchain address to the visited server blockchain address.
[0014] Furthermore, the session request message includes one of the following: a SIP protocol register request message, a SIP protocol Invite request message, or a SIP protocol message request message.
[0015] Furthermore, the method further includes: determining the first terminal session account based on the first terminal blockchain email address.
[0016] Furthermore, the method further includes: determining the second terminal session account based on the second terminal blockchain email address.
[0017] Furthermore, the method of sending a session request message based on the session status of the first terminal blockchain address includes: determining the visitor server session account based on the visitor server blockchain email address, and sending a session request message to the visitor server session account based on the session status of the first terminal blockchain address.
[0018] Furthermore, the method of sending a session request message based on the session state of the first terminal blockchain address includes: sending a session request message to the connection address of the first terminal's home server based on the session state of the first terminal blockchain address.
[0019] Furthermore, the connection address of the first terminal's home server is the local domain name address, IP address, or parent domain name address contained in the suffix of the first terminal's blockchain email address.
[0020] On the other hand, a method for a communication session, the method comprising: Receive a session request message, the session request message including: a session request message identifier, a first terminal session account, the first terminal session account including: a first terminal blockchain address or an address mapped one-to-one with the first terminal blockchain address, and a first terminal home server connection address; The session status of the first terminal blockchain address is determined based on the transaction records between the visited server blockchain address and the first terminal blockchain address. A session response is sent based on the session status of the first terminal blockchain address and the session request message.
[0021] Furthermore, the method also includes: The session request message further includes: a session request message signature, wherein the session request message signature is a blockchain signature message generated based on the first terminal blockchain address and the session request message identifier; The session request message signature is verified to be the blockchain signature of the first terminal blockchain address based on the first terminal blockchain address, the session request message identifier, and the session request message signature.
[0022] Furthermore, the session state includes at least one of the following: connectable state, inaccessible state, connectable duration, and connectable type.
[0023] Furthermore, the session request message includes: SIP protocol register request message, SIP protocol Invite request message, and SIP protocol message request message.
[0024] Furthermore, the first terminal session account includes the first terminal blockchain email address.
[0025] Further, determining the session state of the first terminal blockchain address based on the transaction records between the visited server blockchain address and the first terminal blockchain address includes: The connection address of the server to which the first terminal belongs is the domain name address, IP address, or parent domain name address contained in the suffix of the blockchain email address of the first terminal. If the blockchain network corresponding to the first terminal home server connection address is supported, the session state of the first terminal blockchain address is determined based on the transaction records between the visited server blockchain address and the first terminal blockchain address. If the blockchain network corresponding to the first terminal home server connection address is not supported, the session request message is forwarded to the first terminal home server connection address, so that the first terminal home server connection address determines the session status of the first terminal blockchain address based on the transaction records between the first terminal home server blockchain address and the first terminal blockchain address, and receives the home server session response sent by the first terminal home server connection address based on the session status of the first terminal blockchain address and the session request message.
[0026] Furthermore, the blockchain network corresponding to the first terminal home server connection address includes: the blockchain network corresponding to the first terminal home server connection address and the blockchain network corresponding to the domain name above the first terminal home server connection address.
[0027] Further, determining the session state of the first terminal blockchain address based on the transaction records between the visited server blockchain address and the first terminal blockchain address includes: The session status of the first terminal blockchain address is determined based on the most recent transaction records initiated by the visited server blockchain address to the first terminal blockchain address.
[0028] Further, determining the session state of the first terminal blockchain address based on the transaction records between the visited server blockchain address and the first terminal blockchain address includes: Query the transaction records between the blockchain address of the access server and the blockchain address of the first terminal, wherein the transaction records contain embedded inscription information; The session state of the first terminal blockchain address is determined based on the inscription information.
[0029] Furthermore, the method also includes: The session request message includes: a SIP protocol register request message; Add the first terminal to the user table.
[0030] Furthermore, the method also includes: The session request message includes: a SIP protocol Invite request message, and the session request message includes: a second terminal session account; The session request message is forwarded to the second terminal session account.
[0031] Furthermore, the second terminal session account includes the second terminal blockchain email address.
[0032] Furthermore, the method also includes: The session request message includes: the second terminal session account; Determine the connection address of the second terminal's home server. The connection address of the second terminal's home server is the local domain name address, IP address, or parent domain name address contained in the suffix of the second terminal's blockchain email address. The session request message is forwarded to the connection address of the second terminal's home server.
[0033] Furthermore, the method also includes: Get the list of forwarding addresses; The session request messages are forwarded one by one to the list of forwarding addresses.
[0034] On the other hand, a communication session system is provided for a first terminal device, the first terminal device comprising: a transmitting unit and a receiving unit; the transmitting unit and the receiving unit are logically connected to each other. The sending unit is used to send a session request message according to the session status of the first terminal blockchain address. The session request message includes: a session request message identifier and a first terminal session account. The first terminal session account includes: the first terminal blockchain address or an address that is mapped one-to-one with the first terminal blockchain address, and the connection address of the first terminal home server. The session status of the first terminal blockchain address is determined based on the transaction records between the visited server blockchain address and the first terminal blockchain address.
[0035] The receiving unit is used to receive the session response message corresponding to the session request message identifier.
[0036] On the other hand, a communication session system is provided for visiting a server device, the server device comprising: a sending unit, a session state unit, and a receiving unit; the sending unit, the session state unit, and the receiving unit are logically connected to each other. The receiving unit is used to receive a session request message, which includes: a session request message identifier, a first terminal session account, and the first terminal session account includes: a first terminal blockchain address or an address mapped one-to-one with the first terminal blockchain address, and a first terminal home server connection address. The session state unit is used to determine the session state of the first terminal blockchain address based on the transaction records between the visited server blockchain address and the first terminal blockchain address. The sending unit is configured to send a session response based on the session status of the first terminal blockchain address and the session request message.
[0037] On the other hand, a non-transitory computer-readable storage medium storing a computer program thereon, characterized in that, when the computer program is executed by a processor, it implements the steps of the method for a communication session as described in any of the preceding claims.
[0038] This invention provides a method and system for communication sessions. It has the following beneficial effects: In this invention, a session request message including a session request message identifier and a first terminal session account is sent based on the session status of the first terminal blockchain address. The first terminal session account includes: the first terminal blockchain address or an address mapped one-to-one with the first terminal blockchain address, and the connection address of the first terminal's home server. The session status of the first terminal blockchain address is determined based on the transaction records between the visited server blockchain address and the first terminal blockchain address. A session response message corresponding to the session request message identifier is also received. Through this invention, the visited server can provide connection and communication services to any blockchain user, improving the convenience of terminal communication. Attached Figure Description
[0039] Figure 1 This is a flowchart illustrating Embodiment 2 of the present invention; Figure 2 This is a flowchart illustrating Embodiment 1 of the present invention; Figure 3 This is a flowchart illustrating Embodiment 2 of the present invention; Figure 4 This is a schematic diagram of the standard connection process in Embodiment 2 of the present invention; Figure 5 This is a schematic diagram of the intranet connection process according to Embodiment 2 of the present invention; Figure 6 This is a schematic diagram of the cascaded forwarding connection process according to Embodiment 2 of the present invention; Figure 7 This is a flowchart of Embodiment 1 of the present invention; Figure 8 This is a schematic diagram of the device according to Embodiment 1 of the present invention. Implementation
[0040] The present invention will be further described below with reference to the accompanying drawings and embodiments: The blockchain technology in this embodiment includes block DAG technology. Example
[0041] Embodiment 1 of the present invention discloses a method for communication sessions, referencing Figure 7 The method includes: Step S101: Send a session request message based on the session status of the first terminal blockchain address. The session request message includes: a session request message identifier and a first terminal session account. The first terminal session account includes: the first terminal blockchain address or an address mapped one-to-one with the first terminal blockchain address, and the connection address of the first terminal's home server. The session status of the first terminal blockchain address is determined based on the transaction records between the visited server blockchain address and the first terminal blockchain address. The blockchain can be a public chain, a consortium chain, or a private chain. The first terminal's home server can be co-located with the visited server. The connection address of the first terminal's home server can be a domain name or an IPv4 or IPv6 address, etc. The first terminal's home server identifies the specific blockchain network corresponding to the first terminal blockchain address.
[0042] The session request message identifier can be a randomly generated sequence number used to identify the session and session signaling initiated by the first terminal to the visited server.
[0043] If the first terminal session account includes an address mapped one-to-one with the first terminal blockchain address, and needs to access the blockchain network, the first terminal needs to translate the address mapped one-to-one with the first terminal blockchain address into the first terminal blockchain address so that the name character set conforms to various usage scenarios.
[0044] Optionally, the session request message may further include: the visited server session account. The first terminal session account includes: the visited server blockchain address and the visited server home server connection address. In this case, the first terminal can communicate directly and instantly with the visited server.
[0045] Step S102: Receive the session response message corresponding to the session request message identifier. Typically, the session request message and the corresponding session response message are SIP communication protocol messages.
[0046] In this embodiment, the visiting server provides connection and communication services to any blockchain user, can determine the blockchain address session status based on blockchain transaction records, and extends and integrates the user management of the existing SIP system, thereby realizing flexible Internet of Things.
[0047] Furthermore, the session request message also includes a session request message signature, which is a blockchain signature message generated based on the first terminal blockchain address and the session request message identifier.
[0048] In this embodiment, blockchain signature technology is used to identify and verify the communication terminal, ensuring the security of the session.
[0049] Furthermore, the session state includes at least one of the following: connectable state, inconnectable state, connectable duration, and connectable type. The session state may also include the following states: unpaid, paid, unregistered, registered, etc.
[0050] Furthermore, the method further includes: obtaining the blockchain address of the first terminal, the connection address of the server to which the first terminal belongs, and determining the session account of the first terminal.
[0051] Furthermore, the method further includes: obtaining the blockchain address of the first terminal and the connection address of the first terminal's home server from the blockchain identity card (BID) to determine the session account of the first terminal. (See reference) Figure 8 The first terminal includes both a BID card and a SIM card for communication. The BID card is used in the blockchain communication system, while the SIM card is used in the regular mobile phone communication system. Unlike the SIM card, the BID card can be customized by the user according to their needs.
[0052] In this embodiment, a blockchain identity card is embedded in the terminal device. Ordinary organizations can issue blockchain identity cards for communication, thereby promoting the diversified development of the Internet of Things.
[0053] Furthermore, the method also includes: The method further includes, prior to, obtaining the blockchain address of the second terminal, the connection address of the server to which the second terminal belongs, and determining the session account of the second terminal; The session request message includes: the second terminal session account.
[0054] Furthermore, the method further includes: obtaining the second terminal blockchain address and the second terminal home server connection address from the payment file, and determining the second terminal session account.
[0055] In this embodiment, communication can be directly established with the issuer's blockchain address of the payment document, thus enabling convenient initiation of instant communication during payment.
[0056] Furthermore, the session state of the first terminal blockchain address is determined based on the transaction records between the visited server blockchain address and the first terminal blockchain address, including: the session state of the first terminal blockchain address is determined based on the most recent transaction records initiated by the visited server blockchain address to the first terminal blockchain address.
[0057] Furthermore, the method also includes: sending session fees or session credits from the first terminal blockchain address to the visited server blockchain address.
[0058] refer to Figure 2 The process is illustrated in the following example: 1. The first terminal sends the Register session information (CalleID) to the visited server; 2. The visiting server verifies the signature of the session identifier CalleID based on the blockchain address of the first terminal; 3. The visiting server sends a 401 Fee Requested session response to the first terminal; 4. Send session fees or session points from the first terminal blockchain address to the visited server blockchain address; 5. The first terminal sends the Register session information (CalleID) to the visited server; 6. The visiting server sends a 200 OK session response to the first terminal.
[0059] Furthermore, the session request message includes one of the following: a SIP protocol register request message, a SIP protocol Invite request message, or a SIP protocol message request message.
[0060] Furthermore, the method further includes: determining the first terminal session account based on the first terminal blockchain email address.
[0061] In this embodiment, a blockchain email address can be used for SIP communication, maximizing compatibility with existing systems.
[0062] Furthermore, the method further includes: determining the second terminal session account based on the second terminal blockchain email address.
[0063] Furthermore, the visited server blockchain address is: a preset address, the connection address of the first terminal's home server, or the connection address of the second terminal's home server.
[0064] Furthermore, the method of sending a session request message based on the session status of the first terminal blockchain address includes: determining the visitor server session account based on the visitor server blockchain email address, and sending a session request message to the visitor server session account based on the session status of the first terminal blockchain address.
[0065] Furthermore, the method of sending a session request message based on the session state of the first terminal blockchain address includes: sending a session request message to the connection address of the first terminal's home server based on the session state of the first terminal blockchain address.
[0066] Furthermore, the connection address of the first terminal's home server is the local domain name address, IP address, or parent domain name address contained in the suffix of the first terminal's blockchain email address. Example
[0067] Embodiment 2 of the present invention discloses a method for a communication session, the method comprising: Step S201: Receive a session request message. The session request message includes: a session request message identifier and a first terminal session account. The first terminal session account includes: a first terminal blockchain address or an address mapped one-to-one with the first terminal blockchain address, and the first terminal's home server connection address. A typical format of the first terminal session account is, for example: sip:567767@138.1.0.43:5061.
[0068] Step S202: Determine the session state of the first terminal blockchain address based on the transaction records between the visited server blockchain address and the first terminal blockchain address. The visited server can be a SIP proxy server, a redirect server, or a registration server.
[0069] Step S203: Send a session response based on the session status of the first terminal blockchain address and the session request message.
[0070] The above embodiments can occur in scenarios involving visiting servers, second terminals, and home servers.
[0071] In this embodiment, the visiting server provides connection and communication services to any blockchain user, can determine the blockchain address session status based on blockchain transaction records, and extends and integrates the user management of the existing SIP system, thereby realizing flexible Internet of Things.
[0072] Furthermore, the method also includes: The session request message further includes: a session request message signature, wherein the session request message signature is a blockchain signature message generated based on the first terminal blockchain address and the session request message identifier; The session request message signature is verified to be the blockchain signature of the first terminal blockchain address based on the first terminal blockchain address, the session request message identifier, and the session request message signature.
[0073] refer to Figure 1 The process is illustrated in the following example: 1. The first terminal sends the Register session information (CalleID) to the visited server; 2. The visiting server verifies the signature of the session identifier CalleID based on the blockchain address of the first terminal; 3. The visiting server sends a 200 OK session response to the first terminal.
[0074] Furthermore, the session state includes at least one of the following: connectable state, inaccessible state, connectable duration, and connectable type.
[0075] Furthermore, the session request message includes: SIP protocol register request message, SIP protocol Invite request message, and SIP protocol message request message.
[0076] Furthermore, the first terminal session account includes the first terminal blockchain email address.
[0077] Further, determining the session state of the first terminal blockchain address based on the transaction records between the visited server blockchain address and the first terminal blockchain address includes: The connection address of the server to which the first terminal belongs is the domain name address, IP address, or parent domain name address contained in the suffix of the blockchain email address of the first terminal. If the blockchain network corresponding to the first terminal home server connection address is supported, the session state of the first terminal blockchain address is determined based on the transaction records between the visited server blockchain address and the first terminal blockchain address. If the blockchain network corresponding to the first terminal home server connection address is not supported, the session request message is forwarded to the first terminal home server connection address, so that the first terminal home server connection address determines the session status of the first terminal blockchain address based on the transaction records between the first terminal home server blockchain address and the first terminal blockchain address, and receives the home server session response sent by the first terminal home server connection address based on the session status of the first terminal blockchain address and the session request message.
[0078] Furthermore, the blockchain network corresponding to the first terminal home server connection address includes: the blockchain network corresponding to the first terminal home server connection address and the blockchain network corresponding to the domain name above the first terminal home server connection address.
[0079] Further, determining the session state of the first terminal blockchain address based on the transaction records between the visited server blockchain address and the first terminal blockchain address includes: The session status of the first terminal blockchain address is determined based on the most recent transaction records initiated by the visited server blockchain address to the first terminal blockchain address.
[0080] Further, determining the session state of the first terminal blockchain address based on the transaction records between the visited server blockchain address and the first terminal blockchain address includes: Query the transaction records between the server blockchain address and the first terminal blockchain address, wherein the transaction records mark the session status of the first terminal blockchain address as paid; Send a specified amount from the visited server blockchain address to the first terminal blockchain address to mark the first terminal blockchain address's session status as connectable.
[0081] refer to Figure 3 The process is illustrated in the following example: 1. The first terminal sends the Register session information (CalleID) to the visited server; 2. The visiting server verifies the signature of the session identifier CalleID based on the blockchain address of the first terminal; 3. The visiting server sends a 401 Fee Requested session response to the first terminal; 4. Send session fees or session points from the first terminal blockchain address to the visited server blockchain address; 5. The first terminal sends the Register session information (CalleID) to the visited server; 6. The visiting server marks the status of the first terminal blockchain address based on the transaction order; 7. The visiting server sends a 200 OK session response to the first terminal.
[0082] Further, determining the session state of the first terminal blockchain address based on the transaction records between the visited server blockchain address and the first terminal blockchain address includes: Query the transaction records between the blockchain address of the access server and the blockchain address of the first terminal, wherein the transaction records contain embedded inscription information; The session state of the first terminal blockchain address is determined based on the inscription information.
[0083] In this embodiment, the transaction record may contain inscription information, and the inscription information is used to help establish the instant messaging connection in this embodiment.
[0084] Furthermore, the method also includes: The session request message includes: a SIP protocol register request message; Add the first terminal to the user table.
[0085] Furthermore, the method also includes: The session request message includes: a SIP protocol Invite request message, and the session request message includes: a second terminal session account; The session request message is forwarded to the second terminal session account.
[0086] Furthermore, the second terminal session account includes the second terminal blockchain email address.
[0087] Furthermore, the method also includes: The session request message includes: the second terminal session account; Determine the connection address of the second terminal's home server. The connection address of the second terminal's home server is the local domain name address, IP address, or parent domain name address contained in the suffix of the second terminal's blockchain email address. The session request message is forwarded to the connection address of the second terminal's home server.
[0088] Furthermore, the method also includes: Get the list of forwarding addresses; The session request messages are forwarded one by one to the list of forwarding addresses.
[0089] In this embodiment, when the existing user system of the visiting server does not support blockchain email addresses, the existing SIP system will refuse related services. However, with this embodiment, the service can be forwarded to the first terminal home server, the second terminal home server, or a preset server for further processing, thereby improving the system's compatibility and further enhancing user convenience.
[0090] Through this embodiment, users can access the internet via Wi-Fi anytime, anywhere, and make paid communications. A specific example is given below: assuming the first terminal's blockchain email address is DXC123@ABC1.com, and the first terminal's blockchain address uses the ABC1 blockchain network; and the second terminal's blockchain email address is DXC456@ABC2.com, and the second terminal's blockchain address uses the ABC2 blockchain network.
[0091] Alice arrives at a coffee shop and prepares to access the internet. First, she connects to an internal visitor server. This visitor server can be integrated with the Wi-Fi router into a single device or remain a separate, independent device. In this case, there are two routers sharing a visitor server, with domain names ABC1.com and ABC2.com respectively. There are three typical connection processes: standard connection process, intranet connection process, and cascading forwarding connection process. Examples are as follows: Standard connection procedure: (Reference) Figure 4 ) 1. The second terminal DXC456@ABC2.com first sends an Invite message to the ABC2.com server; 2. ABC2.com visits the server to query and determine the status of the second terminal's blockchain address; 3. If the second terminal blockchain address session state allows the connection, the ABC2.com visiting server forwards the Invite message to the ABC1.com visiting server; 4. ABC1.com visits the server to query the user table. If the first terminal DXC123@ABC1.com is found, the Invite message is forwarded.
[0092] Intranet connection process: (Reference) Figure 5 ) 1. The first terminal DXC123@ABC1.com first sends an Invite message to the ABC2.com server; 3. ABC2.com visits the server to query and determine the status of the first terminal's blockchain address; 2. ABC2.com visited the server and confirmed that the second terminal's blockchain address was connectable; 3. ABC1.com visits the server and forwards the Invite message to the second terminal DXC456@ABC2.com.
[0093] Cascading forwarding connection process: (Reference) Figure 6 ) 1. The second terminal DXC456@ABC2.com first sends an Invite message to the xyz.ABC2.com server; 2. xyz.ABC2.com is routed to the ABC2.com server; 3. ABC2.com visits the server to query and determine the status of the second terminal's blockchain address; 4. The ABC2.com visiting server forwards the Invite message to the ABC1.com visiting server; 5. ABC1.com visits the server to query the user table. If the first terminal DXC123@ABC1.com is found, the Invite message is forwarded.
[0094] This embodiment of the invention proposes a session communication mechanism based on blockchain authentication. Different heterogeneous networks can communicate with other users as long as they can access the visited server. Example
[0095] Embodiment 3 of the present invention discloses a communication session system for a first terminal device, the first terminal device comprising: a sending unit and a receiving unit; the sending unit and the receiving unit are logically connected to each other; The sending unit is used to send a session request message according to the session status of the first terminal blockchain address. The session request message includes: a session request message identifier and a first terminal session account. The first terminal session account includes: the first terminal blockchain address or an address that is mapped one-to-one with the first terminal blockchain address, and the connection address of the first terminal home server. The session status of the first terminal blockchain address is determined based on the transaction records between the visited server blockchain address and the first terminal blockchain address.
[0096] The receiving unit is used to receive the session response message corresponding to the session request message identifier.
[0097] The communication session system includes: a first terminal device, a visitor server device, a first terminal home server, a blockchain network, etc. Specifically, the first terminal device is the first terminal in this embodiment, and the visitor server device is the visitor server in this embodiment. Example
[0098] Embodiment 4 of the present invention discloses a communication session system for visiting a server device, the server device comprising: a sending unit, a session state unit, and a receiving unit; the sending unit, the session state unit, and the receiving unit are logically connected to each other; The receiving unit is used to receive a session request message, which includes: a session request message identifier, a first terminal session account, and the first terminal session account includes: a first terminal blockchain address or an address mapped one-to-one with the first terminal blockchain address, and a first terminal home server connection address. The session state unit is used to determine the session state of the first terminal blockchain address based on the transaction records between the visited server blockchain address and the first terminal blockchain address. The sending unit is configured to send a session response based on the session status of the first terminal blockchain address and the session request message. Example
[0099] Embodiment 5 of the present invention discloses a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements the steps of a communication session method as described in any of the preceding embodiments. The storage medium may include a high-speed random access storage medium, and may also include a non-volatile storage medium, such as a hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, at least one disk storage medium, flash memory device, or other volatile solid-state storage medium.
[0100] In this invention, a session request message is sent based on the session status of a first terminal blockchain address. The session request message includes a session request message identifier and a first terminal session account. The first terminal session account includes the first terminal blockchain address or an address mapped one-to-one with the first terminal blockchain address, and the connection address of the first terminal's home server. The session status of the first terminal blockchain address is determined based on the transaction records between the visited server blockchain address and the first terminal blockchain address. A session response message corresponding to the session request message identifier is received. Through this invention, the visited server can provide connection and communication services to any blockchain user, improving the convenience of terminal communication.
[0101] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the units described above are merely illustrative examples of the division of functional modules. In practical applications, the functions described above can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0102] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between apparatuses or units, and may be electrical, mechanical, or other forms.
[0103] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0104] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0105] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0106] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for a communication session, characterized in that, The method includes: A session request message is sent based on the session status of the first terminal blockchain address. The session request message includes: a session request message identifier and a first terminal session account. The first terminal session account includes: the first terminal blockchain address or an address mapped one-to-one with the first terminal blockchain address, and the connection address of the first terminal home server. The session status of the first terminal blockchain address is determined based on the transaction records between the visited server blockchain address and the first terminal blockchain address. Receive the session response message corresponding to the session request message identifier.
2. The method for a communication session according to claim 1, characterized in that, The method further includes, prior to, determining the first terminal session account based on the first terminal blockchain email address.
3. A method for a communication session, characterized in that, The method includes: Receive a session request message, the session request message including: a session request message identifier, a first terminal session account, the first terminal session account including: a first terminal blockchain address or an address mapped one-to-one with the first terminal blockchain address, and a first terminal home server connection address; The session status of the first terminal blockchain address is determined based on the transaction records between the visited server blockchain address and the first terminal blockchain address. A session response is sent based on the session status of the first terminal blockchain address and the session request message.
4. The method for a communication session according to claim 4, characterized in that, The method further includes: The session request message further includes: a session request message signature, wherein the session request message signature is a blockchain signature message generated based on the first terminal blockchain address and the session request message identifier; The session request message signature is verified to be the blockchain signature of the first terminal blockchain address based on the first terminal blockchain address, the session request message identifier, and the session request message signature.
5. A method for a communication session according to claim 4, characterized in that, Determining the session state of the first terminal blockchain address based on the transaction records between the visited server blockchain address and the first terminal blockchain address includes: The first terminal session account includes the first terminal blockchain email address; The connection address of the server to which the first terminal belongs is the domain name address, IP address, or parent domain name address contained in the suffix of the blockchain email address of the first terminal. If the blockchain network corresponding to the first terminal home server connection address is supported, the session state of the first terminal blockchain address is determined based on the transaction records between the visited server blockchain address and the first terminal blockchain address. If the blockchain network corresponding to the first terminal home server connection address is not supported, the session request message is forwarded to the first terminal home server connection address, so that the first terminal home server connection address determines the session status of the first terminal blockchain address based on the transaction records between the first terminal home server blockchain address and the first terminal blockchain address, and receives the home server session response sent by the first terminal home server connection address based on the session status of the first terminal blockchain address and the session request message.
6. The method for a communication session according to claim 4, characterized in that, Determining the session state of the first terminal blockchain address based on the transaction records between the visited server blockchain address and the first terminal blockchain address includes: Query the transaction records between the server blockchain address and the first terminal blockchain address, wherein the transaction records mark the session status of the first terminal blockchain address as paid; Send a specified amount from the visited server blockchain address to the first terminal blockchain address to mark the first terminal blockchain address's session status as connectable.
7. The method for a communication session according to claim 4, characterized in that, The method further includes: The session request message includes: the second terminal session account; The second terminal session account includes the second terminal blockchain email address; Determine the connection address of the second terminal's home server. The connection address of the second terminal's home server is the local domain name address, IP address, or parent domain name address contained in the suffix of the second terminal's blockchain email address. The session request message is forwarded to the connection address of the second terminal's home server.
8. A system for a communication session, characterized in that, For use in a first terminal device, the first terminal device includes: a transmitting unit and a receiving unit; the transmitting unit and the receiving unit are logically connected to each other; The sending unit is used to send a session request message according to the session status of the first terminal blockchain address. The session request message includes: a session request message identifier and a first terminal session account. The first terminal session account includes: the first terminal blockchain address or an address mapped one-to-one with the first terminal blockchain address, and the connection address of the first terminal home server. The session status of the first terminal blockchain address is determined based on the transaction records between the visited server blockchain address and the first terminal blockchain address. The receiving unit is used to receive the session response message corresponding to the session request message identifier.
9. A system for a communication session, characterized in that, A visitor server device is used, the visitor server device comprising: a sending unit, a session state unit, and a receiving unit; the sending unit, the session state unit, and the receiving unit are logically connected to each other. The receiving unit is used to receive a session request message, which includes: a session request message identifier, a first terminal session account, and the first terminal session account includes: a first terminal blockchain address or an address mapped one-to-one with the first terminal blockchain address, and a first terminal home server connection address. The session state unit is used to determine the session state of the first terminal blockchain address based on the transaction records between the visited server blockchain address and the first terminal blockchain address. The sending unit is configured to send a session response based on the session status of the first terminal blockchain address and the session request message.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of a method for a communication session as described in any one of claims 1 to 7.