FSCORE-554

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16706 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2010-02-19 18:59:10 +00:00
parent 969688a0d3
commit d4b1da5c67

View File

@ -1732,11 +1732,7 @@ SWITCH_DECLARE(switch_status_t) switch_play_and_get_digits(switch_core_session_t
status = SWITCH_STATUS_SUCCESS;
}
if (status == SWITCH_STATUS_TOO_SMALL && strlen(digit_buffer) == 0) {
return SWITCH_STATUS_FALSE;
}
if (!(status == SWITCH_STATUS_TOO_SMALL && strlen(digit_buffer) == 0)) {
if (status == SWITCH_STATUS_SUCCESS) {
if (!zstr(digit_buffer)) {
if (zstr(digits_regex)) {
@ -1750,6 +1746,7 @@ SWITCH_DECLARE(switch_status_t) switch_play_and_get_digits(switch_core_session_t
}
}
}
}
if (!switch_channel_ready(channel)) {
break;