[asterisk-dev] Parsing in Asterisk
Leif Madsen
leif.madsen at asteriskdocs.org
Mon Mar 19 08:48:42 MST 2007
On Monday 19 March 2007 10:28:11 Philipp Kempgen wrote:
> Leif Madsen wrote:
> > On Tuesday 13 March 2007 13:25:11 Steve Murphy wrote:
> >> On Mon, 2007-03-12 at 14:33 -0600, Tilghman Lesher wrote:
> >>> exten => s,n,Set(ODBC_TEST3(foo)=123\,\\"456\,789\\"\,012)
>
> What I miss most is "real" strings as you know them from other
> languages - quoted in single or double quotes with escaping
> only being necessary for the quotes themselves (and maybe
> chars in hex notation).
>
> exten => s,n,Set(ODBC_TEST3(foo) = 123, "456,789", 012 )
>
> And it's really unusal to *write* to functions. Something
> like this would be my favorite:
>
> ODBC_TEST3( "foo", [123, "456,789", 012] )
Actually I would disagree with that. The format for writing a value to a
function is quite logical if you understand other parts of Asterisk dialplan
logic (i.e. it's intuitive). The format you proposed, to me, is confusing and
counter intuitive.
Leif Madsen.
More information about the asterisk-dev
mailing list