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."
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users