<div dir="auto">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.<div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">3. Then using the push parameters stored in db, you send the push notification to device using CURL or HTTP client modules etc.</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">Hope this helps.<br><div dir="auto"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 27 Feb 2020, 13:25 master1024, <<a href="mailto:master1024@protonmail.com">master1024@protonmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div><br></div><div><div><br></div><div>Sent with <a href="https://protonmail.com" target="_blank" rel="noreferrer">ProtonMail</a> Secure Email.<br></div></div><div><br></div><div>‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br></div><div> On Thursday, February 27, 2020 5:52 PM, master1024 <<a href="mailto:master1024@protonmail.com" target="_blank" rel="noreferrer">master1024@protonmail.com</a>> wrote:<br></div><div> <br></div><blockquote type="cite"><div>Hello Team,<br></div><div><br></div><div>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.<br></div><div><br></div><div><div><br></div><div>Sent with <a href="https://protonmail.com" target="_blank" rel="noreferrer">ProtonMail</a> Secure Email.<br></div></div><div><br></div><div>‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br></div><div>On Thursday, February 27, 2020 11:10 AM, master1024 <<a href="mailto:master1024@protonmail.com" target="_blank" rel="noreferrer">master1024@protonmail.com</a>> wrote:<br></div><div><br></div><blockquote type="cite"><div>Hello,<br></div><div><br></div><div>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. <br></div><div><br></div><div>Think Out of the Box<br></div><div><br></div><div><div><br></div><div>Sent with <a href="https://protonmail.com" target="_blank" rel="noreferrer">ProtonMail</a> Secure Email.<br></div></div><div><br></div></blockquote><div><br></div></blockquote><div><br></div>_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>