[asterisk-bugs] [Asterisk 0010935]: No function for escaping shell characters
noreply at bugs.digium.com
noreply at bugs.digium.com
Sat Oct 13 12:41:39 CDT 2007
The following issue has been RESOLVED.
======================================================================
http://bugs.digium.com/view.php?id=10935
======================================================================
Reported By: arekm
Assigned To: russell
======================================================================
Project: Asterisk
Issue ID: 10935
Category: Functions/General
Reproducibility: always
Severity: feature
Priority: normal
Status: resolved
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:
Resolution: no change required
Fixed in Version:
======================================================================
Date Submitted: 10-10-2007 11:09 CDT
Last Modified: 10-13-2007 12:41 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.
======================================================================
----------------------------------------------------------------------
russell - 10-13-07 12:41
----------------------------------------------------------------------
I'm closing this out as a feature request.
Issue History
Date Modified Username Field Change
======================================================================
10-13-07 12:41 russell Status new => resolved
10-13-07 12:41 russell Resolution open => no change
required
10-13-07 12:41 russell Assigned To => russell
10-13-07 12:41 russell Note Added: 0071924
======================================================================
More information about the asterisk-bugs
mailing list