<div><div dir="auto">Hi Alex,</div><div dir="auto"><br></div><div dir="auto">You’ll need to call msg_apply_changes before saving. Also, as I recall, add_path will only work if relaying so you’ll need to add the header manually. Something like this:</div><div dir="auto"><br></div><div dir="auto">...</div><div dir="auto"><span style="white-space:pre-wrap;background-color:rgb(255,255,255)">append_hf("Path:<sip:$Ri:$Rp;received=sip:$si:$sp;lr>\r\n");</span><br></div><div dir="auto"><span style="white-space:pre-wrap;background-color:rgb(255,255,255)"><br></span></div><div dir="auto"><span style="white-space:pre-wrap;background-color:rgb(255,255,255)">msg_apply_changes();</span></div><div dir="auto"><span style="white-space:pre-wrap;background-color:rgb(255,255,255)">...</span></div><div dir="auto"><span style="white-space:pre-wrap;background-color:rgb(255,255,255)"><br></span></div><div dir="auto"><span style="white-space:pre-wrap;background-color:rgb(255,255,255)"><br></span></div><div dir="auto"><span style="white-space:pre-wrap;background-color:rgb(255,255,255)">Let me know if it works for you.</span></div><div dir="auto"><pre style="white-space:pre-wrap;background-color:rgb(255,255,255)"><span style="font-family:-apple-system,HelveticaNeue;background-color:rgb(253,253,253)">Cheers,</span></pre></div><div dir="auto">Charles</div><div dir="auto"><br></div><br><div class="gmail_quote"><div>On Thu, 1 Feb 2018 at 07:52, Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Charles,<br>
<br>
It does not appear that Path is being replicated, either.<br>
<br>
I am running add_path() prior to save()ing to usrloc, but on both hosts,<br>
I see:<br>
<br>
# kamcmd -s /tmp/kamailio_ctl ul.dump | grep -i path<br>
Path: [not set]<br>
Path: [not set]<br>
Path: [not set]<br>
Path: [not set]<br>
Path: [not set]<br>
Path: [not set]<br>
Path: [not set]<br>
Path: [not set]<br>
<br>
This applies to both local registrations and replicated ones.<br>
<br>
This is 5.0, though. Haven't tried 5.1 yet.<br>
<br>
-- Alex<br>
<br>
On Wed, Jan 31, 2018 at 04:53:09AM +0000, Charles Chance wrote:<br>
> Hi Alex,<br>
><br>
> Which version are you running? There were a few related patches recently -<br>
> the one you mentioned will correctly set the server_id, although on its own<br>
> will probably not help in the correct routing of requests. For that, I<br>
> would normally make use of Path.<br>
><br>
> The socket should indeed be set for locally received registrations - if not<br>
> then there is something wrong.<br>
><br>
> Cheers,<br>
><br>
> Charles<br>
><br>
><br>
> On 31 January 2018 at 03:32, Alex Balashov <<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>><br>
> wrote:<br>
><br>
> > Ah, I guess this is the very problem that this relatively bleeding-edge<br>
> > patch by Charles is meant to solve:<br>
> ><br>
> > <a href="https://github.com/kamailio/kamailio/commit/684059ca5bb76e2006a9560ac1efa8" rel="noreferrer" target="_blank">https://github.com/kamailio/kamailio/commit/684059ca5bb76e2006a9560ac1efa8</a><br>
> > c3540d3a58#diff-511a71ab6e3db75071b6a440618be1df<br>
> ><br>
> > -- Alex<br>
> ><br>
> > --<br>
> > Alex Balashov | Principal | Evariste Systems LLC<br>
> ><br>
> > Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)<br>
> > Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
> ><br>
> > _______________________________________________<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-bin/mailman/listinfo/sr-users</a><br>
> ><br>
><br>
> --<br>
> Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered<br>
> office: Faraday Wharf, Innovation Birmingham Campus, Holt Street,<br>
> Birmingham Science Park, Birmingham B7 4BB.<br>
<br>
> _______________________________________________<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-bin/mailman/listinfo/sr-users</a><br>
<br>
<br>
--<br>
Alex Balashov | Principal | Evariste Systems LLC<br>
<br>
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)<br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
_______________________________________________<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-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font face="arial, helvetica, sans-serif"><b><font size="2">Charles Chance</font></b><br><font size="2">Managing Director</font></font><br><div><font face="arial, helvetica, sans-serif"><font size="2"><br></font></font></div><div><font face="arial, helvetica, sans-serif"><font size="2">t. 0330 120 1200 m. 07932 063 891</font></font></div></div></div></div></div>
<br>
<div><font color="gray" style="font-size:10pt;font-family:Helvetica,Arial,sans-serif">Sipcentric Ltd.
Company registered in England & Wales no. 7365592.</font><span style="font-size:10pt;font-family:Helvetica,Arial,sans-serif"> </span><font color="gray" style="font-size:10pt;font-family:Helvetica,Arial,sans-serif">Registered
office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.</font></div>