CN114979263B - High concurrency gateway SIP proxy method and device based on Gin framework - Google Patents

High concurrency gateway SIP proxy method and device based on Gin framework Download PDF

Info

Publication number
CN114979263B
CN114979263B CN202210312487.1A CN202210312487A CN114979263B CN 114979263 B CN114979263 B CN 114979263B CN 202210312487 A CN202210312487 A CN 202210312487A CN 114979263 B CN114979263 B CN 114979263B
Authority
CN
China
Prior art keywords
service
gin
framework
gateway
request
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.)
Active
Application number
CN202210312487.1A
Other languages
Chinese (zh)
Other versions
CN114979263A (en
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.)
China Standard Intelligent Security Technology Co Ltd
Original Assignee
China Standard Intelligent Security Technology Co 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 China Standard Intelligent Security Technology Co Ltd filed Critical China Standard Intelligent Security Technology Co Ltd
Priority to CN202210312487.1A priority Critical patent/CN114979263B/en
Publication of CN114979263A publication Critical patent/CN114979263A/en
Application granted granted Critical
Publication of CN114979263B publication Critical patent/CN114979263B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Multimedia (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a high concurrency gateway SIP proxy method and device based on Gin frames, and relates to the technical field of computers. The method applies Gin frames to gateway services; providing HTTP access interface to the functional entity of the local domain when SIP session control is performed; the functional entity accesses the corresponding port by carrying the JSON format parameter through the specified request method, and obtains a response result of the JSON format. It can be seen that the embodiment of the application applies the Gin framework to the gateway service, can fully utilize the advantages of multi-range high concurrency, high-performance input and output, rapid exception handling and the like of the Gin framework, can improve the response efficiency and the access speed of the gateway service, and can improve the robustness of the gateway service processing Request.

Description

High concurrency gateway SIP proxy method and device based on Gin framework
Technical Field
The application relates to the technical field of computers, in particular to a high concurrency gateway SIP proxy method and device based on Gin frames.
Background
With the rapid development of computer and communication technologies, a new generation of SIP (Session Initiation Protocol ) for IP-based services has developed. SIP is a protocol suitable for various media content to implement multi-user sessions, and has become a specification for the internet task force. SIP is a text-based protocol that is an application-layer control signaling protocol used to create, change, or terminate sessions in which one or more participants participate. SIP mainly supports the establishment and termination of multimedia communication functions.
For the gateway connecting the SIP domain and the non-SIP domain, it needs to carry all SIP session control, and the access amount of the interface is large. The conventional communication manner based on TCP (Transmission Control Protocol) is weak in access control management, cannot well realize high concurrency, and the data format is usually in an XML (extensible markup language) format, which is not concise enough, so that the technical problem needs to be solved.
Disclosure of Invention
The present application has been made in view of the above problems, and it is an object of the present application to provide a Gin framework-based high concurrency gateway SIP proxy method and apparatus that overcomes or at least partially solves the above problems. The technical scheme is as follows:
in a first aspect, a Gin framework-based high concurrency gateway SIP proxy method is provided, including:
applying Gin framework to gateway service; wherein Gin framework is an HTTP Web framework implemented using Golang language, capable of supporting JSON; the Golang language is a static strong type, compiling type and concurrency type programming language with garbage collection function;
providing HTTP access interface to the functional entity of the local domain when SIP session control is performed;
the functional entity accesses the corresponding port by carrying the JSON format parameter through the specified request method, and obtains a response result of the JSON format.
In one possible implementation, the specified request method includes any one of GET, POST, PUT, DELETE, OPTION methods.
In one possible implementation manner, the function entity accesses the corresponding port by specifying that the request method carries JSON format parameters, and includes:
creating a route by using a Default method of the Gin framework, and binding a routing rule and a routing function by using an HTTP method;
packaging the Request and the Response to the Context environment of the Context framework, and starting a Run method monitoring port of the route; wherein requesting the Request includes accessing the corresponding port with JSON format parameters carried by the specified Request method.
In one possible implementation, the method further includes:
when SIP session control is performed, corresponding service control logic is obtained according to the access request;
acquiring information of an initiator of the access request and information of a service party using a service in the access request;
and under the control of the service control logic, the initiator and the service party interact to complete service delivery.
In one possible implementation manner, the obtaining the corresponding service control logic according to the access request when performing SIP session control includes:
analyzing the access request to obtain a service identifier when SIP session control is performed;
loading the service process description information in the JSON format corresponding to the service identifier;
and analyzing the service process description information to obtain service control logic.
In a possible implementation manner, loading the service process description information in JSON format corresponding to the service identifier includes:
and obtaining the service process description information in the JSON format corresponding to the service identifier through interaction with the service process description database.
In a second aspect, a Gin framework-based high concurrency gateway SIP proxy apparatus is provided, including:
the application module is used for applying the Gin framework to the gateway service; wherein Gin framework is an HTTP Web framework implemented using Golang language, capable of supporting JSON; the Golang language is a static strong type, compiling type and concurrency type programming language with garbage collection function;
the providing module is used for providing an HTTP access interface for the functional entity of the local domain when the SIP session control is carried out;
the processing module is used for enabling the functional entity to access the corresponding port through the specified request method carrying the JSON format parameter and obtaining a response result of the JSON format.
In one possible implementation, the processing module is further configured to:
creating a route by using a Default method of the Gin framework, and binding a routing rule and a routing function by using an HTTP method;
packaging the Request and the Response to the Context environment of the Context framework, and starting a Run method monitoring port of the route; wherein requesting the Request includes accessing the corresponding port with JSON format parameters carried by the specified Request method.
In one possible implementation, the processing module is further configured to:
when SIP session control is performed, corresponding service control logic is obtained according to the access request;
acquiring information of an initiator of the access request and information of a service party using a service in the access request;
and under the control of the service control logic, the initiator and the service party interact to complete service delivery.
In one possible implementation, the processing module is further configured to:
analyzing the access request to obtain a service identifier when SIP session control is performed;
loading the service process description information in the JSON format corresponding to the service identifier;
and analyzing the service process description information to obtain service control logic.
By means of the technical scheme, the Gin framework-based high concurrency gateway SIP proxy method and device provided by the embodiment of the application apply the Gin framework to gateway services; wherein Gin framework is an HTTP Web framework implemented using Golang language, capable of supporting JSON; the Golang language is a static strong type, compiling type and concurrency type programming language with garbage collection function; providing HTTP access interface to the functional entity of the local domain when SIP session control is performed; the functional entity accesses the corresponding port by carrying the JSON format parameter through the specified request method, and obtains a response result of the JSON format. It can be seen that the embodiment of the application applies the Gin framework to the gateway service, can fully utilize the advantages of multi-range high concurrency, high-performance input and output, rapid exception handling and the like of the Gin framework, can improve the response efficiency and the access speed of the gateway service, and can improve the robustness of the gateway service processing Request.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings that are required to be used in the description of the embodiments of the present application will be briefly described below.
FIG. 1 illustrates a flow chart of a Gin framework based high concurrency gateway SIP proxy method in accordance with an embodiment of the application;
FIG. 2 illustrates a flow chart of a Gin framework based high concurrency gateway SIP proxy method in accordance with another embodiment of the application;
fig. 3 shows a block diagram of a Gin-frame-based high concurrency gateway SIP proxy apparatus according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the application to those skilled in the art.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that such use is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "include" and variations thereof are to be interpreted as open-ended terms that mean "include, but are not limited to.
Golang language, also called Go, is a statically strong, compiled, concurrent programming language with garbage collection.
HTTP (HyperText Transfer Protocol ) is an application layer protocol for distributed, collaborative and hypermedia information systems, a network transfer protocol most widely used on the internet, and all WWW files must comply with this standard. HTTP is designed for communication between a Web browser and a Web server, but may be used for other purposes as well. HTTP is a protocol based on TCP/IP communication to transfer data, such as HTML (HyperText Markup Language ) files, picture files, query results, etc.
The Gin framework is an HTTP Web framework implemented using Golang language, and can support middleware and JSON very well.
The embodiment of the application provides a high concurrency gateway SIP proxy method based on Gin frames. As shown in fig. 1, the Gin framework-based high concurrency gateway SIP proxy method may include the following steps S101 to S103:
step S101, a Gin framework is applied to gateway services; wherein Gin framework is an HTTP Web framework implemented using Golang language, capable of supporting JSON; the Golang language is a static strong type, compiling type and concurrency type programming language with garbage collection function;
step S102, providing HTTP access interface to the functional entity of the domain when SIP session control is performed;
step S103, the functional entity accesses the corresponding port through the specified request method carrying the JSON format parameter, and obtains a response result of the JSON format.
The embodiment of the application applies the Gin framework to gateway services; wherein Gin framework is an HTTP Web framework implemented using Golang language, capable of supporting JSON; the Golang language is a static strong type, compiling type and concurrency type programming language with garbage collection function; providing HTTP access interface to the functional entity of the local domain when SIP session control is performed; the functional entity accesses the corresponding port by carrying the JSON format parameter through the specified request method, and obtains a response result of the JSON format. It can be seen that the embodiment of the application applies the Gin framework to the gateway service, can fully utilize the advantages of multi-range high concurrency, high-performance input and output, rapid exception handling and the like of the Gin framework, can improve the response efficiency and the access speed of the gateway service, and can improve the robustness of the gateway service processing Request.
In one possible implementation manner provided in the embodiment of the present application, the method of specifying a request mentioned in step S103 may include any one of the methods GET, POST, PUT, DELETE, OPTION.
In the embodiment of the present application, a possible implementation manner is provided, where the step S103 functional entity accesses a corresponding port by carrying JSON format parameters through a specified request method, and specifically may include the following steps S103-1 and S103-2.
Step S103-1, creating a route by using a Default method of the Gin framework, and binding a routing rule and a routing function by using an HTTP method;
step S103-2, packaging the Request and the Response to Context of Gin frame, and starting Run method monitoring port of route; wherein requesting the Request includes accessing the corresponding port with JSON format parameters carried by the specified Request method.
The embodiment of the application uses the Default method of the Gin frame to create a route, binds a route rule and a route function through an HTTP method, packages Request and Response to the Context environment of the Context of the Gin frame, and starts a Run method monitoring port of the route; the Request comprises the access of the corresponding port through the JSON format parameter carried by the specified Request method, so that the response efficiency and the access speed of the gateway service can be improved, and the robustness of the gateway service for processing the Request is improved.
The embodiment of the application provides a possible implementation manner, and in order to meet the diversified business requirements of users, the embodiment of the application can further comprise the following steps A1 to A3:
a1, acquiring corresponding service control logic according to an access request when SIP session control is performed;
step A2, obtaining information of an initiator of an access request and information of a service party using a service in the access request;
and step A3, the initiator and the service party interact under the control of the service control logic to finish service delivery.
The embodiment of the application acquires the corresponding service control logic according to the access request when the SIP session control is performed, further acquires the information of the initiator of the access request and the information of the service party using the service in the access request, and then interacts with the initiator and the service party under the control of the service control logic to complete service delivery, thereby realizing the provision of various services for users by executing different service control logics and meeting the requirements of the users on the diversified services of the current communication system.
The step A1 obtains the corresponding service control logic according to the access request when performing SIP session control, and specifically may include the following steps A1-1 to A1-3:
a1-1, analyzing an access request to obtain a service identifier when SIP session control is performed;
step A1-2, loading the service process description information in JSON format corresponding to the service identifier;
and step A1-3, analyzing the description information of the service process to obtain service control logic.
The embodiment of the application analyzes the access request to obtain the service identifier when the SIP session control is carried out, loads the service process description information in the JSON format corresponding to the service identifier, and then analyzes the service process description information to obtain the service control logic, thereby improving the response efficiency and the access speed of the gateway service.
The embodiment of the application provides a possible implementation manner, and the step A1-2 is used for loading the service process description information in the JSON format corresponding to the service identifier, and concretely can be used for obtaining the service process description information in the JSON format corresponding to the service identifier through interaction with the service process description database, so that the accuracy of data can be ensured, and the efficiency of data processing can be improved.
Having described various implementations of the various elements of the embodiment of fig. 1, a detailed description of a Gin-framework-based high concurrency gateway SIP proxy approach will be provided below with reference to specific embodiments.
Another embodiment of the present application provides a Gin framework-based high concurrency gateway SIP proxy method, which can be implemented through Golang language programming. As shown in fig. 2, the Gin framework-based high concurrency gateway SIP proxy method may include the following steps S201 to S207.
Step S201, a Gin framework implemented using Golang language is applied to the gateway service.
In the step, gin framework is an HTTP Web framework realized by Golang language and can support JSON; the Golang language is a static strong type, compiling type and concurrency type programming language with garbage collection function, is specially optimized for programming of application programs of a multiprocessor system, can compare with the speed of C or C++ codes by using the Golang compiling program, and is safer and supports parallel processes.
Step S202, providing HTTP access interface to the functional entity of the domain when performing SIP session control.
In step S203, a Default method of Gin framework is used to create a route, and the routing rule and the routing function are bound by HTTP method.
Step S204, packaging the Request and the Response to Context of Gin frame, and starting Run method monitoring port of route; wherein requesting the Request includes accessing the corresponding port with JSON format parameters carried by the specified Request method.
In this step, the designation request method may include any one of GET, POST, PUT, DELETE, OPTION methods.
Step S205, obtaining corresponding service control logic according to the access request when performing SIP session control. In the step, the access request can be analyzed to obtain the service identifier when SIP session control is performed, then the service process description information in the JSON format corresponding to the service identifier is loaded, and then the service process description information is analyzed to obtain the service control logic, so that the response efficiency and the access speed of the gateway service can be improved.
Step S206, information of an initiator of the access request and information of a service party using the service in the access request are acquired.
Step S207, the initiator and the service party interact under the control of the service control logic to complete the service delivery.
The embodiment of the application applies the Gin frame to the gateway service, can fully utilize the advantages of high concurrency, high-performance input and output, quick exception handling and the like of the Gin frame, can improve the response efficiency and the access speed of the gateway service, and can improve the robustness of the gateway service processing Request. And by executing different service control logics, the method realizes the purpose of providing multiple services for the user and meets the requirements of the user on the diversified services of the current communication system.
In practical application, all the possible embodiments may be combined in any combination manner to form possible embodiments of the present application, which are not described in detail herein.
Based on the high concurrency gateway SIP proxy method based on Gin frames provided by the above embodiments, based on the same inventive concept, the embodiment of the application also provides a high concurrency gateway SIP proxy device based on Gin frames.
Fig. 3 shows a block diagram of a Gin-frame-based high concurrency gateway SIP proxy apparatus according to an embodiment of the present application. As shown in fig. 3, the Gin framework-based high concurrency gateway SIP proxy device may include an application module 310, a provisioning module 320, and a processing module 330.
An application module 310, configured to apply the Gin framework to a gateway service; wherein Gin framework is an HTTP Web framework implemented using Golang language, capable of supporting JSON; the Golang language is a static strong type, compiling type and concurrency type programming language with garbage collection function;
a providing module 320, configured to provide an HTTP access interface to a functional entity of the home domain when performing SIP session control;
and the processing module 330 is configured to enable the functional entity to access the corresponding port with JSON format parameters through the specified request method, and obtain a response result in the JSON format.
One possible implementation manner is provided in the embodiment of the present application, and the specified request method includes any one method of GET, POST, PUT, DELETE, OPTION.
In one possible implementation manner provided in the embodiment of the present application, the processing module 330 illustrated in fig. 3 above is further configured to:
creating a route by using a Default method of the Gin framework, and binding a routing rule and a routing function by using an HTTP method;
packaging the Request and the Response to the Context environment of the Context framework, and starting a Run method monitoring port of the route; wherein requesting the Request includes accessing the corresponding port with JSON format parameters carried by the specified Request method.
In one possible implementation manner provided in the embodiment of the present application, the processing module 330 illustrated in fig. 3 above is further configured to:
when SIP session control is performed, corresponding service control logic is obtained according to the access request;
acquiring information of an initiator of an access request and information of a service party using a service in the access request;
and the initiator interacts with the service party under the control of the service control logic to complete service delivery.
In one possible implementation manner provided in the embodiment of the present application, the processing module 330 illustrated in fig. 3 above is further configured to:
analyzing the access request to obtain a service identifier when SIP session control is performed;
loading the service process description information in the JSON format corresponding to the service identifier;
and analyzing the service process description information to obtain service control logic.
The high concurrency gateway SIP proxy device based on the Gin framework, provided by the embodiment of the application, applies the Gin framework to gateway services; wherein Gin framework is an HTTP Web framework implemented using Golang language, capable of supporting JSON; the Golang language is a static strong type, compiling type and concurrency type programming language with garbage collection function; providing HTTP access interface to the functional entity of the local domain when SIP session control is performed; the functional entity accesses the corresponding port by carrying the JSON format parameter through the specified request method, and obtains a response result of the JSON format. It can be seen that the embodiment of the application applies the Gin framework to the gateway service, can fully utilize the advantages of multi-range high concurrency, high-performance input and output, rapid exception handling and the like of the Gin framework, can improve the response efficiency and the access speed of the gateway service, and can improve the robustness of the gateway service processing Request.
One possible implementation manner is provided in the embodiment of the present application, and the apparatus shown in fig. 3 may further include a receiving module, an encapsulating module, and a sending module (not shown in fig. 3).
The receiving module is used for receiving the MQTT to-be-processed data packaged in the MQTT protocol format from the cloud platform;
the encapsulation module is used for resolving the data to be processed of the MQTT and encapsulating the resolved data according to a MODBUS protocol format to obtain MODBUS encapsulated data;
and the sending module is used for sending the MODBUS encapsulation data to the corresponding intelligent equipment.
The embodiment of the application provides a possible implementation manner, and the packaging module is further used for: analyzing the message topic names in the data to be processed of the MQTT to obtain the intelligent device address, the register address and the register quantity; in the analyzed data, encapsulating the same register address and corresponding data into MODBUS protocol packets to obtain MODBUS encapsulated data;
the sending module is further configured to: and sending the MODBUS encapsulation data to the corresponding intelligent device according to the intelligent device address.
The embodiment of the application provides a possible implementation mode, and the cloud gateway implementation device for converting MODBUS to MQTT protocol is realized through Golang language programming.
According to the cloud gateway implementation device for converting the MODBUS into the MQTT protocol, which is provided by the embodiment of the application, the cloud gateway is responsible for converting the MODBUS and the MQTT communication protocols, and the cloud gateway is used for completing the conversion of the two data formats in real time and uploading the cloud platform in real time. And continuously and circularly executing the related real-time data read from intelligent devices such as sensors and the like through a serial port based on a MODBUS protocol, and packing the real-time data by an MQTT protocol and uploading the real-time data to a cloud platform.
Compared with the existing internet of things gateway, the cloud gateway relies on the high portability of Golang language, the hardware stability and reliability of the cloud gateway can be better guaranteed, meanwhile, real-time data of multiple paths of field devices can be collected simultaneously, meanwhile, development efficiency based on Golang language under a Linux environment is high, software system codes are refined, code multiplexing and migration development are easy, and the cloud gateway is convenient to expand and apply to development of other similar internet of things data collection projects.
It will be clear to those skilled in the art that the specific working processes of the above-described systems, devices and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein for brevity.
Those of ordinary skill in the art will appreciate that: the aspects of the present application may be embodied in essence or in whole or in part in a software product stored on a storage medium, comprising program instructions for causing an electronic device (e.g., personal computer, server, network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application when the program instructions are executed. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a read-only memory (ROM), a random-access memory (RAM), a magnetic disk, or an optical disk, etc.
Alternatively, all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (such as a personal computer, a server, or an electronic device such as a network device) associated with program instructions, where the program instructions may be stored in a computer-readable storage medium, and where the program instructions, when executed by a processor of the electronic device, perform all or part of the steps of the method according to the embodiments of the present application.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all technical features thereof can be replaced by others within the spirit and principle of the present application; such modifications and substitutions do not depart from the scope of the application.

Claims (8)

1. A Gin framework-based high concurrency gateway SIP proxy method, comprising:
applying Gin framework to gateway service; wherein Gin framework is an HTTP Web framework implemented using Golang language, capable of supporting JSON; the Golang language is a static strong type, compiling type and concurrency type programming language with garbage collection function;
providing HTTP access interface to the functional entity of the local domain when SIP session control is performed;
the functional entity accesses the corresponding port by carrying the JSON format parameter through the specified request method, and obtains a response result of the JSON format;
the method for accessing the corresponding port by the functional entity through the JSON format parameter carried by the specified request method comprises the following steps:
creating a route by using a Default method of the Gin framework, and binding a routing rule and a routing function by using an HTTP method;
packaging the Request and the Response to the Context environment of the Context framework, and starting a Run method monitoring port of the route; wherein requesting the Request includes accessing the corresponding port with JSON format parameters carried by the specified Request method.
2. The Gin-frame-based high concurrency gateway SIP proxy method of claim 1, wherein said specified request method comprises any one of GET, POST, PUT, DELETE, OPTION methods.
3. A Gin-frame-based high concurrency gateway SIP proxy method according to claim 1 or 2, further comprising:
when SIP session control is performed, corresponding service control logic is obtained according to the access request;
acquiring information of an initiator of the access request and information of a service party using a service in the access request;
and under the control of the service control logic, the initiator and the service party interact to complete service delivery.
4. A Gin-frame-based high concurrency gateway SIP proxy method according to claim 3, wherein said obtaining corresponding service control logic according to an access request when performing SIP session control comprises:
analyzing the access request to obtain a service identifier when SIP session control is performed;
loading the service process description information in the JSON format corresponding to the service identifier;
and analyzing the service process description information to obtain service control logic.
5. The Gin-frame-based high concurrency gateway SIP proxy method of claim 4, wherein loading the service process description information in JSON format corresponding to the service identifier comprises:
and obtaining the service process description information in the JSON format corresponding to the service identifier through interaction with the service process description database.
6. A Gin framework-based high concurrency gateway SIP proxy device, comprising:
the application module is used for applying the Gin framework to the gateway service; wherein Gin framework is an HTTP Web framework implemented using Golang language, capable of supporting JSON; the Golang language is a static strong type, compiling type and concurrency type programming language with garbage collection function;
the providing module is used for providing an HTTP access interface for the functional entity of the local domain when the SIP session control is carried out;
the processing module is used for enabling the functional entity to access the corresponding port through the specified request method carrying the JSON format parameter and obtaining a response result of the JSON format;
wherein the processing module is further configured to:
creating a route by using a Default method of the Gin framework, and binding a routing rule and a routing function by using an HTTP method;
packaging the Request and the Response to the Context environment of the Context framework, and starting a Run method monitoring port of the route; wherein requesting the Request includes accessing the corresponding port with JSON format parameters carried by the specified Request method.
7. The Gin-frame-based high concurrency gateway SIP proxy device of claim 6, wherein said processing module is further configured to:
when SIP session control is performed, corresponding service control logic is obtained according to the access request;
acquiring information of an initiator of the access request and information of a service party using a service in the access request;
and under the control of the service control logic, the initiator and the service party interact to complete service delivery.
8. The Gin-frame-based high concurrency gateway SIP proxy device of claim 7, wherein said processing module is further configured to:
analyzing the access request to obtain a service identifier when SIP session control is performed;
loading the service process description information in the JSON format corresponding to the service identifier;
and analyzing the service process description information to obtain service control logic.
CN202210312487.1A 2022-03-28 2022-03-28 High concurrency gateway SIP proxy method and device based on Gin framework Active CN114979263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210312487.1A CN114979263B (en) 2022-03-28 2022-03-28 High concurrency gateway SIP proxy method and device based on Gin framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210312487.1A CN114979263B (en) 2022-03-28 2022-03-28 High concurrency gateway SIP proxy method and device based on Gin framework

Publications (2)

Publication Number Publication Date
CN114979263A CN114979263A (en) 2022-08-30
CN114979263B true CN114979263B (en) 2023-09-15

Family

ID=82976331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210312487.1A Active CN114979263B (en) 2022-03-28 2022-03-28 High concurrency gateway SIP proxy method and device based on Gin framework

Country Status (1)

Country Link
CN (1) CN114979263B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494656A (en) * 2008-01-22 2009-07-29 华为技术有限公司 Method for enhancing SIP business and SIP proxy server
CN104022947A (en) * 2014-06-03 2014-09-03 长春大学 Quantum private communication HTTP (Hyper Text Transport Protocol) proxy gateway
WO2017129014A1 (en) * 2016-01-28 2017-08-03 阿里巴巴集团控股有限公司 Method and apparatus for controlling internet of things device, and server and mobile device
CN108614862A (en) * 2018-03-28 2018-10-02 国家计算机网络与信息安全管理中心 Real-time tag treating method and apparatus based on stream calculation engine
CN112995239A (en) * 2021-05-24 2021-06-18 武汉中科通达高新技术股份有限公司 Data processing method and device
CN113259407A (en) * 2021-03-25 2021-08-13 上海卓悠网络科技有限公司 Data interaction method and device based on application market architecture
CN113312003A (en) * 2021-06-15 2021-08-27 浪潮云信息技术股份公司 Go language-based physical bare computer disk storage management method
CN113312037A (en) * 2021-06-15 2021-08-27 北京百度网讯科技有限公司 Data processing method, device and equipment applied to microservice and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9094463B2 (en) * 2008-02-29 2015-07-28 Telefonaktiebolaget L M Ericsson (Publ) Technique for performing signaling conversion between HTTP and SIP domains

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494656A (en) * 2008-01-22 2009-07-29 华为技术有限公司 Method for enhancing SIP business and SIP proxy server
CN104022947A (en) * 2014-06-03 2014-09-03 长春大学 Quantum private communication HTTP (Hyper Text Transport Protocol) proxy gateway
WO2017129014A1 (en) * 2016-01-28 2017-08-03 阿里巴巴集团控股有限公司 Method and apparatus for controlling internet of things device, and server and mobile device
CN108614862A (en) * 2018-03-28 2018-10-02 国家计算机网络与信息安全管理中心 Real-time tag treating method and apparatus based on stream calculation engine
CN113259407A (en) * 2021-03-25 2021-08-13 上海卓悠网络科技有限公司 Data interaction method and device based on application market architecture
CN112995239A (en) * 2021-05-24 2021-06-18 武汉中科通达高新技术股份有限公司 Data processing method and device
CN113312003A (en) * 2021-06-15 2021-08-27 浪潮云信息技术股份公司 Go language-based physical bare computer disk storage management method
CN113312037A (en) * 2021-06-15 2021-08-27 北京百度网讯科技有限公司 Data processing method, device and equipment applied to microservice and storage medium

Also Published As

Publication number Publication date
CN114979263A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
CN111158818B (en) Page rendering method and device
US8848893B2 (en) Method and apparatus for callback processing in telecommunication capability opening
CN106354481B (en) Method and equipment for uniformly mapping HTTP (hyper text transport protocol) request
CN102184231A (en) Method and device for acquiring page resources
Bouloukakis et al. Automated synthesis of mediators for middleware-layer protocol interoperability in the IoT
Ju et al. An efficient and lightweight embedded Web server for Web‐based network element management
Pierce et al. Interoperable Web services for computational portals
US9971636B2 (en) Methods for implementing web services and devices thereof
Laoui et al. Web services as applications' integration tool: QikProp case study
CN106230889A (en) Mobile solution Service Component method for managing resource and system
CN112507005A (en) Method and device for processing message
CN101588347A (en) Method for automatically generating network service client terminal
CN114979263B (en) High concurrency gateway SIP proxy method and device based on Gin framework
CN112015383A (en) Login method and device
CN103917951B (en) Application invocation method, operating system and browser
CN111367685B (en) Interface calling method and device, computer equipment and storage medium
Eisenhauer et al. DataExchange: high performance communications in distributed laboratories
CN111130900A (en) Data acquisition method and device based on distributed interconnection of coordination services
CN109525539B (en) Capability calling method, call receipt method, information processing method and system
CN110022332B (en) Hypertext transfer security protocol proxy method, device, equipment and medium
CN109327530A (en) A kind of information processing method, device, electronic equipment and storage medium
CN112001156A (en) Form processing method and device and computer readable storage medium
Anderson et al. ASP .NET Core Middleware
CN111857675A (en) Method and system for realizing RESTFUL service based on C + +
US7716197B2 (en) XCAP and SIP filter chain state transforms via dynamic helper functions for internet multimedia subsystems

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
GR01 Patent grant
GR01 Patent grant