[from-internal-custom]
exten => 1235,1,Answer
exten => 1235,2,Wait(1)
exten => 1235,3,Playback(custom/bem-vindo)
exten => 1235,4(reiniciar),Read(opcao,custom/menu,1,3)
exten => 1235,5,GotoIf($[ ${opcao} = 1 ]?saldos:nx1)
exten => 1235,6(nx1),GotoIf($[ ${opcao} = 2 ]?bloqueio:nx2)
exten => 1235,7(nx2),GotoIf($[ ${opcao} = 3 ]?desbloq:nx3)
exten => 1235,8(nx3),GotoIf($[ ${opcao} = 4 ]?reiniciar:err)
exten => 1235,8(saldos),Goto(saldosapp,s,1)
exten => 1235,9(bloqueio),Goto(bloqueioapp,b,1)
exten => 1235,10(desbloq),Goto(desbloqueioapp,d,1)
exten => 1235,11(err),Playback(invalid)
exten => 1235,12,Goto(from-internal-custom,1235,4)
I am very confused, the code above works properly but the option 1 not. The saldosapp is working, if i execute the command goto(saldosapp,s,1), without the if, it works properly.