tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8029 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1d03e2b814
commit
98c5cd7d21
|
@ -572,7 +572,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_callback(switch_core_s
|
|||
}
|
||||
|
||||
while (switch_channel_ready(channel)) {
|
||||
switch_frame_t *read_frame;
|
||||
switch_frame_t *read_frame = NULL;
|
||||
switch_event_t *event;
|
||||
switch_dtmf_t dtmf = {0};
|
||||
|
||||
|
@ -617,7 +617,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_callback(switch_core_s
|
|||
break;
|
||||
}
|
||||
|
||||
if (args && (args->read_frame_callback)) {
|
||||
if (read_frame && args && (args->read_frame_callback)) {
|
||||
if (args->read_frame_callback(session, read_frame, args->user_data) != SWITCH_STATUS_SUCCESS) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue