[asterisk-users] Correct syntax for IF()?
Vincent
vincent.delporte at bigfoot.com
Mon Nov 26 19:09:52 CST 2007
On Tue, 27 Nov 2007 00:05:41 +0000, didier <didier.cuffaut at neuf.fr>
wrote:
>Rpgrade.... but are you sure a '}' is not missing in your h,n,SET....... ?
exten => h,n,Set(CALLTIME=test)
exten =>
h,n,Set(WAV_FILE=${IF($[${STAT(e,/tmp/${CALLTIME}.wav)}]?${CALLTIME}.wav:'')})
I don't think so, but it could be. At this point, it works if the
condition is true, but I get a warning if it's not. I guess I'll just
ignore it, and go ahead.
Thanks.
More information about the asterisk-users
mailing list