<div dir="ltr">You can use the avpops module<br><br><pre class="">avp_db_load("$fu","$avp(678)");<br><br></pre><pre class="">This will load the preferences from the user on avp(678) , so you check the value and force the use of rtpproxy/mediaproxy as you do when the user is behind proxy.<br>
<br>you can use the avp_db_query also<br><br>avp_db_query("select value from usr_preferences where username='$fu' and atrribute = 'USE_NAT'",
        "$avp(678)");<br><br></pre><pre class="">in this case you should have an information for this username ($fu) using an attribute USE_NAT , you can set the <br>value to 1 or 0 , and you do the rest on you dialplan<br>
</pre><br><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/5 troxlinux <span dir="ltr"><<a href="mailto:xserverlinux@gmail.com" target="_blank">xserverlinux@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span lang="en"><span>Thnk</span> <span>mike, </span><span> an example</span> <span>where I can</span> <span>watch this?</span></span></div>
<div class="gmail_extra">
<br><br><div class="gmail_quote">2013/11/5 Mike Tesliuk <span dir="ltr"><<a href="mailto:mike@ultra.net.br" target="_blank">mike@ultra.net.br</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">
<div dir="ltr">You can set a flag on usr_preferences to force the nat to that customer so you can manage this on your dialplan<br><br>if the user cannot be recognized over nat help you can force.<br></div>
<br></div><div class="im">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>rickygm<br><br><a href="http://gnuforever.homelinux.com" target="_blank">http://gnuforever.homelinux.com</a>
</font></span></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>