mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 08:44:14 +00:00
merge Russell's 'hold_handling' branch, finally implementing music-on-hold handling the way it was decided at AstriDevCon Europe 2006 (and the way people really want it to be)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1330,7 +1330,7 @@ static int handle_noop(struct ast_channel *chan, AGI *agi, int arg, char *argv[]
|
||||
static int handle_setmusic(struct ast_channel *chan, AGI *agi, int argc, char *argv[])
|
||||
{
|
||||
if (!strncasecmp(argv[2], "on", 2))
|
||||
ast_moh_start(chan, argc > 3 ? argv[3] : NULL);
|
||||
ast_moh_start(chan, argc > 3 ? argv[3] : NULL, NULL);
|
||||
else if (!strncasecmp(argv[2], "off", 3))
|
||||
ast_moh_stop(chan);
|
||||
fdprintf(agi->fd, "200 result=0\n");
|
||||
|
Reference in New Issue
Block a user