]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix MusicOnHold in MeetMe so that it always uses the class if it's been defined
authorJonathan Rose <jrose@digium.com>
Thu, 5 Apr 2012 16:36:27 +0000 (16:36 +0000)
committerJonathan Rose <jrose@digium.com>
Thu, 5 Apr 2012 16:36:27 +0000 (16:36 +0000)
There were a few instances of restarting music on hold in meetme that would cause
Asterisk to revert to the default class of music on hold for no adequate reason.

Review: https://reviewboard.asterisk.org/r/1844/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@361269 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index 35678499d24e5cc9ff7cac1c2b80468263513f09..0f23791ea662ad00619c212f961d2678de3f2d9d 100644 (file)
@@ -3657,7 +3657,7 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, struc
                                                                }
                                                                if (musiconhold && mohtempstopped && confsilence > MEETME_DELAYDETECTENDTALK) {
                                                                        mohtempstopped = 0;
-                                                                       ast_moh_start(chan, NULL, NULL);
+                                                                       conf_start_moh(chan, optargs[OPT_ARG_MOH_CLASS]);
                                                                }
                                                        }
                                                } else {
@@ -3679,7 +3679,7 @@ bailoutandtrynormal:
                                                }
                                                if (musiconhold && mohtempstopped && confsilence > MEETME_DELAYDETECTENDTALK) {
                                                        mohtempstopped = 0;
-                                                       ast_moh_start(chan, NULL, NULL);
+                                                       conf_start_moh(chan, optargs[OPT_ARG_MOH_CLASS]);
                                                }
                                        }
                                } else {