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!

Trying to point a DNIS to a specific closed message

Status
Not open for further replies.
Oct 23, 2009
15
US
Hello all,

I have two DNISs that are coming into the same CDN and run from the same script. However I need to point each DNIS to a different closed and holiday message. Is there a way to do this and keep both DNIS in the same script, or do I need to build a script for each DNIS. I've enclosed the script below.

Code:
/* Canada Consumer Support English,  dnis 1115. 1107 , cdn 8919*/

IF LOGGED AGENT COUNT emergency_skillset > 0 THEN
	EXECUTE Emergency
END IF

IF (DATE = holidays) THEN
	EXECUTE Holiday
END IF

/*IF ((DAY OF MONTH = 15) AND
	(TIME OF DAY <> 11:59..21:00)) THEN
	EXECUTE Closed_two
END IF*/

IF LOGGED AGENT COUNT tempdown_skillset > 0 THEN
	EXECUTE Tempdown
END IF

IF ((DAY OF WEEK = MONDAY..FRIDAY) AND 
	(TIME OF DAY <> 8:30..17:30)) THEN
	EXECUTE Closed
END IF

/*IF ((DAY OF WEEK = SATURDAY..SUNDAY)) THEN
	EXECUTE Closed
END IF*/

IF OUT OF SERVICE canada_consumer_support_eng THEN
	EXECUTE Closed
END IF

IF (IDLE AGENT COUNT canada_consumer_support_eng >=1) THEN
	EXECUTE Agent_Available
ELSE
	IF (OLDEST CALL canada_consumer_support_eng<=45) THEN
		EXECUTE No_Agent
ELSE
		IF (OLDEST CALL canada_consumer_support_eng >=45) THEN
			EXECUTE Agent_Msg
		END IF
	END IF
END IF

SECTION First_Loop

IF OUT OF SERVICE canada_consumer_support_eng THEN
	EXECUTE Closed
ELSE
	QUEUE TO SKILLSET canada_consumer_support_eng WITH PRIORITY 2
	WAIT 2
END IF

GIVE MUSIC 4
WAIT 15

OPEN VOICE SESSION
PLAY PROMPT VOICE SEGMENT Second_msg_vs
END VOICE SESSION

WAIT 20

OPEN VOICE SESSION
PLAY PROMPT VOICE SEGMENT final_msg_vs
END VOICE SESSION

WAIT 20

SECTION Wait_Loop
IF NOT QUEUED THEN
	IF NOT OUT OF SERVICE canada_consumer_support_eng THEN
		QUEUE TO SKILLSET canada_consumer_support_eng
			WITH PRIORITY 2
		WAIT 2
	END IF
END IF

EXECUTE Wait_Loop

SECTION Closed
OPEN VOICE SESSION
PLAY PROMPT VOICE SEGMENT closed_vs
END VOICE SESSION

DISCONNECT

/*SECTION Closed_two
OPEN VOICE SESSION
PLAY PROMPT VOICE SEGMENT closed_two_vs
END VOICE SESSION

DISCONNECT*/

SECTION Holiday
OPEN VOICE SESSION
PLAY PROMPT VOICE SEGMENT holiday_vs
END VOICE SESSION

DISCONNECT

SECTION Agent_Available
OPEN VOICE SESSION
PLAY PROMPT VOICE SEGMENT agt_avail_vs
END VOICE SESSION
WAIT 2
EXECUTE First_Loop

SECTION No_Agent
OPEN VOICE SESSION
PLAY PROMPT VOICE SEGMENT less_fourfive_vs
END VOICE SESSION								
WAIT 2
EXECUTE First_Loop

SECTION Agent_Msg
OPEN VOICE SESSION
PLAY PROMPT VOICE SEGMENT more_fourfive_vs
END VOICE SESSION
WAIT 2
EXECUTE First_Loop

SECTION Emergency

OPEN VOICE SESSION
PLAY PROMPT VOICE SEGMENT emergency_vs
END VOICE SESSION

DISCONNECT

SECTION Tempdown

OPEN VOICE SESSION
PLAY PROMPT VOICE SEGMENT tempdown_vs
END VOICE SESSION
Thanks again for any help or pointing me to a thread if this has already been answered.

Regards,

Tyson
 
Now that I think about it, I really should just use two completely different scripts...
 
or just add a if then/end if or where/end where for the 2 dnis.

if dnis = xxxx then
blah blah
else
blah blah
end if

where dnis = ...
.
.
.
end where
 
You can certainly use one script to give different treatment to 2 DNIS numbers. I have a script where I peel off about 15.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top