Results 1 to 3 of 3

Thread: Setting Work Hours for Specific Day

  1. #1

    Default Setting Work Hours for Specific Day

    I have adapted a custom VXML AA script but I am having trouble setting the datetime for Friday work hours to 8-Noon and then 1:00 to 4:30. M-Th uses the same code but the last half of the day is 1 to 5 pm.

    Here is the snippet that sets the time but last portion of it sets the time for between 1:00 and 5:00. Not sure how to get the time set to 4:30 instead of 5:00. Any help is appreciated.

    <!-- Fri:8-Noon; 1:00-4:30 -->
    <if cond="datetime_wday == '6'">
    <if cond="datetime_hour &lt; '8'">
    <elseif cond="datetime_hour &lt; '12'"/>
    <assign name="business_hours" expr="'1'"/>
    <elseif cond="datetime_hour &lt; '13'"/>
    <elseif cond="datetime_hour &lt; '17'"/>
    <assign name="business_hours" expr="'1'"/>
    <else/>
    </if>
    </if>
    Thanks.

  2. #2

    Default

    Hi,

    You can achieve your required day-end hours by adding few rows in the place shown bellow:

    <!-- Fri:8-Noon; 1:00-4:30 -->
    <if cond="datetime_wday == '6'">
    <if cond="datetime_hour &lt; '8'">
    <elseif cond="datetime_hour &lt; '12'"/>
    <assign name="business_hours" expr="'1'"/>
    <elseif cond="datetime_hour &lt; '13'"/>
    <elseif cond="datetime_hour &lt; '17'"/>
    <!-- ----------------------------- -->
    <if cond="datetime_hour == '16'">
    <if cond = "datetime_min &lt; '30'">
    <assign name="business_hours" expr="'1'"/>
    </if>
    <else>
    <assign name="business_hours" expr="'1'"/>
    </if>
    <!-- ----------------------------- -->
    <else/>
    </if>
    </if>

    Regards,
    Samvel

  3. #3

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem routing DID to specific extencion
    By suton in forum 'How Do I' Questions
    Replies: 3
    Last Post: 08-04-2010, 03:30 AM
  2. Telephone and Accessories Specific Information
    By KSComs in forum Hardware Interoperability
    Replies: 1
    Last Post: 07-16-2010, 12:52 PM
  3. Line Appearance setting don't work consistently
    By woods in forum Troubleshooting and Problems
    Replies: 10
    Last Post: 06-29-2009, 08:09 PM
  4. pin protect specific numbers
    By zero in forum 'How Do I' Questions
    Replies: 4
    Last Post: 11-14-2008, 02:41 PM
  5. Out of hours
    By sharkbyte in forum 'How Do I' Questions
    Replies: 1
    Last Post: 08-10-2006, 10:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •