diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-04-08 05:03:47 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-04-08 05:03:47 +0000 |
commit | cf209b8f1e145a1077884cbeae05083d14099fce (patch) | |
tree | 65a6e977768fc0ae6baf9029d14b406aae6a6a60 /apps/app_queue.c | |
parent | 0ea5ba716682a2dd43b934b7ab48fa3a186c8bad (diff) |
Turn off MOH later rather than sooner.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2659 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rwxr-xr-x | apps/app_queue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 45a82221b..c4c4d5da7 100755 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -975,8 +975,6 @@ static int try_calling(struct queue_ent *qe, char *options, char *announceoverri 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 @@ static int try_calling(struct queue_ent *qe, char *options, char *announceoverri 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); |