<div dir="ltr">Hi,<div><br></div><div style>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 style><br></div><div style>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 style><br></div><div style><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 style><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 style>and so on... for digit 3...</div><div style><br></div><div style>Thanks in advance... </div>
<div style><br></div><div style>Regards. </div></div>