diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-13 05:14:27 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-13 05:14:27 +0000 |
commit | e4745a4ceed440048e2433351e3d05f83766adf7 (patch) | |
tree | 7b5b093dce37cb1f974182baa1e5f869fcfbb486 /pbx.c | |
parent | d1919e6492cb15c1cb5d6cac0bd50c5e82ac10f8 (diff) |
ensure that hangups while incoming calls are in early state are handled properly (issue #5919)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7451 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rw-r--r-- | pbx.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -5513,6 +5513,8 @@ static int pbx_builtin_setamaflags(struct ast_channel *chan, void *data) static int pbx_builtin_hangup(struct ast_channel *chan, void *data) { /* Just return non-zero and it will hang up */ + if (!chan->hangupcause) + chan->hangupcause = AST_CAUSE_NORMAL_CLEARING; return -1; } |