D 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? Any help would be great! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070303/0c933292/attachment.htm
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
The second example is for a four digit extension. while the first is for a five digit extension. everything within the brackets is meant for just one digit. On 3/3/07, Hall, Eric M. <ehall@amaxx.com> wrote:> D > > > > 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? > > > > Any help would be great! > >
you should separate to two lines, like... exten => _366[5-9]X,... exten => 36700,... Hall, Eric M. wrote:> > D > > 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? > > Any help would be great! > > ------------------------------------------------------------------------ > > _______________________________________________ > --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 >