--- 1.4/apps/app_queue.c.orig 2007-09-07 10:38:42.000000000 -0700 +++ 1.4/apps/app_queue.c 2007-09-07 10:43:03.000000000 -0700 @@ -2598,6 +2598,10 @@ ast_hangup(peer); return -1; } + /* Set MEMBERINTERFACE before the MixMonitor filename delayed + variable substitution */ + 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 @@ 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);