fix ivr
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@497 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
eb31bc6c01
commit
cc6a88280c
|
@ -87,6 +87,14 @@ SWITCH_DECLARE(switch_status) switch_ivr_collect_digits_count(switch_core_sessio
|
||||||
assert(channel != NULL);
|
assert(channel != NULL);
|
||||||
|
|
||||||
*terminator = '\0';
|
*terminator = '\0';
|
||||||
|
|
||||||
|
for (i = 0 ; i < x; i++) {
|
||||||
|
if (strchr(terminators, buf[i])) {
|
||||||
|
*terminator = buf[i];
|
||||||
|
return SWITCH_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
while (switch_channel_get_state(channel) == CS_EXECUTE) {
|
while (switch_channel_get_state(channel) == CS_EXECUTE) {
|
||||||
switch_frame *read_frame;
|
switch_frame *read_frame;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue