<!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>Thank you for your help.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have followed the steps of Getting Started doc
(from the beginning) and all it's fine until that subject(8 PSTN Gateway
Connectivity).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I will try what you say me.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>--</FONT></DIV>
<DIV><FONT face=Arial size=2>Alberto</FONT></DIV>
<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> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <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> Friday, September 16, 2005 10:02
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Serusers] ser.cfg with PSTN
gateway connectivity</DIV>
<DIV><BR></DIV>
<DIV>The way you have configured the client gives 192.168.0.2 as your
domain. 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). Only then will SER properly recognize your
clients.</DIV>
<DIV> </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>> But, I can't register sip clients, when a sip client
sends REGISTER<BR>> 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<BR>>
192.168.0.9;rport;branch=z9hG4bKc0a800090131c9b1432a784800002a6300000001<BR>>
User-Agent: SJphone/1.50.271d (SJ Labs)<BR>> <BR>> <BR>> Session
Initiation Protocol<BR>> Status-Line: SIP/2.0 403 Forbidden<BR>>
Status-Code: 403<BR>> Resent Packet: False<BR>> Message Header<BR>>
Call-ID: EC3B7C61-92BE-4CEA-8A43-53391E95F301@192.168.0.9<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:<BR>>
<sip:4000@192.168.0.2:5060>;tag=d222d7f099537762bc94f7b18918c630.a1da
<BR>> SIP to address: sip:4000@192.168.0.2:5060<BR>> SIP tag:
d222d7f099537762bc94f7b18918c630.a1da<BR>> Via: SIP/2.0/UDP<BR>>
192.168.0.9;rport=5060;branch=z9hG4bKc0a800090131c9b1432a784800002a6300000001<BR>>
Server: Sip EXpress router (0.9.3 (i386/freebsd))<BR>> Content-Length:
0<BR>> Warning: 392 192.168.0.2:5060 "Noisy feedback tells: pid=441<BR>>
req_src_ip=192.168.0.9 req_src_port=5060 in_uri=sip:192.168.0.2:5060<BR>>
out_uri=sip:192.168.0.2:5060 via_cnt==1" <BR>> <BR>> <BR>>
<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<BR>> 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)<BR>>>> I can't register any client (403, Forbidden). I think,
the problem<BR>>>> is 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<BR>>>> line (ALL:ALL)<BR>>>>
<BR>>>> Any idea? Thanks.</DIV></BLOCKQUOTE></BODY></HTML>