Summary: | ASTERISK-10492: stand alone dollar sign used in a string prevent normal variables substitution | ||
Reporter: | Dmytro Mishchenko (arkadia) | Labels: | |
Date Opened: | 2007-10-10 16:31:47 | Date Closed: | 2007-10-10 23:20:22 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/PBX |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | Here is dialplan: exten => 55,1, Set(var=foo) exten => 55,2, Verbose(${var}) exten => 55,3, Verbose($ ${var}) exten => 55,4, Verbose(\$ ${var}) exten => 55,5, Hangup on priority 3 and 4 output looks like: $ ${var} But it should be: $ foo ****** ADDITIONAL INFORMATION ****** From doc (channelvariables.txt): Also, characters special to variable substitution, expression evaluation, etc (see below), can be quoted. For example, to literally use a $ on the string "$1231", quote it with a preceding \. Special characters that must be quoted to be used, are [ ] $ " \. (to write \ itself, use \\). Actually it seems $, [, ], " can be used without quote. But ' can't. E.g.: exten => 55,5, Verbose($ ' " [ ]) output: $ " [ ] | ||
Comments: | By: Digium Subversion (svnbot) 2007-10-10 23:15:02 Repository: asterisk Revision: 85356 U branches/1.4/main/pbx.c ------------------------------------------------------------------------ r85356 | tilghman | 2007-10-10 23:15:00 -0500 (Wed, 10 Oct 2007) | 2 lines A dollar sign by itself, not indicating a start of a variable or expression prematurely ends substitution (closes issue ASTERISK-10492) ------------------------------------------------------------------------ By: Digium Subversion (svnbot) 2007-10-10 23:20:22 Repository: asterisk Revision: 85357 _U trunk/ U trunk/main/pbx.c ------------------------------------------------------------------------ r85357 | tilghman | 2007-10-10 23:20:21 -0500 (Wed, 10 Oct 2007) | 10 lines Merged revisions 85356 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r85356 | tilghman | 2007-10-10 23:35:33 -0500 (Wed, 10 Oct 2007) | 2 lines A dollar sign by itself, not indicating a start of a variable or expression prematurely ends substitution (closes issue ASTERISK-10492) ........ ------------------------------------------------------------------------ |