2009/3/19 Oguzhan Kayhan <oguzhank at bilkent.edu.tr>
> Hi, i know i am asking a lot of questions lately in this forum..sorry
> about that first of all. :)
>
>
>
> Ok, here is the deal..
> I am trying to make a hybrid system with an ericsson MD110 and asterisk.
> Internally we have 4 digit phone extensions on ericsson.. and so in
> asterisk.
> So, what i want to do is to call pbx side without adding 9 or etc to the
> begining of the number from asterisk clients..
> For example if smbody tries to call 1500 first asterisk should look for
> its local extensions and, if it not there it should dial PRI trunk..
> Is there any way for that?
>
It's pretty simple... e.g.
[context-for-phones]
include => localphones
include => everythingelse
[localphones]
exten => 1500,1,Dial(SIP/1500)
exten => 1501,1,Dial(SIP/1501)
exten => 1502,1,Dial(SIP/1502)
[everythingelse]
exten => XXXX,1,Dial(DAHDI/g1/${EXTEN})
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...
d
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20090320/c667617c/attachment.htm