[Freeswitch-svn] [commit] r12431 - freeswitch/trunk/src
FreeSWITCH SVN
anthm at freeswitch.org
Wed Mar 4 19:08:15 PST 2009
Author: anthm
Date: Wed Mar 4 21:08:15 2009
New Revision: 12431
Log:
MODLANG-100
Modified:
freeswitch/trunk/src/switch_ivr_play_say.c
Modified: freeswitch/trunk/src/switch_ivr_play_say.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_play_say.c (original)
+++ freeswitch/trunk/src/switch_ivr_play_say.c Wed Mar 4 21:08:15 2009
@@ -1446,7 +1446,7 @@
switch_input_args_t args = { 0 };
switch_status_t status = SWITCH_STATUS_SUCCESS;
char terminator;
- size_t len;
+ size_t len = 0;
switch_assert(session);
@@ -1510,6 +1510,10 @@
end:
+ if (max_digits == 1 && len == 1 && valid_terminators && strchr(valid_terminators, *digit_buffer)) {
+ *digit_buffer = '\0';
+ }
+
if (var_name && !switch_strlen_zero(digit_buffer)) {
switch_channel_set_variable(channel, var_name, digit_buffer);
}
More information about the Freeswitch-svn
mailing list