<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=utf-8">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<link rel=File-List href="cid:filelist.xml@01CAF129.C8DAB510">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:DisplayBackgroundShape/>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:PunctuationKerning/>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Baskerville Old Face";
        panose-1:2 2 6 2 8 5 5 2 3 3;
        mso-font-charset:0;
        mso-generic-font-family:roman;
        mso-font-pitch:variable;
        mso-font-signature:3 0 0 0 1 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        text-align:right;
        mso-pagination:widow-orphan;
        direction:rtl;
        unicode-bidi:embed;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        mso-style-noshow:yes;
        mso-ansi-font-size:12.0pt;
        mso-bidi-font-size:12.0pt;
        font-family:"Baskerville Old Face";
        mso-ascii-font-family:"Baskerville Old Face";
        mso-hansi-font-family:"Baskerville Old Face";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none;
        text-underline:none;
        text-decoration:none;
        text-line-through:none;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;
        mso-gutter-direction:rtl;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";
        mso-ansi-language:#0400;
        mso-fareast-language:#0400;
        mso-bidi-language:#0400;}
</style>
<![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple style='tab-interval:36.0pt'>

<div class=Section1 dir=RTL>

<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=3 face="Baskerville Old Face"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Baskerville Old Face";mso-ansi-language:
EN-GB'>Hi all,<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=3 face="Baskerville Old Face"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Baskerville Old Face";mso-ansi-language:
EN-GB'>Could someone please tell me what is the relative &quot;cost&quot; in
using conf files oppose to the <span class=SpellE>astdb</span>? Basically I
need to match a name to a phone number in order to have all users registered by
name and not by number (which I understood is not a good practice). I have 2000
users and a complex dial-plan and server resources become an issue.<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=3 face="Baskerville Old Face"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Baskerville Old Face";mso-ansi-language:
EN-GB'>I could implement this via a context in my <span class=SpellE>extensions.conf</span>:<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><span class=SpellE><span class=GramE><font size=3
face="Baskerville Old Face"><span lang=EN-GB style='font-size:12.0pt;
font-family:"Baskerville Old Face";mso-ansi-language:EN-GB'>exten</span></font></span></span><font
face="Baskerville Old Face"><span lang=EN-GB style='font-family:"Baskerville Old Face";
mso-ansi-language:EN-GB'> =&gt; &lt;number&gt;,1,Dial(SIP/&lt;name&gt;) ;
obviously I would need to hard-code this for every extension<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=3 face="Baskerville Old Face"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Baskerville Old Face";mso-ansi-language:
EN-GB'>- <span class=GramE>or</span> I could do it via <span class=SpellE>astdb</span>:<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><span class=SpellE><span class=GramE><font size=3
face="Baskerville Old Face"><span lang=EN-GB style='font-size:12.0pt;
font-family:"Baskerville Old Face";mso-ansi-language:EN-GB'>exten</span></font></span></span><font
face="Baskerville Old Face"><span lang=EN-GB style='font-family:"Baskerville Old Face";
mso-ansi-language:EN-GB'> =&gt; _XXX,1,Dial(SIP/${DB(Names/${EXTEN})}) <span
style='mso-spacerun:yes'> </span><o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=3 face="Baskerville Old Face"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Baskerville Old Face";mso-ansi-language:
EN-GB'>Which method would consume fewer resources (put aside other pro's &amp; <span
class=GramE>con's</span>)?<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=3 face="Baskerville Old Face"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Baskerville Old Face";mso-ansi-language:
EN-GB'>Is there any better way of implementing this?<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=3 face="Baskerville Old Face"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Baskerville Old Face";mso-ansi-language:
EN-GB'>Would 'hints' help me out here? If yes, I would appreciate a detailed
explanation how to use it.<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=3 face="Baskerville Old Face"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Baskerville Old Face";mso-ansi-language:
EN-GB'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><font size=3 face="Baskerville Old Face"><span lang=EN-GB
style='font-size:12.0pt;font-family:"Baskerville Old Face";mso-ansi-language:
EN-GB'>Thanks in advance,<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='text-align:left;direction:ltr;unicode-bidi:
embed'><span class=SpellE><font size=3 face="Baskerville Old Face"><span
lang=EN-GB style='font-size:12.0pt;font-family:"Baskerville Old Face";
mso-ansi-language:EN-GB'>Harel</span></font></span><font
face="Baskerville Old Face"><span lang=EN-GB style='font-family:"Baskerville Old Face";
mso-ansi-language:EN-GB'><o:p></o:p></span></font></p>

</div>

</body>

</html>