<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("9999");<br> rewritehostport("<a href="http://192.168.0.3:5060">192.168.0.3:5060</a>");<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 )---->sip----->Opensips 1.7--->SIP--->MGW Cisco<br>192.168.0.65 192.168.0.2 192.168.0.3<br><div id=":gm" class="">RTP----------------------------------------------------------->MGW Cisco-------->PSTN<br>
<br>
In this topology visible<br>
<br>
It's not safe, it's necessary to build a new wiring diagram:<br>
(UAC )--->sip,RTP---->(Opensips--->rtp,SIP------>)----->MGW Cisco--->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>