nathelper function set_contact_alias add brackets around contact's uri if the original one hadn't. This results in an invalid sip uri in the contact structure, which cause problems to other modules' functions when they try to parse the contact uri (e.g. save_pending() from ims_registrar_usrloc). This simple patch fix the issue simply mving the uri's boundaries. You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/154
-- Commit Summary --
* modules/nathelper: don't include enclosing bracket in contact uri in set_contact_alias
-- File Changes --
M modules/nathelper/nathelper.c (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/154.patch https://github.com/kamailio/kamailio/pull/154.diff
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/154
Thanks!
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/154#issuecomment-100663205
Merged #154.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/154#event-301195276
Hi Daniel, thank you for merging. Should I backport it to stable branches?
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/154#issuecomment-100767178
Yes, you can backport.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/154#issuecomment-100797161