mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-27 16:07:15 -07:00
Merge "channel: No hung-up on failing security requirements." into 14
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user