[Asterisk-Users] after hours logic

Lance Arbuckle asterisk at arbuckle.org
Mon Dec 29 17:12:39 MST 2003


Sean Cheesman wrote:
> 
> 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


I've been editing this thing so much this afternoon I guess I missed
that little error :) that, and I have no clue what I'm doing yet...
here's the revised exten

[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,104,Voicemail(b${ARG1})
exten => s,105,Hangup
 
--
   .~.
   /V\    Lance C. Arbuckle
  // \\
 /(   )\
  ^'~'^



More information about the asterisk-users mailing list