[SR-Users] Topos and subst_hf

Igor Olhovskiy igorolhovskiy at gmail.com
Tue Feb 19 15:35:35 CET 2019


Hi!

I'm using subst_hf to add some extra info to contact
subst_hf("Contact", "/^(.*)sip:(.*)@(.*)$/\1sip:encei$var(extra_info)-\2@\3/i", "f");
With combination of topos it's giving me strange results like
2(26) WARNING: sanity [sanity.c:282]: check_ruri_scheme(): failed to parse request uri [sip:encei302e3734-btpsh-5c6c00ac-2e-f at 172.28.0.74><sip:encei302e3734-btpsh-5c6c00ac-2e-f at 172.28.0.74]
Seems, it's doubling R-URI on in-dialog requests. If I'm disabling topos - all is ok.
What is interesting - this can't be reproduced with remove_hf/append_hf mechanisms.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190219/f97f3da2/attachment.html>


More information about the sr-users mailing list