<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><br>
</p>
<p>Hi.</p>
<p><br>
</p>
<p>In my script OpenSIPS.cfg sometimes I do need to call "set_advertised_address" and sometimes I don't.</p>
<p><br>
</p>
<p>Basically, I want to call this function only for messages between caller and callee that is registered from different networks. Ex: caller is in the same network (LAN) as the sip proxy and the callee is somewhere on Internet.
<br>
</p>
<p><br>
</p>
<p>So, how to know that, during a dialog, caller and callee are in 2 different networks?</p>
<p><br>
</p>
<p>When they are in different networks, I want to call set_advertised_address for SIP OK and SIP BYE messages.</p>
<p><br>
</p>
<p>Any hint will be very helpful!</p>
<p><br>
</p>
<p>Thanks a lot.<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: +55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
</div>
</body>
</html>