fix switch_ivr
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3821 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b04fb3984f
commit
89414ed9b8
|
@ -450,7 +450,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se
|
|||
break;
|
||||
}
|
||||
|
||||
if (args->input_callback || args->buf || args->buflen) {
|
||||
if (args && (args->input_callback || args->buf || args->buflen)) {
|
||||
/*
|
||||
dtmf handler function you can hook up to be executed when a digit is dialed during playback
|
||||
if you return anything but SWITCH_STATUS_SUCCESS the playback will stop.
|
||||
|
@ -1161,7 +1161,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
|
|||
switch_event_destroy(&event);
|
||||
}
|
||||
|
||||
if (args->input_callback || args->buf || args->buflen) {
|
||||
if (args && (args->input_callback || args->buf || args->buflen)) {
|
||||
/*
|
||||
dtmf handler function you can hook up to be executed when a digit is dialed during playback
|
||||
if you return anything but SWITCH_STATUS_SUCCESS the playback will stop.
|
||||
|
@ -1558,7 +1558,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_speak_text_handle(switch_core_session
|
|||
switch_event_destroy(&event);
|
||||
}
|
||||
|
||||
if (args->input_callback || args->buf || args->buflen) {
|
||||
if (args && (args->input_callback || args->buf || args->buflen)) {
|
||||
/*
|
||||
dtmf handler function you can hook up to be executed when a digit is dialed during playback
|
||||
if you return anything but SWITCH_STATUS_SUCCESS the playback will stop.
|
||||
|
|
Loading…
Reference in New Issue