[asterisk-bugs] [Asterisk 0016376]: [patch] Incorrect path passed to MONITOR_EXEC application after 'Monitor()' call finishes.

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jan 19 10:48:34 CST 2010


The following issue has been set as RELATED TO issue 0016624. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16376 
====================================================================== 
Reported By:                bcnit
Assigned To:                jpeeler
====================================================================== 
Project:                    Asterisk
Issue ID:                   16376
Category:                   Resources/res_monitor
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Target Version:             1.4.29
Asterisk Version:           SVN 
JIRA:                       SWP-490 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-12-02 18:13 CST
Last Modified:              2010-01-19 10:48 CST
====================================================================== 
Summary:                    [patch] Incorrect path passed to MONITOR_EXEC
application after 'Monitor()' call finishes.
Description: 
The following dialplan:

-- Executing [s at inbound:1] Set("SIP/pbx19-0000000e",
"MONITOR_EXEC=/etc/asterisk/bin/1wav2mp3.sh") in new stack
-- Executing [s at inbound:2] Set("SIP/pbx19-0000000e",
"MONITOR_EXEC_ARGS=20091202 1259797479.14 500 402") in new stack
-- Executing [s at inbound:3] Monitor("SIP/pbx19-0000000e",
"wav|/opt/pbx/raw/1259797479.14|m") in new stack

Calls the script '/etc/asterisk/bin/1wav2mp3.sh' with the following
parameters:

$1 = /var/spool/asterisk/monitor//opt/pbx/raw/1259797479.14-in.wav
$2 = /var/spool/asterisk/monitor//opt/pbx/raw/1259797479.14-out.wav
$3 = /var/spool/asterisk/monitor//opt/pbx/raw/1259797479.14.wav
$4 = 20091202
$5 = 1259797479.14
$6 = 500
$7 = 402

i.e. the path '/var/spool/asterisk/monitor/' is being prepended to the
actual path/file used for the recording. I can confirm that this path is
not defined anywhere in /etc/asterisk/*

I have coded the script to cut the first 28 characters, but it's a bit
annoying.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0016377 res_monitor.c chan->monitor->file...
related to          0016624 [regression] soxmerge arguments broken ...
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-19 10:48 lmadsen        Relationship added       related to 0016624  
======================================================================




More information about the asterisk-bugs mailing list