[Asterisk-Dev] Adding set and backref functionality to the functionsyntax.

Andreas Sikkema andreas.sikkema at ritstele.com
Wed May 18 00:15:18 MST 2005


asterisk-dev-bounces at lists.digium.com wrote:

> Examples:
> 
> ${IF(${ISNULL(${x=DB(foo/${EXTEN})})}?other:${x})} for setvar
> ${IF(${ISNULL(${\x=DB(foo/${EXTEN})})}?other:${\x})} for backref

Is there a way to add anymore spaghetti to one single line?

I've written some pretty complicated dialplan stuff, but this is 
unreadable to anyone but the developer of the code IMHO. Can you 
explain what is happening here in words, for every language element 
in these lines?

-- 
Andreas Sikkema                Rits tele.com
Van Vollenhovenstraat 3    3016 BE Rotterdam
t: +31 (0)10 2245544  f: +31 (0)10 413 65 45



More information about the asterisk-dev mailing list