[Asterisk-Users] Simplifying from-did context

Scott Miller scoscmil at imap.iu.edu
Mon Aug 8 08:16:51 MST 2005


I am looking for a way to simplify my 'from-did' context.  All of my
extensions are 5 digit extensions, which represent the last 5 digits of an
assigned phone number.  Do I have to insert an entry for each of the
extensions I have or is there an easier way?  

Here's an example of what I have right now....  
There are 4 entries for each phone, one if the trunk only hands 5 digits
(its an internal call) and the full 10 digit if it's an outside call.  Any
ideas would be appreciated.


[ext-did]
exten => 18122786191,1,SetVar(FROM_DID=18122786191)     ;
exten => 18122786191,2,Goto(ext-local,86191,1)  ; 
exten => 86191,1,SetVar(FROM_DID=86191) ;
exten => 86191,2,Goto(ext-local,86191,1)        ;


Thanks,
Scott Miller




More information about the asterisk-users mailing list