[asterisk-bugs] [JIRA] (ASTERISK-21814) "/" in TOUCH_MIXMONITOR is replaced by "-"

Michael L. Young (JIRA) noreply at issues.asterisk.org
Fri May 24 21:58:03 CDT 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-21814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=206816#comment-206816 ] 

Michael L. Young edited comment on ASTERISK-21814 at 5/24/13 9:57 PM:
----------------------------------------------------------------------

The relevant dialplan part looks like this:

Note absolute path (and 2 dashes in the name):

{noformat}
exten => s,n,Set(TOUCH_MONITOR=/tmp/test1)

-rw-r--r--. 1 asterisk asterisk    31390 May 24 15:54 auto-1369436033--tmp-test1-in.WAV
{noformat}

making path relative:

{noformat}
exten => s,n,Set(TOUCH_MONITOR=tmp/test2)

-rw-r--r--. 1 asterisk asterisk    12410 May 24 16:14 auto-1369437274-tmp-test2-out.WAV
{noformat}

In either case file are stored in /var/spool/asterisk/monitor directory. Please ignore -in and -out - irrelevant for the issue 

                
      was (Author: aepshteyn):
    The relevant dialplan part looks like this:

Note absolute path (and 2 dashes in the name):

exten => s,n,Set(TOUCH_MONITOR=/tmp/test1)

-rw-r--r--. 1 asterisk asterisk    31390 May 24 15:54 auto-1369436033--tmp-test1-in.WAV

making path relative:

exten => s,n,Set(TOUCH_MONITOR=tmp/test2)

-rw-r--r--. 1 asterisk asterisk    12410 May 24 16:14 auto-1369437274-tmp-test2-out.WAV

In either case file are stored in /var/spool/asterisk/monitor directory. Please ignore -in and -out - irrelevant for the issue 

                  
> "/" in TOUCH_MIXMONITOR is replaced by "-"
> ------------------------------------------
>
>                 Key: ASTERISK-21814
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21814
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: 1.8.20.1
>            Reporter: Alex Epshteyn
>            Assignee: Alex Epshteyn
>
> specifying a full path for TOUCH_MIXMONITOR or TOUCH_MONITOR results in recorded file with "/" replaced by "-"
> code in features.c shows this:
>  2278     for( x = 0; x < strlen(args); x++) {
>    2279         if (args[x] == '/')
>    2280             args[x] = '-';
>    2281     }
> Is this intentional? 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list