<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-9">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>What may be wrong with this ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>interface: eth0
(192.168.1.0/255.255.255.0)<BR>filter: ip and ( port 5060 )<BR>match:
.<BR>#<BR>U 192.168.1.35:5060 -> 192.168.1.9:5060<BR> REGISTER
sip:192.168.1.9:5060 SIP/2.0..From: <sip:201@192.168.1.9:5060>
;ta<BR> g=3a4fc965-c1a5a2e..To: <sip:201@192.168.1.9>..Call-ID:
c0a80123-13c4-3a4fc<BR> 962-1f6-5973..CSeq: 127 REGISTER..Via: SIP/2.0/UDP
192.168.1.35:5060 ;branc<BR> h=z9hG4bK-3a4fe27e-621634-49b0..Max-Forwards:
70..Contact: <sip:201@192.168<BR> .1.35:5060>..Expires:
60..Authorization: Digest username="201", realm="192.<BR> 168.1.9",
nonce="429c75d542b41a31c953e92a094347354d6ad422", uri="sip:192.16<BR>
8.1.9:5060", response="2aa4ee1d66adff835b9de526ec1511a8",
algorithm=MD5..Co<BR>
ntent-Length:0....
<BR>#<BR>U 192.168.1.9:5060 -> 192.168.1.35:5060<BR> SIP/2.0 100
Trying..From: <sip:201@192.168.1.9:5060> ;tag=3a4fc965-c1a5a2e.<BR>
.To: <sip:201@192.168.1.9>..Call-ID:
c0a80123-13c4-3a4fc962-1f6-5973..CSeq:<BR> 127 REGISTER..Via:
SIP/2.0/UDP 192.168.1.35:5060 ;branch=z9hG4bK-3a4fe27e-<BR>
621634-49b0..Server: Sip EXpress router (0.9.2
(i386/linux))..Content-Lengt<BR> h: 0..Warning: 392 192.168.1.9:5060
"Noisy feedback tells: pid=4355 req_sr<BR> c_ip=192.168.1.35
req_src_port=5060 in_uri=sip:192.168.1.9:5060 out_uri=sip<BR>
:192.168.1.9:5060
via_cnt==1"....
<BR>#<BR>U 192.168.1.9:5060 -> 192.168.1.35:5060<BR> SIP/2.0 401
Unauthorized..From: <sip:201@192.168.1.9:5060> ;tag=3a4fc965-c1<BR>
a5a2e..To:
<sip:201@192.168.1.9>;tag=e35af7ff49e736750e6bc8e19f478153.5fa6.<BR>
.Call-ID: c0a80123-13c4-3a4fc962-1f6-5973..CSeq: 127 REGISTER..Via:
SIP/2.0<BR> /UDP 192.168.1.35:5060
;branch=z9hG4bK-3a4fe27e-621634-49b0..WWW-Authentica<BR> te: Digest
realm="192.168.1.9", nonce="429c7707dd0067d0c1c7197a673469b18a56<BR>
38ba", stale=true..Server: Sip EXpress router (0.9.2
(i386/linux))..Content<BR> -Length: 0..Warning: 392 192.168.1.9:5060
"Noisy feedback tells: pid=4355 <BR> req_src_ip=192.168.1.35
req_src_port=5060 in_uri=sip:192.168.1.9:5060 out_u<BR>
ri=sip:192.168.1.9:5060
via_cnt==1"....
<BR>#<BR>U 192.168.1.35:5060 -> 192.168.1.9:5060<BR> REGISTER
sip:192.168.1.9:5060 SIP/2.0..From: <sip:201@192.168.1.9:5060>
;ta<BR> g=3a4fc965-c1a5a2e..To: <sip:201@192.168.1.9>..Call-ID:
c0a80123-13c4-3a4fc<BR> 962-1f6-5973..CSeq: 128 REGISTER..Via: SIP/2.0/UDP
192.168.1.35:5060 ;branc<BR> h=z9hG4bK-3a4fe27f-621a24-3029..Max-Forwards:
70..Contact: <sip:201@192.168<BR> .1.35:5060>..Expires:
60..Authorization: Digest username="201", realm="192.<BR> 168.1.9",
nonce="429c7707dd0067d0c1c7197a673469b18a5638ba", uri="sip:192.16<BR>
8.1.9:5060", response="e297c2b9f9a72418140486b9a5d0225e",
algorithm=MD5..Co<BR>
ntent-Length:0....
<BR>#<BR>U 192.168.1.9:5060 -> 192.168.1.35:5060<BR> SIP/2.0 100
Trying..From: <sip:201@192.168.1.9:5060> ;tag=3a4fc965-c1a5a2e.<BR>
.To: <sip:201@192.168.1.9>..Call-ID:
c0a80123-13c4-3a4fc962-1f6-5973..CSeq:<BR> 128 REGISTER..Via:
SIP/2.0/UDP 192.168.1.35:5060 ;branch=z9hG4bK-3a4fe27f-<BR>
621a24-3029..Server: Sip EXpress router (0.9.2
(i386/linux))..Content-Lengt<BR> h: 0..Warning: 392 192.168.1.9:5060
"Noisy feedback tells: pid=4354 req_sr<BR> c_ip=192.168.1.35
req_src_port=5060 in_uri=sip:192.168.1.9:5060 out_uri=sip<BR>
:192.168.1.9:5060
via_cnt==1"....
<BR>#<BR>U 192.168.1.9:5060 -> 192.168.1.35:5060<BR> SIP/2.0 200
OK..From: <sip:201@192.168.1.9:5060>
;tag=3a4fc965-c1a5a2e..To:<BR>
<sip:201@192.168.1.9>;tag=e35af7ff49e736750e6bc8e19f478153.95cd..Call-ID:
<BR> c0a80123-13c4-3a4fc962-1f6-5973..CSeq: 128 REGISTER..Via: SIP/2.0/UDP
192.1<BR> 68.1.35:5060 ;branch=z9hG4bK-3a4fe27f-621a24-3029..Contact:
<sip:201@192.16<BR> 8.1.35:5060>;expires=60..Server: Sip EXpress
router (0.9.2 (i386/linux))..C<BR> ontent-Length: 0..Warning: 392
192.168.1.9:5060 "Noisy feedback tells: pid<BR> =4354
req_src_ip=192.168.1.35 req_src_port=5060
in_uri=sip:192.168.1.9:5060<BR> out_uri=sip:192.168.1.9:5060
via_cnt==1"....
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>[4]+
Stopped
ngrep . port 5060<BR>]0;root@localhost:/usr/local/etc/ser[root@localhost ser]#
serctl ul show<BR>Dumping all contacts may take long: are you sure you want to
proceed? [Y|N] y<BR>===Domain list===<BR>---Domain---<BR>name :
'location'<BR>size : 512<BR>table: 0xf50b60f8<BR>d_ll {<BR>
n : 3<BR> first:
0xf50b8248<BR> last : 0xf50b8108<BR>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>...Record(0xf50b8248)...<BR>domain:
'location'<BR>aor :
'54321'<BR>~~~Contact(0xf50b82a8)~~~<BR>domain :
'location'<BR>aor :
'54321'<BR>Contact :
'sip:54321@192.168.1.201:5060'<BR>Expires :
58<BR>q :
<BR>Call-ID : <A
href="mailto:'1386D1B912DA1212@192.168.1.201'">'1386D1B912DA1212@192.168.1.201'</A><BR>CSeq
: 967<BR>User-Agent: 'Unknown'<BR>received :
''<BR>State : CS_DIRTY<BR>Flags
: 0<BR>next :
(nil)<BR>prev :
(nil)<BR>~~~/Contact~~~~<BR>.../Record...<BR>...Record(0xf50b8388)...<BR>domain:
'location'<BR>aor :
'12345'<BR>~~~Contact(0xf50b83e8)~~~<BR>domain :
'location'<BR>aor :
'12345'<BR>Contact :
'sip:12345@192.168.1.200:5060'<BR>Expires :
35<BR>q :
<BR>Call-ID : <A
href="mailto:'1442D1B912D91212@192.168.1.200'">'1442D1B912D91212@192.168.1.200'</A><BR>CSeq
: 965<BR>User-Agent: 'Unknown'<BR>received :
''<BR>State : CS_DIRTY<BR>Flags
: 0<BR>next :
(nil)<BR>prev :
(nil)<BR>~~~/Contact~~~~<BR>.../Record...<BR>...Record(0xf50b8108)...<BR>domain:
'location'<BR>aor :
'201'<BR>~~~Contact(0xf50bbaa8)~~~<BR>domain :
'location'<BR>aor :
'201'<BR>Contact :
'sip:201@192.168.1.35:5060'<BR>Expires :
45<BR>q :
<BR>Call-ID :
'c0a80123-13c4-3a4fc962-1f6-5973'<BR>CSeq :
128<BR>User-Agent: 'Unknown'<BR>received :
''<BR>State : CS_DIRTY<BR>Flags
: 0<BR>next :
(nil)<BR>prev :
(nil)<BR>~~~/Contact~~~~<BR>.../Record...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>---/Domain---<BR>---Domain---<BR>name :
'aliases'<BR>size : 512<BR>table: 0xf50b4068<BR>d_ll {<BR>
n : 0<BR> first: (nil)<BR>
last : (nil)<BR>}<BR>---/Domain---<BR>===/Domain
list===<BR>]0;root@localhost:/usr/local/etc/ser[root@localhost ser]# cat.[K
ser.cfg<BR>debug=3<BR>fork=yes<BR>log_stderror=no</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>listen=192.168.1.9<BR>port=5060<BR>children=4</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>dns=no<BR>rev_dns=no</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>fifo="/tmp/ser_fifo"<BR>fifo_db_url="mysql://ser:heslo@localhost/ser"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>loadmodule
"/usr/local/lib/ser/modules/mysql.so"<BR>loadmodule
"/usr/local/lib/ser/modules/sl.so"<BR>loadmodule
"/usr/local/lib/ser/modules/tm.so"<BR>loadmodule
"/usr/local/lib/ser/modules/rr.so"<BR>loadmodule
"/usr/local/lib/ser/modules/maxfwd.so"<BR>loadmodule
"/usr/local/lib/ser/modules/usrloc.so"<BR>loadmodule
"/usr/local/lib/ser/modules/registrar.so"<BR>loadmodule
"/usr/local/lib/ser/modules/auth.so"<BR>loadmodule
"/usr/local/lib/ser/modules/auth_db.so"<BR>loadmodule
"/usr/local/lib/ser/modules/uri_db.so"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>modparam("auth_db|uri_db|usrloc", "db_url",
"mysql://ser:heslo@localhost/ser")<BR>modparam("auth_db", "calculate_ha1",
1)<BR>modparam("auth_db", "password_column", "password")<BR>modparam("usrloc",
"db_mode", 2)<BR>modparam("rr", "enable_full_lr", 1)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>route {</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> #
-----------------------------------------------------------------<BR> #
Sanity Check Section<BR> #
-----------------------------------------------------------------<BR> if
(!mf_process_maxfwd_header("10")) {<BR> sl_send_reply("483", "Too
Many Hops");<BR> break;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (msg:len > max_len)
{<BR> sl_send_reply("513", "Message
Overflow");<BR> break;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> #
-----------------------------------------------------------------<BR> #
Record Route Section<BR> #
-----------------------------------------------------------------<BR> if
(method!="REGISTER") {<BR> record_route();<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> #
-----------------------------------------------------------------<BR> #
Loose Route Section<BR> #
-----------------------------------------------------------------<BR> <BR> if
((method=="BYE" || method=="CANCEL") && !(uri=~"^sip:833*@*"))
{<BR> setflag(1);<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (loose_route())
{<BR> route(1);<BR> break;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> #
-----------------------------------------------------------------<BR> #
Call Type Processing Section<BR> #
-----------------------------------------------------------------<BR> if
(uri!=myself)
{<BR> route(1);<BR> break;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (uri==myself) {<BR> if
(method=="INVITE")
{<BR> route(3);<BR> break;<BR> }
else if (method=="REGISTER")
{<BR> route(2);<BR> break;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> lookup("aliases");<BR> if
(uri!=myself)
{<BR> route(1);<BR> break;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (!lookup("location"))
{<BR> sl_send_reply("404", "User Not
Found");<BR> break;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> route(1);<BR> };<BR>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>route[1] {</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> #
-----------------------------------------------------------------<BR> #
Default Message Handler<BR> #
-----------------------------------------------------------------<BR> if
(!t_relay()) {<BR> sl_reply_error();<BR> };<BR>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>route[2] {</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> #
-----------------------------------------------------------------<BR> #
REGISTER Message Handler<BR> #
----------------------------------------------------------------<BR> sl_send_reply("100",
"Trying");<BR> </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (!www_authorize("","subscriber"))
{<BR> www_challenge("","0");<BR> break;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (!check_to())
{<BR> sl_send_reply("401",
"Unauthorized");<BR> break;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> consume_credentials();</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (!save("location"))
{<BR> sl_reply_error();<BR> };<BR>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>route[3] {<BR> #
-----------------------------------------------------------------<BR> #
INVITE Message Handler<BR> #
-----------------------------------------------------------------<BR> if
(!proxy_authorize("localhost","subscriber"))
{<BR> proxy_challenge("localhost","0");<BR> break;<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (uri=~"^sip:053[0-9]*@")
{<BR> #
prefix("201");<BR> rewritehostport("192.168.1.35:5060");<BR> t_relay_to_udp("192.168.1.35","5060");<BR> break;<BR> }<BR> <BR> else
if (!check_from()) {<BR> sl_send_reply("403", "Use
From=ID");<BR> break;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> consume_credentials();</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> lookup("aliases");<BR> if (uri!=myself)
{<BR> route(1);<BR> break;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (!lookup("location"))
{<BR> sl_send_reply("404", "User Not
Found");<BR> break;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2> route(1);<BR>}]0;root@localhost:/usr/local/etc/ser[root@localhost
ser]# </FONT></DIV></BODY></HTML>