[Asterisk-Users] Syntax

Steven Critchfield critch at basesys.com
Tue May 4 07:06:19 MST 2004


On Tue, 2004-05-04 at 08:51, Tim Sailer wrote:
> I've been wondering what the difference is in the syntax of things,
> like Dial.
> 
> Some examples show things like:
> exten => 500,1,Dial,SIP/${EXTEN}|10
> 
> but other examples show:
> exten => 500,1,Dial(SIP/${EXTEN}|10)
> or
> exten => 500,1,Dial(SIP/${EXTEN},10)
> 
> Which one is correct? Or most correct? Which one is preferred, and why?
> I'm sure I'm not the only one with this question... :)

They are all correct, but the last one is most like programming and is
preffered by me, and maybe a few others here. The first is historic, and
the second is a mix of the first and third. The second probably should
be avoided as it might break later on if the parser changes.
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-users mailing list