<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[Freeswitch-trunk][16935] </title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<div id="header">FreeSWITCH Subversion</div>
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://fisheye.freeswitch.org/changelog/FreeSWITCH?cs=16935">16935</a></dd>
<dt>Author</dt> <dd>mikej</dd>
<dt>Date</dt> <dd>2010-03-08 01:55:57 -0600 (Mon, 08 Mar 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>use common code for spell in say mods</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#freeswitchtrunksrcmodsaymod_say_demod_say_dec">freeswitch/trunk/src/mod/say/mod_say_de/mod_say_de.c</a></li>
<li><a href="#freeswitchtrunksrcmodsaymod_say_esmod_say_esc">freeswitch/trunk/src/mod/say/mod_say_es/mod_say_es.c</a></li>
<li><a href="#freeswitchtrunksrcmodsaymod_say_frmod_say_frc">freeswitch/trunk/src/mod/say/mod_say_fr/mod_say_fr.c</a></li>
<li><a href="#freeswitchtrunksrcmodsaymod_say_humod_say_huc">freeswitch/trunk/src/mod/say/mod_say_hu/mod_say_hu.c</a></li>
<li><a href="#freeswitchtrunksrcmodsaymod_say_itmod_say_itc">freeswitch/trunk/src/mod/say/mod_say_it/mod_say_it.c</a></li>
<li><a href="#freeswitchtrunksrcmodsaymod_say_nlmod_say_nlc">freeswitch/trunk/src/mod/say/mod_say_nl/mod_say_nl.c</a></li>
<li><a href="#freeswitchtrunksrcmodsaymod_say_rumod_say_ruc">freeswitch/trunk/src/mod/say/mod_say_ru/mod_say_ru.c</a></li>
<li><a href="#freeswitchtrunksrcmodsaymod_say_thmod_say_thc">freeswitch/trunk/src/mod/say/mod_say_th/mod_say_th.c</a></li>
<li><a href="#freeswitchtrunksrcmodsaymod_say_zhmod_say_zhc">freeswitch/trunk/src/mod/say/mod_say_zh/mod_say_zh.c</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="freeswitchtrunksrcmodsaymod_say_demod_say_dec"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/say/mod_say_de/mod_say_de.c (16934 => 16935)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/say/mod_say_de/mod_say_de.c        2010-03-08 07:15:59 UTC (rev 16934)
+++ freeswitch/trunk/src/mod/say/mod_say_de/mod_say_de.c        2010-03-08 07:55:57 UTC (rev 16935)
</span><span class="lines">@@ -80,27 +80,6 @@
</span><span class="cx">                         return SWITCH_STATUS_FALSE;                                                                        \
</span><span class="cx">                 }}                                                                                                                                \
</span><span class="cx"> 
</span><del>-
-static switch_status_t de_spell(switch_core_session_t *session, char *tosay, switch_say_args_t *say_args, switch_input_args_t *args)
-{
-        char *p;
-
-        for (p = tosay; p &amp;&amp; *p; p++) {
-                int a = tolower((int) *p);
-                if (a &gt;= 48 &amp;&amp; a &lt;= 57) {
-                        say_file(&quot;digits/%d.wav&quot;, a - 48);
-                } else {
-                        if (say_args-&gt;type == SST_NAME_SPELLED) {
-                                say_file(&quot;ascii/%d.wav&quot;, a);
-                        } else if (say_args-&gt;type == SST_NAME_PHONETIC) {
-                                say_file(&quot;phonetic-ascii/%d.wav&quot;, a);
-                        }
-                }
-        }
-
-        return SWITCH_STATUS_SUCCESS;
-}
-
</del><span class="cx"> static switch_status_t play_group(switch_say_method_t method, int a, int b, int c, char *what, switch_core_session_t *session, switch_input_args_t *args)
</span><span class="cx"> {
</span><span class="cx"> 
</span><span class="lines">@@ -506,7 +485,7 @@
</span><span class="cx">                 break;
</span><span class="cx">         case SST_NAME_SPELLED:
</span><span class="cx">         case SST_NAME_PHONETIC:
</span><del>-                say_cb = de_spell;
</del><ins>+                return switch_ivr_say_spell(session, tosay, say_args, args);
</ins><span class="cx">                 break;
</span><span class="cx">         case SST_CURRENCY:
</span><span class="cx">                 say_cb = de_say_money;
</span></span></pre></div>
<a id="freeswitchtrunksrcmodsaymod_say_esmod_say_esc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/say/mod_say_es/mod_say_es.c (16934 => 16935)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/say/mod_say_es/mod_say_es.c        2010-03-08 07:15:59 UTC (rev 16934)
+++ freeswitch/trunk/src/mod/say/mod_say_es/mod_say_es.c        2010-03-08 07:55:57 UTC (rev 16935)
</span><span class="lines">@@ -80,27 +80,6 @@
</span><span class="cx">                         return SWITCH_STATUS_FALSE;                                                                        \
</span><span class="cx">                 }}                                                                                                                                \
</span><span class="cx"> 
</span><del>-
-static switch_status_t es_spell(switch_core_session_t *session, char *tosay, switch_say_args_t *say_args, switch_input_args_t *args)
-{
-        char *p;
-
-        for (p = tosay; p &amp;&amp; *p; p++) {
-                int a = tolower((int) *p);
-                if (a &gt;= 48 &amp;&amp; a &lt;= 57) {
-                        say_file(&quot;digits/%d.wav&quot;, a - 48);
-                } else {
-                        if (say_args-&gt;type == SST_NAME_SPELLED) {
-                                say_file(&quot;ascii/%d.wav&quot;, a);
-                        } else if (say_args-&gt;type == SST_NAME_PHONETIC) {
-                                say_file(&quot;phonetic-ascii/%d.wav&quot;, a);
-                        }
-                }
-        }
-
-        return SWITCH_STATUS_SUCCESS;
-}
-
</del><span class="cx"> static switch_status_t play_group(switch_say_method_t method, int a, int b, int c, char *what, switch_core_session_t *session, switch_input_args_t *args)
</span><span class="cx"> {
</span><span class="cx">         if (a) {
</span><span class="lines">@@ -527,7 +506,7 @@
</span><span class="cx">                 break;
</span><span class="cx">         case SST_NAME_SPELLED:
</span><span class="cx">         case SST_NAME_PHONETIC:
</span><del>-                say_cb = es_spell;
</del><ins>+                return switch_ivr_say_spell(session, tosay, say_args, args);
</ins><span class="cx">                 break;
</span><span class="cx">         case SST_CURRENCY:
</span><span class="cx">                 say_cb = es_say_money;
</span></span></pre></div>
<a id="freeswitchtrunksrcmodsaymod_say_frmod_say_frc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/say/mod_say_fr/mod_say_fr.c (16934 => 16935)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/say/mod_say_fr/mod_say_fr.c        2010-03-08 07:15:59 UTC (rev 16934)
+++ freeswitch/trunk/src/mod/say/mod_say_fr/mod_say_fr.c        2010-03-08 07:55:57 UTC (rev 16935)
</span><span class="lines">@@ -80,27 +80,6 @@
</span><span class="cx">                         return SWITCH_STATUS_FALSE;                                                                        \
</span><span class="cx">                 }}                                                                                                                                \
</span><span class="cx"> 
</span><del>-
-static switch_status_t fr_spell(switch_core_session_t *session, char *tosay, switch_say_args_t *say_args, switch_input_args_t *args)
-{
-        char *p;
-
-        for (p = tosay; p &amp;&amp; *p; p++) {
-                int a = tolower((int) *p);
-                if (a &gt;= 48 &amp;&amp; a &lt;= 57) {
-                        say_file(&quot;digits/%d.wav&quot;, a - 48);
-                } else {
-                        if (say_args-&gt;type == SST_NAME_SPELLED) {
-                                say_file(&quot;ascii/%d.wav&quot;, a);
-                        } else if (say_args-&gt;type == SST_NAME_PHONETIC) {
-                                say_file(&quot;phonetic-ascii/%d.wav&quot;, a);
-                        }
-                }
-        }
-
-        return SWITCH_STATUS_SUCCESS;
-}
-
</del><span class="cx"> static switch_status_t play_group(switch_say_method_t method, switch_say_gender_t gender, int a, int b, int c, char *what, switch_core_session_t *session, switch_input_args_t *args)
</span><span class="cx"> {
</span><span class="cx">         int ftdNumber = 0;
</span><span class="lines">@@ -557,7 +536,6 @@
</span><span class="cx"> 
</span><span class="cx"> static switch_status_t fr_say(switch_core_session_t *session, char *tosay, switch_say_args_t *say_args, switch_input_args_t *args)
</span><span class="cx"> {
</span><del>-
</del><span class="cx">         switch_say_callback_t say_cb = NULL;
</span><span class="cx"> 
</span><span class="cx">         switch (say_args-&gt;type) {
</span><span class="lines">@@ -577,9 +555,15 @@
</span><span class="cx">         case SST_IP_ADDRESS:
</span><span class="cx">                 say_cb = fr_ip;
</span><span class="cx">                 break;
</span><ins>+        case SST_TELEPHONE_NUMBER:
+        case SST_TELEPHONE_EXTENSION:
+        case SST_URL:
+        case SST_EMAIL_ADDRESS:
+        case SST_POSTAL_ADDRESS:
+        case SST_ACCOUNT_NUMBER:
</ins><span class="cx">         case SST_NAME_SPELLED:
</span><span class="cx">         case SST_NAME_PHONETIC:
</span><del>-                say_cb = fr_spell;
</del><ins>+                return switch_ivr_say_spell(session, tosay, say_args, args);
</ins><span class="cx">                 break;
</span><span class="cx">         case SST_CURRENCY:
</span><span class="cx">                 say_cb = fr_say_money;
</span></span></pre></div>
<a id="freeswitchtrunksrcmodsaymod_say_humod_say_huc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/say/mod_say_hu/mod_say_hu.c (16934 => 16935)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/say/mod_say_hu/mod_say_hu.c        2010-03-08 07:15:59 UTC (rev 16934)
+++ freeswitch/trunk/src/mod/say/mod_say_hu/mod_say_hu.c        2010-03-08 07:55:57 UTC (rev 16935)
</span><span class="lines">@@ -81,26 +81,6 @@
</span><span class="cx">                 }}                                                                                                                                \
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-static switch_status_t hu_spell(switch_core_session_t *session, char *tosay, switch_say_args_t *say_args, switch_input_args_t *args)
-{
-        char *p;
-
-        for (p = tosay; p &amp;&amp; *p; p++) {
-                int a = tolower((int) *p);
-                if (a &gt;= 48 &amp;&amp; a &lt;= 57) {
-                        say_file(&quot;digits/%d.wav&quot;, a - 48);
-                } else {
-                        if (say_args-&gt;type == SST_NAME_SPELLED) {
-                                say_file(&quot;ascii/%d.wav&quot;, a);
-                        } else if (say_args-&gt;type == SST_NAME_PHONETIC) {
-                                say_file(&quot;phonetic-ascii/%d.wav&quot;, a);
-                        }
-                }
-        }
-
-        return SWITCH_STATUS_SUCCESS;
-}
-
</del><span class="cx"> static switch_status_t play_group(switch_say_method_t method, int a, int b, int c, char *what, int tosay, switch_core_session_t *session,
</span><span class="cx">                                                                   switch_input_args_t *args)
</span><span class="cx"> {
</span><span class="lines">@@ -505,7 +485,7 @@
</span><span class="cx">                 break;
</span><span class="cx">         case SST_NAME_SPELLED:
</span><span class="cx">         case SST_NAME_PHONETIC:
</span><del>-                say_cb = hu_spell;
</del><ins>+                return switch_ivr_say_spell(session, tosay, say_args, args);
</ins><span class="cx">                 break;
</span><span class="cx">         case SST_CURRENCY:
</span><span class="cx">                 say_cb = hu_say_money;
</span></span></pre></div>
<a id="freeswitchtrunksrcmodsaymod_say_itmod_say_itc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/say/mod_say_it/mod_say_it.c (16934 => 16935)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/say/mod_say_it/mod_say_it.c        2010-03-08 07:15:59 UTC (rev 16934)
+++ freeswitch/trunk/src/mod/say/mod_say_it/mod_say_it.c        2010-03-08 07:55:57 UTC (rev 16935)
</span><span class="lines">@@ -92,26 +92,6 @@
</span><span class="cx">                 }}\
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-static switch_status_t it_spell(switch_core_session_t *session, char *tosay, switch_say_args_t *say_args, switch_input_args_t *args)
-{
-        char *p;
-
-        for (p = tosay; p &amp;&amp; *p; p++) {
-                int a = tolower((int) *p);
-                if (a &gt;= 48 &amp;&amp; a &lt;= 57) {
-                        say_file(&quot;digits/%d.wav&quot;, a - 48);
-                } else {
-                        if (say_args-&gt;type == SST_NAME_SPELLED) {
-                                say_file(&quot;ascii/%d.wav&quot;, a);
-                        } else if (say_args-&gt;type == SST_NAME_PHONETIC) {
-                                say_file(&quot;phonetic-ascii/%d.wav&quot;, a);
-                        }
-                }
-        }
-
-        return SWITCH_STATUS_SUCCESS;
-}
-
</del><span class="cx"> static switch_status_t play_group(switch_say_method_t method, int a, int b, int c, char *what, switch_core_session_t *session, switch_input_args_t *args)
</span><span class="cx"> {
</span><span class="cx"> 
</span><span class="lines">@@ -533,7 +513,7 @@
</span><span class="cx">                 break;
</span><span class="cx">         case SST_NAME_SPELLED:
</span><span class="cx">         case SST_NAME_PHONETIC:
</span><del>-                say_cb = it_spell;
</del><ins>+                return switch_ivr_say_spell(session, tosay, say_args, args);
</ins><span class="cx">                 break;
</span><span class="cx">         case SST_CURRENCY:
</span><span class="cx">                 say_cb = it_say_money;
</span></span></pre></div>
<a id="freeswitchtrunksrcmodsaymod_say_nlmod_say_nlc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/say/mod_say_nl/mod_say_nl.c (16934 => 16935)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/say/mod_say_nl/mod_say_nl.c        2010-03-08 07:15:59 UTC (rev 16934)
+++ freeswitch/trunk/src/mod/say/mod_say_nl/mod_say_nl.c        2010-03-08 07:55:57 UTC (rev 16935)
</span><span class="lines">@@ -81,26 +81,6 @@
</span><span class="cx">                 }}                                                                                                                                \
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-static switch_status_t nl_spell(switch_core_session_t *session, char *tosay, switch_say_args_t *say_args, switch_input_args_t *args)
-{
-        char *p;
-
-        for (p = tosay; p &amp;&amp; *p; p++) {
-                int a = tolower((int) *p);
-                if (a &gt;= 48 &amp;&amp; a &lt;= 57) {
-                        say_file(&quot;digits/%d.wav&quot;, a - 48);
-                } else {
-                        if (say_args-&gt;type == SST_NAME_SPELLED) {
-                                say_file(&quot;ascii/%d.wav&quot;, a);
-                        } else if (say_args-&gt;type == SST_NAME_PHONETIC) {
-                                say_file(&quot;phonetic-ascii/%d.wav&quot;, a);
-                        }
-                }
-        }
-
-        return SWITCH_STATUS_SUCCESS;
-}
-
</del><span class="cx"> static switch_status_t play_group(switch_say_method_t method, int a, int b, int c, char *what, switch_core_session_t *session, switch_input_args_t *args)
</span><span class="cx"> {
</span><span class="cx"> 
</span><span class="lines">@@ -497,7 +477,7 @@
</span><span class="cx">                 break;
</span><span class="cx">         case SST_NAME_SPELLED:
</span><span class="cx">         case SST_NAME_PHONETIC:
</span><del>-                say_cb = nl_spell;
</del><ins>+                return switch_ivr_say_spell(session, tosay, say_args, args);
</ins><span class="cx">                 break;
</span><span class="cx">         case SST_CURRENCY:
</span><span class="cx">                 say_cb = nl_say_money;
</span></span></pre></div>
<a id="freeswitchtrunksrcmodsaymod_say_rumod_say_ruc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/say/mod_say_ru/mod_say_ru.c (16934 => 16935)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/say/mod_say_ru/mod_say_ru.c        2010-03-08 07:15:59 UTC (rev 16934)
+++ freeswitch/trunk/src/mod/say/mod_say_ru/mod_say_ru.c        2010-03-08 07:55:57 UTC (rev 16935)
</span><span class="lines">@@ -111,25 +111,6 @@
</span><span class="cx">         return ret;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static switch_status_t ru_spell(switch_core_session_t *session, char *tosay, switch_say_args_t *say_args, switch_input_args_t *args)
-{
-        char *p;
-
-        for (p = tosay; p &amp;&amp; *p; p++) {
-                int a = tolower((int) *p);
-                if (a &gt;= 48 &amp;&amp; a &lt;= 57) {
-                        say_file(&quot;digits/%d.wav&quot;, a - 48);
-                } else {
-                        if (say_args-&gt;type == SST_NAME_SPELLED) {
-                                say_file(&quot;ascii/%d.wav&quot;, a);
-                        } else if (say_args-&gt;type == SST_NAME_PHONETIC) {
-                                say_file(&quot;phonetic-ascii/%d.wav&quot;, a);
-                        }
-                }
-        }
-        return SWITCH_STATUS_SUCCESS;
-}
-
</del><span class="cx"> static switch_status_t play_group(say_type_t say_type, casus_t casus, int a, int b, int c,
</span><span class="cx">                                                                   unit_t what, switch_core_session_t *session, switch_input_args_t *args)
</span><span class="cx"> {
</span><span class="lines">@@ -634,7 +615,7 @@
</span><span class="cx">                 break;
</span><span class="cx">         case SST_NAME_SPELLED:
</span><span class="cx">         case SST_NAME_PHONETIC:
</span><del>-                say_cb = ru_spell;
</del><ins>+                return switch_ivr_say_spell(session, tosay, say_args, args);
</ins><span class="cx">                 break;
</span><span class="cx">         case SST_CURRENCY:
</span><span class="cx">                 say_cb = ru_say_money;
</span></span></pre></div>
<a id="freeswitchtrunksrcmodsaymod_say_thmod_say_thc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/say/mod_say_th/mod_say_th.c (16934 => 16935)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/say/mod_say_th/mod_say_th.c        2010-03-08 07:15:59 UTC (rev 16934)
+++ freeswitch/trunk/src/mod/say/mod_say_th/mod_say_th.c        2010-03-08 07:55:57 UTC (rev 16935)
</span><span class="lines">@@ -87,26 +87,6 @@
</span><span class="cx">                         return SWITCH_STATUS_FALSE;                                                                        \
</span><span class="cx">                 }}                                                                                                                                \
</span><span class="cx"> 
</span><del>-static switch_status_t th_spell(switch_core_session_t *session, char *tosay, switch_say_args_t *say_args, switch_input_args_t *args)
-{
-        char *p;
-
-        for (p = tosay; p &amp;&amp; *p; p++) {
-                int a = tolower((int) *p);
-                if (a &gt;= '0' &amp;&amp; a &lt;= '9') {
-                        say_file(&quot;digits/%d.wav&quot;, a - '0');
-                } else {
-                        if (say_args-&gt;type == SST_NAME_SPELLED) {
-                                say_file(&quot;ascii/%d.wav&quot;, a);
-                        } else if (say_args-&gt;type == SST_NAME_PHONETIC) {
-                                say_file(&quot;phonetic-ascii/%d.wav&quot;, a);
-                        }
-                }
-        }
-
-        return SWITCH_STATUS_SUCCESS;
-}
-
</del><span class="cx"> static char *strip_commas(char *in, char *out, switch_size_t len)
</span><span class="cx"> {
</span><span class="cx">         char *p = in;
</span><span class="lines">@@ -587,7 +567,7 @@
</span><span class="cx">                 break;
</span><span class="cx">         case SST_NAME_SPELLED:
</span><span class="cx">         case SST_NAME_PHONETIC:
</span><del>-                say_cb = th_spell;
</del><ins>+                return switch_ivr_say_spell(session, tosay, say_args, args);
</ins><span class="cx">                 break;
</span><span class="cx">         case SST_CURRENCY:
</span><span class="cx">                 say_cb = th_say_money;
</span></span></pre></div>
<a id="freeswitchtrunksrcmodsaymod_say_zhmod_say_zhc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/say/mod_say_zh/mod_say_zh.c (16934 => 16935)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/say/mod_say_zh/mod_say_zh.c        2010-03-08 07:15:59 UTC (rev 16934)
+++ freeswitch/trunk/src/mod/say/mod_say_zh/mod_say_zh.c        2010-03-08 07:55:57 UTC (rev 16935)
</span><span class="lines">@@ -86,26 +86,7 @@
</span><span class="cx">                         return SWITCH_STATUS_FALSE;                                                                        \
</span><span class="cx">                 }}                                                                                                                                \
</span><span class="cx"> 
</span><del>-static switch_status_t zh_spell(switch_core_session_t *session, char *tosay, switch_say_args_t *say_args, switch_input_args_t *args)
-{
-        char *p;
</del><span class="cx"> 
</span><del>-        for (p = tosay; p &amp;&amp; *p; p++) {
-                int a = tolower((int) *p);
-                if (a &gt;= '0' &amp;&amp; a &lt;= '9') {
-                        say_file(&quot;digits/%d.wav&quot;, a - '0');
-                } else {
-                        if (say_args-&gt;type == SST_NAME_SPELLED) {
-                                say_file(&quot;ascii/%d.wav&quot;, a);
-                        } else if (say_args-&gt;type == SST_NAME_PHONETIC) {
-                                say_file(&quot;phonetic-ascii/%d.wav&quot;, a);
-                        }
-                }
-        }
-
-        return SWITCH_STATUS_SUCCESS;
-}
-
</del><span class="cx"> static char *strip_commas(char *in, char *out, switch_size_t len)
</span><span class="cx"> {
</span><span class="cx">         char *p = in;
</span><span class="lines">@@ -566,7 +547,7 @@
</span><span class="cx">                 break;
</span><span class="cx">         case SST_NAME_SPELLED:
</span><span class="cx">         case SST_NAME_PHONETIC:
</span><del>-                say_cb = zh_spell;
</del><ins>+                return switch_ivr_say_spell(session, tosay, say_args, args);
</ins><span class="cx">                 break;
</span><span class="cx">         case SST_CURRENCY:
</span><span class="cx">                 say_cb = zh_say_money;
</span></span></pre>
</div>
</div>
<div id="footer">See you at ClueCon</div>

</body>
</html>