I am trying to use this script which will play the estimated wait time to callers. Unfortunately it only plays the first wait time (greater than 2 minutes) and the GIVE IVR statement. As the wait time increases I want it to play the appropriate message but it's not doing that.
All the messages are recorded in App Builder and referenced properly in the Call Pilot CDN table. Why does it not play the other wait times? I've highlighted the area where the trouble starts:
(Please forgive the all the commented out parts. It's still in testing and I'll clean it up when we go live)
Thank You In Advance,
/********* This section checks for OOS and plays a repeat MSG every 90 seconds. *********/
SECTION loop1
IF OUT OF SERVICE TS, TS_OVF
THEN
ROUTE CALL 6002 /* TS Vmailbox */
END IF
IF NOT LOGGED OUT AGENT 700911
THEN
ROUTE CALL 6002 /* TS Vmailbox */
END IF
IF OUT OF SERVICE TS
THEN
IF NOT OUT OF SERVICE TS_OVF
THEN
IF NOT QUEUED
THEN
QUEUE TO SKILLSET TS_OVF WITH PRIORITY 4
WAIT 2
END IF
END IF
END IF
WAIT 10
IF NOT QUEUED
THEN
IF NOT OUT OF SERVICE TS
THEN
QUEUE TO SKILLSET TS WITH PRIORITY 3
WAIT 2
END IF
IF NOT OUT OF SERVICE TS_OVF
THEN
QUEUE TO SKILLSET TS_OVF WITH PRIORITY 4
WAIT 2
END IF
END IF
IF EXPECTED WAIT TIME TS > 120
THEN
GIVE IVR 5238 WITH TREATMENT vt_est_wait_time_2min /* vt_est_wait_time has value 680046 which referes to App. ID 1680046_2Min_TS_Wait_Time_With_VM_Option */
ELSE
/* END IF */
IF EXPECTED WAIT TIME TS > 300
THEN
GIVE IVR 5238 WITH TREATMENT vt_est_wait_time_5min /* vt_est_wait_time has value 680047 which referes to App. ID 1680047_5Min_TS_Wait_Time_With_VM_Option */
ELSE
/* END IF */
IF EXPECTED WAIT TIME TS > 600
THEN
GIVE IVR 5238 WITH TREATMENT vt_est_wait_time_10min /* vt_est_wait_time has value 680048 which referes to App. ID 1680048_10Min_TS_Wait_Time_With_VM_Option */
ELSE
/* END IF */
IF EXPECTED WAIT TIME TS > 900
THEN
GIVE IVR 5238 WITH TREATMENT vt_est_wait_time_greater10min /* vt_est_wait_time_greater10min has value 680049 which referes to App. ID 1680049_Greater_Than_15Min_TS_Wait_Time_With_VM_Option */
END IF
END IF
END IF
END IF
WAIT 30
/*GIVE RAN ran_eng_2ndwait ROUTE 3*/
GIVE IVR acd_mail_ivr WITH TREATMENT vt_TS_vmailopt /* 680025 option to lv vmail msg */
EXECUTE loop1
All the messages are recorded in App Builder and referenced properly in the Call Pilot CDN table. Why does it not play the other wait times? I've highlighted the area where the trouble starts:
(Please forgive the all the commented out parts. It's still in testing and I'll clean it up when we go live)
Thank You In Advance,
/********* This section checks for OOS and plays a repeat MSG every 90 seconds. *********/
SECTION loop1
IF OUT OF SERVICE TS, TS_OVF
THEN
ROUTE CALL 6002 /* TS Vmailbox */
END IF
IF NOT LOGGED OUT AGENT 700911
THEN
ROUTE CALL 6002 /* TS Vmailbox */
END IF
IF OUT OF SERVICE TS
THEN
IF NOT OUT OF SERVICE TS_OVF
THEN
IF NOT QUEUED
THEN
QUEUE TO SKILLSET TS_OVF WITH PRIORITY 4
WAIT 2
END IF
END IF
END IF
WAIT 10
IF NOT QUEUED
THEN
IF NOT OUT OF SERVICE TS
THEN
QUEUE TO SKILLSET TS WITH PRIORITY 3
WAIT 2
END IF
IF NOT OUT OF SERVICE TS_OVF
THEN
QUEUE TO SKILLSET TS_OVF WITH PRIORITY 4
WAIT 2
END IF
END IF
IF EXPECTED WAIT TIME TS > 120
THEN
GIVE IVR 5238 WITH TREATMENT vt_est_wait_time_2min /* vt_est_wait_time has value 680046 which referes to App. ID 1680046_2Min_TS_Wait_Time_With_VM_Option */
ELSE
/* END IF */
IF EXPECTED WAIT TIME TS > 300
THEN
GIVE IVR 5238 WITH TREATMENT vt_est_wait_time_5min /* vt_est_wait_time has value 680047 which referes to App. ID 1680047_5Min_TS_Wait_Time_With_VM_Option */
ELSE
/* END IF */
IF EXPECTED WAIT TIME TS > 600
THEN
GIVE IVR 5238 WITH TREATMENT vt_est_wait_time_10min /* vt_est_wait_time has value 680048 which referes to App. ID 1680048_10Min_TS_Wait_Time_With_VM_Option */
ELSE
/* END IF */
IF EXPECTED WAIT TIME TS > 900
THEN
GIVE IVR 5238 WITH TREATMENT vt_est_wait_time_greater10min /* vt_est_wait_time_greater10min has value 680049 which referes to App. ID 1680049_Greater_Than_15Min_TS_Wait_Time_With_VM_Option */
END IF
END IF
END IF
END IF
WAIT 30
/*GIVE RAN ran_eng_2ndwait ROUTE 3*/
GIVE IVR acd_mail_ivr WITH TREATMENT vt_TS_vmailopt /* 680025 option to lv vmail msg */
EXECUTE loop1