[Asterisk-code-review] channel: No hung-up on failing security requirements. (asterisk[master])
Alexander Traud
asteriskteam at digium.com
Fri Aug 26 08:48:42 CDT 2016
Alexander Traud has uploaded a new change for review.
https://gerrit.asterisk.org/3725
Change subject: channel: No hung-up on failing security requirements.
......................................................................
channel: No hung-up on failing security requirements.
In your Diaplan, if you specify
same => n,Set(CHANNEL(secure_bridge_media)=1)
same => n,Set(CHANNEL(secure_bridge_signaling)=1)
only the SIP channel driver chan_sip supports this. All other channels drivers
like res_pjsip fail. In case of failure, the original sRTP source code released
the whole channel, even if not hung-up, yet. This change does not release the
channel but instead hangs-up the channel.
ASTERISK-26306
Change-Id: I0489f0cb660fab6673b0db8af027d116e70a66db
---
M main/channel.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/25/3725/1
diff --git a/main/channel.c b/main/channel.c
index 1f18d53..99fcaea 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -6093,7 +6093,7 @@
if (set_security_requirements(requestor, c)) {
ast_log(LOG_WARNING, "Setting security requirements failed\n");
- c = ast_channel_release(c);
+ c = ast_hangup(c);
*cause = AST_CAUSE_BEARERCAPABILITY_NOTAVAIL;
return NULL;
}
--
To view, visit https://gerrit.asterisk.org/3725
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0489f0cb660fab6673b0db8af027d116e70a66db
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
More information about the asterisk-code-review
mailing list