According to http://wiki.freeswitch.org/wiki/Dialplan_XML#Built-In_Variables that is correct.. but, the examples show accessing wday and year by doing:<condition wday="1"..rather than as a "field".
-Avi
On Sun, Nov 6, 2011 at 11:17 PM, Max Machula <trap@2dayhost.com> wrote:
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.xx Regex (PASS) [WW26] destination_number(26) =~ /26/ break=on-false
Dialplan: sofia/internal/07711567890@xx.xx.xx.xx Regex (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.
Any ideas would be much appreciated.
Thanks,
Max
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org