[asterisk-users] IVR not able to Play the Balance.. need some help here

ram talk2ram at gmail.com
Wed Sep 13 03:53:27 MST 2006


Hi

as i have posted before iam trying to integrate IVR with Balance

exten => 888,1,Read(${CALLERIDNUM})
exten => 888,2,MYSQL(Connect connid 127.0.0.1 root password database)
exten => 888,3,MYSQL(Query resultid ${connid} select\ saldo\ from\ balance\
where\ username=${CALLERIDNUM})
exten => 888,4,Wait(1)
exten => 888,5,MYSQL(Fetch fetch ${resultid} AMOUNT-DUE)
exten => 888,6,Playback(card-balance-is ${AMOUNT-DUE})
exten => 888,7,MYSQL(Clear ${resultid})
exten => 888,8,MYSQL(Disconnect ${connid})


I have added in the extension.conf above config

when i dial from X-lite ( my users ID 88888) to  888, its going to Asterisk

after some time it hangs up automatically

when i see the log, its getting the balance "17" in my case
but its not able to play that value

so i have added the GSM file before the Amount Value.

Sep 13 16:18:50 WARNING[3647]: file.c:512 ast_openstream_full: File
card-balance-is 17 does not exist in any format
Sep 13 16:18:50 WARNING[3647]: file.c:824 ast_streamfile: Unable to open
card-balance-is 17 (format gsm): No such file or directory
Sep 13 16:18:50 WARNING[3647]: app_playback.c:132 playback_exec:
ast_streamfile failed on SIP/88888-b7a4 for card-balance-is 17


can some one help me to resolve this problem
i feel some where iam doing mistake.

Ram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060913/aae6e173/attachment.htm


More information about the asterisk-users mailing list