<div class="gmail_quote">2009/3/20 D Tucny <span dir="ltr"><<a href="mailto:d@tucny.com">d@tucny.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote">2009/3/19 Oguzhan Kayhan <span dir="ltr"><<a href="mailto:oguzhank@bilkent.edu.tr" target="_blank">oguzhank@bilkent.edu.tr</a>></span><div class="im"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, i know i am asking a lot of questions lately in this forum..sorry<br>
about that first of all. :)<br>
<br>
<br>
<br>
Ok, here is the deal..<br>
I am trying to make a hybrid system with an ericsson MD110 and asterisk.<br>
Internally we have 4 digit phone extensions on ericsson.. and so in asterisk.<br>
So, what i want to do is to call pbx side without adding 9 or etc to the<br>
begining of the number from asterisk clients..<br>
For example if smbody tries to call 1500 first asterisk should look for<br>
its local extensions and, if it not there it should dial PRI trunk..<br>
Is there any way for that?<br>
</blockquote></div><div><br>It's pretty simple... e.g.<br><br>[context-for-phones]<br>include => localphones<br>include => everythingelse<br><br>[localphones]<br>exten => 1500,1,Dial(SIP/1500)<br>exten => 1501,1,Dial(SIP/1501)<br>
</div></div>exten => 1502,1,Dial(SIP/1502)<br><br>[everythingelse]<br>exten => XXXX,1,Dial(DAHDI/g1/${EXTEN})<br><br>So, your phones would be set up to use context-for-phones, then if a call was made the localphones context would be checked for a match before the everythingelse context... If 1500/1501/1502 were dialled, the calls would go the SIP/1500/1/2, any other 4 digit extension would be sent to the DAHDI group 1...<br>
<font color="#888888">
</font></blockquote><div><br>Sorry, small correction my example is missing a '_' before XXXX which would be needed...<br><br>d <br></div></div>