Skip to content

Commit

Permalink
caller.js stopAllAudioEffects() with dtmfDialingSound.pause()
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrvarz committed Oct 20, 2022
1 parent 9e218e5 commit 96f1f52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webroot/user/caller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2642,12 +2642,15 @@ function dataChannelOnmessage(event) {
}

function stopAllAudioEffects() {
gLog('stopAllAudioEffects');
if(playDialSounds) {
gLog('stopAllAudioEffects DialSound stop');
if(dtmfDialingSound) {
gLog('stopAllAudioEffects dtmfDialingSound stop');
dtmfDialingSound.pause();
dtmfDialingSound.currentTime = 100000;
}
if(busySignalSound) {
gLog('stopAllAudioEffects busySignalSound stop');
busySignalSound.pause();
busySignalSound.currentTime = 0;
}
Expand Down

0 comments on commit 96f1f52

Please sign in to comment.