Name

EndWhile() — Ends a while loop

Synopsis

    EndWhile()

Returns to the previously called While() application. See While() for a complete description of how to use a while loop.

    exten => 123,1,Set(COUNT=1)
    exten => 123,2,While($[ ${COUNT} < 5 ])
    exten => 123,3,SayNumber(${COUNT})
    exten => 123,4,EndWhile()

See Also

While(), GotoIf()

Get Asterisk: The Future of Telephony now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.