mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
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
This commit is contained in:
@@ -2178,6 +2178,7 @@ static enum attended_transfer_state consulting_exit(struct attended_transfer_pro
|
|||||||
bridge_unhold(props->transferee_bridge);
|
bridge_unhold(props->transferee_bridge);
|
||||||
return TRANSFER_COMPLETE;
|
return TRANSFER_COMPLETE;
|
||||||
case STIMULUS_TRANSFER_TARGET_HANGUP:
|
case STIMULUS_TRANSFER_TARGET_HANGUP:
|
||||||
|
return TRANSFER_REBRIDGE;
|
||||||
case STIMULUS_DTMF_ATXFER_ABORT:
|
case STIMULUS_DTMF_ATXFER_ABORT:
|
||||||
play_sound(props->transferer, props->failsound);
|
play_sound(props->transferer, props->failsound);
|
||||||
return TRANSFER_REBRIDGE;
|
return TRANSFER_REBRIDGE;
|
||||||
|
Reference in New Issue
Block a user