[Freeswitch-users] date/time condition does not work

Max Machula trap at 2dayhost.com
Mon Nov 7 00:17:59 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.

Any ideas would be much appreciated.

Thanks,
Max

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111106/1643e879/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list