[asterisk-dev] Syntax for application parameters

Jared Smith jsmith at digium.com
Tue Jun 9 13:49:17 CDT 2009


On Tue, 2009-06-09 at 12:40 -0600, Kannaiyan Natesan wrote:
> Why not have something like this,
> 
> App(name=value,name1=value1,[name2=(innername1=innervalue1,innername2=innervalue2)])
> 
> This makes clear with readability names with parameters and parameters
> can be in any order.
> 
> e.g For Dial,

> Dial(sipuri="sip://username:password@example.com",timeout=600,retry=3,retryinterval=30)

That's an interesting idea, but it's obviously not backward-compatible,
and to be honest I'm not trying to rock the boat at this point and
*change* the syntax... I'm only trying to figure out how best to
*document* the current syntax.


-- 
Jared Smith
Training Manager
Digium, Inc.




More information about the asterisk-dev mailing list