[asterisk-commits] oej: branch group/pinequeue r305984 - /team/group/pinequeue/apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Feb 3 07:22:16 CST 2011
Author: oej
Date: Thu Feb 3 07:22:08 2011
New Revision: 305984
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=305984
Log:
Small updates
Modified:
team/group/pinequeue/apps/app_queue.c
Modified: team/group/pinequeue/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pinequeue/apps/app_queue.c?view=diff&rev=305984&r1=305983&r2=305984
==============================================================================
--- team/group/pinequeue/apps/app_queue.c (original)
+++ team/group/pinequeue/apps/app_queue.c Thu Feb 3 07:22:08 2011
@@ -4746,6 +4746,14 @@
state->chan->stream = NULL;
state->stream = NULL;
state->aqsi->now_playing = 0; /* Important flag to indicate we are no longer playing on this channel */
+ if (state->chan->moh) {
+ ast_log(LOG_DEBUG, "--- Restarting MOH --\n");
+ if (state->aqsi->ringing) {
+ ast_indicate(qe->chan, AST_CONTROL_RINGING);
+ } else {
+ ast_moh_start(state->chan, state->aqsi->moh, NULL);
+ }
+ }
}
/*! \brief Release generator on channel */
@@ -4863,6 +4871,8 @@
res = ast_waitstream(chan, AST_DIGIT_ANY);
}
ast_stopstream(chan);
+ /* Maybe ringing, but let's play moh games here */
+ ast_moh_start(qe->chan, qe->moh, NULL);
return res;
}
More information about the asterisk-commits
mailing list