[sr-dev] [kamailio/kamailio] set_contact_alias() issue with clients adding it to their Contact (#2308)

Daniel-Constantin Mierla notifications at github.com
Sat May 2 21:56:56 CEST 2020


set_contact_alias() should not be used for registrations, but for requests that are typically forwarded. If you do it on an edge proxy between device and registrar server, then you should use path module and leave the contact unchanged.

If you use it in the registrar server config, then you should replace it with fix_nated_register(), like in the default kamailio.cfg.

Otherwise, if you really want to use it, then in case you have to deal with such UA, then yes, you will have to remove (or replace) the alias parameter in Contact. Probably you can play with the replace/subst functions from textops and if you can't get it, then new C code has to be added. A pull request is of course appreciated.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2308#issuecomment-623005573
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200502/6f66b2e9/attachment.html>


More information about the sr-dev mailing list