Skip to content

Commit

Permalink
#2895 Stop ringing tone before move to next verb when Dial verb fail …
Browse files Browse the repository at this point in the history
…to call
  • Loading branch information
Hoan HL committed Apr 16, 2018
1 parent 1119690 commit 8ad5858
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1328,6 +1328,12 @@ private void onCallStateChanged(Object message, ActorRef sender) throws Transiti
if (dialBranches != null && dialBranches.contains(sender)) {
dialBranches.remove(sender);
}
if (dialBranches == null || dialBranches.size() == 0){
// https://github.com/RestComm/Restcomm-Connect/issues/2895
// Race condition If there is Play/Say Verb after dial verb, if the Dia verb is failing to call to the other,
// NTFY to stop ringing tone also stop RQNT for playing/say verb. Better to stop it here.
call.tell(new StopMediaGroup(), self());
}
checkDialBranch(message,sender,action);
} else if (sender.equals(call)) {
fsm.transition(message, finished);
Expand Down

0 comments on commit 8ad5858

Please sign in to comment.