]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Allow the MEMBERINTERFACE variable to be used as the mixmonitor filename.
authorJason Parker <jparker@digium.com>
Fri, 7 Sep 2007 19:48:00 +0000 (19:48 +0000)
committerJason Parker <jparker@digium.com>
Fri, 7 Sep 2007 19:48:00 +0000 (19:48 +0000)
This moves the setting of the MEMBERINTERFACE variable to before mixmonitor.

Issue 10671, patch by sim.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81923 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index b1de2214625c330f6c743ef77a873a45e68dfe27..e9026283e2f6a3e488b09270595522cddfd47528 100644 (file)
@@ -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);