<div dir="ltr">According to <a href="http://wiki.freeswitch.org/wiki/Dialplan_XML#Built-In_Variables">http://wiki.freeswitch.org/wiki/Dialplan_XML#Built-In_Variables</a> that is correct.. but, the examples show accessing wday and year by doing:<div>

<span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; background-color: rgb(255, 255, 255); "><pre style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; ">

&lt;condition wday=&quot;1&quot;..</pre></span></div><div>rather than as a &quot;<span class="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: 14px; white-space: pre; background-color: rgb(249, 249, 249); ">field&quot;</span>.</div>

<div><br clear="all"><div dir="ltr"><span style="font-family:Verdana, Arial, Helvetica, sans-serif"><span style="font-size:small">-Avi</span></span></div>
<br><br><div class="gmail_quote">On Sun, Nov 6, 2011 at 11:17 PM, Max Machula <span dir="ltr">&lt;<a href="mailto:trap@2dayhost.com">trap@2dayhost.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <font face="Arial">Hello,<br>
      <br>
      Hope someone can help me.<br>
      <br>
      I have a strange problem with date and time on my FreeSwitch.<br>
      <br>
      I have dialplan:<br>
      &lt;extension name=&quot;WW26&quot;&gt;<br>
         &lt;condition field=&quot;destination_number&quot; expression=&quot;26&quot;/&gt;<br>
         &lt;condition field=&quot;year&quot; expression=&quot;2011&quot;&gt;<br>
             &lt;action application=&quot;bridge&quot;
      data=&quot;USER/26@$${domain}&quot;/&gt;<br>
      ... skip ...<br>
         &lt;/condition&gt;<br>
      &lt;/extension&gt;<br>
      <br>
      Server time:<br>
      # date<br>
      Thu Nov  3 21:34:22 GMT 2011<br>
      <br>
      However FreeSwitch can not confirm the year 2011. Log file:<br>
      Dialplan: <a href="mailto:sofia/internal/07711567890@xx.xx.xx.xx" target="_blank">sofia/internal/07711567890@xx.xx.xx.xx</a>
      parsing [public-&gt;WW26] continue=true<br>
      Dialplan: sofia/internal/</font><font face="Arial">07711567890</font><font face="Arial">@</font><font face="Arial">xx.xx.xx.xx</font><font face="Arial"> Regex (PASS) [WW26] destination_number(26) =~ /26/
      break=on-false<br>
      Dialplan: sofia/internal/</font><font face="Arial">07711567890</font><font face="Arial">@</font><font face="Arial">xx.xx.xx.xx</font><font face="Arial"> Regex (FAIL) [WW26] year() =~ /2011/ break=on-false<br>
      <br>
      I get the same problem if I change field year to wday which set to
      1-6 for example.<br>
      <br>
      Any ideas would be much appreciated.<br>
      <br>
      Thanks,<br>
      Max<br>
    </font> <br>
  </div>

<br><br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div>