Hi, I can't find any information over how to implement PushKit or Callkit to call an iOS mobile phone that has the SIP client application closed or in the background. When the application is closed it is obviously that SIP account isn't registered and the FS server no send the call. Has anyone worked with this or know how to implement it? I tried with "<variable name="sip-force-contact" value="NDLB-connectile-dysfunction"/>" option and this temporally solved when the application is alive in background. Thanks,
We have implemented a push system to iOS/Android devices with FreeSWITCH following the next steps: 1. Incomming call to user bob in FreeSWITCH 2. FreeSWITCH park the call 3. Our manager software (xml_curl) sends a push to bob's iOS device 4. Notification arrives to iOS device and the softphone call to a uri sended in the push notification (this uri is the server that previously has parked the call) 5. FreeSWITCH bridge the two legs (before this, manage the "ringing" event) The FreeSWITCH part is developed in a simple script in lua. Best regards 2017-09-07 10:55 GMT+02:00 Jose David Jurado Alonso <josedavid@zennio.com>:
Hi,
I can't find any information over how to implement PushKit or Callkit to call an iOS mobile phone that has the SIP client application closed or in the background.
When the application is closed it is obviously that SIP account isn't registered and the FS server no send the call.
Has anyone worked with this or know how to implement it?
I tried with "<variable name="sip-force-contact" value="NDLB-connectile-dysfunction"/>" option and this temporally solved when the application is alive in background.
Thanks,
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Jose Fco. Irles Durá
Hi Jose, Thank you very much for commenting your experience with this case. I don't find much information about it. Can you explain me a bit more in detail how you parked the call? It will do the LUA script I suppose. If you could show or send me the LUA script I would be of great help ... Thanks, 2017-09-07 17:02 GMT+02:00 Jose Fco. Irles Durá <josefu@gmail.com>:
We have implemented a push system to iOS/Android devices with FreeSWITCH following the next steps:
1. Incomming call to user bob in FreeSWITCH 2. FreeSWITCH park the call 3. Our manager software (xml_curl) sends a push to bob's iOS device 4. Notification arrives to iOS device and the softphone call to a uri sended in the push notification (this uri is the server that previously has parked the call) 5. FreeSWITCH bridge the two legs (before this, manage the "ringing" event)
The FreeSWITCH part is developed in a simple script in lua.
Best regards
2017-09-07 10:55 GMT+02:00 Jose David Jurado Alonso <josedavid@zennio.com
: Hi,
I can't find any information over how to implement PushKit or Callkit to call an iOS mobile phone that has the SIP client application closed or in the background.
When the application is closed it is obviously that SIP account isn't registered and the FS server no send the call.
Has anyone worked with this or know how to implement it?
I tried with "<variable name="sip-force-contact" value="NDLB-connectile-dysfunction"/>" option and this temporally solved when the application is alive in background.
Thanks,
____________________________________________________________
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Jose Fco. Irles Durá
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi jose, I can't send you the code because it's from my customer, but I have this scripts: * [1] Script that handles the initial call: 1. send push with the uuid of the call to ios (with mod_curl to a own web service) 2. wait to a custom event that sends the other script[2] with the function "pop" from freeswitch.EventConsumer api. 3. when event arrives, that events include the uuid of the other leg and the script bridge the two legs. * [2] Script that manages the call sended by the app in the phone 0. The app sends a call with a custom header with the uuid received in the push message. 1. The script handle the call and build a custom event with the uuid received and add to the event its channel uuid. 2. fire the event Really, it is a bit more complex (our logic sends a ringing event and answer event also), but basically this is the idea. Best regards 2017-09-08 10:47 GMT+02:00 Jose David Jurado Alonso <josedavid@zennio.com>:
Hi Jose,
Thank you very much for commenting your experience with this case. I don't find much information about it.
Can you explain me a bit more in detail how you parked the call? It will do the LUA script I suppose.
If you could show or send me the LUA script I would be of great help ...
Thanks,
2017-09-07 17:02 GMT+02:00 Jose Fco. Irles Durá <josefu@gmail.com>:
We have implemented a push system to iOS/Android devices with FreeSWITCH following the next steps:
1. Incomming call to user bob in FreeSWITCH 2. FreeSWITCH park the call 3. Our manager software (xml_curl) sends a push to bob's iOS device 4. Notification arrives to iOS device and the softphone call to a uri sended in the push notification (this uri is the server that previously has parked the call) 5. FreeSWITCH bridge the two legs (before this, manage the "ringing" event)
The FreeSWITCH part is developed in a simple script in lua.
Best regards
2017-09-07 10:55 GMT+02:00 Jose David Jurado Alonso <josedavid@zennio.com>:
Hi,
I can't find any information over how to implement PushKit or Callkit to call an iOS mobile phone that has the SIP client application closed or in the background.
When the application is closed it is obviously that SIP account isn't registered and the FS server no send the call.
Has anyone worked with this or know how to implement it?
I tried with "<variable name="sip-force-contact" value="NDLB-connectile-dysfunction"/>" option and this temporally solved when the application is alive in background.
Thanks,
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Jose Fco. Irles Durá
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Jose Fco. Irles Durá
Hi, we currently try to implement it via a hook. When a new channel is created, we call a lua script which checks, if a notification has to be done and returns after finishing. After that Freeswitch can handle the call as normal. Take a look at lua.conf.xml : <hook event="CHANNEL_CREATE" script="send_ios_push_notification.lua"/> This lua script queries a database to determine, if a push notification has to be sent and does so if necessary. This database is previously filled with data (such as the needed devicetoken) when a ios device registeres to our FS. Currently we are in developing process and I am not sure, if it is a stable solution. Best regards, Thorsten Am 07.09.2017 um 17:02 schrieb Jose Fco. Irles Durá:
We have implemented a push system to iOS/Android devices with FreeSWITCH following the next steps:
1. Incomming call to user bob in FreeSWITCH 2. FreeSWITCH park the call 3. Our manager software (xml_curl) sends a push to bob's iOS device 4. Notification arrives to iOS device and the softphone call to a uri sended in the push notification (this uri is the server that previously has parked the call) 5. FreeSWITCH bridge the two legs (before this, manage the "ringing" event)
The FreeSWITCH part is developed in a simple script in lua.
Best regards
2017-09-07 10:55 GMT+02:00 Jose David Jurado Alonso <josedavid@zennio.com>:
Hi,
I can't find any information over how to implement PushKit or Callkit to call an iOS mobile phone that has the SIP client application closed or in the background.
When the application is closed it is obviously that SIP account isn't registered and the FS server no send the call.
Has anyone worked with this or know how to implement it?
I tried with "<variable name="sip-force-contact" value="NDLB-connectile-dysfunction"/>" option and this temporally solved when the application is alive in background.
Thanks,
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Jose David Jurado Alonso
-
Jose Fco. Irles Durá
-
Thorsten Göllner