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

_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to