[Freeswitch-svn] [commit] r3821 - freeswitch/trunk/src

Freeswitch SVN brian at freeswitch.org
Sat Dec 23 21:06:51 EST 2006


Author: brian
Date: Sat Dec 23 21:06:50 2006
New Revision: 3821

Modified:
   freeswitch/trunk/src/switch_ivr.c

Log:
fix switch_ivr

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Sat Dec 23 21:06:50 2006
@@ -450,7 +450,7 @@
             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_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_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.



More information about the Freeswitch-svn mailing list