[Asterisk-Users] Channel Language
Peer Oliver schmidt
posde at theinternet.de
Sun Jul 27 23:36:39 MST 2003
Mark,
thank you for your information.
>>I am in the process of recording voicemail prompts in german. How do I
>>specify the language for the voice mail messages? I want to offer both
>>language files, based on the calling party.
> Use "setlanguage". Then organize the language files by directory e.g.
> /var/lib/asterisk/sounds/de
> /var/lib/asterisk/sounds/digits/de
> Also, say.c will have to be modified to support German style number
> handling.
Ok, the first three things I did. Unfortunately, I am no c coder. But
the logic to say german numbers is identical to the english logic, ie.
21 = twenty one
11 = eleven
210 = two hundred ten ('and' between Hundred and ten is optional)
1200 = one thousand two hundred
2102 = two thousand one hundred two ('and' between hundred and two is
optional)
In a (programming-)language I understand I would just do copy / paste of
the block, but I don't know about how to specify the directory.
Would it make sense to have an abstract definition of how to say
numbers, like
wxyz => direct thousand (cut first)
xyz => direct hundred (cut first)
>20 => y0 direct (cut first)
yz => direct
Maybe people familiar with other languages could chime in and tell us,
if the above rules could be used for other languages as well.
rgds
pos
More information about the asterisk-users
mailing list