[asterisk-users] dial question

Alvin Austin aan at crlogic.com
Sat Mar 3 19:55:49 MST 2007


Hall, Eric M. wrote:
> Not sure why this works
> 
> exten => _3665[0-9],1,goto(test|${EXTEN}|1)
> 
> but this does not.
> 
> exten => _366[50-59],1,goto(test|${EXTEN}|1)
> 
> I would like to route 36650 – 36700 to a Context ‘test’ however I’m only 
> able to get 10 to work at a time. Any ideas?

The square brackets allow for matching single digits. See:
http://www.voip-info.org/wiki/index.php?page=Asterisk+Dialplan+Patterns

How about trying:
exten => _366[5-9][0-9],1,goto(test|${EXTEN}|1)
exten => 36700,1,goto(test|${EXTEN}|1)

The first matches extensions 36650 thru 36699, the second picks up the 
remaining extension 36700.

Alvin


More information about the asterisk-users mailing list