<div dir="ltr">Hi Giovanni,<div>see my answers inline<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 10, 2016 at 11:29 AM, gmele <span dir="ltr"><<a href="mailto:giovanni.mele@nagra.com" target="_blank">giovanni.mele@nagra.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">






<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi Federico,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Correct me if I’m wrong, but the INVITE will be sent to all user entries registered in the location table, right? If both the desktop client and the mobile
 phone are registered in this table, but the mobile contact info incorrect (wrong ip/port), how Kamailio will handle the tcp_connect error (we are using TLS btw)?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> </span></p></div></blockquote><div>with the tcpops module you can enable the event route for the socket closure:</div><div><a href="http://www.kamailio.org/docs/modules/devel/modules/tcpops.html#tcpops.f.tcp_enable_closed_event">http://www.kamailio.org/docs/modules/devel/modules/tcpops.html#tcpops.f.tcp_enable_closed_event</a></div><div>In the event route you can then implement the logic to send again a push to trigger a new registration.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Supposing Kamailio handle the connection failure to the mobile phone, in our config, after having sent the INVITE, we do the push notifs and when the REGISTER
 are coming back from the phone, we append the new branch for it, but how will the INVITE be sent to the phone?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> </span></p></div></blockquote><div>ts_append()  will append the new branch(es) and send them. No need to explicitly send the INVITE to the new branches.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Of course, then we have also the case where the location table contains correct contact info, for both mobile and desktop VoIP apps. In this case, the INVITE
 will be sent correctly to both clients, but we will also do a push notif to the phone… how handle this?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u></span></p></div></blockquote><div><br></div><div> If the client registers again while there is already an ongoing branch for the same contact, tsilo won't append a new branch for it, so it is safe to register while there is a stored transaction.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:11pt">Lots of questions, but it is not easy to handle phones and desktop clients….</span><br></p></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Regards<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Giovanni</span></p></div></blockquote><div><br></div><div>Regards,</div><div><br></div><div>Federico</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif"> Federico Cabiddu-3 [via SIP Router] [mailto:<a href="mailto:ml-node%2B" target="_blank">ml-node+</a><a href="http:///user/SendEmail.jtp?type=node&node=149397&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>]
<br>
<b>Sent:</b> vendredi 10 juin 2016 11:15<br>
<b>To:</b> Mele Giovanni<br>
<b>Subject:</b> Re: TM Module t_suspend question<u></u><u></u></span></p><span class="">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi Giovanni,<u></u><u></u></p>
<div>
<p class="MsoNormal">in this case, supposing that the desktop client is registered, you send the INVITE to it, you store the transaction and you send the push WITHOUT suspending the transaction. Then you append to the transaction additional branch(es) as soon
 as the mobile client register.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I hope I understood your scenario.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Federico<u></u><u></u></p>
</div>
</div>
</span><div>
<p class="MsoNormal"><u></u> <u></u></p>
<div><span class="">
<p class="MsoNormal">On Fri, Jun 10, 2016 at 11:09 AM, Mele Giovanni <<a href="http:///user/SendEmail.jtp?type=node&node=149395&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:<u></u><u></u></p>
</span><div>
<div><span class="">
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hello Federico,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Thx for you input. We are effectively using TS_SILO module to store the transactions. The link to
 your presentation is very interesting! Grazie!</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">In your presentation, the multi-device scenario assumes all devices are able to receive push notifs,
 but what happens if you have one device that doesn’t support it, like a Windows based desktop VoIP client?</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Regards</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Giovanni</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
</span><p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif"> sr-users [mailto:<a href="http:///user/SendEmail.jtp?type=node&node=149395&i=1" rel="nofollow" link="external" target="_blank">[hidden
 email]</a>] <b>On Behalf Of </b>Federico Cabiddu<span class=""><br>
<b>Sent:</b> vendredi 10 juin 2016 10:48<br>
<b>To:</b> Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] TM Module t_suspend question</span></span><u></u><u></u></p>
<div>
<div><span class="">
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<div>
<p class="MsoNormal">for this kind of scenarios I'd suggest to use the TSILO module which have been thought for mobile multidevice scenarios:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="http://www.kamailio.org/docs/modules/devel/modules/tsilo.html" rel="nofollow" link="external" target="_blank">http://www.kamailio.org/docs/modules/devel/modules/tsilo.html</a>.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Basically what you can do is: send the INVITE to the desktop phone, store the transaction, send the push to wake up the mobile app, append a branch to the stored transaction as
 soon as the mobile app registers.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">In my last year's presentation at Kamailio World I give an example of TSILO usage:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="http://www.kamailio.org/events/2015-KamailioWorld/Day2/20-Federico.Cabiddu-Kamailio-In-A-Mobile-World.pdf" rel="nofollow" link="external" target="_blank">http://www.kamailio.org/events/2015-KamailioWorld/Day2/20-Federico.Cabiddu-Kamailio-In-A-Mobile-World.pdf</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Federico<u></u><u></u></p>
</div>
</div>
</span><div>
<p class="MsoNormal"> <u></u><u></u></p>
<div><div><div class="h5">
<p class="MsoNormal">On Fri, Jun 10, 2016 at 10:41 AM, gmele <<a href="http:///user/SendEmail.jtp?type=node&node=149395&i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:<u></u><u></u></p>
</div></div><p class="MsoNormal"></p><div><div class="h5">Hello,<br>
<br>
we are using the TM Module* t_suspend *function in our kamailio to suspend<br>
transactions (mainly INVITE requests). We do this as we send some push<br>
notification to the callee that will force it to re-REGISTER. Once we get<br>
the REGISTER, we resume the transaction with a *t_continue()*.<br>
<br>
If the callee never re-REGISTER, the FR Timer will terminate the INVITE<br>
transaction.<br>
<br>
This is working fine for us when the callee has a phone that can receive the<br>
push notification.<br>
<br>
<br>
Now, we want to be able to contact users having multiple devices: phone and<br>
desktop VoIP clients. The problem with current implementation is that if we<br>
wait for the re-REGISTER from the mobile phone, we may never send the INVITE<br>
to the desktop VoIP client if the mobile phone is shutdown.<br>
<br>
So, I'd like to now if it is possible to set a timer to the t_suspend<br>
command which will automatically resume the suspended transaction (without<br>
issuing  an ERROR like the FR timer is doing)? I didn't see such possibility<br>
in the TM module, but is there another way to implement this?<br>
<br>
Hope I was clear enough<br>
<br>
<br>
Regards<br>
<br>
<br>
Giovanni<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://sip-router.1086192.n5.nabble.com/TM-Module-t-suspend-question-tp149391.html" rel="nofollow" link="external" target="_blank">
http://sip-router.1086192.n5.nabble.com/TM-Module-t-suspend-question-tp149391.html</a><br>
Sent from the Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
</div></div><a href="http:///user/SendEmail.jtp?type=node&node=149395&i=3" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="nofollow" link="external" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><u></u><u></u><p></p>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12pt"><span class=""><br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
</span><a href="http:///user/SendEmail.jtp?type=node&node=149395&i=4" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="nofollow" link="external" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12pt"><span class=""><br>
_______________________________________________ <br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list <br>
</span><a href="http:///user/SendEmail.jtp?type=node&node=149395&i=5" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="nofollow" link="external" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
<u></u><u></u></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="1" width="100%" noshade style="color:rgb(204,204,204)" align="center">
</div>
<div>
<div>
<p class="MsoNormal"><b><span style="font-size:9pt;font-family:Tahoma,sans-serif;color:rgb(68,68,68)">If you reply to this email, your message will be added to the discussion below:<u></u><u></u></span></b></p>
</div>
<p class="MsoNormal"><span style="font-size:9pt;font-family:Tahoma,sans-serif;color:rgb(68,68,68)"><a href="http://sip-router.1086192.n5.nabble.com/TM-Module-t-suspend-question-tp149391p149395.html" rel="nofollow" link="external" target="_blank">http://sip-router.1086192.n5.nabble.com/TM-Module-t-suspend-question-tp149391p149395.html</a>
<u></u><u></u></span></p>
</div>
<div style="margin-top:4.8pt">
<p class="MsoNormal" style="line-height:18pt"><span style="font-size:8.5pt;font-family:Tahoma,sans-serif;color:rgb(102,102,102)">To unsubscribe from TM Module t_suspend question,
<a rel="nofollow" link="external">
click here</a>.<br>
<a href="http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" link="external" target="_blank"><span style="font-size:7pt;font-family:"Times New Roman",serif">NAML</span></a>
<u></u><u></u></span></p>
</div>
</div>




        
        
        
<br><hr align="left" width="300">
View this message in context: <a href="http://sip-router.1086192.n5.nabble.com/TM-Module-t-suspend-question-tp149391p149397.html" target="_blank">RE: TM Module t_suspend question</a><div class=""><div class="h5"><br>
Sent from the <a href="http://sip-router.1086192.n5.nabble.com/Users-f3.html" target="_blank">Users mailing list archive</a> at Nabble.com.<br></div></div><br>_______________________________________________<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/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div></div></div>