Mailing List Archive

TCL IVR 2.0 - balance reading
I'm running a prepaid calling card application on a cisco 5350.
If The customer balance is 2020.7 dolars the IVR reads it as if it was 202.7
as follows:

media play leg_incoming _you_have.au %a2020.7 %s1000 _enter_dest.au
...
Dec 15 22:35:02 UTC: //-1//MCM :/mc_createFromFileUrl: Getting a media
content: name=sp_two.au
Dec 15 22:35:02 UTC: //-1//MCM :/mc_createFromFileUrl: Getting a media
content: name=sp_cientos.au
Dec 15 22:35:02 UTC: //-1//MCM :/mc_createFromFileUrl: Getting a media
content: name=sp_two.au
Dec 15 22:35:02 UTC: //-1//MCM :/mc_createFromFileUrl: Getting a media
content: name=sp_dollars.au
Dec 15 22:35:02 UTC: //-1//MCM :/mc_createFromFileUrl: Getting a media
content: name=sp_and.au
Dec 15 22:35:02 UTC: //-1//MCM :/mc_createFromFileUrl: Getting a media
content: name=sp_seven.au
Dec 15 22:35:02 UTC: //-1//MCM :/mc_createFromFileUrl: Getting a media
content: name=sp_cents.au

I've run the script in two different gateways with different IOS with the
same results:

c5350-is-mz.122-2.XB5.bin
c5350-is-mz.123-1a.bin

Does anyone know any IOS which doesn't have this problem?

Thanks for your answers,

Juan Pablo
Re: TCL IVR 2.0 - balance reading [ In reply to ]
Hmm. It sounds like it's expecting it to pad the variable with 00 to
designate the last two...
Are you going to be only working in dollars and no cents? Write the
script to add a "00" at the end of the string if you are... Otherwise..
I'd have to see the script to know what to do.


Juan Pablo Romero wrote:

>I'm running a prepaid calling card application on a cisco 5350.
>If The customer balance is 2020.7 dolars the IVR reads it as if it was 202.7
>as follows:
>
>media play leg_incoming _you_have.au %a2020.7 %s1000 _enter_dest.au
>...
>Dec 15 22:35:02 UTC: //-1//MCM :/mc_createFromFileUrl: Getting a media
>content: name=sp_two.au
>Dec 15 22:35:02 UTC: //-1//MCM :/mc_createFromFileUrl: Getting a media
>content: name=sp_cientos.au
>Dec 15 22:35:02 UTC: //-1//MCM :/mc_createFromFileUrl: Getting a media
>content: name=sp_two.au
>Dec 15 22:35:02 UTC: //-1//MCM :/mc_createFromFileUrl: Getting a media
>content: name=sp_dollars.au
>Dec 15 22:35:02 UTC: //-1//MCM :/mc_createFromFileUrl: Getting a media
>content: name=sp_and.au
>Dec 15 22:35:02 UTC: //-1//MCM :/mc_createFromFileUrl: Getting a media
>content: name=sp_seven.au
>Dec 15 22:35:02 UTC: //-1//MCM :/mc_createFromFileUrl: Getting a media
>content: name=sp_cents.au
>
>I've run the script in two different gateways with different IOS with the
>same results:
>
>c5350-is-mz.122-2.XB5.bin
>c5350-is-mz.123-1a.bin
>
>Does anyone know any IOS which doesn't have this problem?
>
>Thanks for your answers,
>
>Juan Pablo
>
>
>_______________________________________________
>cisco-voip mailing list
>cisco-voip@puck.nether.net
>https://puck.nether.net/mailman/listinfo/cisco-voip
>
>