Faisal Inam
2006-Feb-13 23:20 UTC
[Asterisk-Users] Different Voice Prompts at Different Times
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. Waiting for Reply at mfaisalinam@yahoo.com --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060213/048d7199/attachment.htm
trixter aka Bret McDanel
2006-Feb-13 23:53 UTC
[Asterisk-Users] Different Voice Prompts at Different Times
On Mon, 2006-02-13 at 22:20 -0800, 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. >gotoiftime doesnt work for this? Or were you unaware of it? http://www.voip-info.org/wiki-Asterisk+cmd+GotoIfTime -- Trixter http://www.0xdecafbad.com Bret McDanel UK +44 870 340 4605 Germany +49 801 777 555 3402 US +1 360 207 0479 or +1 516 687 5200 FreeWorldDialup: 635378 http://www.sacaug.org/ Sacramento Asterisk Users Group -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060213/83e323e4/attachment.pgp
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