<!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>Dear Friends,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This is fifth or tenth times writing to list but
still no way :(</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV>
<DIV>REGISTERED USERS (12345 and 54321 are ATAs, 201 is Analog FXO's Port
0)</DIV>
<DIV><BR>[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:
0xf50cb0f8<BR>d_ll {<BR> n :
3<BR> first: 0xf50cd108<BR> last :
0xf50cd388<BR>}</DIV>
<DIV> </DIV>
<DIV>...Record(0xf50cd108)...<BR>domain: 'location'<BR>aor :
'12345'<BR>~~~Contact(0xf50cd168)~~~<BR>domain :
'location'<BR>aor :
'12345'<BR>Contact :
'sip:12345@192.168.1.200:5060'<BR>Expires :
33<BR>q :<BR>Call-ID
: <A
href="mailto:'410D1B912D91111@192.168.1.200'">'410D1B912D91111@192.168.1.200'</A><BR>CSeq
: 7962<BR>User-Agent: 'Unknown'<BR>received :
''<BR>State : CS_NEW<BR>Flags :
0<BR>next :
(nil)<BR>prev :
(nil)<BR>~~~/Contact~~~~<BR>.../Record...<BR>...Record(0xf50cd248)...<BR>domain:
'location'<BR>aor :
'54321'<BR>~~~Contact(0xf50cd2a8)~~~<BR>domain :
'location'<BR>aor :
'54321'<BR>Contact :
'sip:54321@192.168.1.201:5060'<BR>Expires :
34<BR>q :<BR>Call-ID
: <A
href="mailto:'379D1B912DA1111@192.168.1.201'">'379D1B912DA1111@192.168.1.201'</A><BR>CSeq
: 7955<BR>User-Agent: 'Unknown'<BR>received :
''<BR>State : CS_NEW<BR>Flags :
0<BR>next :
(nil)<BR>prev :
(nil)<BR>~~~/Contact~~~~<BR>.../Record...<BR>...Record(0xf50cd388)...<BR>domain:
'location'<BR>aor :
'201'<BR>~~~Contact(0xf50cd3e8)~~~<BR>domain :
'location'<BR>aor :
'201'<BR>Contact :
'sip:201@192.168.1.35:5060'<BR>Expires :
37<BR>q :<BR>Call-ID
: 'c0a80123-13c4-3a570cf4-1f6-5973'<BR>CSeq :
184<BR>User-Agent: 'Unknown'<BR>received :
''<BR>State : CS_NEW<BR>Flags :
0<BR>next :
(nil)<BR>prev :
(nil)<BR>~~~/Contact~~~~<BR>.../Record...</DIV>
<DIV> </DIV>
<DIV>---/Domain---<BR>---Domain---<BR>name : 'aliases'<BR>size : 512<BR>table:
0xf50c9068<BR>d_ll {<BR> n :
0<BR> first: (nil)<BR> last :
(nil)<BR>}<BR>---/Domain---<BR>===/Domain list===<BR></DIV>
<DIV> </DIV>
<DIV>(Basic SER.CFG , I want to it to route any 053XXXXXXXX Calls to
192.168.1.35 [Analog FXO Gateway] by adding 201 Prefix so it dials a Cellular.
Nearly same thing worked for Brekeke's Ondo SIP Proxy but why id does not work
in SER)</DIV>
<DIV><BR>debug=3<BR>fork=yes<BR>log_stderror=no</DIV>
<DIV> </DIV>
<DIV>listen=192.168.1.10
# put your server IP address here<BR>port=5060<BR>children=4</DIV>
<DIV> </DIV>
<DIV>dns=no<BR>rev_dns=no<BR>fifo="/tmp/ser_fifo"</DIV>
<DIV> </DIV>
<DIV>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"</DIV>
<DIV> </DIV>
<DIV>modparam("usrloc", "db_mode", 0)<BR>modparam("rr",
"enable_full_lr", 1)</DIV>
<DIV> </DIV>
<DIV>route {</DIV>
<DIV> </DIV>
<DIV> #
------------------------------------------------------------------------<BR>
# Sanity Check Section<BR> #
------------------------------------------------------------------------<BR>
if (!mf_process_maxfwd_header("12"))
{<BR>
sl_send_reply("483", "Too Many
Hops");<BR>
break;<BR> };</DIV>
<DIV> </DIV>
<DIV> if (msg:len > max_len)
{<BR>
sl_send_reply("513", "Message
Overflow");<BR>
break;<BR> };</DIV>
<DIV> </DIV>
<DIV> #
------------------------------------------------------------------------<BR>
# Record Route Section<BR> #
------------------------------------------------------------------------<BR>
if (method!="REGISTER")
{<BR>
record_route();<BR> };</DIV>
<DIV> </DIV>
<DIV> #
------------------------------------------------------------------------<BR>
# Loose Route Section<BR> #
------------------------------------------------------------------------<BR>
if (loose_route())
{<BR>
route(1);<BR>
break;<BR> };</DIV>
<DIV> </DIV>
<DIV> #
------------------------------------------------------------------------<BR>
# Call Type Processing Section<BR> #
------------------------------------------------------------------------<BR>
if (uri!=myself)
{<BR>
route(1);<BR>
break;<BR> };</DIV>
<DIV> </DIV>
<DIV> if (uri==myself) {</DIV>
<DIV> </DIV>
<DIV>
if (method=="REGISTER")
{<BR>
route(2);<BR>
break;<BR>
};</DIV>
<DIV> </DIV>
<DIV>
lookup("aliases");<BR>
if (uri!=myself)
{<BR>
route(1);<BR>
break;<BR>
};</DIV>
<DIV> </DIV>
<DIV>
if (uri=~"^sip:053[0-9]*@.*")
{<BR>
prefix("201");<BR>
rewritehostport
("192.168.1.35:5060");<BR>
# forward
("192.168.1.35:5060");<BR>
#
t_relay_to_udp("192.168.1.35","5060");<BR>
break;<BR>
};</DIV>
<DIV> </DIV>
<DIV>
if (!lookup("location"))
{<BR>
sl_send_reply("404", "User Not
Found");<BR>
break;<BR>
};</DIV>
<DIV> </DIV>
<DIV>
route(1);<BR> };<BR>}</DIV>
<DIV> </DIV>
<DIV>route[1] {<BR> #
------------------------------------------------------------------------<BR>
# Default Message Handler<BR> #
------------------------------------------------------------------------<BR>
if (!t_relay())
{<BR>
sl_reply_error();<BR> };<BR>}</DIV>
<DIV> </DIV>
<DIV>route[2] {<BR> #
------------------------------------------------------------------------<BR>
# REGISTER Message Handler<BR> #
------------------------------------------------------------------------<BR>
if (!save("location"))
{<BR>
sl_reply_error();<BR> };<BR>}</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>SIPSAK RESULTS (Too Many Hops and User Not Found Errors)</DIV>
<DIV> </DIV>
<DIV>[root@localhost ser]# sipsak -T -s
sip:20105353490056@192.168.1.10<BR>warning: IP extract from warning activated to
be more informational<BR>0: 192.168.1.10 (0.098 ms) SIP/2.0 483 Too Many
Hops<BR>1: 192.168.1.10 (0.244 ms) SIP/2.0 404 User Not
Found<BR> without Contact
header<BR>[root@localhost ser]# sipsak -T -s sip:12345@192.168.1.10<BR>warning:
IP extract from warning activated to be more informational<BR>0: 192.168.1.10
(0.084 ms) SIP/2.0 483 Too Many Hops<BR>1: ?? (13.000 ms) SIP/2.0 200
OK<BR> Contact:
<sip:12345@192.168.1.200:5060><BR>[root@localhost ser]# sipsak -T -s
sip:54321@192.168.1.10<BR>warning: IP extract from warning activated to be more
informational<BR>0: 192.168.1.10 (0.079 ms) SIP/2.0 483 Too Many Hops<BR>1: ??
(13.020 ms) SIP/2.0 200 OK<BR>
Contact: <sip:54321@192.168.1.201:5060><BR>[root@localhost
ser]#<BR></DIV></FONT></BODY></HTML>