On Jan 8, 2008, at 3:52 PM, Mike Jagdis wrote:
> On Sat, Jan 05, 2008 at 08:11:12PM -0500, Daniel Melnechuk wrote:
>> Could be i'm tired, could be i'm still learning (though i have used
>> the conditional operator in C since the late 70's) but this line in
>> my extensions.conf file:
>>
>> exten => ${EXT_AMY_VM},1,VoiceMail($[ "${ALERT_INFO}" = "$
>> {RING_1}" ? "${VM_1}" : "${VM_2}" ],${UORB})
>>
>> is giving me these errors when it gets there and executes:
>>
>> [...]
>>
>> README.variables i find:
>>
>> expr1 ? expr2 :: expr3
>>
>> [...]
>>
>> but i think the "::" above is a typo (should be ":") as "::" is not
>> the C syntax nor can i find "::" used in any examples.
>
> Try it. It's not a typo. If you scroll up a little you'll find that
> "expr1 : expr2" is a match operator. Dialplan is closer to shell
> than C.
> If it can be considered to be close to anything sane...
>
> Mike
>
>
YES. Not a typo. Thanks Mike! I don't know why i didn't just try it.
I program in so many languages that my internal parser, plus lack of
examples, had me convinced it was a typo. Luckily i know i am not
perfect already and can still make mistakes and be thick some days
like the big girls and boys.
Peace,
Dan
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users