Summary:ASTERISK-14678: Set(MONITOR_EXEC= in the queues.conf file doesn't actually do anything
Reporter:David O Reilly (trendboy)Labels:
Date Opened:2009-08-18 18:29:15Date Closed:2011-06-07 14:01:07
Versions:Frequency of
Description:NB:On Asterisk - but I will install the latest version and try it too.

When you try to run a shell script or any unix command on:

Set(MONITOR_EXEC=/etc/asterisk/lameconvert.php ^{MONITOR_FILENAME})

To test this and prove it isn't my script I made it do an ls as follows:

Set(MONITOR_EXEC=ls -l / > /dave.txt)

So I go in an queue a call and then check to see what happens. The wav file is created but there is not /dave.txt file so it seems to completely ignore the Set command.

I need to try this on the latest version but after searching I didn't see anything about it so I must be the only person to discover it (I did notice back in asterisk 1.2 something like this came up and the fix was to add some monitor options, but that was fixed in 1.2 so I'm sure it's not here today in version 1.6)

Any ideas???


My full queues.conf file

maxlen = 0
announce-frequency = 0
announce-holdtime = no
leavewhenempty = yes
joinempty = no
; Monitor Type
;    By setting monitor-type = MixMonitor, when specifying monitor-format
;    to enable recording of queue member conversations, app_queue will
;    now use the new MixMonitor application instead of Monitor so
;    the concept of "joining/mixing" the in/out files now goes away
;    when this is enabled. You can set the default type for all queues
;    here, and then also change monitor-type for individual queues within
;    queue by using the same configuration parameter within a queue
;    configuration block. If you do not specify or comment out this option,
;    it will default to the old 'Monitor' behavior to keep backward
;    compatibility.
monitor-type = MixMonitor
monitor-format = wav
; ----------------------- TYPE MIXMONITOR OPTIONS -----------------------------
Set(MONITOR_EXEC=/etc/asterisk/lameconvert.php ^{MONITOR_FILENAME})
; -----------------
; add all the members statically so they
; turn off their phones when they dont want to read
member => IAX2/1234
Comments:By: Jason Parker (jparker) 2009-08-19 17:18:11

You misunderstood some documentation somewhere.  This doesn't go into queues.conf - it goes in the dialplan somewhere that will get executed before entering the queue.

Closing as this is not a bug.