From 89414ed9b82e4259820ad580b359dbb7e6e0b915 Mon Sep 17 00:00:00 2001 From: Brian West Date: Sun, 24 Dec 2006 02:06:50 +0000 Subject: [PATCH] fix switch_ivr git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3821 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/switch_ivr.c b/src/switch_ivr.c index b8e09c85f6..e5406fe41c 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -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.