[asterisk-bugs] [Asterisk 0010935]: No function for escaping shell characters
noreply at bugs.digium.com
noreply at bugs.digium.com
Fri Oct 12 01:32:14 CDT 2007
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=10935
======================================================================
Reported By: arekm
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 10935
Category: Functions/General
Reproducibility: always
Severity: feature
Priority: normal
Status: new
Asterisk Version: 1.4.12.1
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 10-10-2007 11:09 CDT
Last Modified: 10-12-2007 01:32 CDT
======================================================================
Summary: No function for escaping shell characters
Description:
The problem is that you cannot use few variables as file name when
Monitor() is being used because some characters are not escaped.
Example:
MixMonitor(${STRFTIME(${EPOCH},,%Y%m%d-%H:%M:%S)}_EXTEN=${EXTEN}_CALLERID=${CALLERID(num)}_CHANNEL=${CHANNEL}_ID=${UNIQUEID}.wav)
That will work fine until CHANNEL is sip channel and it's name contains
"/" character.
It will be considered as directory path separator and saving to such file
will fail.
There is a need for QUOTE_SHELL() function that will escape all special
shell characters.
======================================================================
----------------------------------------------------------------------
Corydon76 - 10-12-07 01:32
----------------------------------------------------------------------
Or the FILTER() function, for that matter.
Issue History
Date Modified Username Field Change
======================================================================
10-12-07 01:32 Corydon76 Note Added: 0071865
======================================================================
More information about the asterisk-bugs
mailing list