On Mon, Jan 21, 2008 at 08:58:53AM -0500, Doug Lytle wrote:
> 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)

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)

-- 
               Tzafrir Cohen
icq#16849755              jabber:[EMAIL PROTECTED]
+972-50-7952406           mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

_______________________________________________
-- 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

Reply via email to