[Asterisk-Users] after hours logic

Sean Cheesman scheesman at gdsworks.com
Mon Dec 29 17:00:47 MST 2003


Hi Lance,

Watch your voicemail-busy line.  The step count looks like it's wrong.  It's
never fun to track down a little problem like that!

Sean

-----Original Message-----
From: Lance Arbuckle [mailto:asterisk at arbuckle.org]
Sent: Monday, December 29, 2003 6:48 PM
To: asterisk-users at lists.digium.com
Subject: Re: [Asterisk-Users] after hours logic




Andrew Thompson wrote:

> Yes, move your GotoIfTime logic into the macro. Then any call to that
macro
> would be subject to that rule.
> 
> However, in that case, you might want to match against internal
> extensions(inside the macro) so that you can still call desk-to-desk after
> hours.

I think I understand how to move the GotoIfTime into the exten macro but
I hadn't thought of the problem that wuld cause for calling desk-to-desk
after hours.  Could you give an example of what you're referring to when
you say to "match against internal extensions(inside the macro)".  I'm
not quite following that statement.

[macro-stdexten]
;
; Standard extension macro:
;   ${ARG1} - Extension  (we could have used ${MACRO_EXTEN} here as well
;   ${ARG2} - Device(s) to ring
;
; Ring the interface, 20 seconds maximum
exten => s,1,GotoIfTime(8:00-21:30|mon-fri|*|*?s,3)
exten => s,2,Goto(s,4)
exten => s,3,Dial(${ARG2},20)
exten => s,4,Voicemail(u${ARG1})
exten => s,5,Hangup
exten => s,103,Voicemail(b${ARG1})
exten => s,104,Hangup
-- 
  .~.    
  /V\    Lance C. Arbuckle
 // \\   
/(   )\  
 ^'~'^
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list