Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VM call flow based on time of year 4

Status
Not open for further replies.

bdelmar

Technical User
Apr 20, 2004
577
US
I trying to figure out an easier way, to do the following, rather then selecting every day for 3 month periods of the year for different season to route called differently. This is on a Server Edition VMPro.

Call comes in and if its between
Nov 1 - March 31, I want calls to go to the group between the hours of 10am to 2pm.
the rest of the year it will go to the group between the hours of 10am to 4pm.

Im set on the hours, its the calendar Im trying to figure an easier way for. Something like when the call comes in on Nov 1, it sets a variable and then it stays that way until April 1st when it sets it to a different variable. Something easier then selecting everyday from Nov to April in the calendar of a condition editor.

Any ideas?

 
Didn't do that before but I would try to use a generic action to manipulate the string the system variable $DATE provides. Put the month into a $CP variable and check if it has a value like 11, 12, 01, 02 or 03 or if it is anything else and check the business hours in the next step.
 
Use the system variable $DATE. It has the format DD/MM/YY HH/MM/SS for our locale but for US it will be YY/MM/DD HH/MM/SS AM/PM I guess.
With a generic action you can extract the day and month and with compare actions you can see if a date is between specific dates.
So for 1 October extract the day and month, put them together to one number e.g. 0110 and compare that with a fixed value.

I have no VM Pro here right now but I can write a script for it in a few minutes.
 
Thanks guys! Thats exactly what Im trying to do, I just don't know how configure the generic action for a variable to extract the month for comparison. SO if I set the specific tab for Generic free format command and set it to $DATE, then what?

Appreciate the help.
 
Looking at the list of variables the system provides I saw also $DAY, $YEAR, $HOUR and $MINUTE. Very odd not to see month so I took a punt on $MONTH and it works.

So first I created two conditions. One called LongHours that contained a Week Planner where every day was selected and set from 10:00 to 16:00. The other called ShortHours with a Week Planner where the days were set from 10:00 to 14:00.

Then I created a module called Test. I added a Generic action to it that saved the current value of $MONTH as $CP1.

I then used a Variable Routing action to test if $CP1 equalled 1, 2, 3, 11 or 12. (I would have ignored the first steps and tested $MONTH directly but it isn't in the list of testable variables, hence the need for the first Generic action).

I linked the No Match result of that to a Test Condition action that tested LongHours. The other results I lined to a Test Condition action that tested ShortHours. For each of these I linked the True results to a transfer to my group and the False results to a Leave Mail.

Stuck in a never ending cycle of file copying.
 
Thanks Sizbut, that helps to explain it a little better as for as how to set up the options on the generic action. I'll give that a try and let you know.
 
You could make is a lot simple by just testing whether $ISDST equals 1 but that would only work for 8th March to 1st November if I assume you're in the US and have your IP Office getting time by SNTP.

Stuck in a never ending cycle of file copying.
 
Yes, in the US and getting time from SNTP.

Thats a good point. I'll ask them if the dates change based on DST.
 
I did not see $MONTH as well in the docs and as said, I have no VM Pro on hand to check so I did not mention it as well.
With this and the generic action it is a piece of cake to create a module.
 
That's boring ;-)

The $MONTH and similar are only available from R9.1 on off I'm right...
 
It is. But the $DATE is there longer and you can extract the day/month/year from that
 
Intrigrant, can you explain how you would extract the month out of $DATE? I'm missing something here.

thanks

GB
 
I will elaborate tomorrow as now it is time to get drunk or close to it....
 
Drunk time [cheers]

BAZINGA!

I'm not insane, my mother had me tested!
 
I give the best advice on here after a few beers, at least it always seems brilliant to me :)

 
I seem to do the same and probably because i stop thinking difficult :)

BAZINGA!

I'm not insane, my mother had me tested!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top