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