B.103. SayNumber()

Says a number.
SayNumber(number[,gender])
Says the provided number according to the language settings for the channel. The language may be set with the Asterisk function LANGUAGE().
Whole numbers from one to 99,999,999 are supported in the following languages:
da
Danish
de
German
en
English
es
Spanish
fr
French
it
Italian
nl
Dutch
no
Norwegian
pl
Polish
pt
Portugese
se
Swedish
tw
Mandarin (Taiwanese)
The gender is optional and depends on the language.
For continental languages such as German, French, Spanish and Portugese, use f für feminine, m for masculine, and n for neuter.
For Scandinavian languages such as Danish, Swedish and Norwegian, use c for common (en, enn) and n for neuter (et, ett).
To count in German plural, use p.
For these other languages to work, their respective sound files must be present /var/lib/asterisk/sounds/digits/ (in subdirectories by language, e.g. de/).
; Say in English:
exten => 123,1,Set(LANGUAGE=en)
exten => 123,n,SayNumber(1234)
; "one - thousand - two - hundred - and - thirty - four"

; Say in Norwegian:
exten => 123,1,Set(LANGUAGE=no)
exten => 123,n,SayNumber(1234)
; "tusen - to - hundre - tretti - fire"

Note

Internal help for this application in Asterisk 1.4:
  -= Info about application 'SayNumber' =- 

[Synopsis]
Say Number

[Description]
  SayNumber(digits[,gender]): This application will play the sounds that
correspond to the given number. Optionally, a gender may be specified.
This will use the language that is currently set for the channel. See the
LANGUAGE function for more information on setting the language for the channel.
diff output to internal help in Asterisk 1.2:
- none -