[Asterisk-Users] Loop counter variable in dialplan?

Matt Lawson matt at 1control.com
Wed Oct 8 07:40:07 MST 2003


How can I loop through something x number of times in the dialplan? 
 i.e. if I get an invalid extension I want to re-play the menu, but not 
forever.  Maybe 3 tries or something.

I'm pretty sure that I've seen it before, where you can increment a 
variable and do "Gotos" based on it.  But I've searched the Asterisk 
handbook, searched the user archives, and Googled for it, and can't find 
it now.

Anyone have a link with an example of this?  Thanks.






More information about the asterisk-users mailing list