[Asterisk-cvs] asterisk/apps app_dial.c,1.88,1.89

markster at lists.digium.com markster at lists.digium.com
Tue Jul 20 18:38:20 CDT 2004


Update of /usr/cvsroot/asterisk/apps
In directory localhost.localdomain:/tmp/cvs-serv20095/apps

Modified Files:
	app_dial.c 
Log Message:
Make '*' count as cancel (bug #2098)


Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -d -r1.88 -r1.89
--- app_dial.c	19 Jul 2004 19:47:21 -0000	1.88
+++ app_dial.c	20 Jul 2004 22:24:15 -0000	1.89
@@ -384,6 +384,7 @@
 			    if (option_verbose > 3)
 				ast_verbose(VERBOSE_PREFIX_3 "User hit %c to disconnect call.\n", f->subclass);
 				*to=0;
+				strcpy(status, "CANCEL");
 				return NULL;
 			}
 			if (single && ((f->frametype == AST_FRAME_VOICE) || (f->frametype == AST_FRAME_DTMF)))  {
@@ -959,6 +960,7 @@
 	}
 	hanguptree(outgoing, NULL);
 	pbx_builtin_setvar_helper(chan, "DIALSTATUS", status);
+	ast_log(LOG_DEBUG, "Exiting with DIALSTATUS=%s.\n", status);
 	
 	LOCAL_USER_REMOVE(u);
 	




More information about the svn-commits mailing list