<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>look at tsilo module as well as the presentation by Federico at
Kamailio World Conference about using Kamailio for mobile
networks:<br>
</p>
-
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/events/2016-KamailioWorld/Day2/16-Federico.Cabiddu-Thriving-In-A-Mobile-World.pdf">https://www.kamailio.org/events/2016-KamailioWorld/Day2/16-Federico.Cabiddu-Thriving-In-A-Mobile-World.pdf</a><br>
-
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/events/2015-KamailioWorld/Day2/20-Federico.Cabiddu-Kamailio-In-A-Mobile-World.pdf">https://www.kamailio.org/events/2015-KamailioWorld/Day2/20-Federico.Cabiddu-Kamailio-In-A-Mobile-World.pdf</a><br>
<br>
Cheers,<br>
Daniel<br>
<br>
<br>
<div class="moz-cite-prefix">On 30.11.17 10:44, Arun NV wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAMGgkEa_gCUVd5Dxqnd-ZjqFRhgribpY1ffU0E_gV+Geeitzww@mail.gmail.com">
<div dir="ltr">
<div>Hi,</div>
<div>I am using <b>Kamailio 4.4</b> as the proxy with my <b
class="">Asteri</b><b>sk </b>server. I am trying to develop
a scenario where an extension gets registered on asterisk via
<b>Kamailio </b>when it receives a push notification. This
push notification is sent to the sip extension when a call
towards this extension reaches to the <b>Kamailio</b>.</div>
<div><br>
</div>
<div>For example, suppose there is two SIP extension(<i>
extension 1 and extension 2</i>) registered on <b>Asterisk
</b>via Kamailio. When a call from <b>extension 1</b> reaches
the asterisk, it forwards the <b>INVITE </b>request towards
<b>extension 2</b> via Kamailio.Kamailio will try to forward
it to extension 2. suppose the <b>extension 2</b> is not able
to receive the <b>INVITE </b>request from <b>Kamailio</b>.
When extension two receive a push notification, it will
register on asterisk. </div>
<div>So I need to get the call on <b>extension 2 </b>through
the new registration. </div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>We are trying to simulate registration of extension to the
asterisk when receiving the push notification.</div>
<div>First, we registered <b>extension 2 </b>and disconnected
the network. Then we tried to register the same extension when
a call from <b>extension 1 </b>reaches to Kamailio. This is
a simulation of push-based registration since an extension
that receives the push will attempt to register when an
incoming call is received.</div>
<div><br>
</div>
<div>When asterisk sends <b>INVITE </b>request to Kamailio, it
immediately responded with <b>100 trying</b> provisional
response. This <b>100</b> response by Kamailio towards
asterisk prevents asterisk from re-transmitting the INVITE.</div>
<div>Then Kamailio tried to send and retransmit the packet to <b>extension
2</b>, which does not have network access. This<b> extension
2 </b>was on port number <i>24071</i>. Even after
successful registration(in port <i>59995</i>) of the <b>extension
2</b>, Kamailio continued to transmit the packets to the old
port.</div>
<div><br>
</div>
<div><br>
</div>
<div>After that, we have configured Kamailio in a way that it
won't send an immeadeate provisional reply(<b><i>100 trying</i></b>
) for <b>INVITE </b>request.</div>
<div>Here Kamailio is not immediately sending <b>100 trying</b>
message to <b>Asterisk</b>. This forces Asterisk to
re-transmit. Asterisk was found to retransmit the same
packets. However, even after the successful registration of<b>
extension 2</b>, asterisk continued to send the old invite
to Kamailio not the new one to the latest port.</div>
<div><br>
</div>
<div>This is the problem for me since push relies on the <b>INVITE
</b>reaching the phone at the correct port number. </div>
<div><br>
</div>
<div>So, is there other good approaches to solve this issue?</div>
<div><br>
</div>
<div>One thing I would like to try is modifying the pending <b>INVITE
</b>request towards old registered port with the new port
details when new registration reaches to Kamailio. Can I get
the ongoing requests from Kamailio? </div>
<div>Please suggest a viable solution.</div>
<div>
<div class="gmail_signature">
<div dir="ltr">Thank you,
<div>Arunbalan</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>