mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 23:38:23 +00:00
Make '*' count as cancel (bug #2098)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3487 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -384,6 +384,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
|
|||||||
if (option_verbose > 3)
|
if (option_verbose > 3)
|
||||||
ast_verbose(VERBOSE_PREFIX_3 "User hit %c to disconnect call.\n", f->subclass);
|
ast_verbose(VERBOSE_PREFIX_3 "User hit %c to disconnect call.\n", f->subclass);
|
||||||
*to=0;
|
*to=0;
|
||||||
|
strcpy(status, "CANCEL");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (single && ((f->frametype == AST_FRAME_VOICE) || (f->frametype == AST_FRAME_DTMF))) {
|
if (single && ((f->frametype == AST_FRAME_VOICE) || (f->frametype == AST_FRAME_DTMF))) {
|
||||||
@@ -959,6 +960,7 @@ out:
|
|||||||
}
|
}
|
||||||
hanguptree(outgoing, NULL);
|
hanguptree(outgoing, NULL);
|
||||||
pbx_builtin_setvar_helper(chan, "DIALSTATUS", status);
|
pbx_builtin_setvar_helper(chan, "DIALSTATUS", status);
|
||||||
|
ast_log(LOG_DEBUG, "Exiting with DIALSTATUS=%s.\n", status);
|
||||||
|
|
||||||
LOCAL_USER_REMOVE(u);
|
LOCAL_USER_REMOVE(u);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user