<html xmlns:v="urn:schemas-microsoft-com:vml" 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)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0pt;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Trebuchet MS";}
p.MsoFootnoteText, li.MsoFootnoteText, div.MsoFootnoteText
        {margin:0pt;
        margin-bottom:.0001pt;
        font-size:9.0pt;
        font-family:"Trebuchet MS";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0pt;
        mso-margin-bottom-alt:auto;
        margin-left:0pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
address
        {margin:0pt;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        font-style:italic;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:42.55pt 42.55pt 42.55pt 42.55pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hey Ezequiel,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><br>
Many thanks for the quick response!&nbsp; Yeah, sorry, I should have mentioned
I already have persistent storage for the user tables &#8211; they&#8217;re all
stored using mode2, I was just checking with all the references to
&#8220;aliases stored in cache&#8221; that they were actually written to the db
as well.<o:p></o:p></span></font></p>

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

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Could you explain what the FOREVER_REL
value is?&nbsp; Why would the value be too high? Too large a number of the type
of storage in the mysql table? <o:p></o:p></span></font></p>

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

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Also, does anyone know why the serctl
script says the alias was added, but it doesn&#8217;t seem to have been..?<o:p></o:p></span></font></p>

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

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Many thanks again everyone,<o:p></o:p></span></font></p>

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

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

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

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font face=Tahoma><span
style='font-family:Tahoma'> Ezequiel Colombo [mailto:ecolombo@arcotel.net] <br>
<b><span style='font-weight:bold'>Sent:</span></b> 14 July 2004 19:54<br>
<b><span style='font-weight:bold'>To:</span></b> Dave Bath; serusers@lists.iptel.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Serusers] Aliasing
problem</span></font><font size=3 face="Times New Roman"><span
style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

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

<div>

<p class=MsoNormal><font size=2 face="Trebuchet MS"><span style='font-size:
10.0pt'>Dave, you must turn no the persistent storage of the usrloc table. After
this the&nbsp;contacts added in the memory table can be dumped to mysql.</span></font><font
size=3 face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face="Trebuchet MS"><span style='font-size:
10.0pt'>You can also check in the script serctl if the value of the variable
FOREVER_REL is appropiate or is too high for your mysql aliases table and cause
the INSERT to fail. In my network i have reduced this value to
FOREVER_REL=31536000 (one year).</span></font><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face="Trebuchet MS"><span style='font-size:
10.0pt'>... FROM README FILE OF USRLOC MODULE ...</span></font><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face="Trebuchet MS"><span style='font-size:
10.0pt'>1.3.10. db_mode (integer)</span></font><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face="Trebuchet MS"><span style='font-size:
10.0pt'>&nbsp;&nbsp; The usrloc module can utilize database for persistent
contact<br>
&nbsp;&nbsp; storage. If you use database, your contacts will survive<br>
&nbsp;&nbsp; machine restarts or sw crashes. The disadvantage is that<br>
&nbsp;&nbsp; accessing database can be very time consuming. Therefore,<br>
&nbsp;&nbsp; usrloc module implements three database accessing modes:</span></font><font
size=3 face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face="Trebuchet MS"><span style='font-size:
10.0pt'>&nbsp;&nbsp;&nbsp;&nbsp; * 0 - This disables database completely. Only
memory will be<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; used. Contacts will not survive restart.
Use this value if<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; you need a really fast usrloc and contact
persistence is<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; not necessarry or is provided by other
means.<br>
&nbsp;&nbsp;&nbsp;&nbsp; * 1 - Write-Through scheme. All changes to usrloc are<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; immediately reflected in database too.
This is very slow,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; but very reliable. Use this scheme if
speed is not your<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; priority but need to make sure that no
registered contacts<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; will be lost during crash or reboot.<br>
&nbsp;&nbsp;&nbsp;&nbsp; * 2 - Write-Back scheme. This is a combination of
previous<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; two schemes. All changes are made to
memory and database<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; synchronization is done in the timer. The
timer deletes<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all expired contacts and flushes all
modified or new<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; contacts to database. Use this scheme if
you encounter<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; high-load peaks and want them to process
as fast as<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; possible. The mode will not help at all if
the load is<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; high all the time. Also, latency of this
mode is much<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lower than latency of mode 1, but slightly
higher than<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; latency of mode 0.</span></font><font
size=3 face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face="Trebuchet MS"><span style='font-size:
10.0pt'>&nbsp;&nbsp; Warning</span></font><font size=3 face="Times New Roman"><span
style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face="Trebuchet MS"><span style='font-size:
10.0pt'>&nbsp;&nbsp; In case of crash or restart contacts that are in memory
only<br>
&nbsp;&nbsp; and haven't been flushed yet will get lost. If you want<br>
&nbsp;&nbsp; minimize the risk, use shorter timer interval.</span></font><font
size=3 face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face="Trebuchet MS"><span style='font-size:
10.0pt'>&nbsp;&nbsp; Default value is 0.</span></font><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face="Trebuchet MS"><span style='font-size:
10.0pt'>&nbsp;&nbsp; Example 1-10. Set db_mode parameter<br>
...<br>
modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 2)<br>
...</span></font><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>&nbsp;<o:p></o:p></span></font></p>

</div>

<blockquote style='border:none;border-left:solid black 1.5pt;padding:0pt 0pt 0pt 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0pt;margin-bottom:5.0pt'>

<div>

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

</div>

<div style='font-color:black'>

<p class=MsoNormal style='background:#E4E4E4'><b><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial;font-weight:bold'>From:</span></font></b><font
face=Arial><span style='font-family:Arial'> <a href="mailto:dave@fuuz.com"
title="dave@fuuz.com">Dave Bath</a> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><b><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial;font-weight:bold'>To:</span></font></b><font face=Arial><span
style='font-family:Arial'> <a href="mailto:serusers@lists.iptel.org"
title="serusers@lists.iptel.org">serusers@lists.iptel.org</a> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><b><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial;font-weight:bold'>Sent:</span></font></b><font face=Arial><span
style='font-family:Arial'> Wednesday, July 14, 2004 3:40 PM<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><b><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial;font-weight:bold'>Subject:</span></font></b><font face=Arial><span
style='font-family:Arial'> [Serusers] Aliasing problem<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'><o:p>&nbsp;</o:p></span></font></p>

</div>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>Hey guys,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>I have been playing with SER
for a few days now, and apart from having to rebuild all the RPMs to get it
working on FC1 with mysql4 (mysql4 is apparently not officially supported in
FC1 ?!) everything was smooth and dandy.&nbsp; Really enjoying using such a
powerful and flexible product. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>However, I have one problem,
and I&#8217;ve done my best to trawl all the groups and lists, and debug it
myself and I cannot work out what is going on &#8211; perhaps I just
don&#8217;t understand how it works properly.&nbsp; I am trying to set
numerical aliases so that incoming routing can be handled more easily by a PSTN
gateway.&nbsp; I am trying the command:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>Serctl alias add 1000
sip:admin@&lt;sipserver&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>I get a reply that the alias
has been added (once a previous message on this list pointed out that I needed
to add lookup(&#8220;aliases&#8221;); to ser.cfg)!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>The problem is the mysql
table is still empty &#8211; although serctl says that the alias has been
added, it doesn&#8217;t seem to have been. When I try and call
&#8220;1000&#8221; I get a 404 not found, but calling &#8220;admin&#8221; works
fine.&nbsp; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>Does anyone have any ideas?!
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>Also, on a slight side note,
I was assuming that the aliases are reboot-safe&#8230; they&#8217;re stored in
the database and will get reloaded if ser is rebooted.&nbsp; Is this the case
by default or does an option need to be enabled?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>Sorry for the long
post.&nbsp; Many thanks to everyone who has worked on this, and it would be
fantastic to get this last bit sorted out.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>Cheers,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>Dave<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>Inmarsat Ltd<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>Global Satellite
Communications<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>Regional BGAN Engineer<o:p></o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt;font-family:"Times New Roman"'>_______________________________________________<br>
Serusers mailing list<br>
serusers@lists.iptel.org<br>
http://lists.iptel.org/mailman/listinfo/serusers<o:p></o:p></span></font></p>

</blockquote>

</div>

</body>

</html>