[asterisk-bugs] [Asterisk 0014609]: Set(ARRAY(var1, var2)=1, 2) not working
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Mar 9 03:49:57 CDT 2009
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=14609
======================================================================
Reported By: peterh
Assigned To: tilghman
======================================================================
Project: Asterisk
Issue ID: 14609
Category: Functions/func_strings
Reproducibility: always
Severity: minor
Priority: normal
Status: feedback
Asterisk Version: 1.6.0.6
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2009-03-05 03:01 CST
Last Modified: 2009-03-09 03:49 CDT
======================================================================
Summary: Set(ARRAY(var1,var2)=1,2) not working
Description:
[arraytest]
exten => s,1,Set(ARRAY(var1,var2)=1\,2)
exten => s,n,NoOp(<${var1}><${var2}>)
exten => s,n,Set(ARRAY(var1,var2)="1,2")
exten => s,n,NoOp(<${var1}><${var2}>)
exten => s,n,Set(ARRAY(var1,var2)=1,2)
exten => s,n,NoOp(<${var1}><${var2}>)
exten => s,n,Hangup
[default]
exten => 0123456,n,Goto(arraytest,s,1)
-- Executing [s at arraytest:1] Set("DAHDI/31-1", "ARRAY(var1,var2)=1\,2") in
new stack
-- Executing [s at arraytest:2] NoOp("DAHDI/31-1", "<1><2>") in new stack
-- Executing [s at arraytest:3] Set("DAHDI/31-1", "ARRAY(var1,var2)="1,2"")
in new stack
-- Executing [s at arraytest:4] NoOp("DAHDI/31-1", "<1><2>") in new stack
-- Executing [s at arraytest:5] Set("DAHDI/31-1", "ARRAY(var1,var2)=1,2") in
new stack
[Mar 5 10:01:48] WARNING[901]: pbx.c:8122 pbx_builtin_setvar_multiple:
MSet: ignoring entry '2' with no '=' (in s at arraytest:5
-- Executing [s at arraytest:6] NoOp("DAHDI/31-1", "<1><>") in new stack
-- Executing [s at arraytest:7] Hangup("DAHDI/31-1", "") in new stack
======================================================================
----------------------------------------------------------------------
(0101355) wdoekes (reporter) - 2009-03-09 03:49
http://bugs.digium.com/view.php?id=14609#c101355
----------------------------------------------------------------------
Ahyes tilghman, you are right and I was wrong. The above output is as my
O'Reilly book says it should be: quote the comma if you want to use it as a
separator (and never use unquoted comma's).
I am confused about how I would about getting an argument with a comma in
an ARRAY. But that's rather a non-issue, as one could do multiple Set's.
Sorry about the confusion.
Issue History
Date Modified Username Field Change
======================================================================
2009-03-09 03:49 wdoekes Note Added: 0101355
======================================================================
More information about the asterisk-bugs
mailing list