[asterisk-users] Loop Break
Doug Lytle
support at drdos.info
Mon Jan 21 07:58:53 CST 2008
Mian M Asif wrote:
> Hi All,
>
> please see my below dialplan, i want to break this loop after three
> attempts without AGI script.
>
> exten => s,1,Background(Balance-Inquiries)
> exten => s,n,Background(commanOptions)
> exten => s,n,WaitExten(2)
> exten => s,n,Goto(,s,1)
>
>
> Please Help me how can i break this loop in Asterisk.
>
>
exten => s,1,Set(COUNT=$[${COUNT} + 1])
exten => s,n,NoOP(${COUNT})
exten => s,n,GotoIf($[ ${COUNT} > 3 ]?103)
This should get you working idea.
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