--- asterisk/apps/app_queue.c.gjb 2004-02-24 23:51:55.000000000 -0500 +++ asterisk/apps/app_queue.c 2004-02-24 23:51:40.000000000 -0500 @@ -808,8 +808,6 @@ /* Update parameters for the queue */ update_queue(qe->parent, lpeer); hanguptree(outgoing, peer); - /* Stop music on hold */ - ast_moh_stop(qe->chan); outgoing = NULL; if (announce) { int res2; @@ -843,7 +841,15 @@ ast_log(LOG_DEBUG, "app_queue: sendurl=%s.\n", url); ast_channel_sendurl( peer, url ); } /* /JDG */ - bridge = ast_bridge_call(qe->chan, peer, allowredir_in, allowredir_out, allowdisconnect); + + /* + * I moved the MOH kill here because we should not stop audio to the caller until + * the bridge occurs. This should prevent a caller from hearing a dropout in the + * MOH in case something bombs up above. + * GJB - 02/24/2004 + */ + ast_moh_stop(qe->chan); + bridge = ast_bridge_call(qe->chan, peer, allowredir_in, allowredir_out, allowdisconnect); if(bridge != AST_PBX_NO_HANGUP_PEER) ast_hangup(peer);