<DIV>hi everyone,</DIV>
<DIV>In my configuration, I trust some source ips and if call comes from these src ips, without any authentication they are&nbsp;t_relayed to a gateway ip address for pstn termination.</DIV>
<DIV>Is there any potential problems by trusting some clients by src_ips, I do so as I dont want&nbsp;them to login from anywhere else.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I also wanted to know that if I do not get reply from a particular gateway, can I forward them to another gateway. I dont want to use LCR for this. I thought of using failure route, but the call does not fail it keeps on sending invite. </DIV>
<DIV>What I wanted to do is, if I dont get a reply within 5 seconds, it will try the next t_relay_to_udp statement.</DIV>
<DIV>&nbsp;</DIV>
<DIV>the logic goes something like this:</DIV>
<DIV>if(allow_trusted()) {</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(uri=="sip:011...") {</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_relay_to_udp("to a pstn gateway");</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# if no reply for 5 seconds</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t_relay_to_udp("to another gateway)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };</DIV>
<DIV>};&nbsp;&nbsp;&nbsp;&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>can somebody pls help on this. I am currently using 0.9.5 and will soon be upgrading to 1.0.0.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks a lot in advance</DIV>
<DIV>&nbsp;</DIV>
<DIV>Jayesh</DIV><p>
                <hr size=1> 
Enjoy this Diwali with Y! India <a href="http://in.promos.yahoo.com/fabmall/index.html">Click here</a>