<div dir="ltr"><div>Hi. Please help.<br><span id="result_box" class="" lang="en"><span class="">We have:</span></span><br><span id="result_box" class="" lang="en"><span class="">1.One server</span> <span class="">consists of: CenOS6.5 + Opensips1.7 + MediaProxy2.5<br>
2.One MGW: Cisco AS5350<br></span></span></div><span id="result_box" class="" lang="en"><span class="">3.UserID=</span></span><span id="result_box" class="" lang="en"><span class="">telephone number and </span></span><span id="result_box" class="" lang="en"><span class="">registration on OpenSips </span></span><span id="result_box" class="" lang="en"><span class="">through MySQL<br>
</span></span><span id="result_box" class="" lang="en"><span class="">4.Call to</span> <span class="">PSTN</span> <span class="">pass through</span> <span class="">MGW</span> <span class="">with prefix</span> <span class="">9999:<br>
route[4] {      prefix(&quot;9999&quot;);<br>      rewritehostport(&quot;<a href="http://192.168.0.3:5060">192.168.0.3:5060</a>&quot;);<br>      if (!t_relay()) { sl_reply_error(); };<br>        exit;}<br></span></span><div>
<span id="result_box" class="" lang="en"><span class=""><br></span></span>
Now, such a scheme works:<br>
<br>
(UAC       )----&gt;sip-----&gt;Opensips 1.7---&gt;SIP---&gt;MGW Cisco<br>192.168.0.65               192.168.0.2                 192.168.0.3<br><div id=":gm" class="">RTP-----------------------------------------------------------&gt;MGW Cisco--------&gt;PSTN<br>

<br>
In this topology visible<br>
<br>
It&#39;s not safe, it&#39;s necessary to build a new wiring diagram:<br>
(UAC      )---&gt;sip,RTP----&gt;(Opensips---&gt;rtp,SIP------&gt;)-----&gt;MGW Cisco---&gt;PSTN<br>
85.85.85.85                    (85.85.85.2     192.168.0.2)     192.168.0.3<br>
<br>
questions:<br>
1. to hide the network topology from the users (can be used dialog module, function: topology_hiding?)<br>
2. hide RTP traffic to MGW for Opensips-server (can be used MediaProxy or rtpproxy)?<br>
Please, give examples opensips.cfg-file ?<br>
</div></div></div>