Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > media > contrib-updates > by-pkgid > c7095aefea7b97fbd2a596dcbfb9d481 > files > 78

asterisk-docs-1.4.26.1-1mdv2008.1.i586.rpm

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>SayNumber()</title><link rel="stylesheet" href="styles.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /><link rel="start" href="index.html" title="Asterisk™: The Future of Telephony" /><link rel="up" href="asterisk-APP-B.html" title="Appendix B. Application Reference" /><link rel="prev" href="asterisk-APP-B-165.html" title="SayDigits()" /><link rel="next" href="asterisk-APP-B-169.html" title="SayPhonetic()" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">SayNumber()</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="asterisk-APP-B-165.html">Prev</a> </td><th width="60%" align="center">Appendix B. Application Reference</th><td width="20%" align="right"> <a accesskey="n" href="asterisk-APP-B-169.html">Next</a></td></tr></table><hr /></div><div class="refentry" lang="en" xml:lang="en"><a id="asterisk-APP-B-167"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>SayNumber() — Says the specified number</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><a id="I_programlisting_tt2394"></a><pre class="programlisting">SayNumber(<em class="replaceable"><code>digits</code></em>[,<em class="replaceable"><code>gender</code></em>])</pre></div><div class="refsect1" lang="en" xml:lang="en"><a id="id4196092"></a><h2></h2><p><a id="I_indexterm_tt2395" class="indexterm"></a>Says the specified number, using the current language
      setting for the channel. See the <a href="asterisk-APP-E-8.html" title="CHANNEL">CHANNEL</a>
      function for more information on changing the language for the current
      channel.</p><p>If the current language supports different genders, you can pass
      the <em class="replaceable"><code>gender</code></em> argument to change the gender of
      the spoken number. You can use the following
      <em class="replaceable"><code>gender</code></em> arguments:</p><div class="itemizedlist"><ul type="disc"><li><p>Use the <em class="replaceable"><code>gender</code></em> arguments <code class="literal">f</code> for female, <code class="literal">m</code> for male, and <code class="literal">n</code> for neuter in European languages such as
          Portuguese, French, Spanish, and German.</p></li><li><p>Use the <em class="replaceable"><code>gender</code></em> argument <code class="literal">c</code> for commune and <code class="literal">n</code> for neuter in Nordic languages such as
          Danish, Swedish, and Norwegian.</p></li><li><p>Use the <em class="replaceable"><code>gender</code></em> argument <code class="literal">p</code> for plural enumerations in
          German.</p></li></ul></div><a id="I_programlisting_tt2396"></a><pre class="programlisting">; say the number in English
exten =&gt; 123,1,Set(CHANNEL(language)=en)
<span class="strong"><strong>exten =&gt; 123,2,SayNumber(1234)</strong></span>
</pre><div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title"><a id="asterisk-APP-B-NOTE-66"></a>Tip</h3><p>For this application to work in languages other than English,
        you must have the appropriate sounds for the language you wish to
        use.</p></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="asterisk-APP-B-168"></a><h2>See Also</h2><p><a href="asterisk-APP-B-163.html" title="SayAlpha()"><span class="refentrytitle">SayAlpha()</span></a>, <a href="asterisk-APP-B-165.html" title="SayDigits()"><span class="refentrytitle">SayDigits()</span></a>, <a href="asterisk-APP-B-169.html" title="SayPhonetic()"><span class="refentrytitle">SayPhonetic()</span></a>,
      <a href="asterisk-APP-E-8.html" title="CHANNEL">CHANNEL</a></p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="asterisk-APP-B-165.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="asterisk-APP-B.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="asterisk-APP-B-169.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">SayDigits() </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> SayPhonetic()</td></tr></table></div><div xmlns="" id="svn-footer"><hr /><p>You are reading <em>Asterisk: The Future of Telephony</em> (2nd Edition for Asterisk 1.4), by Jim van Meggelen, Jared Smith, and Leif Madsen.<br />
       This work is licensed under the <a href="http://creativecommons.org/licenses/by-nc-nd/3.0/">Creative Commons Attribution-Noncommercial-No Derivative Works License v3.0</a>.<br />
       To submit comments, corrections, or other contributions to the text, please visit <a href="http://oreilly.com/catalog/9780596510480/">http://www.oreilly.com/</a>.</p></div></body></html>