<div dir="ltr">Thanks Federico,<div><br></div><div>That's very clear. I will try your suggestions to see if I can get it working. I am using AWS SNS for notifications, so I have the script to do the actual push working on it's own already.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_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">(925) 235-1154</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><img src="https://drive.google.com/a/letscorp.us/uc?export=view&id=0BypXJ2tJXo79c0ZaNXJVUWFlMVk"><br></div><br style="font-family:Helvetica;font-size:medium"><span style="font-family:Helvetica;font-size:medium">*******Confidential Notice: </span><br style="font-family:Helvetica;font-size:medium"><span style="font-family:Helvetica;font-size:medium">This message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this message in error, please delete this message from all computers and contact Orion Systems/LETS Corp immediately by return e-mail and/or telephone at </span><a value="+19255665600" style="color:rgb(17,85,204);font-family:Helvetica;font-size:medium">(925) 566-5600</a><br></div></div></div>
<br><div class="gmail_quote">On Sun, Dec 11, 2016 at 10:41 PM, Federico Cabiddu <span dir="ltr"><<a href="mailto:federico.cabiddu@gmail.com" target="_blank">federico.cabiddu@gmail.com</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">Hi,<div>I didn't mention in my reply, and it wasn't probably clear, that Kamailio won't send the actual push to Apple or Google (for GCM).</div><div>This needs to be implemented separately, either with a self written service or using a web service like the Amazon's one.</div><div>In the example from my presentation the call to </div><div><br></div><div>lua_runstring("do_push([[$hdr(<wbr>X-VxTo)]], [[$tU]], [[$hdr(XVxFrom)]],
[[$fU]], [[$ci]])")<0)</div><div><br></div><div>is actually just an example of where, in the Kamailio script, the logic for sending the push should be placed.</div><div><br></div><div>Regards,</div><div><br></div><div>Federico</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 11, 2016 at 5:46 PM, Federico Cabiddu <span dir="ltr"><<a href="mailto:federico.cabiddu@gmail.com" target="_blank">federico.cabiddu@gmail.com</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">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"><div><div class="m_-6779356868667246151h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-6779356868667246151h5"><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/event<wbr>s/2015-KamailioWorld/Day2/20-F<wbr>ederico.Cabiddu-Kamailio-In-A-<wbr>Mobile-World.pdf</a>) 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/asterisk<wbr>:realtime:kamailio-4.0.x-aster<wbr>isk-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="m_-6779356868667246151m_1788186161716905985HOEnZb"><font color="#888888"><div><div><br clear="all"><div><div class="m_-6779356868667246151m_1788186161716905985m_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></div></div>______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">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/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></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>