<div dir="ltr">Hello,<div><br></div><div>the responses to a request are routed using Via headers. The Contact is to be used for requests within the dialog.</div><div><br></div><div>I am not aware of any method defined by specs to update the Via path for ongoing transactions -- no traveling with limited available time and I haven't looked recently at new specs to actually comment more precisely.</div><div><br></div><div>A solution could be to send a CANCEL to previous transaction and then initiate a new INVITE as the device is moving from one IP to another.</div><div><br></div><div>Cheers,<br>Daniel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 25, 2017 at 10:08 AM, Jayesh Nambiar <span dir="ltr"><<a href="mailto:jayesh1017@gmail.com" target="_blank">jayesh1017@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">Hello Alex,<div>I managed to send the UPDATE method from my endpoint but still the kamailio is not updating the new contact. The UPDATE method is simply loose routed from caller-callee when a network change is detected on the client. Though the UPDATE is relayed and responded back correctly; the subsequent response still goes to the initial contact address.</div><div>Also when the dialog is established; kamailio correctly updates the contact on Re-Invite but it does not on an UPDATE method.</div><div><br></div><div>Anything particular to be done in this case. Thanks.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>- Jayesh</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 24, 2017 at 3:53 PM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jayesh,<br>
<br>
This is the exact purpose of UPDATE - to update the dialog remote target before the dialog is established.<br>
<br>
But of course, properly implementing and following it is up to the endpoints.<br>
<br>
-- Alex<br>
<div><div class="m_6047643544646628224h5"><br>
> On May 24, 2017, at 5:46 AM, Jayesh Nambiar <<a href="mailto:jayesh1017@gmail.com" target="_blank">jayesh1017@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
> In a user-user based calling on mobile apps, when the call is connected and the user moves from a Wifi to Mobile data (network change); the device sends a Re-Invite with new contact information and subsequent messages go to appropriate changed contact address.<br>
> But when the dialog is in say ringing state; and the caller moves from one network to another; what would be an appropriate SIP method to trigger the contact update. My problem is generating a Re-INVITE or an UPDATE before the call is connected is very difficult.<br>
> What I tried is sending an in-dialog INFO message with new contact address; which gets relayed to the called party and the response for INFO is also properly received on the new contact address. But the subsequent response of the INVITE like a 486 or 200 goes to the original contact only.<br>
> What would be the best way to update the contact address of a client if I'm maintaining all the dialogs in kamailio.<br>
><br>
> Thanks,<br>
><br>
> - Jayesh<br>
</div></div>> ______________________________<wbr>_________________<br>
> Kamailio (SER) - Users Mailing List<br>
> <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
> <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></div><div><a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></div></div></div></div></div>
</div>