<!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><FONT face=Courier size=2>Yes, I did it too.</FONT></DIV>
<DIV><FONT face=Courier size=2><BR>I suppose that I have to do a entry in
'trusted' table of the IP address of the PSTN gateway.</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>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)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>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)</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>Is this correct? I believe that I do not
understand it well.</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2><FONT face=Arial>Thanks.</FONT></FONT></DIV>
<DIV><FONT face=Courier size=2><FONT face=Arial></FONT></FONT> </DIV>
<DIV><FONT face=Courier size=2><FONT face=Arial>--</FONT></FONT></DIV>
<DIV><FONT face=Courier size=2><FONT face=Arial>Alberto</FONT></DIV></FONT>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=greger@teigre.com href="mailto:greger@teigre.com">Greger V.
Teigre</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=alberto.ipt@telefonica.net
href="mailto:alberto.ipt@telefonica.net">Alberto</A> ; <A
title=serusers@lists.iptel.org
href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, September 15, 2005 5:56
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Serusers] ser.cfg with PSTN
gateway connectivity</DIV>
<DIV><BR></DIV>
<DIV>allow_trusted() uses the database, not the permissions files. I believe
there is an example of a database entry in the document.</DIV>
<DIV>g-)</DIV>
<DIV>---- Original Message ----<BR>From: Alberto<BR>To: <A
href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A><BR>Sent: Thursday,
September 15, 2005 05:19 PM<BR>Subject: [Serusers] ser.cfg with PSTN gateway
connectivity<BR><BR>> Hi,<BR>> <BR>> I've read the SER Getting
Started form <A href="http://www.onsip.org">http://www.onsip.org</A> .<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></BLOCKQUOTE></BODY></HTML>