media play phone number

Version 1
    This document was generated from CDN thread

    Created by: Marat Rabidinov on 03-06-2011 07:41:05 AM
    Hi.
    My tcl script doesn't play a phone number.
    Script:
     1proc init { } {
     2        global param
     3        infotag set med_language_map 0 en
     4        infotag set med_location en 0 tftp://xxx.xx.xx.xxx/aon/media/
     5        infotag set med_language 0
     6}
     7
     8proc act_Setup { } {
     9        puts "DEBUG: Start act_Setup"
    10        global ani
    11
    12        leg setupack leg_incoming
    13        leg proceeding leg_incoming
    14        leg connect leg_incoming
    15
    16        set ani [infotag get leg_ani]
    17
    18        media play leg_incoming %p$ani
    19}
    20
    21proc act_Clean { } {
    22        puts "DEBUG: Start act_Clean"
    23        call close
    24}
    25
    26requiredversion 2.0
    27init
    28
    29set fsm(any_state,ev_disconnected) "act_Cleanup same_state"
    30set fsm(CALL_INIT,ev_setup_indication) "act_Setup CALLDISCONNECT"
    31set fsm(CALLDISCONNECT,ev_media_done) "act_Cleanup same_state"
    32set fsm(CALLDISCONNECT,ev_disconnect_done) "act_Cleanup same_state"
    33fsm define fsm CALL_INIT


     
    ani is 900159, and I hear:
    "nine, zero, zero, one, fife, nine" instead of "ninety zero one fifty nine".
     
    How can I solve it ?
     
     
    http://www.cisco.com/en/US/docs/ios/voice/tcl/developer/guide/tclivrv2_ch3.html#wp1049349
    %pnum¿Plays
    a phone number. The maximum number of digits is 64. This does not
    insert any text, such as "the number is," but it does put pauses between
    groups of numbers. It assumes groupings as used in common numbering
    plans. For example, 18059613641 is read as 1 805 961 3641. The pauses
    between the groupings are 500 ms.

    Subject: RE: media play phone number
    Replied by: Yaw-Ming Chen on 03-06-2011 10:22:02 AM
    That is  the right behavior, play single digit one by ine.

    Thanks !