Index: apps/app_dial.c =================================================================== RCS file: /var/cvsroot/asterisk/apps/app_dial.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -p -w -r1.2 -r1.3 --- apps/app_dial.c 29 Jun 2004 17:31:26 -0000 1.2 +++ apps/app_dial.c 20 Jul 2004 17:07:42 -0000 1.3 @@ -370,6 +370,7 @@ static struct ast_channel *wait_for_answ 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))) { @@ -933,6 +934,7 @@ out: } hanguptree(outgoing, NULL); pbx_builtin_setvar_helper(chan, "DIALSTATUS", status); + ast_log(LOG_DEBUG, "Exiting with DIALSTATUS=%s.\n", status); LOCAL_USER_REMOVE(u);