<div dir="ltr">Hi Benjamin,<div>if you don't plan to support multiple devices per account just the t_suspend/t_continue pair should be enough to support push notification.</div><div>This being said you can easily integrate the example in my presentation in the Kamailio's configuration given in the Asterisk/Kamailio integration page.</div><div>For the INVITE you have to modify the route[LOCATION] and, instead of performing the lookup, suspend the transaction and send the push. In this way you'll also send the push for every INVITE, regardless of the registration state. You have then to modify the REGISTRAR route after calling save() to resume the transaction or to append new branches (if you use tsilo). I think that the snippets from my example should be enough.</div><div>Hope this helps.</div><div><br></div><div>Regards,</div><div><br></div><div>Federico <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 7, 2016 at 2:32 AM, Benjamin Fitzgerald <span dir="ltr"><<a href="mailto:ben@letscorp.us" target="_blank">ben@letscorp.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello, my goal is to address iOS 10's removal of periodic TCP connections in iOS apps with their replacement PushKit, a push-based alternative all VoIP apps should implement.<div><br></div><div>In order to have iOS apps receive SIP calls in the background, I believe I need to use tsilo to suspend the INVITE transaction send a push notification to the device. I have been following the presentation here (<a href="http://www.kamailio.org/events/2015-KamailioWorld/Day2/20-Federico.Cabiddu-Kamailio-In-A-Mobile-World.pdf" target="_blank">http://www.kamailio.org/<wbr>events/2015-KamailioWorld/<wbr>Day2/20-Federico.Cabiddu-<wbr>Kamailio-In-A-Mobile-World.pdf</a><wbr>) however I am not sure how to integrate it with Asterisk (<a href="http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb" target="_blank">http://kb.asipto.com/<wbr>asterisk:realtime:kamailio-4.<wbr>0.x-asterisk-11.3.0-astdb</a>). </div><div><br></div><div>My questions can be summarized below:</div><div><br></div><div>(1) What changes need to be made from Federico's presentation to use with the Kamailio/Asterisk integration?</div><div><br></div><div>(2) How can I modify the config to send push notifications for EVERY invite? This is to address the scenario where a device goes offline before the SIP registration expires and a call is received within that window. iOS is very aggressive about killing background applications so it's likely as soon as user leaves the VoIP app, the device will become unreachable.</div><div><br></div><div>Thanks for any help.</div><span class="HOEnZb"><font color="#888888"><div><div><br clear="all"><div><div class="m_4621641919036309193gmail-m_6326357891794215873gmail_signature"><div dir="ltr"><div style="font-family:helvetica;font-size:medium">Benjamin Fitzgerald</div><div style="font-family:helvetica;font-size:medium">LETS Corporation</div><div style="font-family:helvetica;font-size:medium"><a href="tel:%28925%29%20235-1154" value="+19252351154" target="_blank">(925) 235-1154</a></div><div style="font-family:helvetica;font-size:medium"><span style="text-align:-webkit-auto"><a href="mailto:ben@letscorp.us" style="color:rgb(17,85,204)" target="_blank">ben@letscorp.us</a></span></div><div style="font-family:helvetica;font-size:medium"><br></div><div style="font-family:helvetica;font-size:medium"><br></div></div></div></div>
</div></div></font></span></div>
<br>______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br></div>