[Home]

Summary:ASTERISK-03533: Monitor command no longer accepts colons in filename
Reporter:muppetmaster (muppetmaster)Labels:
Date Opened:2005-02-17 08:54:44.000-0600Date Closed:2008-01-15 15:25:33.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/NewFeature
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:There appears to be an issue with the colon.  As it attempts to use wav|filename as the recording type, as opposed to just wav as the recording type.


****** ADDITIONAL INFORMATION ******

I ran this test:

exten => _9X.,2,SetVar(REC_FILE_NAME=test)
exten => _9X.,3,Monitor(wav|${REC_FILE_NAME}|m)

and it works fine.  But, when I try to use a filename that contains a colon, I get:

--context-----------------------------
exten => _9X.,2,SetVar(REC_FILE_NAME=rec_to_${EXTEN:1}_at_${DATETIME})
exten => _9X.,3,Monitor(wav|${FILENAME}|m)
--context-----------------------------

--CLI---------------------------------
    -- Executing SetVar("SIP/3004-da21",
"REC_FILE_NAME=rec_to_448704386865_at_16022005-16:56:35")
in new stack
-- Executing Monitor("SIP/3004-da21","wav|rec_to_448704386865_at_16022005-16:56:35|m") in new stack
Feb 16 16:56:35 WARNING[17028]: file.c:934
ast_writefile: No such format
'wav|rec_to_448704386865_at_16022005-16'
Feb 16 16:56:35 WARNING[17028]:
res_monitor.c:154
ast_monitor_start: Could not create file
/var/spool/asterisk/monitor/m-in Feb 16 16:56:35
WARNING[17028]: res_monitor.c:300
ast_monitor_change_fname: Cannot change monitor
filename of channel SIP/3004-da21 to m,
monitoring not
started    -- Executing AGI("SIP/3004-da21",
"outbound.agi") in new stack
--CLI---------------------------------
Comments:By: Mark Spencer (markster) 2005-02-17 09:06:15.000-0600

Fixed in CVS head.

By: Digium Subversion (svnbot) 2008-01-15 15:25:33.000-0600

Repository: asterisk
Revision: 5041

U   trunk/res/res_monitor.c

------------------------------------------------------------------------
r5041 | markster | 2008-01-15 15:25:32 -0600 (Tue, 15 Jan 2008) | 2 lines

Make sure we search for url prefix only in format, not in filename (bug ASTERISK-3533)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=5041