<div dir="ltr"><div>Thank you all for the replies. <br><br><br></div><div>I'm already utilizing a record-route header in the initial Invite before any re-invites occur.<br><br></div><div>Is the preferred method to also include a record-route header in the 200 OK that is given in response to the re-invite?<br><br></div><div>Thank you, <br></div><div>Jack Davis<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 3, 2017 at 2:14 PM, Emmanuel BUU <span dir="ltr"><<a href="mailto:emmanuel.buu@ives.fr" target="_blank">emmanuel.buu@ives.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">For a SIP proxy, the preferred method is indeed to add a Record-Route<br>
<br>
In the script, add record_route(); instruction.<br>
<br>
Emmanuel<br>
IVèS<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
Le 2017-03-02 à 20:03, Robert Johnson a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I seem to recall reading something stating that you shouldn't modify the contact header - But, I can't find the text.<br>
<br>
Might suggest adding a Record-Route header instead of re-writing the contact header?<br>
<br>
I'm curious as to what the list has to say about this question, I've considered doing the same thing.<br>
<br>
On 03/02/2017 04:53 PM, Jack Davis wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Greetings,<br>
<br>
I have a general question about the usage of SIP contact headers in the<br>
context of using Kamailio as a SIP proxy.<br>
<br>
<br>
______________________________<wbr>__<br>
<br>
[  A  ] --> [  Kamailio  B ]  ---> [  C ]<br>
<br>
Node A originates a SIP invite, containing a valid via header and URI<br>
while setting the contact address to a user@itself and delivers it to<br>
Kamailio B which is acting as a SIP proxy.<br>
<br>
Kamailio B then uses dispatcher routing to direct the Invite to node C,<br>
adding a via line with its own information as well as a record-route<br>
header with its own proxy information but retaining the same contact<br>
address from A.<br>
<br>
Node C establishes the call and then sends a re-invite to the Kamailio B<br>
proxy which is in turn sent to Node A. Node A responds with a 200 OK<br>
<br>
The problem arises when Node C tries to send an Ack in response to this<br>
200 OK. The ack is being sent to the Contact address, rather than the<br>
routing already established in the initial dialog.<br>
<br>
______________________________<wbr>__<br>
<br>
My question is: should kamailio be rewriting this contact address with<br>
its own? Is that the best practice? My understanding is that the contact<br>
header is more so related to future requests within the same dialog ONLY<br>
when a record-route is not used.<br>
<br>
I would appreciate any clarification on the RFC or best practices in<br>
this scenario.<br>
<br>
Thank you,<br>
Jack Davis<br>
<br>
<br>
______________________________<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>
<br>
______________________________<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>
</blockquote>
<br>
<br>
______________________________<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>
</div></div></blockquote></div><br></div>