Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated toSVN-branch-10-r383982

...

SayCountedNoun()

...

<h3>Synopsis</h3>

...

Synopsis

Say a noun in declined form in order to count things</p>

<h3>Description</h3>

<p>Selects 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.</p>

<p>The The correct sound file is selected by examining the <em>number</em> number and adding the appropriate suffix to <em>filename</em> 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.</p>

<p>Note Note that combining <em>filename</em> 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".</p>

<p>This This application does not automatically answer and should be preceeded by an application such as Answer() or Progress.</p>

<h3>Syntax</h3>

<ac:macro ac:name="noformat"><ac:plain-text-body><![CDATA

Syntax

No Format
SayCountedNoun(number,filename)

...

<h5>Arguments</h5>

...

Arguments
  • number - The number of

...

  • things
  • filename - File name stem for the noun that is the the name of the

...

<h3>See Also</h3>

...

  • things

See Also

...

...

...

<h3>Import Version</h3>

...

Import Version

This documentation was imported from Asterisk Version SVN-branch-10-r383982</p>r383982