From: Anthony Minessale Date: Fri, 1 Apr 2011 15:35:20 +0000 (-0500) Subject: FS-3215 X-Git-Tag: v1.2-rc1~120^2~5^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5382972a39a17fa2c76519cd13d230d594959e48;p=thirdparty%2Ffreeswitch.git FS-3215 --- diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index 42c1203380..f2da2c5d7d 100755 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -2078,7 +2078,7 @@ SWITCH_STANDARD_APP(play_and_get_digits_function) prompt_audio_file, bad_input_audio_file, var_name, digit_buffer, sizeof(digit_buffer), digits_regex, digit_timeout); } -#define SAY_SYNTAX ": [] " +#define SAY_SYNTAX "[:] [] " SWITCH_STANDARD_APP(say_function) { char *argv[5] = { 0 }; @@ -2094,6 +2094,11 @@ SWITCH_STANDARD_APP(say_function) switch_channel_set_variable(channel, SWITCH_PLAYBACK_TERMINATOR_USED, ""); + /* Set default langauge according to the */ + if (!strchr(argv[0], ':')) { + argv[0] = switch_core_session_sprintf(session, "%s:%s", argv[0], argv[0]); + } + switch_ivr_say(session, (argc == 4) ? argv[3] : argv[4], argv[0], argv[1], argv[2], (argc == 5) ? argv[3] : NULL ,&args); } else { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Usage: %s\n", SAY_SYNTAX);