[sr-dev] [kamailio] modules/nathelper: don't include enclosing brackets in contact uri in set_contact_alias (#154)

Federico Cabiddu notifications at github.com
Sat May 9 18:24:45 CEST 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20150509/81f77144/attachment.html>


More information about the sr-dev mailing list