<HTML><BODY>Hi list<br><br>I'm trying to use set_advertised_address(); function<br>in onreply_route<br><br>but I see that nothing changes.<br><br>[VoIP ISP] <--- [NAT box x.x.116.2] <--- [OpenSIPS 10.45.144.77] <--- [other VoIP server 10.1.30.12]<br><br><br>This is a sip debug, 180 Ringing, leaving OpenSIPS towards Internet:<br>http://rgho.st/private/7lxQHLFgz/c0af9edb35c175a8dba80228f31ba7a2<br><br>I think some addresses should be re-written here, but they are not,<br>as we see 10.1.30.12 in some headers.<br><br>By the way, the next 200 OK with SDP has correct IP address in SDP (as I set it<br>using rtpengine_answer(... media-address=x.x.116.2). So, I'm sure that I use<br>set_advertised_address() in the right place. But why it does not change the message?<br><br><p>onreply_route {<br> set_advertised_address(x.x.116.2);</p><p> if (has_body("application/sdp")) {<br> # rewrite SDP for replies within calls from PBX<br> if ($fd=="pbx. ... .ru") {<br> rtpengine_answer("RTP/AVP replace-origin replace-session-connection ICE=remove to-tag");<br> } else {<br> # fix external address and rewrite SDP for replies within calls from VoIP ISP<br> rtpengine_answer("RTP/AVP media-address=x.x.116.2 replace-origin replace-session-connection ICE=remove");<br> }<br> }<br>}</p><p> </p><br><br>-----------------------------------------------<br><span style="font-size: 15px;" data-mce-style="font-size: 15px;">BR, Alexey</span><br style="font-size: 15px;" data-mce-style="font-size: 15px;"><span style="font-size: 15px;" data-mce-style="font-size: 15px;">http://alexeyka.zantsev.com/</span></BODY></HTML>