Thank you friend for your help, this problem is solved, but now i have another problem!
The app is more complex, it needs to open a connection to a database and say a number, the code is this:
[MyCustomApp]
exten => s,1,Set(TIMEOUT(digit)=7)
exten => s,2,Set(TIMEOUT(response)=10)
exten => s,3,Playback(custom/digite-o-numero-do-cartao)
exten => s,4,Playback(en/beep)
exten => s,5,Read(NUMBER,19,3)
exten => s,6,MYSQL(Connect connid 192.168.3.33 root qwe123 teste)
exten => s,7,MYSQL(Query resultid ${connid} SELECT\ matricula\ FROM\ cartao\ WHERE\ numero=’${NUMBER}’)
exten => s,8,MYSQL(Fetch fetchid ${resultid} x1)
exten => s,9,MYSQL(Clear ${resultid})
exten => s,10,MYSQL(Disconnect ${connid})
exten => s,11,SayDigits(${x1})
exten => s,12,SayDigits(123)
exten => s,13,WaitExten()
It works the voice messages and read variable, but it seems the command mysql is being ignored and never connected to database, how to debug?
Need to install something to use Mysql function, how?
The developer used only varchar on database, so all the fields are varchar, i also tryied to use cast to convert the fields to unsigned, but stil does not work, saydigits(${x1}), never sayed nothing.
Sorry for my horrible, terrible english.