<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I use the permission before sending the calls to PSTN, however, I can't make it to work; If I bypass route 3 on this config and go straight to route 4 I can make call to PSTN through a few asterisk gateways.<br><br><br><br>modparam("permissions", "db_mode", 1)<br>modparam("permissions", "trusted_table", "trusted") <br><br>route[3] {<br> ## INVITE request handler <br> if (is_from_local()){<br> # From an internal domain -> check the credentials and the FROM<br> if(!allow_trusted()){<br> if (!proxy_authorize("192.168.1.102","subscriber")) {<br>
proxy_challenge("192.168.1.102","1");<br> exit;<br> } else if (!check_from()) {<br> sl_send_reply("403", "Forbidden, use From=ID");<br> exit;<br> };<br> } else { <br> log("Request bypassed the auth.using allow_trusted");<br> };<br> <br> consume_credentials();<br>
<br> #Verify aliases, if found replace R-URI. <br> lookup("aliases");<br> <br> if (is_uri_host_local()) {<br> # -- Inbound to Inbound<br> route(10);<br> } else {<br> # -- Inbound to outbound<br> route(11);<br> };<br><br> } else {<br> #From an external domain ->do not check credentials<br> #Verify aliases, if found replace R-URI.
<br> lookup("aliases");<br> if (is_uri_host_local()) {<br> #-- Outbound to inbound<br> route(12);<br> } else {<br> # -- Outbound to outbound<br> route(13);<br> };<br> };<br>}<br><br>route[4] {<br> # routing to the public network<br> ds_select_dst("1", "0");<br> record_route();<br> t_relay();<br><br><br><br><br>--- On <b>Mon, 1/26/09, Alex Balashov <i><abalashov@evaristesys.com></i></b>
wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Alex Balashov <abalashov@evaristesys.com><br>Subject: Re: [OpenSIPS-Users] Warning message at startup<br>To: gonzovoip@yahoo.com<br>Cc: users@lists.opensips.org, "Iñaki Baz Castillo" <ibc@aliax.net><br>Date: Monday, January 26, 2009, 12:09 AM<br><br><pre>Nothing to worry about; if you are not using the permissions module but loading<br>it anyway, or are using it but keeping your list of authorised peers in the<br>database, you do not need to worry about this.<br><br>It only matters if you actually wish to list your authorised peers (the things<br>you use the permissions module to authorise) in a text file.<br><br>Gonzalo Gonzalez wrote:<br><br>> Thanks.....<br>> <br>> It is something I am missing or should I just don't worry about?<br>> <br>> --- On *Sun, 1/25/09, Iñaki Baz Castillo /<ibc@aliax.net>/*
wrote:<br>> <br>> From: Iñaki Baz Castillo <ibc@aliax.net><br>> Subject: Re: [OpenSIPS-Users] Warning message at startup<br>> To: users@lists.opensips.org<br>> Date: Sunday, January 25, 2009, 10:46 PM<br>> <br>> El Domingo, 25 de Enero de 2009, Gonzalo Gonzalez escribió:<br>> > Jan 25 17:40:44 sipproxy /usr/local/sbin/opensips[6640]:<br>> > WARNING:permissions:parse_config_file: file not found:<br>> > /usr/local/etc/opensips/permissions.allow Jan 25 17:40:44<br>sipproxy<br>> > /usr/local/sbin/opensips[6640]: WARNING:permissions:mod_init:<br>default<br>> allow<br>> > file<br>> (/usr/local/etc/opensips/permissions.allow) not found => empty<br>> rule<br>> > set Jan 25 17:40:44 sipproxy /usr/local/sbin/opensips[6640]:<br>> > WARNING:permissions:parse_config_file: file not found:<br>> >
/usr/local/etc/opensips/permissions.deny Jan 25 17:40:44 sipproxy<br>> > /usr/local/sbin/opensips[6640]: WARNING:permissions:mod_init:<br>default deny<br>> > file (/usr/local/etc/opensips/permissions.deny) not found =><br>empty rule<br>> set<br>> <br>> Try yourself: what do you think "file not found" can mean?<br>;)<br>> <br>> -- Iñaki Baz Castillo<br>> <br>> _______________________________________________<br>> Users mailing list<br>> Users@lists.opensips.org<br>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br>> <br>> <br>> <br>> ------------------------------------------------------------------------<br>> <br>> _______________________________________________<br>> Users mailing list<br>> Users@lists.opensips.org<br>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br><br><br>-- Alex Balashov<br>Evariste Systems<br>Web
: http://www.evaristesys.com/<br>Tel : (+1) (678) 954-0670<br>Direct : (+1) (678) 954-0671<br>Mobile : (+1) (678) 237-1775<br></pre></blockquote></td></tr></table><br>