Hello Team,

I need to configure apns Push Notification in kamailio kindly support in it. I read from the site https://medium.com/@denys.pozniak/apple-push-notification-with-kamailio-eeca2f8e08d but I don't understand properly because here is missing push.php, I have another push.php and it is able to push notification on ios device but I need to understand how to integrate that push.php with kamailio, I need that when user is offline during call or message then push notification will fire from php script and application will wake up via push notification.


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, March 3, 2020 12:06 PM, master1024 <master1024@protonmail.com> wrote:

Hello Team,
I already read this and attempt to implement that but $sht is creating problem for me. and it is not working for me.


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, March 2, 2020 11:14 PM, M S <shaheryarkh@gmail.com> wrote:

Here is a good starting point for you. Adapt and extend as needed in your setup.

https://medium.com/@denys.pozniak/apple-push-notification-with-kamailio-eeca2f8e08d

Hope this helps.


On Mon, 2 Mar 2020, 12:39 master1024, <master1024@protonmail.com> wrote:
Hello Team,
Kindly explain your 1st step, The IOS app must what what kind of parameters and how many parameters we needed ???


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, February 27, 2020 6:38 PM, M S <shaheryarkh@gmail.com> wrote:

Push notification setup is long and complex but generally has following process. Don't forget to read documentation of relevant kamailio modules for proper use.

1. The iOS app must send push notification parameters in SIP request e.g. SIP Register. In kamailio, when this request is received, you must extract them and save them in some db backend, e.g. MySQL, Redis etc.

2. For each income call, check if destination is offline and push parameters stored in db. If so, then you suspend the INVITE transaction using ASYNC or TSILO module and store transaction information in db.

3. Then using the push parameters stored in db, you send the push notification to device using CURL or HTTP client modules etc.

4. When device receives push notification, it must come online and send SIP register with push parameters. Kamailio again stores push parameters and checks if an INVITE transaction is waiting for the device. Retrieve the transaction, restore it and forward call to the device.

5. If device does not comes online upon receiving push notification and call times out or caller hangs up the call then you need to clean up transaction data stored in db. Similarly, you need to setup mechanism to purge push notification data after some time e.g. 7 or 10 days to ensure device push parameters remain up to date etc.

The iOS apps now need to implement CallKit for push notification capable calls, that adds some serious difficultly in processing such calls since they show fake call screen before the actual call is received by app and if callee is too quick to respond to call (answer or reject) then kamailio will never know and still send the real call (step 4 above) later on, so you will need to manage that too.

Hope this helps.


On Thu, 27 Feb 2020, 13:25 master1024, <master1024@protonmail.com> wrote:



Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, February 27, 2020 5:52 PM, master1024 <master1024@protonmail.com> wrote:

Hello Team,

I need to configure apns sip push notification in kamailio, I have read it many sites but I don't get proper understanding I read it is done with the help of tsilo module kindly support in it.


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, February 27, 2020 11:10 AM, master1024 <master1024@protonmail.com> wrote:

Hello,

I need to configure apns push notification in kamailio kindly help. I have a file push.php It is capable to push notification on ios device know i want to implement in kamailio when the user is offline then push notification fire kindly help in this.

Think Out of the Box


Sent with ProtonMail Secure Email.



_______________________________________________
Kamailio (SER) - Users Mailing List