From b6a00a1d976f30251332c2ae0ec95514d794968f Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Fri, 28 Sep 2012 12:17:41 +0000 Subject: [PATCH] Update documentation to make it explicit that "stream file" will not restart musiconhold. (issue ASTERISK-17367) Reported by: oej ........ Merged revisions 373989 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 373990 from http://svn.asterisk.org/svn/asterisk/branches/10 ........ Merged revisions 373991 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@373992 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_agi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/res/res_agi.c b/res/res_agi.c index 213805ed37..d5393fc68b 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -599,7 +599,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") Enables/Disables the music on hold generator. If class is not specified, then the default music on hold class will be - used. + used. This generator will be stopped automatically when playing a file. Always returns 0. @@ -649,7 +649,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") Send the given file, allowing playback to be interrupted by the given digits, if any. Returns 0 if playback completes without a digit being pressed, or the ASCII numerical value of the digit if one was pressed, - or -1 on error or if the channel was disconnected. + or -1 on error or if the channel was disconnected. If + musiconhold is playing before calling stream file it will be automatically + stopped and will not be restarted after completion. control stream file -- 2.47.2