[asterisk-users] Asterisk and PBX internal numbers

Oguzhan Kayhan oguzhank at bilkent.edu.tr
Fri Mar 20 02:55:46 CDT 2009


> 2009/3/20 D Tucny <d at tucny.com>
>
>> 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...
>>
>

Yes seems pretty simple,
so can i use a wildcard instead of giving all numbers one by one?
Such

instead of exten => 1500,1,Dial(SIP/1500)

exten => _15XX,1,Dial(SIP/_15XX)   ?????
assuming all my local numbers are on 15 prefix??




> Sorry, small correction my example is missing a '_' before XXXX which
> would
> be needed...
>
> d
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users





More information about the asterisk-users mailing list