<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi everyone<div><br></div><div>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.</div><div><br></div><div><div>if (t_check_status("486|408|603")) {</div><div>                xlog("CUSTOM_LOG: User replied $T_reply_code - Routing to Asterisk Voicemail service.");</div><div>                prefix("VMR_");</div><div>                rewritehostport("<a href="http://10.150.50.53:2404">10.150.50.53:2404</a>");</div><div>                force_send_socket(udp:10.150.50.51);</div><div>                fix_nated_sdp(10,"10.150.50.51");</div><div><br></div><div>                if (!t_relay()) {</div><div>                        send_reply(500,"Internal Error");</div><div>                }</div><div>                exit;</div><div>}</div></div><div><br></div><div>I get the CUSTOM_LOG entry so I know that the route is executing.</div><div><br></div><div>Maybe I'm doing something wrong with the flags, I've tried:</div><div>fix_nated_sdp(2,"10.150.50.51");<br></div><div>fix_nated_sdp(8,"10.150.50.51");<br></div><div>fix_nated_sdp(10,"10.150.50.51");</div><div><br></div><div>But when I examine the SDP in the resulting invite, the c/o parameters are never changed.</div><div>I'm using rtpengine_offer/answer in the initial routing, could it be related to that?</div><div><br></div><div>I'm using OpenSIPS 3.0.1</div><div><br></div><div>Best regards</div><div>Mark.</div><div><br></div><div><br></div><div><div dir="ltr" class="gmail_signature"></div></div></div></div></div></div></div>