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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

symposium 4.2 Scritping

Status
Not open for further replies.

tomburke

Technical User
Dec 10, 2003
11
IE
Hi,

I am trying to modify an existing script by replacing IF statements with WHERE. I have modified the following to include a time and date check, but does not work....can anyone advise me how this should be written...


WHERE CDN EQUALS

VALUE 2004: EXECUTE SCRIPT Prim_Symmetra_Ent
VALUE 3008: EXECUTE SCRIPT prim_AGS_CS
VALUE 2055: EXECUTE SCRIPT MIDDLE_EAST_AGS

IF TIME OF DAY = 07:00..17:30 AND DAY OF WEEK = MONDAY..FRIDAY
END IF
END WHERE

any help is appreciated
 
Tom,

Do you want these calls to route to those scripts only on your time of day/date?

I would try this instead:
IF (DAY OF WEEK = MONDAY..FRIDAY) AND (TIME OF DAY = 07:00..17:30)
THEN
WHERE CDN EQUALS
VALUE 2004: EXECUTE SCRIPT Prim_Symmetra_Ent
VALUE 3008: EXECUTE SCRIPT prim_AGS_CS
VALUE 2055: EXECUTE SCRIPT MIDDLE_EAST_AGS
END WHERE
ELSE XXXX
END IF

Remember, your script reads from top to bottom. How you have the script reading, Symposium will see CDN 2004 and never look at the time and day check because you have already told it to execute the script XXX.

Fonchick

 
Hi Fonchick,

Yes I want these calls to route to these scripts only on time of day/date...that been the case I take it that I don't need the ELSE part of the statement??

- Tom
 
But this means that the caller will just hear a ringtone if the call is placed outside office hours. The Else XXX is meant for the closed message.
 
Tom,

Without knowing the rest of the script, I can't tell you if you need the ELSE portion of the statement. Like the pp stated, what do you want to happen to the call if you are outside those business hours. Is there something further down in your script to treat those calls? If so, you don't need an else statement.

Fonchick
 

Yes there are section announcements further down the script that the caller is routed to depending on the CDN. These section announcements are in different languages in order to support our customer base.

Thanks a lot for your help....Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top