IVR press option

Hi,

Can anyone check my IVR. I need to have an option “0” to repeat the options.

exten => _8181,1,NoOp(${TIMESTAMP} ivr begins)
exten => _8181,n,Set(TIMEOUT(digit)=4)
exten => _8181,n,Set(TIMEOUT(response)=8)
exten => _8181,n,Answer
exten => _8181,n,Set(kulit=1)
exten => _8181,n(enterext),Read(okiks,Chinese_Opening,1)
exten => _8181,n,GotoIf($["${okiks}" = “”]?informcaller)
exten => _8181,n,GotoIf($["${okiks}" = “1”]?chinese)
exten => _8181,n,GotoIf($["${okiks}" = “2”]?english)
exten => _8181,n,GotoIf($["${okiks}" = “3”]?thai)
exten => _8181,n,GotoIf($["${okiks}" = “4”]?viet)
exten => _8181,n,GotoIf($["${okiks}" = “0”]?repeat_option) >>> that will repeat the line exten => _8181,n(enterext),Read(okiks,Chinese_Opening,1) which is line 6.
exten => _8181,n(informcaller),Set(kulit=${MATH(${kulit}+1)})
exten => _8181,n,Wait(5)
exten => _8181,n,Hangup()

thanks.

repeat_option should be entertext, or you should use a Noop to add the repeat_option label.

Will test this.

thanks.

IVR
exten => _8181,1,NoOp(${TIMESTAMP} ivr begins)
exten => _8181,n,Set(TIMEOUT(digit)=4)
exten => _8181,n,Set(TIMEOUT(response)=8)
exten => _8181,n,Answer
exten => _8181,n(repeat_option),Read(okiks,Chinese_Opening,1)
exten => _8181,n,GotoIf($["${okiks}" = “1”]?chinese)
exten => _8181,n,GotoIf($["${okiks}" = “2”]?english)
exten => _8181,n,GotoIf($["${okiks}" = “3”]?thai)
exten => _8181,n,GotoIf($["${okiks}" = “4”]?viet)
exten => _8181,n,GotoIf($["${okiks}" = “0”]?repeat_option)
exten => _8181,n,Wait(5)
exten => _8181,n,Hangup()

IVR working perfectly. Thanks :smile: