Ends a while loop.
EndWhile()
Returns to the previously called
While() statement. For a complete
description of while loops in Asterisk, see the section called “While()”.
exten => 123,1,Answer()
exten => 123,n,Set(i=1)
exten => 123,n,While($[${i} < 5])
exten => 123,n,SayNumber(${i})
exten => 123,n,Set(i=$[${i} + 1])
exten => 123,n,EndWhile()
exten => 123,n,Hangup()
|
|
|
Internal help for this application in Asterisk 1.4: -= Info about application 'EndWhile' =- [Synopsis] End a while loop [Description] Usage: EndWhile() Return to the previous called While diff output to internal help in Asterisk 1.2: 5c5 < End a while loop --- > End A While Loop 10a11 > |
See also. the section called “While()”, the section called “GotoIf()”