[Asterisk-Users] Different Voice Prompts at Different Times

yusuf yusuf at ecntelecoms.com
Tue Feb 14 02:12:07 MST 2006


Hi Faisal,

I have the following in extensions.conf

exten => s,1,Answer()
exten => s,2,GotoIfTime(8:00-17:00|mon-fri|*|*?Ecn-incoming,s,1)
exten => s,3,GotoIfTime(17:01-7:59|mon-fri|*|*?Ecn-afterhours,5000,1)
exten => s,4,GotoIfTime(*|sat-sun|*|*?Ecn-afterhours,5000,1)
;exten => s,2,GotoIfTime(*|mon-sun|*|*?Ecn-incoming,s,1)

[Ecn-incoming]
exten => s,1,Answer()
exten => s,2,Background(ecn-welcome)
;exten => s,2,Background(ecn-holiday)
exten => s,3,Hangup

[Ecn-afterhours]
exten => 5000,1,Background(after-hours)




Faisal Inam wrote:
> Hello there,
>  
> I want to have different voice prompts(of the Digital Receptionist) at 
> different Times. For example,
>  From 10:00AM to 11:00 AM   ........    Voice Message 1
>  From 1:00PM to 3:00 PM     ..........   Voice Message 2
> All other times                     .........    Voice Message 3
>  
> I will be very grateful to any help in this regard.
>  


Hi Faisal,

I have the following in extensions.conf

exten => s,1,Answer()
exten => s,2,GotoIfTime(8:00-17:00|mon-fri|*|*?Ecn-incoming,s,1)
exten => s,3,GotoIfTime(17:01-7:59|mon-fri|*|*?Ecn-afterhours,5000,1)
exten => s,4,GotoIfTime(*|sat-sun|*|*?Ecn-afterhours,5000,1)
;exten => s,2,GotoIfTime(*|mon-sun|*|*?Ecn-incoming,s,1)

[Ecn-incoming]
exten => s,1,Answer()
exten => s,2,Background(ecn-welcome)
;exten => s,2,Background(ecn-holiday)
exten => s,3,Hangup

[Ecn-afterhours]
exten => 5000,1,Background(after-hours)


yusuf



More information about the asterisk-users mailing list