Fix record option to take from the right channel
authorMark Spencer <markster@digium.com>
Tue, 25 May 2004 15:37:30 +0000 (15:37 +0000)
committerMark Spencer <markster@digium.com>
Tue, 25 May 2004 15:37:30 +0000 (15:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3072 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 7c7d65f..1e0c67d 100755 (executable)
@@ -1065,7 +1065,7 @@ static int try_calling(struct queue_ent *qe, char *options, char *announceoverri
                }
                /* Begin Monitoring */
                if (qe->parent->monfmt && *qe->parent->monfmt) {
-                       monitorfilename = pbx_builtin_getvar_helper( peer, "MONITOR_FILENAME");
+                       monitorfilename = pbx_builtin_getvar_helper( qe->chan, "MONITOR_FILENAME");
                        if(monitorfilename) {
                                ast_monitor_start( peer, qe->parent->monfmt, monitorfilename, 1 );
                        } else {