CN112350985A - Method and system for realizing access of mobile equipment to FreeWITCH - Google Patents
Method and system for realizing access of mobile equipment to FreeWITCH Download PDFInfo
- Publication number
- CN112350985A CN112350985A CN202010964306.4A CN202010964306A CN112350985A CN 112350985 A CN112350985 A CN 112350985A CN 202010964306 A CN202010964306 A CN 202010964306A CN 112350985 A CN112350985 A CN 112350985A
- Authority
- CN
- China
- Prior art keywords
- signaling
- sip
- sip proxy
- mobile client
- proxy server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000011664 signaling Effects 0.000 claims abstract description 79
- 238000012790 confirmation Methods 0.000 claims abstract description 15
- 238000004891 communication Methods 0.000 claims description 7
- 238000011161 development Methods 0.000 abstract description 5
- 238000010295 mobile communication Methods 0.000 abstract description 2
- 241001481828 Glyptocephalus cynoglossus Species 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 244000187656 Eucalyptus cornuta Species 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000002360 explosive Substances 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1101—Session protocols
- H04L65/1104—Session initiation protocol [SIP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/10—Architectures or entities
- H04L65/1045—Proxies, e.g. for session initiation protocol [SIP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Security & Cryptography (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention belongs to the technical field of mobile communication session, and particularly provides a method and a system for realizing the access of a mobile device to FreeWITCH, which comprises the following steps: after a mobile client accesses an SIP proxy server, the SIP proxy server receives a unified signaling sent by a designated application on the mobile client; the SIP proxy server converts the received unified signaling of the mobile client into standard SIP protocol signaling and sends the standard SIP protocol signaling to the Freeswitch, and feeds back confirmation information to the SIP proxy server through the Freeswitch; and when the SIP proxy server receives the confirmation information without errors, the SIP proxy server converts the received SIP protocol signaling sent by Freeswitch into uniform signaling and sends the uniform signaling to the mobile client. The SIP proxy is used for receiving unified signaling sent by appointed application on the mobile equipment, and then the unified signaling is converted into a standard SIP protocol to be sent to the FreeWITCH, so that various mobile equipment can be accessed into the FreeWITCH in a unified and simple mode, control logic can be freely expanded according to service requirements, the difficulty and the period of client application development are greatly reduced, and the cost is saved.
Description
Technical Field
The invention belongs to the technical field of mobile communication session, and particularly relates to a method and a system for realizing the access of a mobile device to FreeWITCH.
Background
FreeWITCH is a telephony softswitch solution that includes a softphone and softswitch to provide product drivers for voice and chat. FreeWITCH can be used as a switch engine, PBX, multimedia gateway, multimedia server, etc. FreeWITCH is a cross-platform open source telephone switching platform with strong scalability. It is intended to provide routing and interconnect communication protocols for audio, video, text, or any other form of media. FreeWITCH supports a variety of communication technology standards, including SIP, H.323, IAX2, and GoogleTalk, and can be conveniently interfaced with other open-source PBX systems, such as sipX, OpenPBX, Bayone, YATE, or Asterisk.
With the explosive growth of wireless internet applications, mobile devices (such as android phones, iOS phones, tablet computers, etc.) access frees switch to implement a voice video call system using SIP (Session Initiation Protocol). Each device implements the SIP protocol to directly access the FreeWITCH, which not only increases the difficulty of client application development, but also is not convenient for implementing application-specific control logic by extension. Therefore, it is a problem to be solved in the art to enable various mobile devices to access FreeSWITCH in a uniform and simple manner and to freely extend control logic according to traffic demands.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method and a system for realizing the FreeWITCH access of mobile equipment, which have high universality and are easy to popularize, and solve the problem of high development cost of the equipment access FreeWITCH.
To this end, the invention provides a method for realizing the access of a mobile device to Freeswitch, which comprises the following steps:
after a mobile client accesses an SIP proxy server, the SIP proxy server receives a unified signaling sent by a designated application on the mobile client;
the SIP proxy server converts the received unified signaling of the mobile client into standard SIP protocol signaling and sends the standard SIP protocol signaling to the Freeswitch, and feeds back confirmation information to the SIP proxy server through the Freeswitch;
and when the SIP proxy server receives the confirmation information without errors, the SIP proxy server converts the received SIP protocol signaling sent by Freeswitch into uniform signaling and sends the uniform signaling to the mobile client.
Preferably, the SIP proxy server is a SIP proxy.
Preferably, after the sip proxy receives the 200OK message replied by FreeSWITCH, the SDP and ICE of the callee are resolved in the message body, and encapsulated into a JSON message to be sent to the client.
Preferably, the mobile client communicates with the SIP proxy through a WebSocket protocol, and the SIP proxy communicates with the FreeSWITCH using a SIP protocol.
Preferably, the mobile client accesses the sip proxy through a WebSocket protocol.
Preferably, the signaling of communications between the mobile client and the sip proxy is defined using JSON format.
Preferably, after receiving the INVITE signaling of the mobile client, the sip proxy sends INVITE SIP a command to FreeSWITCH, and a message body of the INVITE signaling contains SDP and ICE.
Preferably, the mobile client is an application client on a mobile device.
The invention also provides a system for realizing the access of the mobile equipment to the FreeS WITCH, which comprises a mobile client, a SIPPXY and a FreeS WITCH;
the mobile client is used for accessing a SIP proxy, and the SIP proxy receives a unified signaling sent by a specified application on the mobile client;
the SIP proxy converts the received unified signaling of the mobile client into standard SIP protocol signaling, sends the standard SIP protocol signaling to Freeswitch, and feeds back confirmation information to the SIP proxy server through Freeswitch.
The invention has the beneficial effects that: the method and the system for realizing the access of the mobile equipment to the FreeWITCH provided by the invention comprise the following steps: after a mobile client accesses an SIP proxy server, the SIP proxy server receives a unified signaling sent by a designated application on the mobile client; the SIP proxy server converts the received unified signaling of the mobile client into standard SIP protocol signaling and sends the standard SIP protocol signaling to the Freeswitch, and feeds back confirmation information to the SIP proxy server through the Freeswitch; and when the SIP proxy server receives the confirmation information without errors, the SIP proxy server converts the received SIP protocol signaling sent by Freeswitch into uniform signaling and sends the uniform signaling to the mobile client. The SIP proxy is used for receiving unified signaling sent by appointed application on the mobile equipment, and then the unified signaling is converted into a standard SIP protocol to be sent to the FreeWITCH, so that various mobile equipment can be accessed into the FreeWITCH in a unified and simple mode, control logic can be freely expanded according to service requirements, the difficulty and the period of client application development are greatly reduced, the cost is saved, and the popularization of the market and the improvement of science and technology are facilitated.
The present invention will be described in further detail below with reference to the accompanying drawings.
Drawings
FIG. 1 is a schematic diagram of the components of the system and method for accessing FreeS WITCH by a mobile device according to the present invention;
figure 2 is a communication flow diagram between components of the method and system for enabling a mobile device to access FreeSWITCH, in accordance with the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "center", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of description and simplicity of description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be construed as limiting the present invention.
The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature; in the description of the present invention, "a plurality" means two or more unless otherwise specified.
An embodiment of the present invention provides a method for enabling a mobile device to access a FreeS WITCH, as shown in FIG. 1, including:
after a mobile client accesses an SIP proxy server, the SIP proxy server receives a unified signaling sent by a designated application on the mobile client;
the SIP proxy server converts the received unified signaling of the mobile client into standard SIP protocol signaling and sends the standard SIP protocol signaling to the Freeswitch, and feeds back confirmation information to the SIP proxy server through the Freeswitch;
and when the SIP proxy server receives the confirmation information without errors, the SIP proxy server converts the received SIP protocol signaling sent by Freeswitch into uniform signaling and sends the uniform signaling to the mobile client.
Wherein, the SIP proxy server is the SIP proxy.
The mobile client is connected to the SIPP proxy through the WebSocket firstly, the SIPP proxy carries out complete verification on the mobile client after receiving the connection, then sends a REGISTER signaling to REGISTER to FreeWITCH, and the SIPP proxy replies to the mobile client through the WebSocket after receiving a 200OK message to complete the registration.
The specific scheme is as follows:
a client side is accessed to a SIPP proxy to receive a unified signaling sent by a specified application on mobile equipment;
the SIP proxy converts the received client signaling into standard SIP protocol signaling and sends the standard SIP protocol signaling to Freeswitch;
the SIP proxy converts the received SIP protocol signaling sent by the FreeSWITCH into unified signaling to be sent to the mobile client.
The above method further comprises:
the signaling of the communication between the mobile client and the SIPP proxy is defined by a JSON format;
and the mobile client accesses the SIPP proxy through a WebSocket protocol.
Fig. 2 is a flow chart of the client, sip proxy and FreeSWITCH communications in an embodiment of the present invention. Referring to fig. 2, SIP proxy represents a SIP proxy server. The method comprises the following specific steps:
the mobile client sends a video call request through WebSocket, and the JSON format is defined as follows:
{"type":"invite","data":{"sdp":"sdpInfo","ice":"candidate"},"to":"to"}
wherein, SDP is short for Session Description Protocol, which is a set of standard Protocol for describing streaming media interaction parameters, namely RFC4566, ICE is called Interactive Connectivity Establishment, and is also a set of standard Protocol defined by IETF, namely RFC 5245; the mobile client can acquire the SDP and the ICE through the WebRTC; to represents the SIP ID of the callee.
After receiving the INVITE signaling of the mobile client, the sip proxy sends INVITE SIP a command to Freeswitch, and the message body of the INVITE signaling contains SDP and ICE. After the SIP proxy receives the 200OK message replied by FreeWITCH, the SDP and ICE of the callee are analyzed in the message body and encapsulated into JSON message to be sent to the mobile client. After receiving the JSON message, the mobile client analyzes the SDP and the ICE, establishes an audio and video connection channel through WebRTC, and completes audio and video call.
The mobile client sends a call ending signaling to the SIPP proxy through the WebSocket, and the JSON format is defined as follows:
{"type":"bye","to":"to"}。
the SIP proxy sends SIP BYE signaling to FreeWITCH after receiving the message. So far the client ends the SIP session.
Specifically, a connection is established between the mobile client and the sip proxy through the WebSocket Connect, the sip proxy sends SIP REGISTER registration information to the freesButch, the freesButch feeds back to the sip proxy after receiving the registration information, and if the response is returned to 401, the sip proxy continues to send SIP REGISTER registration information to the freesButch. The successful information indicates that the registration is successful until 200 times of feedback. And then the SIPOXY sends JSON Register Success information to the mobile client to indicate that the registration is successful. The mobile client then sends a JSON INVITE message to the sip proxy, which converts it to SIP INVITE format for FreeSWITCH, which feeds back 100 Trying, 180 RingLing, and 200OK, indicating success. And then the SIP proxy sends ACK success information to FreeWITCH and sends JSON INVITE OK information to the mobile client to complete the call. And finally, the mobile client sends JSON BYE information to the SIPROxy after the conversation is finished, and the SIPROxy converts the JSON BYE information into SIP BYE and sends the SIP BYE information to FreeWITCH. And (6) finishing.
The embodiment of the invention also provides a system for realizing the access of the mobile equipment to the FreeS WITCH, which comprises a mobile client, a SIPPXY and a FreeS WITCH;
the mobile client is used for accessing a SIP proxy, and the SIP proxy receives a unified signaling sent by a specified application on the mobile client;
the SIP proxy converts the received unified signaling of the mobile client into standard SIP protocol signaling, sends the standard SIP protocol signaling to Freeswitch, and feeds back confirmation information to the SIP proxy server through Freeswitch.
As shown in fig. 1, the mobile client is connected with the SIP proxy through a WebSocket protocol, signaling is transmitted in JSON format, and the SIP proxy and the freeswidth communicate by using a SIP protocol.
It should be noted that the mobile client is an application client on the mobile device. .
The invention has the beneficial effects that: the method for realizing the access of the mobile equipment to the FreeWITCH provided by the invention comprises the following steps: after a mobile client accesses an SIP proxy server, the SIP proxy server receives a unified signaling sent by a designated application on the mobile client; the SIP proxy server converts the received unified signaling of the mobile client into standard SIP protocol signaling and sends the standard SIP protocol signaling to the Freeswitch, and feeds back confirmation information to the SIP proxy server through the Freeswitch; and when the SIP proxy server receives the confirmation information without errors, the SIP proxy server converts the received SIP protocol signaling sent by Freeswitch into uniform signaling and sends the uniform signaling to the mobile client. The SIP proxy is used for receiving unified signaling sent by appointed application on the mobile equipment, and then the unified signaling is converted into a standard SIP protocol to be sent to the FreeWITCH, so that various mobile equipment can be accessed into the FreeWITCH in a unified and simple mode, control logic can be freely expanded according to service requirements, the difficulty and the period of client application development are greatly reduced, the cost is saved, and the popularization of the market and the improvement of science and technology are facilitated.
The above examples are merely illustrative of the present invention and should not be construed as limiting the scope of the invention, which is intended to be covered by the claims and any design similar or equivalent to the scope of the invention.
Claims (9)
1. A method for enabling a mobile device to access FreeSWITCH, comprising:
after a mobile client accesses an SIP proxy server, the SIP proxy server receives a unified signaling sent by a designated application on the mobile client;
the SIP proxy server converts the received unified signaling of the mobile client into standard SIP protocol signaling and sends the standard SIP protocol signaling to the Freeswitch, and feeds back confirmation information to the SIP proxy server through the Freeswitch;
and when the SIP proxy server receives the confirmation information without errors, the SIP proxy server converts the received SIP protocol signaling sent by Freeswitch into uniform signaling and sends the uniform signaling to the mobile client.
2. The method of claim 1, wherein the method comprises: the SIP proxy server is a SIP proxy.
3. The method of claim 2, wherein the method comprises: and after the SIP proxy receives the 200OK message replied by FreeWITCH, analyzing the SDP and ICE of the callee in a message body, encapsulating the SDP and ICE into a JSON message and sending the JSON message to the client.
4. The method of claim 2, wherein the method comprises: the mobile client communicates with the SIPP proxy through a WebSocket protocol, and the SIPP proxy communicates with the FreeWITCH through a SIP protocol.
5. The method of claim 2, wherein the method comprises: and the mobile client accesses the SIPP proxy through a WebSocket protocol.
6. The method of claim 2, wherein the method comprises: the signaling of communications between the mobile client and the sip proxy is defined using the JSON format.
7. The method of claim 2, wherein the method comprises: and after receiving the INVITE signaling of the mobile client, the SIP proxy sends INVITE SIP instructions to FreeWITCH, and the message body of the INVITE signaling contains SDP and ICE.
8. The method of claim 1, wherein the method comprises: the mobile client is an application client on the mobile device.
9. A system for enabling access to a FreeWITCH by a mobile device, comprising: the system comprises three components, namely a mobile client, a SIPPXY and a FreeWITCH;
the mobile client is used for accessing a SIP proxy, and the SIP proxy receives a unified signaling sent by a specified application on the mobile client;
the SIP proxy converts the received unified signaling of the mobile client into standard SIP protocol signaling, sends the standard SIP protocol signaling to Freeswitch, and feeds back confirmation information to the SIP proxy server through Freeswitch.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010964306.4A CN112350985A (en) | 2020-09-15 | 2020-09-15 | Method and system for realizing access of mobile equipment to FreeWITCH |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010964306.4A CN112350985A (en) | 2020-09-15 | 2020-09-15 | Method and system for realizing access of mobile equipment to FreeWITCH |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112350985A true CN112350985A (en) | 2021-02-09 |
Family
ID=74357684
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010964306.4A Pending CN112350985A (en) | 2020-09-15 | 2020-09-15 | Method and system for realizing access of mobile equipment to FreeWITCH |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112350985A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020103850A1 (en) * | 2001-01-31 | 2002-08-01 | Moyer Stanley L. | System and method for out-sourcing the functionality of session initiation protocol (SIP) user agents to proxies |
US20140222890A1 (en) * | 2013-02-04 | 2014-08-07 | Oracle International Corporation | Real-time communication signaling gateway |
US20160315938A1 (en) * | 2013-12-19 | 2016-10-27 | Nec Corporation | APPARATUS, SYSTEM AND METHOD FOR webRTC |
CN107612931A (en) * | 2017-10-20 | 2018-01-19 | 苏州科达科技股份有限公司 | Multipoint session method and multipoint session system |
CN110138730A (en) * | 2019-04-02 | 2019-08-16 | 视联动力信息技术股份有限公司 | A kind of method for subscribing of protocol conversion device, device and storage medium |
-
2020
- 2020-09-15 CN CN202010964306.4A patent/CN112350985A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020103850A1 (en) * | 2001-01-31 | 2002-08-01 | Moyer Stanley L. | System and method for out-sourcing the functionality of session initiation protocol (SIP) user agents to proxies |
US20140222890A1 (en) * | 2013-02-04 | 2014-08-07 | Oracle International Corporation | Real-time communication signaling gateway |
US20160315938A1 (en) * | 2013-12-19 | 2016-10-27 | Nec Corporation | APPARATUS, SYSTEM AND METHOD FOR webRTC |
CN107612931A (en) * | 2017-10-20 | 2018-01-19 | 苏州科达科技股份有限公司 | Multipoint session method and multipoint session system |
CN110138730A (en) * | 2019-04-02 | 2019-08-16 | 视联动力信息技术股份有限公司 | A kind of method for subscribing of protocol conversion device, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8447019B2 (en) | Method and system for providing call screening in a packet-switched network | |
US8718238B2 (en) | Method and a system for implementing a multimedia ring back tone service | |
CN103227788B (en) | Realize the method and system that Web page application program and SIP equipment carry out communicating | |
US9392028B2 (en) | Apparatus and method for macro operation involving a plurality of session protocol transactions | |
US9549003B2 (en) | Protocol translations for internet services | |
US20110221858A1 (en) | Method and an apparatus for handling multimedia calls | |
KR101169493B1 (en) | Facilitating early media in a communications system | |
KR20110050439A (en) | Method and system for selective call forwarding based on media attributes in telecommunication network | |
EP2056556A1 (en) | An intercommunication method and a communication system between different networks | |
JP2007318343A (en) | Gateway device and renegotiation method | |
KR100514196B1 (en) | System and method for Controlling network address translation and session | |
US9071690B2 (en) | Call transfer processing in SIP mode | |
WO2007093116A1 (en) | A method and system for realizing the simulating service and the access signaling adaptive entity | |
EP2299670A1 (en) | Method and network unit for realizing customized video service in ims network | |
WO2009121284A1 (en) | A method, system and gateway for supplying intelligent service | |
US8495225B2 (en) | Methods and arrangements for a telecommunications system | |
CN101448046B (en) | Call-establishing method for realizing single-conversation color ring back tone service | |
CN112350985A (en) | Method and system for realizing access of mobile equipment to FreeWITCH | |
US8923796B2 (en) | Expedited call setup | |
EP2200254B1 (en) | Mobile network system and guidance message providing method | |
WO2017000481A1 (en) | Dialing method and apparatus for voice call | |
CN102740387A (en) | Access point switching method and system | |
WO2009135375A1 (en) | Call establishing method for realizing the single dialog color ring service | |
CN101330640B (en) | Method for implementing call retention business of IP multimedia subsystem centralized business | |
WO2008049371A1 (en) | A method and system for transferring service event |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210209 |
|
RJ01 | Rejection of invention patent application after publication |