[asterisk-commits] bridge: stuck channel(s) after failed attended transfer (asterisk[certified/13.13])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jun 21 18:01:07 CDT 2017
Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/5895 )
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 6152b1b..02b542a 100644
--- a/main/bridge.c
+++ b/main/bridge.c
@@ -4786,7 +4786,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/5895
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: certified/13.13
Gerrit-MessageType: merged
Gerrit-Change-Id: I98a6ecd92d3461ab98c36f0d9451d23adaf3e5f9
Gerrit-Change-Number: 5895
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/2578808b/attachment-0001.html>
More information about the asterisk-commits
mailing list