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
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to