Skip to content

Commit eb234ac

Browse files
authored
fix: set correct bridge channel to hangup (#18)
1 parent 5cbedf3 commit eb234ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/proxy_logic_13/proxy_logic_13.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7965,9 +7965,9 @@ function forceHangupConversation(endpointType, endpointId, convid, extForCtx, cb
79657965
// force hangup is realized with a redirection to a non existent destination.
79667966
var chToHangup;
79677967
if (chSource) {
7968-
chToHangup = endpointId === chSource.getCallerNum() ? chSource.getChannel() : chSource.getBridgedChannel();
7968+
chToHangup = chSource.getBridgedChannel();
79697969
} else {
7970-
chToHangup = endpointId === chDest.getCallerNum() ? chDest.getChannel() : chDest.getBridgedChannel();
7970+
chToHangup = chDest.getBridgedChannel();
79717971
}
79727972

79737973
if (chToHangup !== undefined) {

0 commit comments

Comments
 (0)