mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
Turn off MOH later rather than sooner.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2659 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -975,8 +975,6 @@ static int try_calling(struct queue_ent *qe, char *options, char *announceoverri
|
|||||||
recalc_holdtime(qe);
|
recalc_holdtime(qe);
|
||||||
update_queue(qe->parent, lpeer);
|
update_queue(qe->parent, lpeer);
|
||||||
hanguptree(outgoing, peer);
|
hanguptree(outgoing, peer);
|
||||||
/* Stop music on hold */
|
|
||||||
ast_moh_stop(qe->chan);
|
|
||||||
outgoing = NULL;
|
outgoing = NULL;
|
||||||
if (announce) {
|
if (announce) {
|
||||||
int res2;
|
int res2;
|
||||||
@@ -994,6 +992,8 @@ static int try_calling(struct queue_ent *qe, char *options, char *announceoverri
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* Stop music on hold */
|
||||||
|
ast_moh_stop(qe->chan);
|
||||||
/* If appropriate, log that we have a destination channel */
|
/* If appropriate, log that we have a destination channel */
|
||||||
if (qe->chan->cdr)
|
if (qe->chan->cdr)
|
||||||
ast_cdr_setdestchan(qe->chan->cdr, peer->name);
|
ast_cdr_setdestchan(qe->chan->cdr, peer->name);
|
||||||
|
|||||||
Reference in New Issue
Block a user