[SR-Users] Get the SDP IP in Kamailio

Sebastian Damm damm at sipgate.de
Mon Feb 2 12:50:26 CET 2015


Hi,

since we integrated IPv6 into our existing routing logic, in some cases
"fix_nated_sdp" gets called for IPv6 calls, too. (Actually, this just
happens because of the mistakenly detected NAT.) But that ends up with a an
error in the log.

ERROR: nathelper [nathelper.c:1685]: replace_sdp_ip(): not an IPv4 address
in 'c=' SDP

So I'm looking for a way to exempt IPv6 calls from that. But I can't find a
pseudovariable which carries the SDP contact IP. I guess I could take some
function from the sdpops module, but is there a more convenient way to get
just the contact IP?

Best Regards,
Sebastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150202/4f93f566/attachment.html>


More information about the sr-users mailing list