[VoIP] Mystery guest

Doug Alderdice ka2wft at arrl.net
Sat Nov 24 12:42:48 CST 2007


At 12:08 PM 11/24/2007 -0600, Greg Blakely wrote:
>Doug,
>
>It's been awhile since we broached the time-of-day restrictions.  Can
>you share your configs with the group?

It's not terribly complicated, and I got it from someone else on the list 
(forgotten whom now):


exten => _36632XX,1,GoToIfTime(9:00-21:45,*,*,*?3)  <-- set your accessible 
times accordingly
exten => _36632XX,2,Macro(afterhrs)           <-- go here when it's out of 
hours
exten => _36632XX,3,Goto(internal,${EXTEN:4},1)   <-- or wherever


The "afterhrs" macro plays my intercept recording and hangs up.

I put anything that is 24/7 accessible BEFORE the time test.  Also, I am 
still on a much older version of Asterisk so I don't know if the Goto 
statements need modifying for the newer versions.

D.




More information about the VoIP mailing list