]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-2922
authorJeff Lenk <jeff@jefflenk.com>
Thu, 31 Mar 2011 16:30:57 +0000 (11:30 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Thu, 31 Mar 2011 16:30:57 +0000 (11:30 -0500)
src/mod/say/mod_say_en/mod_say_en.c

index ec577374dc91f4221d18f443cfd4761b8c1422f5..0128b679ad54e8a5bb4af414f03f203b84f5c7b2 100644 (file)
@@ -417,20 +417,17 @@ static switch_status_t en_say_money(switch_say_file_handle_t *sh, char *tosay, s
                switch_say_file(sh, "currency/dollars");
        }
 
-       /* Say "and" */
-       switch_say_file(sh, "currency/and");
-
        /* Say cents */
        if (cents) {
+               /* Say "and" */
+               switch_say_file(sh, "currency/and");
+
                en_say_general_count(sh, cents, say_args);
                if (atoi(cents) == 1) {
                        switch_say_file(sh, "currency/cent");
                } else {
                        switch_say_file(sh, "currency/cents");
                }
-       } else {
-               switch_say_file(sh, "digits/0");
-               switch_say_file(sh, "currency/cents");
        }
 
        return SWITCH_STATUS_SUCCESS;