<div dir="ltr">I just want to make some increment... to 3 and yes go to the desired option not to one more option. <div><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 23, 2013 at 7:19 PM, Gopalakrishnan N <span dir="ltr"><<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Actually i would like to get the input from the user and he should not try more than 3 times, he can try more than 3 times, if yes it will get routed to the next priority and if not it goes to the loopback again from the beginning.</div>
<div><br></div><div>And following is the one I created, I just want to know whether this will validate the input and will allow for 3 times.... </div><div><br></div><div><div>exten => s,1,GotoIfTime(08:00-09:00,mon-fri,*,*?2:avgtech,1)</div>
<div>exten => s,n,Background(voicemessage_1)</div><div>exten => s,n(voicemessage2),Background(voicemessage_2)</div><div><br></div></div><div><div>exten => s,n(begin),Set(wait=2)</div><div>exten => s,n,Set(gottries=0)</div>
<div>exten => s,n,Read(get,"silence/1",,,,${wait})</div><div><br></div><div>exten => s,n(gotnothing),Set(gottries=$[${gottries}+1]</div><div>exten => s,n,GotoIf($[${LEN(${get})} == 0]?reallynothing:gotdigit)</div>
<div>exten => s,n(reallynothing),GotoIf($[${gottries}>3]?done:voicemessage5)</div><div>exten => s,n(done),Background(voicemessage3)</div><div>exten => s,n,Background(voicemessage4)</div><div>exten => s,n,Playback(moh)</div>
<div>exten => s,n, ; Addittional messageing</div><div>exten => s,n,Queue(general technical team)</div><div><br></div><div>exten => s,n(voicemessage5),Goto(voicemessage2) </div><div><br></div><div>exten => s,n(gotdigit),Set(got=${get})</div>
<div>exten => s,n,GotoIf( $[ "${got}" = "1"]?doneinstall)</div><div>exten => s,n(doneinstall),Background(voicemessage3)</div><div>exten => s,n,Background(voicemessage4)</div><div>exten => s,n,Playback(moh)</div>
<div>exten => s,n, ; Addittional messageing</div><div>exten => s,n,Queue(installation technical skill)</div><div><br></div></div><div><div>exten => s,n,GotoIf( $[ "${got}" = "2"]?done2)</div>
<div>
exten => s,n(done2),Background(voicemessage6)</div><div>exten => s,n,Goto(begin2)</div><div>exten => s,n(begin2),Set(wait=2)</div><div>exten => s,n,Set(gottries=0)</div><div>exten => s,n,Read(get,"silence/1",,,,${wait})</div>
<div>exten => s,n(gotnothing),Set(gottries=$[${gottries}+1]</div><div>exten => s,n,GotoIf($[${LEN(${get})} == 0]?reallynothing:gotdigit2)</div><div>exten => s,n(reallynothing),GotoIf($[${gottries}>3]?done:option2)</div>
<div>exten => s,n(done),Background(voicemessage3)</div><div>exten => s,n,Background(voicemessage4)</div><div>exten => s,n,Playback(moh)</div><div>exten => s,n, ; Addittional messageing</div><div>exten => s,n,Queue(general technical skill)</div>
<div><br></div><div>exten => s,n(option2),Background(voicemessage5)</div><div>exten => s,n,Goto(done2)</div></div><div><br></div><div>and so on... for digit 3...</div><div><br></div><div>Thanks in advance... </div>
<div><br></div><div>Regards. </div></div>
</blockquote></div><br></div>