diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-07 19:48:00 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-07 19:48:00 +0000 |
commit | 752697c7eb78829af3492a3d70c92a633992243f (patch) | |
tree | 171f7517e5dcc4ab1d8938d165b8b3b826b31d63 /apps/app_queue.c | |
parent | 62b016dfb4f488113979bf2c139f6d3efc7d86ef (diff) |
Allow the MEMBERINTERFACE variable to be used as the mixmonitor filename.
This moves the setting of the MEMBERINTERFACE variable to before mixmonitor.
Issue 10671, patch by sim.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81923 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index b1de22146..e9026283e 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2598,6 +2598,10 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce ast_hangup(peer); return -1; } + + if (qe->parent->setinterfacevar) + pbx_builtin_setvar_helper(qe->chan, "MEMBERINTERFACE", member->interface); + /* Begin Monitoring */ if (qe->parent->monfmt && *qe->parent->monfmt) { if (!qe->parent->montype) { @@ -2695,8 +2699,6 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce ast_log(LOG_DEBUG, "app_queue: sendurl=%s.\n", url); ast_channel_sendurl(peer, url); } - if (qe->parent->setinterfacevar) - pbx_builtin_setvar_helper(qe->chan, "MEMBERINTERFACE", member->interface); if (!ast_strlen_zero(agi)) { if (option_debug) ast_log(LOG_DEBUG, "app_queue: agi=%s.\n", agi); |