IVR Problem in saying credit balance

Discussion in 'General' started by haji, Oct 20, 2009.

  1. haji

    Joined:
    Oct 20, 2009
    Messages:
    6
    Likes Received:
    0
    my elastix says credit balance wrong in multiple of 100, for example if balance is 100 or 200 ... or 900 it says "million dollars" and also it do not say 1,2,....,9 but i have its gsm files on my "/var/lib/asterisk/sounds/digits" folder, could anyone help me?
    Thanks in advance B)
    mAhdi
     
  2. haamed

    Joined:
    Jul 23, 2007
    Messages:
    251
    Likes Received:
    0
    The algorithm of saying digits is in /etc/asterisk/say.conf
    but i think your prompts are incorrect..
    the first step is that you check your digits in .../asterisk/sounds/digits to be sure ..
     
  3. haji

    Joined:
    Oct 20, 2009
    Messages:
    6
    Likes Received:
    0
    i have correct gsm files in ../asterisk/sounds/digits directory like as 0.gsm , 1.gsm ...
    and this is my say.conf file in attachment, also i installed farsi language on elastix
     
  4. haji

    Joined:
    Oct 20, 2009
    Messages:
    6
    Likes Received:
    0
  5. jgutierrez

    Joined:
    Feb 28, 2008
    Messages:
    5,737
    Likes Received:
    0
    What version of elastix you are using? Which language do you try to use?
     
  6. haji

    Joined:
    Oct 20, 2009
    Messages:
    6
    Likes Received:
    0
    Thanks All
    it is OK now
    i changed some scriptes in say.conf file
    i replaced [en-base](!) section this way (it is ok for Farsi(Iranian) Users) :

    [en-base](!)
    _[n]um:0. => digits/0
    _[n]um:X => digits/${SAY}
    _[n]um:1X => digits/${SAY}
    _[n]um:[2-9]0 => digits/${SAY}
    _[n]um:[2-9][1-9] => digits/${SAY:0:1}0-o, num:${SAY:1}
    _[n]um:100 => digits/hundred
    _[n]um:[2-9]00 => digits/${SAY:0:1}00
    _[n]um:10X => digits/hundred-o, num:${SAY:2}
    _[n]um:1XX => digits/hundred-o, num:${SAY:1}
    _[n]um:[2-9]0X => digits/${SAY:0:1}00-o, num:${SAY:2}
    _[n]um:[2-9]XX => digits/${SAY:0:1}00-o, num:${SAY:1}

    _[n]um:1000 => digits/thousand
    _[n]um:100X => digits/thousand-o, num:${SAY:3}
    _[n]um:10XX => digits/thousand-o, num:${SAY:2}
    _[n]um:1XXX => digits/thousand-o, num:${SAY:1}
    _[n]um:[2-9]000 => num:${SAY:0:1}, digits/thousand
    _[n]um:[2-9]00X => num:${SAY:0:1}, digits/thousand-o, num:${SAY:3}
    _[n]um:[2-9]0XX => num:${SAY:0:1}, digits/thousand-o, num:${SAY:2}
    _[n]um:[2-9]XXX => num:${SAY:0:1}, digits/thousand-o, num:${SAY:1}
    _[n]um:XXXXX => num:${SAY:0:2}, digits/thousand-o, num:${SAY:2}
    _[n]um:XXXXXX => num:${SAY:0:3}, digits/thousand-o, num:${SAY:3}

    _[n]um:XXXXXXX => num:${SAY:0:1}, digits/million, num:${SAY:1}
    _[n]um:XXXXXXXX => num:${SAY:0:2}, digits/million, num:${SAY:2}
    _[n]um:XXXXXXXXX => num:${SAY:0:3}, digits/million, num:${SAY:3}

    _[n]um:XXXXXXXXXX => num:${SAY:0:1}, digits/billion, num:${SAY:1}
    _[n]um:XXXXXXXXXXX => num:${SAY:0:2}, digits/billion, num:${SAY:2}
    _[n]um:XXXXXXXXXXXX => num:${SAY:0:3}, digits/billion, num:${SAY:3}
     
  7. haamed

    Joined:
    Jul 23, 2007
    Messages:
    251
    Likes Received:
    0
    But you used [en-base](!)
    it will effects on English prompts...
    do you use just in Persian ?!
     
  8. haji

    Joined:
    Oct 20, 2009
    Messages:
    6
    Likes Received:
    0
    i use Elastix 1.5.2 version

    i use Farsi(Persian) on it,
    i used "kalak rashty" trick on it, its language is En and i have replaced sounds in en/digits directory,
    how can i change its lang?in which config file?
     
  9. haamed

    Joined:
    Jul 23, 2007
    Messages:
    251
    Likes Received:
    0

Share This Page