[sr-dev] [kamailio/kamailio] nathelper: correct Contact received param (#1203)
Sebastian Damm
notifications at github.com
Tue Aug 8 13:05:19 CEST 2017
I have never used it myself. I just wanted to help this one mailing list post, but of course, this commit is broken.
I just looked into the path module how it's done there, and there exists a struct for different transports:
```const static char *proto_strings[] = {
[PROTO_TCP] = "%3Btransport%3Dtcp",
[PROTO_TLS] = "%3Btransport%3Dtls",
[PROTO_SCTP] = "%3Btransport%3Dsctp",
[PROTO_WS] = "%3Btransport%3Dws",
[PROTO_WSS] = "%3Btransport%3Dws",
};```
This gets appended to the received param if needed. Then a Path header looks like this:
```Path: <sip:1.2.3.4;lr;received=sip:4.3.2.1:49194%3Btransport%3Dtcp>.```
Unfortunately I'm not able to implement that for the nathelper module as my C knowledge is limited to doing such trivial stuff like the commit above.
--
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-320923757
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20170808/3e1302a6/attachment.html>
More information about the sr-dev
mailing list