[sr-dev] [kamailio/kamailio] nathelper: correct Contact received param (#1203)

Daniel-Constantin Mierla notifications at github.com
Mon Aug 7 22:11:25 CEST 2017


I never used the function and I am not sure about its role/where is useful.

However, the current behaviour is correct if the received is added as header parameter -- enclosing it in quotes is ok there. Without enclosing it, there can be `received=uri;transport=xyz`, so transport becomes another parameter of the header, no longer part of received value.

Then: adding `received="uri;transport=xyz"` to URI in Contact is indeed invalid, but also removing the quotes is not ok. The transport becomes parameter to URI, not part of received parameter. In this case, the `=` has to be escaped.

But again, wonder when this is useful and if escaping is fixing it overall or breaks it even more so other parts need also patches.

-- 
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/pull/1203#issuecomment-320767494
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20170807/72f0dd02/attachment-0001.html>


More information about the sr-dev mailing list