CN114979263A - 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
CN114979263A
CN114979263A CN202210312487.1A CN202210312487A CN114979263A CN 114979263 A CN114979263 A CN 114979263A CN 202210312487 A CN202210312487 A CN 202210312487A CN 114979263 A CN114979263 A CN 114979263A
Authority
CN
China
Prior art keywords
framework
gin
service
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.)
Granted
Application number
CN202210312487.1A
Other languages
Chinese (zh)
Other versions
CN114979263B (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

Images

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]

Abstract

The application provides a high concurrency gateway SIP proxy method and device based on a Gin framework, and relates to the technical field of computers. The method applies a Gin framework to a gateway service; providing an HTTP type access interface for a functional entity of the domain when SIP session control is carried out; and 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, in the embodiment of the present application, the Gin framework is applied to the gateway service, and advantages of the Gin framework, such as high concurrency in multiple protocols, high performance input and output, and rapid exception handling, can be fully utilized, so that response efficiency and access speed of the gateway service can be improved, and robustness of processing a Request by the gateway service can be improved.

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 a Gin framework.
Background
With the rapid development of computer and communication technologies, a new generation of SIP (Session Initiation Protocol) for IP-based services is in operation. SIP is a protocol that is suitable for various media contents to realize multi-user sessions, and has now become a specification of the internet work task force. SIP is a text-based protocol, 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 a gateway connecting a SIP domain and a non-SIP domain, which is to carry all SIP session control, the interface access amount is large. A conventional communication method based on TCP (Transmission Control Protocol) is weak in access Control management and cannot well implement high concurrency, and a data format generally adopts an XML (extensible markup language) format, which is not compact enough, so that it is urgently needed to solve the technical problem.
Disclosure of Invention
In view of the above, the present application is proposed to provide a Gin framework based high concurrency gateway SIP proxy method and apparatus that overcomes or at least partially solves the above-mentioned problems. The technical scheme is as follows:
in a first aspect, a high concurrency gateway SIP proxy method based on a Gin framework is provided, which includes:
applying the Gin framework to the gateway service; the Gin framework is an HTTP Web framework realized by using Golang language and can support JSON; the Golang language is a programming language with strong static type, compiling type, concurrency type and garbage recycling function;
providing an HTTP type access interface for a functional entity of the domain when SIP session control is carried out;
and 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 request specifying method includes any one of GET, POST, PUT, DELETE, and OPTION.
In a possible implementation manner, the step of accessing the corresponding port by the functional entity carrying the JSON format parameter through the specified request method includes:
a route is established by using a Default method of a Gin frame, and a route rule and a route function are bound through an HTTP method;
packaging the Request and the Response into a Context environment of Context of a Gin framework, and starting a Run method monitoring port of a route; and the Request comprises accessing the corresponding port by carrying JSON format parameters through a specified Request method.
In one possible implementation, the method further includes:
acquiring a corresponding service control logic according to an access request when SIP session control is carried out;
acquiring information of an initiator of the access request and information of a service party using a service in the access request;
and the initiator and the service party interact under the control of the service control logic to complete service delivery.
In a possible implementation manner, the acquiring a corresponding service control logic according to an access request when performing SIP session control includes:
analyzing the access request to obtain a service identifier when SIP session control is carried out;
loading service process description information in a JSON format corresponding to the service identifier;
and analyzing the service process description information to obtain a service control logic.
In a possible implementation manner, loading service process description information in the JSON format corresponding to the service identifier includes:
and interacting with a business process description database to obtain the business process description information in the JSON format corresponding to the business identification.
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; the Gin framework is an HTTP Web framework realized by using Golang language and can support JSON; the Golang language is a programming language with strong static type, compiling type, concurrency type and garbage recycling function;
the providing module is used for providing an HTTP type access interface for the functional entity of the local domain when SIP session control is carried out;
and the processing module is used for accessing the corresponding port by the functional entity carrying the JSON format parameters through the specified request method 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 a Gin framework, and binding a routing rule and a routing function by using an HTTP (hyper text transport protocol) method;
packaging the Request and the Response into a Context environment of Context of a Gin framework, and starting a Run method monitoring port of a route; and the Request comprises accessing the corresponding port by carrying JSON format parameters through a specified Request method.
In one possible implementation, the processing module is further configured to:
acquiring a corresponding service control logic according to an access request when SIP session control is carried out;
acquiring information of an initiator of the access request and information of a service party using a service in the access request;
and the initiator and the service party interact under the control of the service control logic to complete service delivery.
In one possible implementation manner, the processing module is further configured to:
analyzing the access request to obtain a service identifier when SIP session control is carried out;
loading service process description information in a JSON format corresponding to the service identifier;
and analyzing the service process description information to obtain a service control logic.
By means of the technical scheme, the high concurrency gateway SIP proxy method and device based on the Gin framework, provided by the embodiment of the application, apply the Gin framework to gateway service; the Gin framework is an HTTP Web framework realized by using Golang language and can support JSON; the Golang language is a programming language with strong static type, compiling type, concurrency type and garbage recycling function; providing an HTTP type access interface for a functional entity of the domain when SIP session control is carried out; and 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, when the Gin framework is applied to the gateway service in the embodiment of the application, the advantages of high concurrency of multiple protocols, high-performance input and output, rapid exception handling and the like of the Gin framework can be fully utilized, the response efficiency and the access speed of the gateway service can be improved, and the robustness of the Request of the gateway service processing can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 shows a flow chart of a Gin framework based high concurrency gateway SIP proxy method according to an embodiment of the present application;
FIG. 2 shows a flow diagram of a Gin framework based high concurrency gateway SIP proxy method, according to another embodiment of the present application;
fig. 3 illustrates a structural diagram of a Gin framework 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 disclosure to those skilled in the art.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that such uses are interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the term "include" and its variants are to be read as open-ended terms meaning "including, but not limited to".
Golang language, Golang is a programming language with strong static type, compiling type, concurrent type and garbage recycling function.
HTTP (HyperText Transfer Protocol) is an application layer Protocol for distributed, collaborative and hypermedia information systems, and is the most widely used network Transfer Protocol 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 can also be used for other purposes. HTTP is a protocol based TCP/IP communication protocol for transferring data, such as HTML (HyperText Markup Language) files, picture files, query results, and the like.
The Gin framework is an HTTP Web framework realized by using Golang language, and can well support middleware and JSON.
The embodiment of the application provides a high concurrency gateway SIP proxy method based on a Gin framework. 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, applying a Gin framework to a gateway service; the Gin framework is an HTTP Web framework realized by using Golang language and can support JSON; the Golang language is a programming language with strong static type, compiling type, concurrency type and garbage recycling function;
step S102, providing HTTP type access interface for the functional entity of the local domain when SIP session control is carried out;
and step S103, the functional entity accesses the corresponding port by carrying the JSON format parameters through the specified request method, and obtains a response result of the JSON format.
The embodiment of the application applies the Gin framework to the gateway service; the Gin framework is an HTTP Web framework realized by using Golang language and can support JSON; the Golang language is a programming language with strong static type, compiling type, concurrency type and garbage recycling function; providing an HTTP type access interface for a functional entity of the domain when SIP session control is carried out; and 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, when the Gin framework is applied to the gateway service in the embodiment of the application, the advantages of high concurrency of multiple protocols, high-performance input and output, rapid exception handling and the like of the Gin framework can be fully utilized, the response efficiency and the access speed of the gateway service can be improved, and the robustness of the Request of the gateway service processing can be improved.
One possible implementation manner is provided in the embodiment of the present application, and the method for specifying a request mentioned in step S103 above may include any one of GET, POST, PUT, DELETE, and OPTION.
A possible implementation manner is provided in the embodiment of the present application, where the functional entity in step S103 accesses the corresponding port by specifying a request method to carry the JSON format parameter, which may specifically include the following steps S103-1 and S103-2.
Step S103-1, a route is created by using a Default method of a Gin framework, and a route rule and a route function are bound through an HTTP method;
step S103-2, packaging the Request and the Response into the Context environment of the Context of the Gin framework, and starting a Run method monitoring port of the route; and the Request comprises accessing the corresponding port by carrying JSON format parameters through a specified Request method.
The method comprises the steps that a Default method of a Gin frame is used for creating a route, a route rule and a route function are bound through an HTTP method, a Request and a Response are encapsulated into a Context environment of Context of the Gin frame, and a Run method monitoring port of the route is started; the Request comprises a JSON format parameter carried by a specified Request method to access a corresponding port, 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.
In the embodiment of the present application, a possible implementation manner is provided, and in order to meet diversified service requirements of users, the following steps a1 to A3 may be further included:
step A1, acquiring corresponding service control logic according to the access request when performing SIP session control;
step A2, obtaining the information of the initiator of the access request and the information of the service party using the service in the access request;
step A3, the initiator and the service party interact under the control of the service control logic to complete the service delivery.
According to the embodiment of the application, the corresponding service control logic is obtained according to the access request during SIP session control, then the information of the initiator of the access request and the information of the service party using the service in the access request are obtained, and then the initiator and the service party interact under the control of the service control logic to complete service delivery, so that various services are provided for users by executing different service control logics, and the requirements of the users on diversified services of the current communication system are met.
The step a1 may specifically include the following steps a1-1 to a1-3, when performing SIP session control, acquiring a corresponding service control logic according to the access request:
step A1-1, analyzing the access request to obtain the service identification when carrying out SIP session control;
step A1-2, loading service process description information in a JSON format corresponding to the service identification;
and step A1-3, analyzing the service process description information to obtain the service control logic.
According to the embodiment of the application, the access request is analyzed to obtain the service identifier when the SIP session control is carried out, 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.
In the embodiment of the present application, a possible implementation manner is provided, and step a1-2 loads service process description information in the JSON format corresponding to the service identifier, specifically, the service process description information in the JSON format corresponding to the service identifier is obtained by interacting with a service process description database, so that accuracy of data can be ensured and efficiency of data processing can be improved.
In the above, various implementations of the various links of the embodiment shown in fig. 1 are introduced, and the high concurrency gateway SIP proxy method based on the Gin framework will be described in detail through specific embodiments.
Another embodiment of the present application provides a Gin framework-based high concurrency gateway SIP proxy method, which can be implemented by 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 realized by using Golang language is applied to a gateway service.
In the step, the Gin framework is an HTTP Web framework realized by using Golang language and can support JSON; the Golang language is a programming language with strong static type, compiling type, concurrent type and garbage recycling function, is specially optimized for the programming of application programs of a multiprocessor system, can be comparable to the speed of C or C + + codes by using the Golang compiling program, and is safer and supports parallel processes.
Step S202, when performing SIP session control, provides an HTTP-based access interface to the functional entity in the local domain.
Step S203, a route is created by using a Default method of the Gin framework, and a routing rule and a routing function are bound through an HTTP method.
Step S204, packaging the Request and the Response into the Context environment of the Context of the Gin framework, and starting a Run method monitoring port of the route; and the Request comprises accessing the corresponding port by carrying JSON format parameters through a specified Request method.
In this step, the request specifying method may include any one of GET, POST, PUT, DELETE, and OPTION.
Step S205, when performing SIP session control, acquires a corresponding service control logic according to the access request. In this step, the access request may be analyzed to obtain the service identifier during SIP session control, and 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, obtaining the information of the initiator of the access request and the information of the service party using the service in the access request.
Step S207, the initiator and the service provider interact under the control of the service control logic to complete the service delivery.
According to the embodiment of the application, the Gin framework is applied to the gateway service, the advantages of the Gin framework such as high concurrency, high-performance input and output, rapid exception handling and the like can be fully utilized, the response efficiency and the access speed of the gateway service can be improved, and the robustness of the gateway service processing Request is improved. And, by executing different service control logics, various services are provided for users, and the requirements of the users on diversified services of the current communication system are met.
It should be noted that, in practical applications, all the possible embodiments described above may be combined in a combined manner at will to form possible embodiments of the present application, and details are not described here again.
Based on the high concurrency gateway SIP proxy method based on the Gin framework provided by the embodiments, based on the same inventive concept, the embodiment of the application also provides a high concurrency gateway SIP proxy device based on the Gin framework.
Fig. 3 illustrates a structural diagram of a Gin framework 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 apparatus may include an application module 310, a providing module 320, and a processing module 330.
An application module 310, configured to apply the Gin framework to the gateway service; the Gin framework is an HTTP Web framework realized by using Golang language and can support JSON; the Golang language is a programming language with strong static type, compiling type, concurrency type and garbage recycling function;
a providing module 320, configured to provide an HTTP-type access interface to a functional entity of the local domain when performing SIP session control;
and the processing module 330 is configured to access the corresponding port by the functional entity through the designated request method carrying the JSON format parameter, and obtain a response result in the JSON format.
The embodiment of the application provides a possible implementation manner, and the method for specifying the request comprises any one of GET, POST, PUT, DELETE and OPTION.
In an embodiment of the present application, a possible implementation manner is provided, and the processing module 330 shown in fig. 3 is further configured to:
creating a route by using a Default method of a Gin framework, and binding a routing rule and a routing function by using an HTTP (hyper text transport protocol) method;
packaging the Request and the Response into a Context environment of Context of a Gin framework, and starting a Run method monitoring port of a route; and the Request comprises accessing the corresponding port by carrying JSON format parameters through a specified Request method.
In an embodiment of the present application, a possible implementation manner is provided, and the processing module 330 shown in fig. 3 is further configured to:
acquiring a corresponding service control logic according to an access request when SIP session control is carried out;
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 and the service party interact under the control of the service control logic to complete service delivery.
In an embodiment of the present application, a possible implementation manner is provided, and the processing module 330 shown in fig. 3 is further configured to:
analyzing the access request to obtain a service identifier when SIP session control is carried out;
loading service process description information in a JSON format corresponding to the service identifier;
and analyzing the service process description information to obtain a 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 service; the Gin framework is an HTTP Web framework realized by using Golang language and can support JSON; the Golang language is a programming language with strong static type, compiling type, concurrency type and garbage recycling function; providing an HTTP type access interface for a functional entity of the domain when SIP session control is carried out; and 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, when the Gin framework is applied to the gateway service in the embodiment of the application, the advantages of high concurrency of multiple protocols, high-performance input and output, rapid exception handling and the like of the Gin framework can be fully utilized, the response efficiency and the access speed of the gateway service can be improved, and the robustness of the Request of the gateway service processing can be improved.
In an embodiment of the present application, a possible implementation manner is provided, and the apparatus shown in fig. 3 above 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 MQTT data to be processed which are packaged in an MQTT protocol format and come from the cloud platform;
the packaging module is used for analyzing the data to be processed of the MQTT and packaging the analyzed data according to the MODBUS protocol format to obtain MODBUS packaged data;
and the sending module is used for sending the MODBUS encapsulated data to the corresponding intelligent equipment.
In an embodiment of the present application, a possible implementation is provided, and the encapsulation module is further configured to: analyzing the message topic name in the data to be processed of the MQTT to obtain the address of the intelligent device, the address of the register and the number of the registers; in the analyzed data, the same register address and corresponding data are packaged into an MODBUS protocol packet to obtain MODBUS packaged data;
the sending module is further configured to: and sending MODBUS encapsulated data to corresponding intelligent equipment according to the address of the intelligent equipment.
The embodiment of the application provides a possible implementation mode, and the cloud gateway implementation device for MODBUS-MQTT protocol is implemented through Golang language programming.
The cloud gateway device for realizing MODBUS-MQTT protocol provided by the embodiment of the application is responsible for conversion of two communication protocols of MODBUS and MQTT, conversion of the two data formats is completed by the cloud gateway in real time, and the cloud platform is uploaded in real time. The method comprises the steps of continuously and circularly executing in a software system, reading related real-time data from intelligent equipment such as a sensor through a serial port based on an MODBUS protocol, and packaging and uploading the real-time data to a cloud platform through an MQTT protocol.
Compared with the existing Internet of things gateway, the cloud gateway can better ensure the stability and reliability of the hardware of the cloud gateway by relying on the high transportability of the Golang language, can simultaneously acquire real-time data of multiple paths of field devices, has high development efficiency based on the Golang language development in the Linux environment, is easy to refine the codes of a software system, and is very convenient to expand and apply to the development of other similar networked data acquisition projects.
It can be clearly understood by those skilled in the art that the specific working processes of the system, the apparatus, and the module described above may refer to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, the detailed description is omitted here.
Those of ordinary skill in the art will understand that: the technical solution of the present application may be essentially or wholly or partially embodied in the form of a software product, where the computer software product is stored in a storage medium and includes program instructions for enabling an electronic device (e.g., a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application when the program instructions are executed. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Alternatively, all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (an electronic device such as a personal computer, a server, or a network device) associated with program instructions, which may be stored in a computer-readable storage medium, and when the program instructions are executed by a processor of the electronic device, the electronic device executes all or part of the steps of the method described in the embodiments of the present application.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments can be modified or some or all of the technical features can be equivalently replaced within the spirit and principle of the present application; such modifications or substitutions do not depart from the scope of the present application.

Claims (10)

1. A high concurrency gateway SIP proxy method based on a Gin framework is characterized by comprising the following steps:
applying the Gin framework to the gateway service; the Gin framework is an HTTP Web framework realized by using Golang language and can support JSON; the Golang language is a programming language with strong static type, compiling type, concurrency type and garbage recycling function;
providing an HTTP type access interface for a functional entity of the domain when SIP session control is carried out;
and 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.
2. The Gin framework-based high concurrency gateway SIP proxy method as claimed in claim 1, wherein the specified request method comprises any one of GET, POST, PUT, DELETE, OPTION.
3. The Gin framework-based highly concurrent gateway SIP proxy method of claim 1 or 2, wherein the functional entity accesses the corresponding port by specifying a request method to carry JSON format parameters, comprising:
creating a route by using a Default method of a Gin framework, and binding a routing rule and a routing function by using an HTTP (hyper text transport protocol) method;
packaging the Request and the Response into a Context environment of Context of a Gin framework, and starting a Run method monitoring port of a route; and the Request comprises accessing the corresponding port by carrying JSON format parameters through a specified Request method.
4. The Gin framework-based high concurrency gateway SIP proxy method according to claim 1 or 2, further comprising:
acquiring a corresponding service control logic according to an access request when SIP session control is carried out;
acquiring information of an initiator of the access request and information of a service party using a service in the access request;
and the initiator and the service party interact under the control of the service control logic to complete service delivery.
5. The Gin framework-based highly concurrent gateway SIP proxy method of claim 4, wherein the acquiring corresponding service control logic according to the access request during SIP session control comprises:
analyzing the access request to obtain a service identifier when SIP session control is carried out;
loading service process description information in a JSON format corresponding to the service identifier;
and analyzing the service process description information to obtain a service control logic.
6. The Gin framework-based SIP proxy method for the highly concurrent gateway according to claim 5, wherein loading the service process description information in the JSON format corresponding to the service identifier comprises:
and interacting with a business process description database to obtain the business process description information in the JSON format corresponding to the business identification.
7. A Gin framework-based high concurrency gateway SIP proxy apparatus, comprising:
the application module is used for applying the Gin framework to the gateway service; the Gin framework is an HTTP Web framework realized by using Golang language and can support JSON; the Golang language is a programming language with strong static type, compiling type, concurrency type and garbage recycling function;
the providing module is used for providing an HTTP type access interface for the functional entity of the local domain when SIP session control is carried out;
and the processing module is used for the functional entity to access the corresponding port by carrying the JSON format parameters through the specified request method and obtain the response result of the JSON format.
8. The Gin framework-based high concurrency gateway SIP proxy device of claim 7, wherein the processing module is further configured to:
creating a route by using a Default method of a Gin framework, and binding a routing rule and a routing function by using an HTTP (hyper text transport protocol) method;
packaging the Request and the Response into a Context environment of Context of a Gin framework, and starting a Run method monitoring port of a route; and the Request comprises accessing the corresponding port by carrying JSON format parameters through a specified Request method.
9. The Gin framework-based high concurrency gateway SIP proxy device of claim 7, wherein the processing module is further for:
acquiring a corresponding service control logic according to an access request when SIP session control is carried out;
acquiring information of an initiator of the access request and information of a service party using a service in the access request;
and the initiator and the service party interact under the control of the service control logic to complete service delivery.
10. The Gin framework-based high concurrency gateway SIP proxy device of claim 9, wherein the processing module is further configured to:
analyzing the access request to obtain a service identifier when SIP session control is carried out;
loading service process description information in a JSON format corresponding to the service identifier;
and analyzing the service process description information to obtain a 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 true CN114979263A (en) 2022-08-30
CN114979263B 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 (9)

* 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
US20110072144A1 (en) * 2008-02-29 2011-03-24 Ioannis Fikouras Technique for performing signaling conversion between http and sip domains
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

Patent Citations (10)

* 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
US20100262702A1 (en) * 2008-01-22 2010-10-14 Jin Hongbo Service enhancement method, proxy server and communication system
US20110072144A1 (en) * 2008-02-29 2011-03-24 Ioannis Fikouras Technique for performing signaling conversion between http and sip domains
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

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CRUSHCODING: "gin的路由详解", pages 1 - 2 *
JAYSENLEO: "微服务之Go-Micro(八)基于Gin框架的Http网关", pages 1 *

Also Published As

Publication number Publication date
CN114979263B (en) 2023-09-15

Similar Documents

Publication Publication Date Title
CN107301098B (en) Remote procedure calling device, method and system based on Thrift protocol
EP2620872B1 (en) Method and device for callback processing in telecommunication capacity opening
CN112383533B (en) Message format conversion method and device
CN112311774B (en) Data processing method and device, electronic equipment and storage medium
Bouloukakis et al. Automated synthesis of mediators for middleware-layer protocol interoperability in the IoT
CN110769009B (en) User identity authentication method and system
CN112311664A (en) Industrial Internet data interaction method and system and industrial gateway
Laoui et al. Web services as applications' integration tool: QikProp case study
WO2008049813A1 (en) Extending web service description language for sip/call flow interactions
Bromberg et al. Bridging the interoperability gap: Overcoming combined application and middleware heterogeneity
CN107332854B (en) Message serialization negotiation method and service providing equipment
CN111367685A (en) Interface calling method and device, computer equipment and storage medium
CN112015383A (en) Login method and device
CN113064735A (en) Service processing method and device
CN114979263B (en) High concurrency gateway SIP proxy method and device based on Gin framework
CN112492055A (en) Method, device and equipment for redirecting transmission protocol and readable storage medium
CN104796426B (en) The detection method at webpage back door
Yan et al. Controlling remote instruments using web services for online experiment systems
CN108924773A (en) Message treatment method and device
CN113992644A (en) Internet of things gateway system based on non-service technology and data processing method thereof
CN101917476A (en) Hyper text transmission protocol (HTTP) message processing method and client system thereof
CN110191169A (en) Data processing method and device
Fagerberg Optimising clients with API Gateways
Foukarakis et al. Implementation of a mobile agent platform based on web services
CN108881961A (en) A kind of page starting method and apparatus regarding networked terminals

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