Hi Alex,
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:
... append_hf("Path:sip:$Ri:$Rp;received=sip:$si:$sp;lr\r\n");
msg_apply_changes(); ...
Let me know if it works for you.
Cheers,
Charles
On Thu, 1 Feb 2018 at 07:52, Alex Balashov abalashov@evaristesys.com wrote:
Hi Charles,
It does not appear that Path is being replicated, either.
I am running add_path() prior to save()ing to usrloc, but on both hosts, I see:
# kamcmd -s /tmp/kamailio_ctl ul.dump | grep -i path Path: [not set] Path: [not set] Path: [not set] Path: [not set] Path: [not set] Path: [not set] Path: [not set] Path: [not set]
This applies to both local registrations and replicated ones.
This is 5.0, though. Haven't tried 5.1 yet.
-- Alex
On Wed, Jan 31, 2018 at 04:53:09AM +0000, Charles Chance wrote:
Hi Alex,
Which version are you running? There were a few related patches recently
the one you mentioned will correctly set the server_id, although on its
own
will probably not help in the correct routing of requests. For that, I would normally make use of Path.
The socket should indeed be set for locally received registrations - if
not
then there is something wrong.
Cheers,
Charles
On 31 January 2018 at 03:32, Alex Balashov abalashov@evaristesys.com wrote:
Ah, I guess this is the very problem that this relatively bleeding-edge patch by Charles is meant to solve:
https://github.com/kamailio/kamailio/commit/684059ca5bb76e2006a9560ac1efa8
c3540d3a58#diff-511a71ab6e3db75071b6a440618be1df
-- Alex
-- Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Sipcentric Ltd. Company registered in England & Wales no. 7365592.
Registered
office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users