<!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.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>hi kofi, </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>attached is my ser.cfg i got this sample script 
from onsip.org getting started doc. this is their&nbsp;auth-mysql.3.05.cfg 
sample script, i just change the IP address on the listen variable. running 
using this cfg file leads me to an error.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>ERROR: bad config file (1 errors)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>maybe u can help me fix this. i have no idea 
how&nbsp;i can give you more details on the error cause that is the only line 
the system gives me.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>thnks.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>debug=3<BR>fork=yes<BR>log_stderror=no</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>listen=203.115.128.41&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
# put your server IP address here<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><FONT face=Arial size=2></FONT>&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;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("","subscriber")) 
{<BR>&nbsp;&nbsp;proxy_challenge("","0");<BR>&nbsp;&nbsp;break;<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>}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=kofi@radiocomplex.com href="mailto:kofi@radiocomplex.com">Kofi 
  Obiri-Yeboah</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=chris@fivestartel.com 
  href="mailto:chris@fivestartel.com">chris</A> ; <A title=serusers@lists.iptel.org 
  href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, July 26, 2005 11:39 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Serusers] serctll add 
  error</DIV>
  <DIV><BR></DIV>
  <DIV><SPAN class=215023915-26072005><FONT face=Arial color=#0000ff 
  size=2>please send your config file</FONT></SPAN></DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
    size=2>-----Original Message-----<BR><B>From:</B> chris 
    [mailto:chris@fivestartel.com]<BR><B>Sent:</B> Tuesday, July 26, 2005 6:34 
    AM<BR><B>To:</B> Kofi Obiri-Yeboah; <A 
    href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A><BR><B>Subject:</B> 
    Re: [Serusers] serctll add error<BR><BR></FONT></DIV>
    <DIV><FONT face=Arial size=2>hi,</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>i still got the same error</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>bash-2.05# serctl add 1001 1001 <A 
    href="mailto:chris@yahoo.com">chris@yahoo.com</A><BR>awk: syntax error near 
    line 1<BR>awk: bailing out near line 1<BR>awk: syntax error near line 
    1<BR>awk: bailing out near line 1<BR>HA1 calculation 
    failed<BR>bash-2.05#<BR></FONT></DIV>
    <DIV><FONT face=Arial size=2>pls. advise on how to fix this.</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>thnks.</DIV></FONT>
    <BLOCKQUOTE dir=ltr 
    style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
      <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
      <DIV 
      style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
      <A title=kofi@radiocomplex.com href="mailto:kofi@radiocomplex.com">Kofi 
      Obiri-Yeboah</A> </DIV>
      <DIV style="FONT: 10pt arial"><B>To:</B> <A title=chris@fivestartel.com 
      href="mailto:chris@fivestartel.com">chris</A> ; <A 
      title=serusers@lists.iptel.org 
      href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> </DIV>
      <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, July 26, 2005 8:06 
      PM</DIV>
      <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Serusers] serctll add 
      error</DIV>
      <DIV><BR></DIV>
      <DIV><SPAN class=105520212-26072005><FONT face=Arial color=#0000ff 
      size=2>syntax is &lt;username&gt; &lt;password&gt; &lt;email 
      address&gt;</FONT></SPAN></DIV>
      <DIV><SPAN class=105520212-26072005><FONT face=Arial color=#0000ff 
      size=2>you have a typo in the email address use "@"&nbsp; instead of 
      "2"&nbsp; </FONT></SPAN></DIV>
      <DIV><SPAN class=105520212-26072005><FONT face=Arial color=#0000ff 
      size=2>use&nbsp;shift-2 before yahoo.com</FONT></SPAN></DIV>
      <DIV><SPAN class=105520212-26072005><FONT face=Arial color=#0000ff 
      size=2></FONT></SPAN>&nbsp;</DIV>
      <DIV><SPAN class=105520212-26072005><FONT face=Arial color=#0000ff 
      size=2>HTH</FONT></SPAN></DIV>
      <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
        <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
        size=2>-----Original Message-----<BR><B>From:</B> <A 
        href="mailto:serusers-bounces@iptel.org">serusers-bounces@lists.iptel.org</A> 
        [mailto:serusers-bounces@lists.iptel.org]<B>On Behalf Of 
        </B>chris<BR><B>Sent:</B> Tuesday, July 26, 2005 12:58 AM<BR><B>To:</B> 
        <A 
        href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A><BR><B>Subject:</B> 
        [Serusers] serctll add error<BR><BR></FONT></DIV>
        <DIV><FONT face=Arial size=2>hello</FONT></DIV>
        <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
        <DIV><FONT face=Arial size=2>i tried running serctl add 1001 1001 
        chris_cleofe2yahoo.com</FONT></DIV>
        <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
        <DIV><FONT face=Arial size=2>but i got this error:</FONT></DIV>
        <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
        <DIV><FONT face=Arial size=2>awk: syntax error near line 1<BR>awk: 
        bailing out near line 1<BR>awk: syntax error near line 1<BR>awk: bailing 
        out near line 1<BR>HA1 calculation failed</FONT></DIV>
        <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
        <DIV><FONT face=Arial size=2>pls advise.</FONT></DIV>
        <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
        <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
        <DIV><FONT face=Arial size=2>thnks.</DIV>
        <DIV><BR></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></FONT></BODY></HTML>