From: Tamas Cseke Date: Mon, 31 Mar 2014 07:33:17 +0000 (+0200) Subject: Say zero in time measurement only if it is neccessary X-Git-Tag: v1.5.12~287 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b56dff275685d27c02765ecdcfe8ef60f06f76d;p=thirdparty%2Ffreeswitch.git Say zero in time measurement only if it is neccessary --- diff --git a/src/mod/say/mod_say_hu/mod_say_hu.c b/src/mod/say/mod_say_hu/mod_say_hu.c index 152a718e96..1a0d0fe0c2 100644 --- a/src/mod/say/mod_say_hu/mod_say_hu.c +++ b/src/mod/say/mod_say_hu/mod_say_hu.c @@ -233,15 +233,11 @@ static switch_status_t hu_say_time(switch_core_session_t *session, char *tosay, if (hours) { say_num(hours, SSM_PRONOUNCED); say_file("time/hour.wav"); - } else { - say_file("digits/0.wav"); - say_file("time/hour.wav"); - } - + } if (minutes) { say_num(minutes, SSM_PRONOUNCED); say_file("time/minute.wav"); - } else { + } else if (hours) { say_file("digits/0.wav"); say_file("time/minute.wav"); }