[asterisk-commits] bridge: stuck channel(s) after failed attended transfer (asterisk[master])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jun 21 17:57:21 CDT 2017
Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/5894 )
Change subject: bridge: stuck channel(s) after failed attended transfer
......................................................................
bridge: stuck channel(s) after failed attended transfer
If an attended transfer failed it was possible for some of the channels
involved to get "stuck" because Asterisk was not hanging up the transfer target.
This patch ensures Asterisk hangs up the transfer target when an attended
transfer failure occurs.
ASTERISK-27075 #close
Change-Id: I98a6ecd92d3461ab98c36f0d9451d23adaf3e5f9
---
M main/bridge.c
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Joshua Colp: Looks good to me, but someone else must approve
Richard Mudgett: Looks good to me, approved
Jenkins2: Approved for Submit
diff --git a/main/bridge.c b/main/bridge.c
index 8cde62c..07880ab 100644
--- a/main/bridge.c
+++ b/main/bridge.c
@@ -4822,7 +4822,7 @@
res = AST_BRIDGE_TRANSFER_SUCCESS;
end:
- if (res == AST_BRIDGE_TRANSFER_SUCCESS && hangup_target) {
+ if ((res == AST_BRIDGE_TRANSFER_SUCCESS && hangup_target) || res == AST_BRIDGE_TRANSFER_FAIL) {
ast_softhangup(to_transfer_target, AST_SOFTHANGUP_DEV);
}
--
To view, visit https://gerrit.asterisk.org/5894
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I98a6ecd92d3461ab98c36f0d9451d23adaf3e5f9
Gerrit-Change-Number: 5894
Gerrit-PatchSet: 2
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-commits/attachments/20170621/f47b40ba/attachment-0001.html>
More information about the asterisk-commits
mailing list