cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
958
Views
5
Helpful
6
Replies

Holiday check then play holiday-specific prompt

Greg Touchton
Level 1
Level 1

CCX 12.5 customer wants to play day-specific prompts on specific holidays. For example, on 12/25 (year doesn't matter) callers would hear the Christmas.wav prompt, then on 7/4 callers would hear Independence.wav. The customer is already managing the holidays in the built-in Calendar Management, but I modified the script to use the old tried-and-true xml document method but I can't make it pull the right prompt. Is there is a way to have the built-in Calendar Management trigger a specific prompt to match the holiday or if not natively, I am open to ideas how to modify the script to check if, perhaps, the calendar returns a boolean of true if the day is a "holiday", then match the date, or a series of dates to play a particular prompt. Some years, Independence Day, for example, might not fall on the 4th, it could be on the 3rd or 5th, so I would want to be able to check for variable dates of the same holiday.

 

thank you

6 Replies 6

Leonardo Santana
Spotlight
Spotlight

Hi,

But is not easier to use the Calendar Management?

Regards
Leonardo Santana

*** Rate All Helpful Responses***

Of course, if the requirement is simply doing a holiday check. Please understand the specific requirement here is not just holiday check, but then playing a specific prompt to match that holiday".

 

thank you

Can you put the name of the holiday(s) in the XML file and then read the name of the matching date to use that to play a prompt named the same as part of the name.



Response Signature


Roger,

 

does this mean instead of tagging the dates as <Holiday>12/25/21</Holiday>, I would tag it as <Christmas>12/25/21</Christmas> and somehow pull that tag into the script as a string?

 

edit: or like this... ?

 

<?xml version="1.0" encoding="ISO-8859-1"?>
<HolidayList>
<Holiday>1/1/22</Holiday>
<HolidayPrompt>NewYears.wav</HolidayPrompt>
<Holiday>5/30/22</Holiday>
<HolidayPrompt>MemorialDay.wav</HolidayPrompt>
<Holiday>7/4/22</Holiday>
<HolidayPrompt>IndependenceDay.wav</HolidayPrompt>
<Holiday>9/5/22</Holiday>
<HolidayPrompt>LaborDay.wav</HolidayPrompt>
<Holiday>11/24/22</Holiday>
<HolidayPrompt>Thanksgiving.wav</HolidayPrompt>
<Holiday>12/25/22</Holiday>
<HolidayPrompt>Christmas.wav</HolidayPrompt>
</HolidayList>

 

I would think that the second option would be what you need. However you don’t need to have the whole name of the prompt file to play as you could construct that within the script code.



Response Signature