[asterisk-users] Loop Break
Doug Lytle
support at drdos.info
Mon Jan 21 09:46:28 CST 2008
Tzafrir Cohen wrote:
> Style nitpicking:
>
> exten => s,1,Set(COUNT=$[${COUNT} + 1])
> exten => s,n,NoOP(${COUNT})
> exten => s,n,GotoIf($[ ${COUNT} > 3 ]?endloop)
> exten => s,n,Goto(1)
> exten => s,n(endloop),NoOp(Loop ended)
>
>
You forgot to initialize your variable.
Set(COUNT=0)
*smirk*
Doug
--
Ben Franklin quote:
"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
More information about the asterisk-users
mailing list