[Freeswitch-users] Implement PushKit or CallKit to call iOS app closed
Thorsten Göllner
tg-maillistings at level5.de
Fri Sep 8 09:15:32 UTC 2017
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 at 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 at 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 at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>
More information about the FreeSWITCH-users
mailing list