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... :)
Tim
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>> Tim Sailer >< Coastal Internet, Inc.
<<
>> Network and Systems Operations >< PO Box 726
<<
>> http://www.buoy.com >< Moriches, NY 11955
<<
>> tps@buoy.com >< (631) 399-2910 IAX
17003992910 <<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
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@basesys.com>