[Asterisk-Users] Perform Action after X invalid tries

Andrew Kohlsmith akohlsmith-asterisk at benshaw.com
Wed Mar 23 18:59:13 MST 2005


On March 23, 2005 08:53 pm, Josh Alberts wrote:
> Hello, I'd like to make it so that after 5 invalid attempts of entering
> an extension, the Hangup command will be issued.  How would I go about
> doing this?

My guess would be a combination of

SetVar($[${VAR} + 1])

and GotoIf($[${VAR} < 5 })

Not having ever done it before, that's only a guess.

-A.



More information about the asterisk-users mailing list