[Asterisk-cvs] asterisk/apps app_dial.c,1.76,1.77

markster at lists.digium.com markster at lists.digium.com
Tue Jun 22 10:07:55 CDT 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv19817/apps

Modified Files:
	app_dial.c 
Log Message:
Make sure outgoing is not NULL


Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -d -r1.76 -r1.77
--- app_dial.c	21 Jun 2004 18:28:35 -0000	1.76
+++ app_dial.c	22 Jun 2004 13:53:45 -0000	1.77
@@ -817,12 +817,14 @@
 	} else
 		to = -1;
 
-	if (outgoing->musiconhold) {
-		moh=1;
-		ast_moh_start(chan, NULL);
-	} else if (outgoing->ringbackonly) {
-		ast_indicate(chan, AST_CONTROL_RINGING);
-		sentringing++;
+	if (outgoing) {
+		if (outgoing->musiconhold) {
+			moh=1;
+			ast_moh_start(chan, NULL);
+		} else if (outgoing->ringbackonly) {
+			ast_indicate(chan, AST_CONTROL_RINGING);
+			sentringing++;
+		}
 	}
 
 	peer = wait_for_answer(chan, outgoing, &to, &allowredir_in, &allowredir_out, &allowdisconnect, &sentringing);




More information about the svn-commits mailing list