« Back to TCL-API

RE: Integrating TCL IVR script with clock or time

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Hi team,
 
I have a TCL IVR script working properly.
At the moment, I need to customize the script to run a "proc" in a determinate time.
For example: I need run the "proc ActionPlayWelcome" bellow today every 12:00 hrs.
 
proc ActionPlayWelcome { } {
puts "IT7: playing audio Welcome"
global WelcomePrompt
global CallerID

leg setupack leg_incoming
leg proceeding leg_incoming
leg connect leg_incoming
set CallerID [infotag get leg_ani]
puts "IT7: Caller ID $CallerID"
media play leg_incoming $WelcomePrompt
puts "IT7: Audio played Welcome"
}
Is there possibility to do it?
 
thanks.

Hi,

Can you help me please?

thanks.

maybe, but we need to know what is the status when you trying to play media. The procedure you provided is when the call setup event is detected.
When trying to play media, is call connected 12 hours already ? unlikely.
Do we need to make a new call out from GW then play media to outgoing leg ?

Can you please provide more detail ?

Thank !

Hi,

My "playing audio Wecome" has:

press 1 to talk with help desk;

press 2 to talk about Cisco;

But, I want that Welcome prompt only outside business hour.

It solution will be, for example:

if { $STARTBusinessHour < "08:00hrs" } {

if { $ENDBusinessHour > "18:00hrs" }{

media play leg_incoming $WelcomePrompt

}

} else {

media play leg_incoming $AnotherWecolmePrompt

}

thanks.

Just utilize Tcl "clock" command to know the current time.

There are a few ways to do that you need to figure out what is the easy way for you.

Thanks !

Thanks Yaw.

I Will think in a solution with clock command.

Att.