[OpenSIPS-Users] fix_nated_sdp() not taking effect

Mark Farmer farmorg at gmail.com
Wed Nov 13 06:51:45 EST 2019


Hi everyone

In my failure_route I'm routing to an Asterisk box for voicemail & I need
to change the SDP c/o parameters to use the correct internal IP address but
using fix_nated_sdp() is not taking effect.

if (t_check_status("486|408|603")) {
                xlog("CUSTOM_LOG: User replied $T_reply_code - Routing to
Asterisk Voicemail service.");
                prefix("VMR_");
                rewritehostport("10.150.50.53:2404");
                force_send_socket(udp:10.150.50.51);
                fix_nated_sdp(10,"10.150.50.51");

                if (!t_relay()) {
                        send_reply(500,"Internal Error");
                }
                exit;
}

I get the CUSTOM_LOG entry so I know that the route is executing.

Maybe I'm doing something wrong with the flags, I've tried:
fix_nated_sdp(2,"10.150.50.51");
fix_nated_sdp(8,"10.150.50.51");
fix_nated_sdp(10,"10.150.50.51");

But when I examine the SDP in the resulting invite, the c/o parameters are
never changed.
I'm using rtpengine_offer/answer in the initial routing, could it be
related to that?

I'm using OpenSIPS 3.0.1

Best regards
Mark.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20191113/15b7b158/attachment.html>


More information about the Users mailing list