<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><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="file:///C:%5CDOCUME%7E1%5CGGONZA%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<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>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
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:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        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]-->
<p class="MsoNormal">Each user has a DID number and the user name match the DID
umber, so on incoming calls to a DID if the user is online it ring that ext.
and if is offline it go to voice mail. Mt issue is when a user call another
user that is online it doesnąt go to that user directly even though shows in
the location table. </p>
<p class="MsoNormal"><o:p> <br></o:p></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";">#from an internal domain
-> inbound<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>#Native SIP destinations are handled using
the location table<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>#Gateway destinations are handled by
regular expressions<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>append_hf("P-hint: inbound->inbound
\r\n");<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><o:p> </o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span><span style=""> </span><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>if (uri=~"^sip:[2-9][0-9]{9}@") {<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>if
(is_user_in("credentials","local")) {<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>route(4);<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>exit;<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span><span style=""> </span>};<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>};<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><o:p> </o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>if (uri=~"^sip:1[2-9][0-9]{9}@")
{<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>if
(is_user_in("credentials","ld")) {<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>route(4);<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>exit;<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>};<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>};<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><o:p> </o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>if (uri=~"^sip:011[0-9]*@") {<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>if
(is_user_in("credentials","int")) {<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>route(4);<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>exit;<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span><span style=""> </span>};<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>};<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><o:p> </o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>if (!lookup("location")) {<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>if (does_uri_exist()) {<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>## User not registered at this
time.<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>## Use the IP Address of your
e-mail server<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>revert_uri();<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span><span style=""> </span>prefix("u");<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style="">
</span>rewritehostport("192.168.1.104"); #Use the voicemail IP<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>route(1);<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>} else {<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>sl_send_reply("404",
"Not Found");<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>exit;<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>}<span style="">
</span><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>sl_send_reply("404",
"Not Found");<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>exit;<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>};<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";"><span style=""> </span>route(1);<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 9pt; font-family: "Courier New";">}<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any idea or suggestion how to accomplish this?</p>
</td></tr></table><br>