summaryrefslogtreecommitdiff
path: root/main/bridge_basic.c
diff options
context:
space:
mode:
authorKevin Harwell <kharwell@digium.com>2016-01-14 16:00:50 -0600
committerKevin Harwell <kharwell@digium.com>2016-01-14 16:06:03 -0600
commit84b30c5e18fa3395a1ec8e236038b8f525d3205a (patch)
treea08f8009d399da8148c947aa5fc6a4f248977344 /main/bridge_basic.c
parentc3d458d2261ccfc2ee1a5cc949b1ff2abdec914a (diff)
bridge_basic: don't play an attended transfer fail sound after target hangs up
If the attended transfer destination answers (picks call up or goes to voicemail) and then hangs up on the transferer then transferer hears the fail sound. This patch makes it so the fail sound is not played when the transfer destination/target hangs up after answering. ASTERISK-25697 #close Change-Id: I97f142fe4fc2805d1a24b7c16143069dc03d9ded
Diffstat (limited to 'main/bridge_basic.c')
-rw-r--r--main/bridge_basic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/bridge_basic.c b/main/bridge_basic.c
index cd1991520..47d838fca 100644
--- a/main/bridge_basic.c
+++ b/main/bridge_basic.c
@@ -2178,6 +2178,7 @@ static enum attended_transfer_state consulting_exit(struct attended_transfer_pro
bridge_unhold(props->transferee_bridge);
return TRANSFER_COMPLETE;
case STIMULUS_TRANSFER_TARGET_HANGUP:
+ return TRANSFER_REBRIDGE;
case STIMULUS_DTMF_ATXFER_ABORT:
play_sound(props->transferer, props->failsound);
return TRANSFER_REBRIDGE;