[SR-Users] Rewrite private IP in SDP

Henning Westerholt hw at skalatan.de
Thu Apr 18 07:26:09 CEST 2019


Hello Bonjour,

have a look e.g. to the nathelper module, the functions fix_nated_contact and fix_nated_sdp might help you here. In the default cfg you find also some more complete logic in the routes NATDETECT and NATMANAGE.

Cheers,

Henning

Am 17.04.19 um 10:24 schrieb Bonjour Madame:

Hello all,

I am dealing with a no audio issue, phones are not even ringing. There is a private IP address in the "VIA" section of the message header of the INVITE:

Via: SIP/2.0/UDP 192.168.1.25:65291;rport;branch=z9hG4bKPj9e3849d1981a4094a8323dad5826ec34

and in the contact  too:

Contact: <sip:5002 at 192.168.1.25:65291;ob><mailto:sip:5002 at 192.168.1.25:65291;ob>



In the "status 100 Attempting to connect your call" from the server,  I can see the public IP of the phone under received:

Via: SIP/2.0/UDP 192.168.1.25:65291;rport=53990;branch=z9hG4bKPj9e3849d1981a4094a8323dad5826ec34;received=PHONE_PUBLIC_IP



And in the "status 200 ok" from the server, I have:

Via: SIP/2.0/UDP 192.168.1.25:65291;received=PHONE_PUBLIC_IP;rport=53990;branch=z9hG4bKPj9e3849d1981a4094a8323dad5826ec34
Record-Route: <sip:SERVER_PUBLIC_IP;lr=on;ftag=9284528256a54f8b81e692133a15684c>





I don't know  what steps to take to resolve this issue.



_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190418/e483166d/attachment.html>


More information about the sr-users mailing list