[asterisk-bugs] [JIRA] (ASTERISK-20723) Asterisk warns about pipe characters in string variable created using Set

Cam (JIRA) noreply at issues.asterisk.org
Sun Nov 25 13:32:45 CST 2012


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

Cam commented on ASTERISK-20723:
--------------------------------

Michael, with all due respect, I disagree that this is not a bug.  You may not think it worthy of your time or effort, but the fact is that as long as it persists, people have two choices: Either live with the erroneous warnings, or turn off warnings and possibly miss valid ones that should be of concern.  Since most users ignore warnings anyway, you may feel that turning off warnings is an acceptable solution, but it's certainly not an ideal solution.  It may be a minor bug in that it doesn't affect the operation of Asterisk, but it's still a bug.
                
> Asterisk warns about pipe characters in string variable created using Set
> -------------------------------------------------------------------------
>
>                 Key: ASTERISK-20723
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20723
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/PBX
>    Affects Versions: 1.8.18.0
>         Environment: Asterisk 1.8.18.0 on a i686 running CentOS Linux 5.5
>            Reporter: Cam
>            Assignee: Michael L. Young
>            Severity: Minor
>
> Consider these two lines of dialplan:
> {noformat}
> exten => s,n,Set(regx=^1?8(00|22|33|44|55|66|77|88)[2-9][0-9]{6}$)
> exten => s,n,GotoIf($[${REGEX("${regx}" ${OUTNUM})} = 1]?tollfree)
> {noformat}
> When these are executed, the Asterisk CLI shows this warning after the first of the two lines (the Set statement):
> {noformat}
> [2012-11-24 03:41:26] WARNING[13479]: pbx.c:1442 pbx_exec: The application delimiter is now the comma, not the pipe.  Did you forget to convert your dialplan?  (Set(regx=^1?8(00|22|33|44|55|66|77|88)[2-9][0-9]{6}$))
> {noformat}
> Since at this point we are only putting a string into a string variable, Asterisk should not be complaining about the contents, since that string might be used for any number of purposes totally unrelated to the Asterisk dialplan.  In this particular case the pipe characters are being used in a regular expression, which is still valid usage, but Asterisk doesn't yet know that when the Set statement is invoked.
> Strangely, this only happens on one of two Asterisk systems, both running the exact same version of Asterisk and running the identical two lines shown above.  Both were compiled using the same options in menuselect, so I have no idea why one spits out this error and not the other.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list