Asterisk Project : Application_SayCountedNoun

Asterisk Project : Application_SayCountedNoun This page last changed on Sep 20, 2011 by wikibot. # SayCountedNoun() ### Synopsis Say a noun in declined form in order to count things ### Description Selects and plays the proper singular or plural form of a noun when saying things such as "five calls". English has simple rules for deciding when to say "call" and when to say "calls", but other languages have complicated rules which would be extremely difficult to implement in the Asterisk dialplan language. The correct sound file is selected by examining the number and adding the appropriate suffix to filename. If the channel language is English, then the suffix will be either empty or "s". If the channel language is Russian or some other Slavic language, then the suffix will be empty for nominative, "x1" for genative singular, and "x2" for genative plural. Note that combining filename with a suffix will not necessarily produce a correctly spelled plural form. For example, SayCountedNoun(2,man) will play the sound file "mans" rather than "men". This behavior is intentional. Since the file name is never seen by the end user, there is no need to implement complicated spelling rules. We simply record the word "men" in the sound file named "mans". This application does not automatically answer and should be preceeded by an application such as Answer() or Progress. ### Syntax
    SayCountedNoun(number,filename)
##### Arguments `number` - The number of things `filename` - File name stem for the noun that is the the name of the things ### See Also Application_SayCountedAdj Application_SayNumber ### Import Version This documentation was imported from Asterisk version SVN-branch-1.8-r336877.

Document generated by Confluence on Oct 04, 2011 12:42