<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>The test does the following:</DIV>
<DIV>If callee is not within the local domain (as registered in the domains
table), check that:<BR> either... caller is from a local domain</DIV>
<DIV> or... the source is a trusted party (gw etc)</DIV>
<DIV>If not, forbidden</DIV>
<DIV> </DIV>
<DIV>g-)</DIV>
<DIV> </DIV>
<DIV>---- Original Message ----<BR>From: Alberto<BR>To: Greger V. Teigre<BR>Cc:
serusers@lists.iptel.org<BR>Sent: Friday, September 16, 2005 08:51 AM<BR>Subject: Re:
[Serusers] ser.cfg with PSTN gateway connectivity<BR><BR>> Yes, I did it
too.<BR>> <BR>> I suppose that I have to do a entry in 'trusted' table of
the IP<BR>> address of the PSTN gateway. <BR>> <BR>> mysql> select *
from trusted;<BR>> +----------------+-------+--------------+<BR>>>
src_ip | proto | from_pattern
|<BR>> +----------------+-------+--------------+<BR>>> 212.xxx.xxx.81 |
any | ^sip:.*$ |<BR>>
+----------------+-------+--------------+<BR>> 1 row in set (0.01
sec)<BR>> <BR>> mysql> select username,domain,password from
subscriber;<BR>> +----------+-------------+-----------+<BR>>> username
| domain | password |<BR>>
+----------+-------------+-----------+<BR>>> admin |
sip |
heslo |<BR>>> 1000 |
teching.net | 123454321 |<BR>>> 2000 | teching.net
| 12345 |<BR>>> 3000 |
teching.net | 12345 |<BR>>>
4000 | teching.net | 12345
|<BR>>> 5000 | teching.net |
12345 |<BR>>
+----------+-------------+-----------+<BR>> 6 rows in set (0.00 sec)<BR>>
<BR>> Is this correct? I believe that I do not understand it well.<BR>>
<BR>> Thanks.<BR>> <BR>> <BR>>> Hi,<BR>>> <BR>>> I've
read the SER Getting Started form http://www.onsip.org .<BR>>>
<BR>>> When I configure the ser with PSTN Gateway (subject 8 of the guide)
I<BR>>> can't register any client (403, Forbidden). I think, the problem
is<BR>>> the next line of ser.cfg:<BR>>>
<BR>>> if (!is_uri_host_local())
{<BR>>>
if (is_from_local() || allow_trusted())
{<BR>>>
route(4);<BR>>>
route(1);<BR>>>
} else
{<BR>>>
sl_send_reply("403","Forbidden");<BR>>>
};<BR>>>
break;<BR>>>
};<BR>>> <BR>>> I'd copied the permissions.allow and
permissions.deny to<BR>>> /usr/local/etc/ser and in the .allow file I'd
uncomment the last line<BR>>> (ALL:ALL)<BR>>> <BR>>> Any idea?
Thanks.</DIV></BODY></HTML>