<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.E-postmall17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=SV link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>I have problems setting up Sip Express Router (SER). I
have installed it, and it seems to run fine, and my softphone seems to able to
connect to it. Just to see if it works, I want to set up ser to connect my
softphone to my friend's (his IP is 192.168.1.192). Therefore I change the
ser.cfg file to look like this: <br>
<br>
---------- <br>
<br>
# <br>
# $Id: ser.cfg,v 1.25.2.1 2005/02/18 14:30:44 andrei Exp $ <br>
# <br>
# simple quick-start config script <br>
# <br>
<br>
# ----------- global configuration parameters ------------------------ <br>
<br>
#debug=3 # debug level (cmd line: -dddddddddd) <br>
#fork=yes <br>
#log_stderror=no # (cmd line: -E) <br>
<br>
/* Uncomment these lines to enter debugging mode <br>
fork=no <br>
log_stderror=yes <br>
*/ <br>
<br>
check_via=no # (cmd. line: -v) <br>
dns=no # (cmd. line: -r) <br>
rev_dns=no # (cmd. line: -R) <br>
#port=5060 <br>
#children=4 <br>
fifo=&quot;/tmp/ser_fifo&quot; <br>
<br>
# ------------------ module loading ---------------------------------- <br>
<br>
# Uncomment this if you want to use SQL database <br>
#loadmodule &quot;../usr/local/lib/ser/modules/mysql.so&quot; <br>
<br>
loadmodule &quot;../usr/local/lib/ser/modules/sl.so&quot; <br>
loadmodule &quot;../usr/local/lib/ser/modules/tm.so&quot; <br>
loadmodule &quot;../usr/local/lib/ser/modules/rr.so&quot; <br>
loadmodule &quot;../usr/local/lib/ser/modules/maxfwd.so&quot; <br>
loadmodule &quot;../usr/local/lib/ser/modules/usrloc.so&quot; <br>
loadmodule &quot;../usr/local/lib/ser/modules/registrar.so&quot; <br>
loadmodule &quot;../usr/local/lib/ser/modules/textops.so&quot; <br>
<br>
# Uncomment this if you want digest authentication <br>
# mysql.so must be loaded ! <br>
#loadmodule &quot;../usr/local/lib/ser/modules/auth.so&quot; <br>
#loadmodule &quot;../usr/local/lib/ser/modules/auth_db.so&quot; <br>
<br>
# ----------------- setting module-specific parameters --------------- <br>
<br>
# -- usrloc params -- <br>
<br>
modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 0) <br>
<br>
# Uncomment this if you want to use SQL database <br>
# for persistent storage and comment the previous line <br>
#modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 2) <br>
<br>
# -- auth params -- <br>
# Uncomment if you are using auth module <br>
# <br>
#modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, yes) <br>
# <br>
# If you set &quot;calculate_ha1&quot; parameter to yes (which true in this
config), <br>
# uncomment also the following parameter) <br>
# <br>
#modparam(&quot;auth_db&quot;, &quot;password_column&quot;,
&quot;password&quot;) <br>
<br>
# -- rr params -- <br>
# add value to ;lr param to make some broken UAs happy <br>
modparam(&quot;rr&quot;, &quot;enable_full_lr&quot;, 1) <br>
<br>
# ------------------------- request routing logic ------------------- <br>
<br>
# main routing logic <br>
<br>
route{ <br>
<br>
# initial sanity checks -- messages with <br>
# max_forwards==0, or excessively long requests <br>
if (!mf_process_maxfwd_header(&quot;10&quot;)) { <br>
sl_send_reply(&quot;483&quot;,&quot;Too Many Hops&quot;); <br>
break; <br>
}; <br>
if (msg:len &gt;= 2048 ) { <br>
sl_send_reply(&quot;513&quot;, &quot;Message too big&quot;); <br>
break; <br>
}; <br>
<br>
<br>
# we record-route all messages -- to make sure that <br>
# subsequent messages will go through our proxy; that's <br>
# particularly good if upstream and downstream entities <br>
# use different transport protocol <br>
if (!method==&quot;REGISTER&quot;) record_route(); <br>
<br>
# subsequent messages withing a dialog should take the <br>
# path determined by record-routing <br>
if (loose_route()) { <br>
# mark routing logic in request <br>
append_hf(&quot;P-hint: rr-enforced\r\n&quot;); <br>
route(1); <br>
break; <br>
}; <br>
<br>
if (uri==&quot;sip:cooldude@company.se&quot;) { <br>
forward( 192.168.1.192, 5060); <br>
} <br>
<br>
if (!uri==myself) { <br>
# mark routing logic in request <br>
append_hf(&quot;P-hint: outbound\r\n&quot;); <br>
route(1); <br>
break; <br>
}; <br>
<br>
# if the request is for other domain use UsrLoc <br>
# (in case, it does not work, use the following command <br>
# with proper names and addresses in it) <br>
if (uri==myself) { <br>
<br>
if (method==&quot;REGISTER&quot;) { <br>
<br>
# Uncomment this if you want to use digest authentication <br>
# if (!www_authorize(&quot;iptel.org&quot;, &quot;subscriber&quot;)) { <br>
# www_challenge(&quot;iptel.org&quot;, &quot;0&quot;); <br>
# break; <br>
# }; <br>
<br>
save(&quot;location&quot;); <br>
break; <br>
}; <br>
<br>
lookup(&quot;aliases&quot;); <br>
if (!uri==myself) { <br>
append_hf(&quot;P-hint: outbound alias\r\n&quot;); <br>
route(1); <br>
break; <br>
}; <br>
<br>
# native SIP destinations are handled using our USRLOC DB <br>
if (!lookup(&quot;location&quot;)) { <br>
sl_send_reply(&quot;404&quot;, &quot;Not Found&quot;); <br>
break; <br>
}; <br>
}; <br>
append_hf(&quot;P-hint: usrloc applied\r\n&quot;); <br>
route(1); <br>
} <br>
<br>
route[1] <br>
{ <br>
# send it out now; use stateful forwarding as it works reliably <br>
# even for UDP2TCP <br>
if (!t_relay()) { <br>
sl_reply_error(); <br>
}; <br>
} <br>
<br>
<br>
---------- <br>
<br>
Where <br>
<br>
if (uri==&quot;sip:cooldude@company.se&quot;) { <br>
forward( 192.168.1.192, 5060); <br>
} <br>
<br>
is the only thing I have added to the original default config file that comes
with the distribution. I now want to enter &quot;sip:cooldude@company.se&quot;
in my softphone and get forwarded to 192.168.1.192. </span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>But nothing
happens. Ideas?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am using Linux 2.4.18-14 and ser 0.9.6.<o:p></o:p></span></font></p>

</div>

</body>

</html>