[asterisk-bugs] [JIRA] (ASTERISK-20723) Asterisk warns about pipe characters in string variable created using Set
Cam (JIRA)
noreply at issues.asterisk.org
Sat Nov 24 14:46:45 CST 2012
[ https://issues.asterisk.org/jira/browse/ASTERISK-20723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=200025#comment-200025 ]
Cam edited comment on ASTERISK-20723 at 11/24/12 2:44 PM:
----------------------------------------------------------
The asterisk.conf settings are nearly identical. The only difference is that on the one that doesn't show the warning, there is an additional line in the directories section (astdatadir => /var/lib/asterisk). There is no mention of a "dontwarn" option in either, so I would assume that takes the default setting. Is there any other setting in any other file that could affect this?
The string IS getting stored correctly and everything apparently works as it should. It is just the warning message that is out of place.
Adding dontwarn=yes to asterisk.conf does make the warnings stop.
was (Author: cam):
The asterisk.conf settings are nearly identical. The only difference is that on the one that doesn't show the warning, there is an additional line in the directories section (astdatadir => /var/lib/asterisk). There is no mention of a "dontwarn" option in either, so I would assume that takes the default setting. Is there any other setting in any other file that could affect this?
The string IS getting stored correctly and everything apparently works as it should. It is just the warning message that is out of place.
> 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: Cam
> 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