diff options
author | zuul <zuul@gerrit.asterisk.org> | 2016-08-26 19:40:15 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-08-26 19:40:15 -0500 |
commit | 4d06f4621aef338d11dc3e5454472d166a54b231 (patch) | |
tree | e2b8d818c7860763a685262aa824f5123306936c | |
parent | 4a8bdfc49b1c9c48536aafbb008b8c0dbddaf8c1 (diff) | |
parent | 858fa5eb2c96149fffda629b727f8009e3b367fc (diff) |
Merge "channel: No hung-up on failing security requirements."
-rw-r--r-- | main/channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c index 1f18d53b1..94505ad0e 100644 --- a/main/channel.c +++ b/main/channel.c @@ -6093,7 +6093,7 @@ struct ast_channel *ast_request(const char *type, struct ast_format_cap *request if (set_security_requirements(requestor, c)) { ast_log(LOG_WARNING, "Setting security requirements failed\n"); - c = ast_channel_release(c); + ast_hangup(c); *cause = AST_CAUSE_BEARERCAPABILITY_NOTAVAIL; return NULL; } |