[Freeswitch-dev] FreeSwitch date and time conditions
Max Machula
trap at 2dayhost.com
Fri Nov 4 00:39:46 MSK 2011
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 at xx.xx.xx.xx parsing [public->WW26]
continue=true
Dialplan: sofia/internal/07711567890 at xx.xx.xx.xxRegex (PASS) [WW26]
destination_number(26) =~ /26/ break=on-false
Dialplan: sofia/internal/07711567890 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111103/65117b8e/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev
mailing list