<!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 background="">
<DIV><FONT face=Arial size=2><FONT face=Courier>But, I can't register sip 
clients, when a sip client sends REGISTER the ser answer 403, 
Forbidden.<BR><BR>Session Initiation Protocol<BR>Request-Line: REGISTER 
sip:192.168.0.2:5060 SIP/2.0<BR>Method: REGISTER<BR>Resent Packet: 
False<BR>Message Header<BR>Content-Length: 0<BR>Contact: 
&lt;sip:4000@192.168.0.9:5060&gt;;events="message-summary"<BR>Call-ID: 
EC3B7C61-92BE-4CEA-8A43-53391E95F301@192.168.0.9<BR>Max-Forwards: 70<BR>From: 
&lt;sip:4000@192.168.0.2:5060&gt;;tag=446779626482<BR>SIP from address: 
sip:4000@192.168.0.2:5060<BR>SIP tag: 446779626482<BR>CSeq: 1 REGISTER<BR>To: 
&lt;sip:4000@192.168.0.2:5060&gt;<BR>SIP to address: 
sip:4000@192.168.0.2:5060<BR>Via: SIP/2.0/UDP 
192.168.0.9;rport;branch=z9hG4bKc0a800090131c9b1432a784800002a6300000001<BR>User-Agent: 
SJphone/1.50.271d (SJ Labs)</FONT></FONT></DIV>
<DIV><FONT size=2><FONT size=2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT face=Courier size=2></FONT></FONT>&nbsp;</DIV><FONT 
face=Arial size=2><FONT size=2>
<DIV><FONT face=Courier>Session Initiation Protocol</FONT></DIV>
<DIV><FONT face=Courier>Status-Line: SIP/2.0 403 Forbidden</FONT></DIV>
<DIV><FONT face=Courier>Status-Code: 403</FONT></DIV>
<DIV><FONT face=Courier>Resent Packet: False</FONT></DIV>
<DIV><FONT face=Courier>Message Header</FONT></DIV>
<DIV><FONT face=Courier>Call-ID: 
EC3B7C61-92BE-4CEA-8A43-53391E95F301@192.168.0.9</FONT></DIV>
<DIV><FONT face=Courier>From: 
&lt;sip:4000@192.168.0.2:5060&gt;;tag=446779626482</FONT></DIV>
<DIV><FONT face=Courier>SIP from address: sip:4000@192.168.0.2:5060</FONT></DIV>
<DIV><FONT face=Courier>SIP tag: 446779626482</FONT></DIV>
<DIV><FONT face=Courier>CSeq: 1 REGISTER</FONT></DIV>
<DIV><FONT face=Courier>To: 
&lt;sip:4000@192.168.0.2:5060&gt;;tag=d222d7f099537762bc94f7b18918c630.a1da</FONT></DIV>
<DIV><FONT face=Courier>SIP to address: sip:4000@192.168.0.2:5060</FONT></DIV>
<DIV><FONT face=Courier>SIP tag: 
d222d7f099537762bc94f7b18918c630.a1da</FONT></DIV>
<DIV><FONT face=Courier>Via: SIP/2.0/UDP 
192.168.0.9;rport=5060;branch=z9hG4bKc0a800090131c9b1432a784800002a6300000001</FONT></DIV>
<DIV><FONT face=Courier>Server: Sip EXpress router (0.9.3 
(i386/freebsd))</FONT></DIV>
<DIV><FONT face=Courier>Content-Length: 0</FONT></DIV>
<DIV><FONT face=Courier>Warning: 392 192.168.0.2:5060 "Noisy feedback tells: 
pid=441 req_src_ip=192.168.0.9 req_src_port=5060 in_uri=sip:192.168.0.2:5060 
out_uri=sip:192.168.0.2:5060 via_cnt==1"</FONT></DIV></FONT></FONT>
<DIV><FONT face=Arial size=2><FONT face=Courier></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><FONT face=Courier></FONT>&nbsp;</DIV>
<DIV><BR><BR>----- Original Message ----- <BR>From: Greger V. Teigre <BR>To: 
Alberto <BR>Cc: serusers@lists.iptel.org <BR>Sent: Friday, September 16, 2005 9:19 
AM<BR>Subject: Re: [Serusers] ser.cfg with PSTN gateway 
connectivity<BR><BR><BR>The test does the following:<BR>If callee is not within 
the local domain (as registered in the domains table), check 
that:<BR>&nbsp;either... caller is from a local domain<BR>&nbsp;or... the source 
is a trusted party (gw etc)<BR>If not, forbidden<BR><BR>g-)<BR><BR>---- 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>&gt; Yes, I did it 
too.<BR>&gt; <BR>&gt; I suppose that I have to do a entry in 'trusted' table of 
the IP<BR>&gt; address of the PSTN gateway. <BR>&gt; <BR>&gt; mysql&gt; select * 
from trusted;<BR>&gt; +----------------+-------+--------------+<BR>&gt;&gt; 
src_ip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | proto | from_pattern 
|<BR>&gt; +----------------+-------+--------------+<BR>&gt;&gt; 212.xxx.xxx.81 | 
any&nbsp;&nbsp; | ^sip:.*$&nbsp;&nbsp;&nbsp;&nbsp; |<BR>&gt; 
+----------------+-------+--------------+<BR>&gt; 1 row in set (0.01 
sec)<BR>&gt; <BR>&gt; mysql&gt; select username,domain,password from 
subscriber;<BR>&gt; +----------+-------------+-----------+<BR>&gt;&gt; username 
| domain&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | password&nbsp; |<BR>&gt; 
+----------+-------------+-----------+<BR>&gt;&gt; admin&nbsp;&nbsp;&nbsp; | 
sip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 
heslo&nbsp;&nbsp;&nbsp;&nbsp; |<BR>&gt;&gt; 1000&nbsp;&nbsp;&nbsp;&nbsp; | 
teching.net | 123454321 |<BR>&gt;&gt; 2000&nbsp;&nbsp;&nbsp;&nbsp; | teching.net 
| 12345&nbsp;&nbsp;&nbsp;&nbsp; |<BR>&gt;&gt; 3000&nbsp;&nbsp;&nbsp;&nbsp; | 
teching.net | 12345&nbsp;&nbsp;&nbsp;&nbsp; |<BR>&gt;&gt; 
4000&nbsp;&nbsp;&nbsp;&nbsp; | teching.net | 12345&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>&gt;&gt; 5000&nbsp;&nbsp;&nbsp;&nbsp; | teching.net | 
12345&nbsp;&nbsp;&nbsp;&nbsp; |<BR>&gt; 
+----------+-------------+-----------+<BR>&gt; 6 rows in set (0.00 sec)<BR>&gt; 
<BR>&gt; Is this correct? I believe that I do not understand it well.<BR>&gt; 
<BR>&gt; Thanks.<BR>&gt; <BR>&gt; <BR>&gt;&gt; Hi,<BR>&gt;&gt; <BR>&gt;&gt; I've 
read the SER Getting Started form http://www.onsip.org .<BR>&gt;&gt; 
<BR>&gt;&gt; When I configure the ser with PSTN Gateway (subject 8 of the guide) 
I<BR>&gt;&gt; can't register any client (403, Forbidden). I think, the problem 
is<BR>&gt;&gt; the next line of ser.cfg:<BR>&gt;&gt; 
<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!is_uri_host_local()) 
{<BR>&gt;&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;&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;&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;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
} else 
{<BR>&gt;&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;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
break;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>&gt;&gt; <BR>&gt;&gt; I'd copied the permissions.allow and 
permissions.deny to<BR>&gt;&gt; /usr/local/etc/ser and in the .allow file I'd 
uncomment the last line<BR>&gt;&gt; (ALL:ALL)<BR>&gt;&gt; <BR>&gt;&gt; Any idea? 
Thanks.</FONT></DIV></BODY></HTML>