[asterisk-dev] Parsing in Asterisk
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Mon Mar 19 09:41:33 MST 2007
On Monday 19 March 2007 09:28, 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.
If you prefer to think of it this way, one of the earlier
implementations that didn't make it to the development tree was
"variables with triggers". One of the earliest dialplan functions was
ENV():
Set(ENV(TZ)=America/Chicago)
Even though we call it a function, you might think of it as a subscript
to an associative array, if that makes the concept easier.
--
Tilghman
More information about the asterisk-dev
mailing list