[Freeswitch-users] date/time condition does not work
Max Machula
trap at 2dayhost.com
Tue Nov 8 02:26:27 MSK 2011
Thank you Avi! You were absolutely right!
Max
On 07/11/2011 17:28, Avi Marcus wrote:
> 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 at 2dayhost.com
> <mailto:trap at 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 at xx.xx.xx.xx
> <mailto: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
>
>
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> <mailto:FreeSWITCH-users at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111107/52410e78/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list