[Asterisk-code-review] res musiconhold: Don't restart MOH from beginning after anno... (asterisk[master])

Benjamin Keith Ford asteriskteam at digium.com
Fri Apr 13 14:39:47 CDT 2018


Benjamin Keith Ford has uploaded this change for review. ( https://gerrit.asterisk.org/8777


Change subject: res_musiconhold: Don't restart MOH from beginning after announcement.
......................................................................

res_musiconhold: Don't restart MOH from beginning after announcement.

This fixes a problem introduced by the fix for Asterisk issue 24329.
Now, when an announcement is played while waiting in a queue, music on
hold will not restart from the beginning of the sound file and will
instead pick up where it left off.

ASTERISK-27774 #close
Reported by: lvl

Change-Id: I86b2885ee7063268f9b9747eddb788336ade989b
---
M res/res_musiconhold.c
1 file changed, 0 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/77/8777/1

diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 55b14c9..1c8728c 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -333,7 +333,6 @@
 		}
 	} else {
 		state->announcement = 0;
-		state->samples = 0;
 	}
 
 	if (!state->class->total_files) {

-- 
To view, visit https://gerrit.asterisk.org/8777
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I86b2885ee7063268f9b9747eddb788336ade989b
Gerrit-Change-Number: 8777
Gerrit-PatchSet: 1
Gerrit-Owner: Benjamin Keith Ford <bford at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180413/976ad7b6/attachment.html>


More information about the asterisk-code-review mailing list