Hi Jayesh,

trusting the source ip may not be save due IP spoofing...you may try to increase the security by using TCP (instead of UDP) or the best, to use TLS.

regarding the gateway chaining, please refer to a similar example:
http://cvs.sourceforge.net/viewcvs.py/openser/sip-server/examples/serial_183.cfg?rev=1.2&view=auto
or cvs path
   examples/serial_183.cfg

for setting the timeout, see
   http://www.openser.org/docs/modules/1.1.x/tm.html#AEN251

regards,
Bogdan


Jayesh Nambiar wrote:

hi everyone,
In my configuration, I trust some source ips and if call comes from these src ips, without any authentication they are t_relayed to a gateway ip address for pstn termination. Is there any potential problems by trusting some clients by src_ips, I do so as I dont want them to login from anywhere else. 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. 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. the logic goes something like this:
if(allow_trusted()) {
        if(uri=="sip:011...") {
              t_relay_to_udp("to a pstn gateway");
               # if no reply for 5 seconds
              t_relay_to_udp("to another gateway)
              break;
        };
}; can somebody pls help on this. I am currently using 0.9.5 and will soon be upgrading to 1.0.0. Thanks a lot in advance Jayesh

------------------------------------------------------------------------
Enjoy this Diwali with Y! India Click here <http://in.promos.yahoo.com/fabmall/index.html>

------------------------------------------------------------------------

_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to