<!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>&nbsp;</DIV>
<DIV><FONT face=Courier size=2>mysql&gt; select * from 
trusted;<BR>+----------------+-------+--------------+<BR>| 
src_ip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | proto | from_pattern 
|<BR>+----------------+-------+--------------+<BR>| 212.xxx.xxx.81 | 
any&nbsp;&nbsp; | ^sip:.*$&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>+----------------+-------+--------------+<BR>1 row in set (0.01 
sec)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Courier size=2>mysql&gt; select username,domain,password from 
subscriber;<BR>+----------+-------------+-----------+<BR>| username | 
domain&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | password&nbsp; 
|<BR>+----------+-------------+-----------+<BR>| admin&nbsp;&nbsp;&nbsp; | 
sip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 
heslo&nbsp;&nbsp;&nbsp;&nbsp; |<BR>| 1000&nbsp;&nbsp;&nbsp;&nbsp; | teching.net 
| 123454321 |<BR>| 2000&nbsp;&nbsp;&nbsp;&nbsp; | teching.net | 
12345&nbsp;&nbsp;&nbsp;&nbsp; |<BR>| 3000&nbsp;&nbsp;&nbsp;&nbsp; | teching.net 
| 12345&nbsp;&nbsp;&nbsp;&nbsp; |<BR>| 4000&nbsp;&nbsp;&nbsp;&nbsp; | 
teching.net | 12345&nbsp;&nbsp;&nbsp;&nbsp; |<BR>| 5000&nbsp;&nbsp;&nbsp;&nbsp; 
| teching.net | 12345&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>+----------+-------------+-----------+<BR>6 rows in set (0.00 
sec)</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT>&nbsp;</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>&nbsp;</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>&nbsp;</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>&gt; Hi,<BR>&gt; <BR>&gt; I've read the SER Getting 
  Started form <A href="http://www.onsip.org">http://www.onsip.org</A> .<BR>&gt; 
  <BR>&gt; When I configure the ser with PSTN Gateway (subject 8 of the guide) 
  I<BR>&gt; can't register any client (403, Forbidden). I think, the problem 
  is<BR>&gt; the next line of ser.cfg:&nbsp; <BR>&gt; 
  <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!is_uri_host_local()) 
  {<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  if (is_from_local() || allow_trusted()) 
  {<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  route(4);<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  route(1);<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  } else 
  {<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  sl_send_reply("403","Forbidden");<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  };<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  break;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<BR>&gt; 
  <BR>&gt; I'd copied the permissions.allow and permissions.deny to<BR>&gt; 
  /usr/local/etc/ser and in the .allow file I'd uncomment the last line<BR>&gt; 
  (ALL:ALL)&nbsp; <BR>&gt; <BR>&gt; Any idea? 
Thanks.</DIV></BLOCKQUOTE></BODY></HTML>