[asterisk-dev] Parsing in Asterisk

Philipp Kempgen philipp.kempgen at amooma.de
Mon Mar 19 09:00:24 MST 2007


Leif Madsen wrote:

> 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.

I'd probably be only half as confused if my favorite text editor
had syntax highlighting for Asterisk's .conf and .ael files.  :)

Regards,
  Philipp

-- 
amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de
     Let's use IT to solve problems and not to create new ones.
           Asterisk? -> http://www.das-asterisk-buch.de

Geschäftsführer: Stefan Wintermeyer
Handelsregister: Neuwied B 14998


More information about the asterisk-dev mailing list