<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2172/18/9/_/styles/combined.css?spaceKey=AST&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_SayCountedNoun">Asterisk 11 Application_SayCountedNoun</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://wiki.asterisk.org/wiki/display/~wikibot">Wiki Bot</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <h1><a name="Asterisk11Application_SayCountedNoun-SayCountedNoun%28%29"></a>SayCountedNoun()</h1>

<h3><a name="Asterisk11Application_SayCountedNoun-Synopsis"></a>Synopsis</h3>

<p>Say a noun in declined form in order to count things</p>
<h3><a name="Asterisk11Application_SayCountedNoun-Description"></a>Description</h3>



<p>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 correct sound file is selected by examining the <em>number</em> and adding the appropriate suffix to <em>filename</em>. 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 that combining <em>filename</em> 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 application does not automatically answer and should be preceeded by an application such as Answer() or Progress.</p>

<h3><a name="Asterisk11Application_SayCountedNoun-Syntax"></a>Syntax</h3>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>SayCountedNoun(number,filename)</pre>
</div></div>
<h5><a name="Asterisk11Application_SayCountedNoun-Arguments"></a>Arguments</h5>


<ul>
        <li>number - The number of things</li>
        <li>filename - File name stem for the noun that is the the name of the things</li>
</ul>


<h3><a name="Asterisk11Application_SayCountedNoun-SeeAlso"></a>See Also</h3>


<ul>
        <li><a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=Asterisk+11+Application_SayCountedAdj&amp;linkCreation=true&amp;fromPageId=20187087" class="createlink">Asterisk 11 Application&#95;SayCountedAdj</a></li>
        <li><a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=Asterisk+11+Application_SayNumber&amp;linkCreation=true&amp;fromPageId=20187087" class="createlink">Asterisk 11 Application&#95;SayNumber</a></li>
</ul>


<h3><a name="Asterisk11Application_SayCountedNoun-ImportVersion"></a>Import Version</h3>

<p>This documentation was imported from Asterisk Version SVN-trunk-r370322</p>
    </div>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;" class="grey">
                        <a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_SayCountedNoun">View Online</a>
              |
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_SayCountedNoun?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>