Am Donnerstag, den 06.09.2007, 10:16 +0530 schrieb Benjamin Jacob:
> Hello ppl,
> Any way to specify alphabetical exten patterns in the dialplans on Asterisk?
> All my users would have alpha/numerical ids. I don't want to add a line 
> for every user  in my dialplans.
> I searched around, but couldn't get anything useful. Any way to get 
> around this?

As from the docs, you can use letters in brackets, like

exten => _[ABC][DEF].,.....

>From my config I will give you an example of using names for extensions.
In my case, this is only used for incoming external SIP calls, so that
the extensions on my asterisk can be dialled as sip:[EMAIL PROTECTED]
from the internet.

Regular internal extensions are defined in my context [localdialplan],
my Asterisk DB contains several lines like

callroute/names/anselm = 201
callroute/names/flo = 212

8<=== extensions.conf
;* Look up exten in database
exten => _...,5,Set(A=${DB(callroute/names/${EXTEN})})
exten => _...,6,GotoIf($["A" = "A${A}"]?900)
exten => _...,7,Goto(localdialplan,${A},1)

exten => _...,900,Congestion()
===>8

(you'd need a bit more intelligence for more than one domain, but I
guess that is not what you think of right now)

HTH
Anselm


_______________________________________________

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--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

Reply via email to