[Asterisk-cvs] asterisk/apps app_queue.c,1.53,1.54

markster at lists.digium.com markster at lists.digium.com
Thu Apr 8 01:02:58 CDT 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv5345/apps

Modified Files:
	app_queue.c 
Log Message:
Turn off MOH later rather than sooner.


Index: app_queue.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- app_queue.c	30 Mar 2004 22:04:07 -0000	1.53
+++ app_queue.c	8 Apr 2004 05:03:47 -0000	1.54
@@ -975,8 +975,6 @@
 		recalc_holdtime(qe);
 		update_queue(qe->parent, lpeer);
 		hanguptree(outgoing, peer);
-		/* Stop music on hold */
-		ast_moh_stop(qe->chan);
 		outgoing = NULL;
 		if (announce) {
 			int res2;
@@ -994,6 +992,8 @@
 				return -1;
 			}
 		}
+		/* Stop music on hold */
+		ast_moh_stop(qe->chan);
 		/* If appropriate, log that we have a destination channel */
 		if (qe->chan->cdr)
 			ast_cdr_setdestchan(qe->chan->cdr, peer->name);




More information about the svn-commits mailing list