CN109495854B - Method for realizing mobile terminal App offline SIP call function based on Freeswitch - Google Patents

Method for realizing mobile terminal App offline SIP call function based on Freeswitch Download PDF

Info

Publication number
CN109495854B
CN109495854B CN201811409547.1A CN201811409547A CN109495854B CN 109495854 B CN109495854 B CN 109495854B CN 201811409547 A CN201811409547 A CN 201811409547A CN 109495854 B CN109495854 B CN 109495854B
Authority
CN
China
Prior art keywords
app
freeswitch
vsip
call
account
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
CN201811409547.1A
Other languages
Chinese (zh)
Other versions
CN109495854A (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.)
Ringslink Xiamen Network Communication Technologies Co ltd
Original Assignee
Ringslink Xiamen Network Communication Technologies 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 Ringslink Xiamen Network Communication Technologies Co ltd filed Critical Ringslink Xiamen Network Communication Technologies Co ltd
Priority to CN201811409547.1A priority Critical patent/CN109495854B/en
Publication of CN109495854A publication Critical patent/CN109495854A/en
Application granted granted Critical
Publication of CN109495854B publication Critical patent/CN109495854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/16Communication-related supplementary services, e.g. call-transfer or call-hold

Landscapes

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

Abstract

A method for realizing App off-line SIP calling function of a mobile terminal based on Freeswitch adds a VSIP program on Freeswitch, the introduction of VSIP is to create a virtual account, all calls of non-logged App accounts are called to the VSIP program, and after the App accounts are logged in a preset time, the calls are transferred to the App accounts through the VSIP, thereby realizing off-line calling in the preset time; the invention skillfully utilizes the Freeswitch external module to realize the offline push function of the incoming call on the premise of not changing the internal logic of the Freeswitch. The invention achieves the purposes that when a user App is killed, the user can receive the related offline push of the incoming call through a logic algorithm realized in the module, and the user can successfully receive the incoming call after clicking the App in the preset time.

Description

Method for realizing mobile terminal App offline SIP call function based on Freeswitch
Technical Field
The invention relates to the technical field of communication, in particular to a method for realizing an App offline SIP call function of a mobile terminal based on Freeswitch.
Background
The SIP protocol is a general network audio and video communication protocol widely used at home and abroad at present.
Freeswitch is the current mainstream software SIP PBX, namely a server, and provides an SIP account for a client to register, and an SIP App installed on a mobile phone is one of the clients. The Freeswitch used in the market at present has no off-line calling function, and the App cannot receive an incoming call after being killed after registering an SIP account provided by the Freeswitch. After a mobile phone App of a user registers an SIP account number provided by Freeswitch, most people are used to push (kill) the App because the power consumption of the App resident in a background is large, and the system can kill the App within a certain time for saving energy even if the user does not push the App manually. And at the moment, if a person calls the user, the user cannot call the user (because App is killed), so that the communication is inconvenient.
Disclosure of Invention
The invention aims to provide a method for realizing the App offline SIP calling function of a mobile terminal based on Freeswitch, which is used for assisting the Freeswitch in receiving offline push related to an incoming call and enabling a user to successfully receive the incoming call after clicking on the App.
In order to achieve the above purpose, the solution of the invention is: a method for realizing App offline SIP call function of a mobile terminal based on Freeswitch is characterized in that: a VSIP program is added to a FreeSwitch, a virtual account is created by introducing the VSIP, all calls of App accounts which are not logged in are called to the VSIP program, and after the App accounts are logged in the preset time, the calls are transferred to the App accounts through the VSIP, so that offline calling in the preset time is realized.
Further, the method for implementing the App offline SIP call function of the mobile terminal based on the FreeSwitch specifically comprises the following steps:
the method comprises the following steps: app A calls App B which is not on-line, when FreeSwitch detects that App B is off-line, the call is transferred to VSIP, VSIP is enabled to keep the call not disconnected within preset time, VSIP informs a cloud platform that there is one path of App B off-line telephone, the cloud platform informs a push server, and the push server pushes a message to App B to inform App A of the call;
step two: if App B is online within the preset time of the first step and the login account number is successful, the FreeSwitch informs the VSIP that App B is successfully logged in;
step three: VSIP calls App B, App B answers and connects the call, and VSIP connects the call of App A at the same time;
step four: the VSIP initiates transfer, and transfers the incoming call of App A to App B, so that normal conversation between App A and App B is realized;
step five: if the preset time of the step one is exceeded, the Freeswitch disconnects the call.
The method for realizing the App offline SIP calling function of the mobile terminal based on Freeswitch comprises the following specific steps:
the method comprises the following steps: when the mobile phone App B is not opened, the FreeSwitch detects that the App B is offline, the account 1001 of the mobile phone App A sends an INVITE 1 request to the FreeSwitch, and after the FreeSwitch receives the INVITE request, the FreeSwitch replies 100Trying information to the account 1001 of the mobile phone App A and sends an INVITE 2 to the virtual account 10001 of the VSIP; meanwhile, the Freeswitch replies 180Ringing 1 to the account 1001 of the A mobile phone App A, and the 180Ringing 1 is kept not to be disconnected within a preset time;
when receiving the INVITE 2, the virtual account 10001 of the VSIP replies 180Ringing 2 to the FreeSwitch, and simultaneously sends a call push message X to the push server of the B-phone, where the call push message X indicates that the account 1002 of the B-phone App B receives a call;
step two: if App B receives the push information X of the push server and then logs in within the preset time of the first step, the FreeSwitch receives a register request sent by App B of the mobile phone B, and when the FreeSwitch receives the register request, the VSIP program B informs that App B of the mobile phone has already logged in;
step three: at the moment, the VSIP program sends an INVITE 3 request to the Freeswitch, the Freeswitch replies 100Trying information to the VSIP program, and meanwhile the Freeswitch further sends an INVITE 4 request to an account 1002 of App B of the B mobile phone; meanwhile, the account 1002 of the App B of the mobile phone B replies 180Ringing 3 information to the Freeswitch, and the Freeswitch further replies 180Ringing 4 information to the VSIP program after receiving the 180Ringing 3 information;
step four: meanwhile, the account 1002 of the B mobile phone App B sends 200 OK response information to the FreeSwitch at this time, the FreeSwitch sends ACK information to the account 1002 of the B mobile phone App B, the FreeSwitch sends 200 OK to the VSIP program to make a call of the account 1002 of the B mobile phone App B, the VSIP further sends 200 OK to the FreeSwitch to make a call of the account 1001 of the a mobile phone App a, after the two calls are made by using the VSIP program, when two calls are normal, the VSIP sends one REFER information to the FreeSwitch to notify the FreeSwitch to transfer the call with App a to the App B, and because the two calls are normal, the FreeSwitch sends 202 accepted to the VSIP, so that the 1001 and 1002 normal calls;
step five: if the user does not log in the account 1002 of the mobile phone App B after the preset time of the step one is exceeded, the Freeswitch receives the CANCEL information of the mobile phone App a, and the conversation of the App a is disconnected.
Further, in the first step, after receiving the INVITE 2, the virtual account 10001 of the VSIP replies 180Ringing 2 to the FreeSwitch, and simultaneously sends the call push information X to the cloud platform of the B-phone, and the cloud platform further pushes the call push information X to the push server.
The invention skillfully utilizes the Freeswitch external module to realize the offline push function of the incoming call on the premise of not changing the internal logic of the Freeswitch. The invention achieves the purposes that when a user App is killed, the user can receive the related offline push of the incoming call through a logic algorithm realized in the module, and the user can successfully receive the incoming call after clicking the App in the preset time. The scheme is suitable for but not limited to Freeswitch, and open source SIP PBX such as FreePBX, Asterisk and the like can also be realized by the patented scheme.
Drawings
FIG. 1 is a schematic flow chart of an embodiment of the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and the specific embodiments.
Example (b):
a method for realizing App offline SIP call function of a mobile terminal based on Freeswitch is characterized in that: a VSIP program is added to a FreeSwitch, a virtual account is created by introducing the VSIP, all calls of App accounts which are not logged in are called to the VSIP program, and after the App accounts are logged in the preset time, the calls are transferred to the App accounts through the VSIP, so that offline calling in the preset time is realized.
As shown in fig. 1, the method for implementing the App offline SIP call function of the mobile terminal based on the FreeSwitch specifically includes the following steps:
the method comprises the following steps: when the mobile phone App B is not opened, the FreeSwitch detects that the App B is offline, the account 1001 of the mobile phone App A sends an INVITE 1 request to the FreeSwitch, and after the FreeSwitch receives the INVITE request, the FreeSwitch replies 100Trying information to the account 1001 of the mobile phone App A and sends an INVITE 2 to the virtual account 10001 of the VSIP; meanwhile, the Freeswitch replies 180Ringing 1 to the account 1001 of the A mobile phone App A, and the 180Ringing 1 is kept not to be disconnected within a preset time;
when receiving the INVITE 2, the virtual account 10001 of the VSIP replies 180Ringing 2 to the FreeSwitch, and simultaneously sends a call push message X to the push server of the B-phone, where the call push message X indicates that the account 1002 of the B-phone App B receives a call;
step two: if App B receives the push information X of the push server and then logs in within the preset time of the first step, the FreeSwitch receives a register request sent by App B of the mobile phone B, and when the FreeSwitch receives the register request, the VSIP program B informs that App B of the mobile phone has already logged in;
step three: at the moment, the VSIP program sends an INVITE 3 request to the Freeswitch, the Freeswitch replies 100Trying information to the VSIP program, and meanwhile the Freeswitch further sends an INVITE 4 request to an account 1002 of App B of the B mobile phone; meanwhile, the account 1002 of the App B of the mobile phone B replies 180Ringing 3 information to the Freeswitch, and the Freeswitch further replies 180Ringing 4 information to the VSIP program after receiving the 180Ringing 3 information;
step four: meanwhile, the account 1002 of the B mobile phone App B sends 200 OK response information to the FreeSwitch at this time, the FreeSwitch sends ACK information to the account 1002 of the B mobile phone App B, the FreeSwitch sends 200 OK to the VSIP program to make a call of the account 1002 of the B mobile phone App B, the VSIP further sends 200 OK to the FreeSwitch to make a call of the account 1001 of the a mobile phone App a, after the two calls are made by using the VSIP program, when two calls are normal, the VSIP sends one REFER information to the FreeSwitch to notify the FreeSwitch to transfer the call with App a to the App B, and because the two calls are normal, the FreeSwitch sends 202 accepted to the VSIP, so that the 1001 and 1002 normal calls;
step five: if the user does not log in the account 1002 of the mobile phone App B after the preset time of the step one is exceeded, the Freeswitch receives the CANCEL information of the mobile phone App a, and the conversation of the App a is disconnected.
Further, in the first step, after receiving the INVITE 2, the virtual account 10001 of the VSIP replies 180Ringing 2 to the FreeSwitch, and simultaneously sends the call push information X to the cloud platform of the B-phone, and the cloud platform further pushes the call push information X to the push server.
The invention skillfully utilizes the Freeswitch external module to realize the offline push function of the incoming call on the premise of not changing the internal logic of the Freeswitch. The invention achieves the purposes that when a user App is killed, the user can receive the related offline push of the incoming call through a logic algorithm realized in the module, and the user can successfully receive the incoming call after clicking the App in preset time.
The above description is only an embodiment of the present invention, and is not intended to limit the design of the present invention, and all equivalent changes made according to the design key of the present invention fall within the protection scope of the present invention.

Claims (3)

1. A method for realizing App offline SIP call function of a mobile terminal based on Freeswitch is characterized in that: adding a VSIP program on a FreeSwitch, wherein VSIP is introduced to create a virtual account, all calls of App accounts which are not logged in are called to the VSIP program, and after the App accounts are logged in the preset time, the calls are transferred to the App accounts through the VSIP, so that offline calling in the preset time is realized;
the specific method comprises the following steps:
the method comprises the following steps: app A calls App B which is not on-line, when FreeSwitch detects that App B is off-line, the call is transferred to VSIP, VSIP is enabled to keep the call not disconnected within preset time, VSIP informs a cloud platform that there is one path of App B off-line telephone, the cloud platform informs a push server, and the push server pushes a message to App B to inform App A of the call;
step two: if App B is online within the preset time of the first step and the login account number is successful, the FreeSwitch informs the VSIP that App B is successfully logged in;
step three: VSIP calls App B, App B answers and connects the call, and VSIP connects the call of App A at the same time;
step four: the VSIP initiates transfer, and transfers the incoming call of App A to App B, so that normal conversation between App A and App B is realized;
step five: if the preset time of the step one is exceeded, the Freeswitch disconnects the call.
2. The method for implementing the App offline SIP call function of the mobile terminal based on FreeSwitch according to claim 1, comprising the following steps:
the method comprises the following steps: when the mobile phone App B is not opened, the FreeSwitch detects that the App B is offline, the account 1001 of the mobile phone App A sends an INVITE 1 request to the FreeSwitch, and after the FreeSwitch receives the INVITE request, the FreeSwitch replies 100Trying information to the account 1001 of the mobile phone App A and sends an INVITE 2 to the virtual account 10001 of the VSIP; meanwhile, the Freeswitch replies 180Ringing 1 to the account 1001 of the A mobile phone App A, and the 180Ringing 1 is kept not to be disconnected within a preset time;
when receiving the INVITE 2, the virtual account 10001 of the VSIP replies 180Ringing 2 to the FreeSwitch, and simultaneously sends a call push message X to the push server of the B-phone, where the call push message X indicates that the account 1002 of the B-phone App B receives a call;
step two: if App B receives the push information X of the push server and then logs in within the preset time of the first step, the FreeSwitch receives a register request sent by App B of the mobile phone B, and when the FreeSwitch receives the register request, the VSIP program B informs that App B of the mobile phone has already logged in;
step three: at the moment, the VSIP program sends an INVITE 3 request to the Freeswitch, the Freeswitch replies 100Trying information to the VSIP program, and meanwhile the Freeswitch further sends an INVITE 4 request to an account 1002 of App B of the B mobile phone; further, the account 1002 of App B of the mobile phone B replies 180Ringing 3 information to the FreeSwitch, and the FreeSwitch further replies 180Ringing 4 information to the VSIP program when receiving the 180Ringing 3 information;
step four: meanwhile, the account 1002 of the B mobile phone App B sends 200 OK response information to the FreeSwitch at this time, the FreeSwitch sends ACK information to the account 1002 of the B mobile phone App B, the FreeSwitch sends 200 OK to the VSIP program to make a call of the account 1002 of the B mobile phone App B, the VSIP further sends 200 OK to the FreeSwitch to make a call of the account 1001 of the a mobile phone App a, after the two calls are made by using the VSIP program, when two calls are normal, the VSIP sends one REFER information to the FreeSwitch to notify the FreeSwitch to transfer the call with App a to the App B, and because the two calls are normal, the FreeSwitch sends 202 accepted to the VSIP, so that the 1001 and 1002 normal calls;
step five: if the user does not log in the account 1002 of the mobile phone App B after the preset time of the step one is exceeded, the Freeswitch receives the CANCEL information of the mobile phone App a, and the conversation of the App a is disconnected.
3. The method for implementing the App offline SIP call function of the mobile terminal based on FreeSwitch according to claim 2, wherein: in the first step, the virtual account 10001 of the VSIP replies 180Ringing 2 to the FreeSwitch after receiving the INVITE 2, and simultaneously sends the call push information X to the cloud platform of the B-phone, and the cloud platform further pushes the call push information X to the push server.
CN201811409547.1A 2018-11-23 2018-11-23 Method for realizing mobile terminal App offline SIP call function based on Freeswitch Active CN109495854B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811409547.1A CN109495854B (en) 2018-11-23 2018-11-23 Method for realizing mobile terminal App offline SIP call function based on Freeswitch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811409547.1A CN109495854B (en) 2018-11-23 2018-11-23 Method for realizing mobile terminal App offline SIP call function based on Freeswitch

Publications (2)

Publication Number Publication Date
CN109495854A CN109495854A (en) 2019-03-19
CN109495854B true CN109495854B (en) 2021-12-28

Family

ID=65696525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811409547.1A Active CN109495854B (en) 2018-11-23 2018-11-23 Method for realizing mobile terminal App offline SIP call function based on Freeswitch

Country Status (1)

Country Link
CN (1) CN109495854B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110012366B (en) * 2019-04-15 2021-09-17 福建科立讯通信有限公司 Wide-narrow band converged communication system and method used under public and private network IP interconnection
CN111010374B (en) * 2019-11-22 2022-04-19 睿云联(厦门)网络通讯技术有限公司 APP offline call implementation method, device, equipment and medium
CN113286380B (en) * 2021-07-20 2021-09-28 四川优家库信息技术有限公司 Communication establishing method, communication method and system based on middleware and Freeswitch

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101223730A (en) * 2005-07-15 2008-07-16 坦德伯格电信公司 Method for instant scheduling of conference calls
CN102378149A (en) * 2011-11-23 2012-03-14 中山大学 IMS (IP Multimedia Subsystem) system mobility management method based on IPv6
CN106998330A (en) * 2017-03-31 2017-08-01 北京奇艺世纪科技有限公司 The method of calling and device of a kind of networking telephone
CN107333013A (en) * 2017-06-30 2017-11-07 北京金山安全软件有限公司 Session establishing method, device, electronic equipment and storage medium
CN108111564A (en) * 2016-11-25 2018-06-01 深圳联友科技有限公司 A kind of realization method and system of iOS networking telephones backstage ring

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10104235B2 (en) * 2015-04-16 2018-10-16 Algoblu Holdings Limited Forwarding roaming call to VoIP system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101223730A (en) * 2005-07-15 2008-07-16 坦德伯格电信公司 Method for instant scheduling of conference calls
CN102378149A (en) * 2011-11-23 2012-03-14 中山大学 IMS (IP Multimedia Subsystem) system mobility management method based on IPv6
CN108111564A (en) * 2016-11-25 2018-06-01 深圳联友科技有限公司 A kind of realization method and system of iOS networking telephones backstage ring
CN106998330A (en) * 2017-03-31 2017-08-01 北京奇艺世纪科技有限公司 The method of calling and device of a kind of networking telephone
CN107333013A (en) * 2017-06-30 2017-11-07 北京金山安全软件有限公司 Session establishing method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109495854A (en) 2019-03-19

Similar Documents

Publication Publication Date Title
CN104813655B (en) The method of preview caller in videoconference session
US8358975B2 (en) Signaling over cellular networks to reduce the Wi-Fi energy consumption of mobile devices
AU774584B2 (en) A method and system for releasing a voice response unit from a protocol session
CN109495854B (en) Method for realizing mobile terminal App offline SIP call function based on Freeswitch
EP2847979B1 (en) Multiple versions of call invites
US20070183407A1 (en) Auxiliary bridging device supporting multiple pathway telephony bridging
CN105656847A (en) SIP (Session Initiation Protocol)/MQTT (Message Queuing Telemetry Transport) protocol conversion gateway system and control method thereof for mobile device
TW201616848A (en) Communication method of hiding privacy and system thereof
CN104579710B (en) The asynchronous conference system of fragmentation
AP2002002537A0 (en) Communication method and system.
CN104580231A (en) Fragmentation asynchronous conference system
CN103024687A (en) Method and equipment for establishing instant messaging
CN103618747B (en) A kind of method and system realizing SIP information service
CN102377887B (en) A kind of method and system realizing the Internet telephone calls and set up
CN103684970B (en) The transmission method of media data flow and thin terminal
CN104579715A (en) High-communication-quality teleconference system and method
WO2013037244A1 (en) Call method and mobile terminal in voice communication
CN102185828B (en) Method for binding and controlling personal computer (PC) software and session initiation protocol user agent (SIP UA)
CN105208233A (en) Network telephone system capable of prompting incoming call notification and realization method thereof
CN106161817B (en) Communication method and communication system based on VOIP platform
JP2013042490A (en) Call connecting method and system based on mvoip
US9900352B2 (en) SIP network border element session augmentation
CN103428208A (en) Distributed session initiation protocol (SIP) redirection server and construction method thereof
CN114827099B (en) Internally-connected call method and system based on VoIP communication
CN103379234B (en) The communication means and system of network voice terminal

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