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

Script Question

Status
Not open for further replies.
Dec 7, 2006
696
US
Im trying to add a piece of code that will kick in a message for 2 hours for a meeting. This a one time deal. I have setup a VSDN in Meridian Mail and setup the message. Is my code going to work properly?

if ((date=oct17) and (time=csclosedhours)) then
give IVR 7106 cs_close else
QUEUE TO SKILLSET cserv
WAIT 2
GIVE RAN closed_ran
GIVE MUSIC mus_14
END IF

My variables are already defined and 7106 is my VSDN.
 
Hi,

I would probably use a variable to hold the date as well,

if ((date=oct17) and (time=csclosedhours)) then
give IVR 7106 cs_close
else
QUEUE TO SKILLSET cserv
WAIT 2
GIVE RAN closed_ran <- Just curious should the closed_ran not be played after the cs_close above?
GIVE MUSIC mus_14
END IF

Kind Regards

Stuart
 
Everyone has their own style. I like to run the day and time of day checks separately from the queuing clause:

IF (DATE = meeting_day_gv) AND (TIME OF DAY = csclosedhours) THEN
GIVE RAN closed_ran
DISCONNECT
END IF

IF NOT OUT OF SERVICE cserve THEN
QUEUE TO SKILLSET cserve
WAIT 2
END IF

GIVE MUSIC mus_14

This way I know that the caller is played the announcement and disconnected before I go on to queue check and command.

Also, note that the GIVE RAN command only plays RAN Routes, not voice mail services. You would need to use the GIVE IVR command to play a message on the voice mail system.

 
Another question. I have 7106 setup as an announcement in meridian mail. I dont need this set as a ACC do i?
 
Your phrasing in the script is not quite correct. It needs to be:

GIVE IVR <ivr dn> WITH TREATMENT 7106

You'll need to plug in your IVR DN there, and of course set up any other configuration for GIVE IVR (IVR DN, Global Settings, separate queue with dedicated ports in MerMail, acquire them all, etc.)
 
I did run into an issue with this code in the script. It doesnt put the caller into the queue right away. It just rings for awhile and then eventually does.

Any idea why?
 
I've lost the plot on this one a bit. What queue does it not go in straight away, the IVR queue or the skillset queue?

If it's the IVR queue it may simply be waiting for a free trunk. Is there a WAIT command somewhere thats delaying it in the master or primary script?
 
There is not a skillset open check before queuing the call -

You need to check that the skillset is open before the queue command:

IF NOT OUT OF SERVICE cserve THEN
QUEUE TO SKILLSET cserve
WAIT 2
ELSE
GIVE RAN closed_ran
DISCONNECT
END IF

I agree with the Captain, it is hard to follow your original purpose. You may want to step back, chart your call flow and build a test script from scratch that you can test with a test CDN.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top