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
--
Mike Jagdis Web: http://www.eris-associates.co.uk
Eris Associates Limited Tel: +44 7780 608 368
Reading, England Fax: +44 118 926 6974
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users