David John Walsh
2005-Apr-25 16:20 UTC
[Asterisk-Users] using goto to do selective dialing
If I set up a context, which has lots of extensions eg [ext-local] exten => 3000,1,Dial(SIP/3000) exten => 3001,1,Dial(SIP/3001) ........ ..... exten => 3999,1,Dial(SIP/3999) (I know the syntax is wrong, and it probably is not the best way to achive it) then in another context, I use a goto like so [selected-3000-numbers] exten => _32XX,1,Goto(ext-local,${EXTEN},1) exten => _34XX,1,Goto(ext-local,${EXTEN},1) Will this allow me to only dial (from a phone in selected-3000-numbers) the numbers starting 32 and 34?? Also is my "goto" syntax right? Thanks for your input David