<!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.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am working on a project which involves testing
SER with some dummy clients.</FONT></DIV>
<DIV>I have downloaded and installed OpenSER. I am using the very basic
Hello.cfg configuration file available online.</DIV>
<DIV><FONT face=Arial size=2>I find that when SER gets a INVITE request from the
caller, it does not deliver it properly to the client (callee). Some debugging
revealed that it relays the request to port 5060 at the client rather than the
one which was registered by the callee earlier. I tried to look at the source
code of SER and found that the callee's contact information never seem
to be looked up at any stage.</FONT></DIV>
<DIV> </DIV>
<DIV>Is this due to some missing information in my configuration
file?</DIV>
<DIV>Any feedback would be appreciated.</DIV>
<DIV> </DIV>
<DIV>Thank you </DIV>
<DIV>-Kaushik</DIV>
<DIV>PS: I have attached (inline) the configuration file</DIV>
<DIV> </DIV>
<DIV>ser.cfg</DIV>
<DIV>------------------------------------</DIV>
<DIV> </DIV>
<DIV>debug=9<BR>fork=yes <BR>log_stderror=yes</DIV>
<DIV> </DIV>
<DIV>listen=128.42.3.3
<BR>port=5060<BR>children=4</DIV>
<DIV> </DIV>
<DIV>check_via=no # added<BR>dns=no<BR>rev_dns=no<BR>fifo="/tmp/ser_fifo"</DIV>
<DIV> </DIV>
<DIV>loadmodule
"/scratch/ser-0.9.7-pre1/modules/sl/sl.so"
# Stateless replies<BR>loadmodule
"/scratch/ser-0.9.7-pre1/modules/tm/tm.so"
# Transaction management<BR>loadmodule
"/scratch/ser-0.9.7-pre1/modules/rr/rr.so"
# Routing and record-routing<BR>loadmodule
"/scratch/ser-0.9.7-pre1/modules/maxfwd/maxfwd.so"
# Max fowards check<BR>loadmodule
"/scratch/ser-0.9.7-pre1/modules/usrloc/usrloc.so"
# User location support<BR>loadmodule
"/scratch/ser-0.9.7-pre1/modules/registrar/registrar.so"
# Registrar (requires userloc and sl)<BR>loadmodule
"/scratch/ser-0.9.7-pre1/modules/textops/textops.so"
# Message textual operations</DIV>
<DIV> </DIV>
<DIV>modparam("usrloc", "db_mode", 0)
# 0 forces registration data to be stored in memory<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("10"))
{<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>
append_hf("P-hint:
rr-enforced\r\n");<BR>
route(1);<BR>
break;<BR> };</DIV>
<DIV> </DIV>
<DIV> #
------------------------------------------------------------------------<BR>
# Call Type Processing Section<BR> #
------------------------------------------------------------------------<BR>
if (uri!=myself)
{<BR>
append_hf("P-hint:
outbound\r\n");<BR>
route(1);<BR>
break;<BR> };</DIV>
<DIV> </DIV>
<DIV> if (method=="ACK")
{<BR>
route(1);<BR>
break;<BR> } else if
(method=="REGISTER")
{<BR>
route(2);<BR>
break;<BR> };</DIV>
<DIV> </DIV>
<DIV>
lookup("aliases");<BR> if
(uri!=myself)
{<BR>
append_hf("P-hint: outbound
alias\r\n");<BR>
route(1);<BR>
break;<BR> };</DIV>
<DIV> </DIV>
<DIV> if (!lookup("location"))
{<BR>
sl_send_reply("404", "User Not
Found");<BR>
break;<BR>
};<BR> append_hf("P-hint: userloc
applied\r\n");<BR>
route(1);<BR>}</DIV>
<DIV> </DIV>
<DIV>route[1] {<BR> #
------------------------------------------------------------------------<BR>
# Default Message Handler<BR> #
------------------------------------------------------------------------<BR>
if (!t_relay())
{ <BR>
log(2, "Failed
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>}<BR></DIV></FONT></DIV></BODY></HTML>