[asterisk-dev] Syntax for multiple arguments to function

Thomas Niesel thomas_n at freenet.de
Sun Jun 4 06:22:15 MST 2006


On Sun, 4 Jun 2006 14:03:31 +0200
Olle E Johansson <oej at edvina.net> wrote:

> Currently IAXPEER and SIPPEER separate arguments with : and  
> DUNDILOOKUP with |
> 
> [Syntax]
> DUNDILOOKUP(number[|context[|options]])
> 
> [Syntax]
> IAXPEER(<peername|CURRENTCHANNEL>[:item])
> 
> REGEX use space
> 
> [Syntax]
> REGEX("<regular expression>" <data>)
> 
> STRPTIME use vertical bar too
> [Syntax]
> STRPTIME(<datetime>|<timezone>|<format>)
> 
> 
> I guess we need to make some rules here...
> 

Full ACK
IMHO "|" is used more often, I vote for it :)
This should also go into the/a coding-howto

-- 
Have fun
TN
-- 
The gates in my computer are AND, OR and NOT, not Bill



More information about the asterisk-dev mailing list