<!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&nbsp;wrong with this ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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 -&gt; 192.168.1.9:5060<BR>&nbsp; REGISTER 
sip:192.168.1.9:5060 SIP/2.0..From: &lt;sip:201@192.168.1.9:5060&gt; 
;ta<BR>&nbsp; g=3a4fc965-c1a5a2e..To: &lt;sip:201@192.168.1.9&gt;..Call-ID: 
c0a80123-13c4-3a4fc<BR>&nbsp; 962-1f6-5973..CSeq: 127 REGISTER..Via: SIP/2.0/UDP 
192.168.1.35:5060 ;branc<BR>&nbsp; h=z9hG4bK-3a4fe27e-621634-49b0..Max-Forwards: 
70..Contact: &lt;sip:201@192.168<BR>&nbsp; .1.35:5060&gt;..Expires: 
60..Authorization: Digest username="201", realm="192.<BR>&nbsp; 168.1.9", 
nonce="429c75d542b41a31c953e92a094347354d6ad422", uri="sip:192.16<BR>&nbsp; 
8.1.9:5060", response="2aa4ee1d66adff835b9de526ec1511a8", 
algorithm=MD5..Co<BR>&nbsp; 
ntent-Length:0....&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>#<BR>U 192.168.1.9:5060 -&gt; 192.168.1.35:5060<BR>&nbsp; SIP/2.0 100 
Trying..From: &lt;sip:201@192.168.1.9:5060&gt; ;tag=3a4fc965-c1a5a2e.<BR>&nbsp; 
.To: &lt;sip:201@192.168.1.9&gt;..Call-ID: 
c0a80123-13c4-3a4fc962-1f6-5973..CSeq:<BR>&nbsp;&nbsp; 127 REGISTER..Via: 
SIP/2.0/UDP 192.168.1.35:5060 ;branch=z9hG4bK-3a4fe27e-<BR>&nbsp; 
621634-49b0..Server: Sip EXpress router (0.9.2 
(i386/linux))..Content-Lengt<BR>&nbsp; h: 0..Warning: 392 192.168.1.9:5060 
"Noisy feedback tells:&nbsp; pid=4355 req_sr<BR>&nbsp; c_ip=192.168.1.35 
req_src_port=5060 in_uri=sip:192.168.1.9:5060 out_uri=sip<BR>&nbsp; 
:192.168.1.9:5060 
via_cnt==1"....&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>#<BR>U 192.168.1.9:5060 -&gt; 192.168.1.35:5060<BR>&nbsp; SIP/2.0 401 
Unauthorized..From: &lt;sip:201@192.168.1.9:5060&gt; ;tag=3a4fc965-c1<BR>&nbsp; 
a5a2e..To: 
&lt;sip:201@192.168.1.9&gt;;tag=e35af7ff49e736750e6bc8e19f478153.5fa6.<BR>&nbsp; 
.Call-ID: c0a80123-13c4-3a4fc962-1f6-5973..CSeq: 127 REGISTER..Via: 
SIP/2.0<BR>&nbsp; /UDP 192.168.1.35:5060 
;branch=z9hG4bK-3a4fe27e-621634-49b0..WWW-Authentica<BR>&nbsp; te: Digest 
realm="192.168.1.9", nonce="429c7707dd0067d0c1c7197a673469b18a56<BR>&nbsp; 
38ba", stale=true..Server: Sip EXpress router (0.9.2 
(i386/linux))..Content<BR>&nbsp; -Length: 0..Warning: 392 192.168.1.9:5060 
"Noisy feedback tells:&nbsp; pid=4355 <BR>&nbsp; req_src_ip=192.168.1.35 
req_src_port=5060 in_uri=sip:192.168.1.9:5060 out_u<BR>&nbsp; 
ri=sip:192.168.1.9:5060 
via_cnt==1"....&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>#<BR>U 192.168.1.35:5060 -&gt; 192.168.1.9:5060<BR>&nbsp; REGISTER 
sip:192.168.1.9:5060 SIP/2.0..From: &lt;sip:201@192.168.1.9:5060&gt; 
;ta<BR>&nbsp; g=3a4fc965-c1a5a2e..To: &lt;sip:201@192.168.1.9&gt;..Call-ID: 
c0a80123-13c4-3a4fc<BR>&nbsp; 962-1f6-5973..CSeq: 128 REGISTER..Via: SIP/2.0/UDP 
192.168.1.35:5060 ;branc<BR>&nbsp; h=z9hG4bK-3a4fe27f-621a24-3029..Max-Forwards: 
70..Contact: &lt;sip:201@192.168<BR>&nbsp; .1.35:5060&gt;..Expires: 
60..Authorization: Digest username="201", realm="192.<BR>&nbsp; 168.1.9", 
nonce="429c7707dd0067d0c1c7197a673469b18a5638ba", uri="sip:192.16<BR>&nbsp; 
8.1.9:5060", response="e297c2b9f9a72418140486b9a5d0225e", 
algorithm=MD5..Co<BR>&nbsp; 
ntent-Length:0....&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>#<BR>U 192.168.1.9:5060 -&gt; 192.168.1.35:5060<BR>&nbsp; SIP/2.0 100 
Trying..From: &lt;sip:201@192.168.1.9:5060&gt; ;tag=3a4fc965-c1a5a2e.<BR>&nbsp; 
.To: &lt;sip:201@192.168.1.9&gt;..Call-ID: 
c0a80123-13c4-3a4fc962-1f6-5973..CSeq:<BR>&nbsp;&nbsp; 128 REGISTER..Via: 
SIP/2.0/UDP 192.168.1.35:5060 ;branch=z9hG4bK-3a4fe27f-<BR>&nbsp; 
621a24-3029..Server: Sip EXpress router (0.9.2 
(i386/linux))..Content-Lengt<BR>&nbsp; h: 0..Warning: 392 192.168.1.9:5060 
"Noisy feedback tells:&nbsp; pid=4354 req_sr<BR>&nbsp; c_ip=192.168.1.35 
req_src_port=5060 in_uri=sip:192.168.1.9:5060 out_uri=sip<BR>&nbsp; 
:192.168.1.9:5060 
via_cnt==1"....&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>#<BR>U 192.168.1.9:5060 -&gt; 192.168.1.35:5060<BR>&nbsp; SIP/2.0 200 
OK..From: &lt;sip:201@192.168.1.9:5060&gt; 
;tag=3a4fc965-c1a5a2e..To:<BR>&nbsp;&nbsp; 
&lt;sip:201@192.168.1.9&gt;;tag=e35af7ff49e736750e6bc8e19f478153.95cd..Call-ID: 
<BR>&nbsp; c0a80123-13c4-3a4fc962-1f6-5973..CSeq: 128 REGISTER..Via: SIP/2.0/UDP 
192.1<BR>&nbsp; 68.1.35:5060 ;branch=z9hG4bK-3a4fe27f-621a24-3029..Contact: 
&lt;sip:201@192.16<BR>&nbsp; 8.1.35:5060&gt;;expires=60..Server: Sip EXpress 
router (0.9.2 (i386/linux))..C<BR>&nbsp; ontent-Length: 0..Warning: 392 
192.168.1.9:5060 "Noisy feedback tells:&nbsp; pid<BR>&nbsp; =4354 
req_src_ip=192.168.1.35 req_src_port=5060 
in_uri=sip:192.168.1.9:5060<BR>&nbsp;&nbsp; out_uri=sip:192.168.1.9:5060 
via_cnt==1"....&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>[4]+&nbsp; 
Stopped&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
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>&nbsp;&nbsp;&nbsp; 
n&nbsp;&nbsp;&nbsp; : 3<BR>&nbsp;&nbsp;&nbsp; first: 
0xf50b8248<BR>&nbsp;&nbsp;&nbsp; last : 0xf50b8108<BR>}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>...Record(0xf50b8248)...<BR>domain: 
'location'<BR>aor&nbsp;&nbsp; : 
'54321'<BR>~~~Contact(0xf50b82a8)~~~<BR>domain&nbsp;&nbsp;&nbsp; : 
'location'<BR>aor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
'54321'<BR>Contact&nbsp;&nbsp; : 
'sip:54321@192.168.1.201:5060'<BR>Expires&nbsp;&nbsp; : 
58<BR>q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
<BR>Call-ID&nbsp;&nbsp; : <A 
href="mailto:'1386D1B912DA1212@192.168.1.201'">'1386D1B912DA1212@192.168.1.201'</A><BR>CSeq&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
: 967<BR>User-Agent: 'Unknown'<BR>received&nbsp; : 
''<BR>State&nbsp;&nbsp;&nbsp;&nbsp; : CS_DIRTY<BR>Flags&nbsp;&nbsp;&nbsp;&nbsp; 
: 0<BR>next&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
(nil)<BR>prev&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
(nil)<BR>~~~/Contact~~~~<BR>.../Record...<BR>...Record(0xf50b8388)...<BR>domain: 
'location'<BR>aor&nbsp;&nbsp; : 
'12345'<BR>~~~Contact(0xf50b83e8)~~~<BR>domain&nbsp;&nbsp;&nbsp; : 
'location'<BR>aor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
'12345'<BR>Contact&nbsp;&nbsp; : 
'sip:12345@192.168.1.200:5060'<BR>Expires&nbsp;&nbsp; : 
35<BR>q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
<BR>Call-ID&nbsp;&nbsp; : <A 
href="mailto:'1442D1B912D91212@192.168.1.200'">'1442D1B912D91212@192.168.1.200'</A><BR>CSeq&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
: 965<BR>User-Agent: 'Unknown'<BR>received&nbsp; : 
''<BR>State&nbsp;&nbsp;&nbsp;&nbsp; : CS_DIRTY<BR>Flags&nbsp;&nbsp;&nbsp;&nbsp; 
: 0<BR>next&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
(nil)<BR>prev&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
(nil)<BR>~~~/Contact~~~~<BR>.../Record...<BR>...Record(0xf50b8108)...<BR>domain: 
'location'<BR>aor&nbsp;&nbsp; : 
'201'<BR>~~~Contact(0xf50bbaa8)~~~<BR>domain&nbsp;&nbsp;&nbsp; : 
'location'<BR>aor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
'201'<BR>Contact&nbsp;&nbsp; : 
'sip:201@192.168.1.35:5060'<BR>Expires&nbsp;&nbsp; : 
45<BR>q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
<BR>Call-ID&nbsp;&nbsp; : 
'c0a80123-13c4-3a4fc962-1f6-5973'<BR>CSeq&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
128<BR>User-Agent: 'Unknown'<BR>received&nbsp; : 
''<BR>State&nbsp;&nbsp;&nbsp;&nbsp; : CS_DIRTY<BR>Flags&nbsp;&nbsp;&nbsp;&nbsp; 
: 0<BR>next&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
(nil)<BR>prev&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
(nil)<BR>~~~/Contact~~~~<BR>.../Record...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>---/Domain---<BR>---Domain---<BR>name : 
'aliases'<BR>size : 512<BR>table: 0xf50b4068<BR>d_ll {<BR>&nbsp;&nbsp;&nbsp; 
n&nbsp;&nbsp;&nbsp; : 0<BR>&nbsp;&nbsp;&nbsp; first: (nil)<BR>&nbsp;&nbsp;&nbsp; 
last : (nil)<BR>}<BR>---/Domain---<BR>===/Domain 
list===<BR>]0;root@localhost:/usr/local/etc/ser[root@localhost ser]# cat. 
ser.cfg<BR>debug=3<BR>fork=yes<BR>log_stderror=no</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>listen=192.168.1.9<BR>port=5060<BR>children=4</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>dns=no<BR>rev_dns=no</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>fifo="/tmp/ser_fifo"<BR>fifo_db_url="mysql://ser:heslo@localhost/ser"</FONT></DIV>
<DIV>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>route {</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;# 
-----------------------------------------------------------------<BR>&nbsp;# 
Sanity Check Section<BR>&nbsp;# 
-----------------------------------------------------------------<BR>&nbsp;if 
(!mf_process_maxfwd_header("10")) {<BR>&nbsp;&nbsp;sl_send_reply("483", "Too 
Many Hops");<BR>&nbsp;&nbsp;break;<BR>&nbsp;};</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;if (msg:len &gt; max_len) 
{<BR>&nbsp;&nbsp;sl_send_reply("513", "Message 
Overflow");<BR>&nbsp;&nbsp;break;<BR>&nbsp;};</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;# 
-----------------------------------------------------------------<BR>&nbsp;# 
Record Route Section<BR>&nbsp;# 
-----------------------------------------------------------------<BR>&nbsp;if 
(method!="REGISTER") {<BR>&nbsp;&nbsp;record_route();<BR>&nbsp;};</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;# 
-----------------------------------------------------------------<BR>&nbsp;# 
Loose Route Section<BR>&nbsp;# 
-----------------------------------------------------------------<BR>&nbsp;<BR>&nbsp;if 
((method=="BYE" || method=="CANCEL") &amp;&amp; !(uri=~"^sip:833*@*")) 
{<BR>&nbsp;&nbsp;setflag(1);<BR>&nbsp;}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;if (loose_route()) 
{<BR>&nbsp;&nbsp;route(1);<BR>&nbsp;&nbsp;break;<BR>&nbsp;};</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;# 
-----------------------------------------------------------------<BR>&nbsp;# 
Call Type Processing Section<BR>&nbsp;# 
-----------------------------------------------------------------<BR>&nbsp;if 
(uri!=myself) 
{<BR>&nbsp;&nbsp;route(1);<BR>&nbsp;&nbsp;break;<BR>&nbsp;};</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;if (uri==myself) {<BR>&nbsp;&nbsp;if 
(method=="INVITE") 
{<BR>&nbsp;&nbsp;&nbsp;route(3);<BR>&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;} 
else &nbsp;if (method=="REGISTER") 
{<BR>&nbsp;&nbsp;&nbsp;route(2);<BR>&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;};</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;lookup("aliases");<BR>&nbsp;&nbsp;if 
(uri!=myself) 
{<BR>&nbsp;&nbsp;&nbsp;route(1);<BR>&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;};</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;if (!lookup("location")) 
{<BR>&nbsp;&nbsp;&nbsp;sl_send_reply("404", "User Not 
Found");<BR>&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;};</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;route(1);<BR>&nbsp;};<BR>}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>route[1] {</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;# 
-----------------------------------------------------------------<BR>&nbsp;# 
Default Message Handler<BR>&nbsp;# 
-----------------------------------------------------------------<BR>&nbsp;if 
(!t_relay()) {<BR>&nbsp;&nbsp;sl_reply_error();<BR>&nbsp;};<BR>}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>route[2] {</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;# 
-----------------------------------------------------------------<BR>&nbsp;# 
REGISTER Message Handler<BR>&nbsp;# 
----------------------------------------------------------------<BR>&nbsp;sl_send_reply("100", 
"Trying");<BR>&nbsp;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;if (!www_authorize("","subscriber")) 
{<BR>&nbsp;&nbsp;www_challenge("","0");<BR>&nbsp;&nbsp;break;<BR>&nbsp;};</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;if (!check_to()) 
{<BR>&nbsp;&nbsp;sl_send_reply("401", 
"Unauthorized");<BR>&nbsp;&nbsp;break;<BR>&nbsp;};</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;consume_credentials();</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;if (!save("location")) 
{<BR>&nbsp;&nbsp;sl_reply_error();<BR>&nbsp;};<BR>}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>route[3] {<BR>&nbsp;# 
-----------------------------------------------------------------<BR>&nbsp;# 
INVITE Message Handler<BR>&nbsp;# 
-----------------------------------------------------------------<BR>&nbsp;if 
(!proxy_authorize("localhost","subscriber")) 
{<BR>&nbsp;&nbsp;proxy_challenge("localhost","0");<BR>&nbsp;&nbsp;break;<BR>&nbsp;}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;if (uri=~"^sip:053[0-9]*@") 
{<BR>&nbsp;&nbsp;# 
prefix("201");<BR>&nbsp;&nbsp;rewritehostport("192.168.1.35:5060");<BR>&nbsp;&nbsp;t_relay_to_udp("192.168.1.35","5060");<BR>&nbsp;&nbsp;break;<BR>&nbsp;}<BR>&nbsp;&nbsp;<BR>&nbsp;else 
if (!check_from()) {<BR>&nbsp;&nbsp;sl_send_reply("403", "Use 
From=ID");<BR>&nbsp;&nbsp;break;<BR>&nbsp;};</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;consume_credentials();</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;lookup("aliases");<BR>&nbsp;if (uri!=myself) 
{<BR>&nbsp;&nbsp;route(1);<BR>&nbsp;&nbsp;break;<BR>&nbsp;};</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;if (!lookup("location")) 
{<BR>&nbsp;&nbsp;sl_send_reply("404", "User Not 
Found");<BR>&nbsp;&nbsp;break;<BR>&nbsp;};</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;route(1);<BR>}]0;root@localhost:/usr/local/etc/ser[root@localhost 
ser]# </FONT></DIV></BODY></HTML>