[Freeswitch-dev] FreeSwitch date and time conditions
Hello, Hope someone can help me. I have a strange problem with date and time on my FreeSwitch. I have dialplan: <extension name="WW26"> <condition field="destination_number" expression="26"/> <condition field="year" expression="2011"> <action application="bridge" data="USER/26@$${domain}"/> ... skip ... </condition> </extension> Server time: # date Thu Nov 3 21:34:22 GMT 2011 However FreeSwitch can not confirm the year 2011. Log file: Dialplan: sofia/internal/07711567890@xx.xx.xx.xx parsing [public->WW26] continue=true Dialplan: sofia/internal/07711567890@xx.xx.xx.xxRegex (PASS) [WW26] destination_number(26) =~ /26/ break=on-false Dialplan: sofia/internal/07711567890@xx.xx.xx.xxRegex (FAIL) [WW26] year() =~ /2011/ break=on-false I get the same problem if I change field year to wday which set to 1-6 for example now. Any ideas would be much appreciated. Thanks, Max
participants (1)
-
Max Machula