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

Benjamin Keith Ford asteriskteam at digium.com
Fri Apr 13 14:37:10 CDT 2018


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


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.

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/76/8776/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/8776
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: I86b2885ee7063268f9b9747eddb788336ade989b
Gerrit-Change-Number: 8776
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/99c7f6de/attachment.html>


More information about the asterisk-code-review mailing list