<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thank you Avi! You were absolutely right!<br>
    <br>
    Max<br>
    <br>
    On 07/11/2011 17:28, Avi Marcus wrote:
    <blockquote
cite="mid:CALNZuwmDNQKWFN8MR_3sgC9wV6EU72bhd4Vx7+qCcpnk69YiGQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">According to&nbsp;<a moz-do-not-send="true"
          href="http://wiki.freeswitch.org/wiki/Dialplan_XML#Built-In_Variables">http://wiki.freeswitch.org/wiki/Dialplan_XML#Built-In_Variables</a>&nbsp;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="1"..</pre>
          </span></div>
        <div>rather than as a "<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"</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 moz-do-not-send="true"
                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="WW26"&gt;<br>
                  &nbsp;&nbsp; &lt;condition field="destination_number"
                  expression="26"/&gt;<br>
                  &nbsp;&nbsp; &lt;condition field="year" expression="2011"&gt;<br>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="bridge"
                  data="USER/26@$${domain}"/&gt;<br>
                  ... skip ...<br>
                  &nbsp;&nbsp; &lt;/condition&gt;<br>
                  &lt;/extension&gt;<br>
                  <br>
                  Server time:<br>
                  # date<br>
                  Thu Nov&nbsp; 3 21:34:22 GMT 2011<br>
                  <br>
                  However FreeSwitch can not confirm the year 2011. Log
                  file:<br>
                  Dialplan: <a moz-do-not-send="true"
                    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 moz-do-not-send="true"
                href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
              UNSUBSCRIBE:<a moz-do-not-send="true"
                href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
              <a moz-do-not-send="true" href="http://www.freeswitch.org"
                target="_blank">http://www.freeswitch.org</a><br>
              <br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>