Modified: freeswitch/trunk/src/switch_ivr_play_say.c (16010 => 16011)
--- freeswitch/trunk/src/switch_ivr_play_say.c 2009-12-21 17:39:05 UTC (rev 16010)
+++ freeswitch/trunk/src/switch_ivr_play_say.c 2009-12-21 19:11:34 UTC (rev 16011)
@@ -1726,6 +1726,7 @@
const char *digits_regex)
{
switch_channel_t *channel = switch_core_session_get_channel(session);
+ switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "enter to switch_play_and_get_digits.\n");
while(switch_channel_ready(channel) && max_tries) {
switch_status_t status;
@@ -1738,6 +1739,11 @@
status = SWITCH_STATUS_SUCCESS;
}
+ if (status == SWITCH_STATUS_TOO_SMALL && strlen(digit_buffer) == 0) {
+ return SWITCH_STATUS_FALSE;
+ }
+
+
if (status == SWITCH_STATUS_SUCCESS) {
if (!zstr(digit_buffer)) {
if (zstr(digits_regex)) {