<!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:
<sip:4000@192.168.0.9:5060>;events="message-summary"<BR>Call-ID:
EC3B7C61-92BE-4CEA-8A43-53391E95F301@192.168.0.9<BR>Max-Forwards: 70<BR>From:
<sip:4000@192.168.0.2:5060>;tag=446779626482<BR>SIP from address:
sip:4000@192.168.0.2:5060<BR>SIP tag: 446779626482<BR>CSeq: 1 REGISTER<BR>To:
<sip:4000@192.168.0.2:5060><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> </DIV>
<DIV><FONT size=2><FONT face=Courier size=2></FONT></FONT> </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:
<sip:4000@192.168.0.2:5060>;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:
<sip:4000@192.168.0.2:5060>;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> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Courier></FONT> </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> either... caller is from a local domain<BR> 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>> 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.</FONT></DIV></BODY></HTML>