[SR-Users] Kamailio -topoh- and Via headers

Gonzalo Gasca gascagonzalo at gmail.com
Mon Oct 6 02:39:25 CEST 2014


I'm using Kamailio as SIP Registrar using Websockets.
My topology looks like this:

Sip client (sipml5) ---> wss ---> Nginx ---> ws ---> Kamailio 4.1.5

When I look into my SipMl5 application in the Register Message 200 OK
from Kamailio I see the Nginx private IP address 172.31.22.2

Via: SIP/2.0/WSS
df7jal23ls0d.invalid;rport=37111;received=172.31.22.2;branch=z9hG4bKtv75otkzmPVsdNWevweLt4TN9JnLnQ0p

How can I remove private IP Address in Via header to achieve topology hiding?

>From Kamailio logs:

Oct  6 00:34:21 ip-172-31-27-85 /usr/sbin/kamailio[8941]: DEBUG:
registrar [reply.c:374]: build_contact(): created Contact HF: Contact:
<sips:gogasca at df7jal23ls0d.invalid;rtcweb-breaker=no;transport=wss>;expires=200#015#012
Oct  6 00:34:21 ip-172-31-27-85 /usr/sbin/kamailio[8941]: DEBUG: sl
[sl.c:288]: send_reply(): reply in stateless mode (sl)
Oct  6 00:34:21 ip-172-31-27-85 /usr/sbin/kamailio[8941]: DEBUG:
<core> [msg_translator.c:204]: check_via_address():
check_via_address(172.31.22.2, df7jal23ls0d.invalid, 0)
O


Version: kamailio 4.1.5 (x86_64/linux)

# ------ topoh --------

modparam("topoh", "mask_key", "opencall")
modparam("topoh", "mask_ip", "<Public IP Address of Kamailio>")
modparam("topoh", "vparam_prefix", "llamato")
modparam("topoh", "mask_callid", 1)
modparam("topoh", "sanity_checks", 1)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamailio_topoh
Type: application/octet-stream
Size: 4215 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20141005/2176e4dc/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamailio_debug
Type: application/octet-stream
Size: 70001 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20141005/2176e4dc/attachment-0001.obj>


More information about the sr-users mailing list