Skip to content

Commit 0f04717

Browse files
committed
Patch for race condition when SBC is enabled, where the Cancel from one of the forking branches will cause the initial call state to be marked as Canceled and thus the Bye wont be send at the end of the call.
This refer to RESTCOMM-1932
1 parent 1119690 commit 0f04717

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

restcomm/restcomm.interpreter/src/main/java/org/restcomm/connect/interpreter/VoiceInterpreter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ private void onCallStateChanged(Object message, ActorRef sender) throws Transiti
12441244
case RINGING:
12451245
break;
12461246
case CANCELED:
1247-
if (is(initializingBridge) || is(acquiringOutboundCallInfo) || is(bridging) || is(bridged)) {
1247+
if (is(creatingBridge) || is(initializingBridge) || is(acquiringOutboundCallInfo) || is(bridging) || is(bridged)) {
12481248
//This is a canceled branch from a previous forking call. We need to destroy the branch
12491249
// removeDialBranch(message, sender);
12501250
callManager.tell(new DestroyCall(sender), self());

0 commit comments

Comments
 (0)