[asterisk-users] gotoiftime and blocking calls

Tom Vile tvile at baldwintechsolutions.com
Wed Nov 22 21:18:05 MST 2006


I am trying to use the Gotoiftime CMD to not allow calls to be placed
between the hours of 12am-5am, except if you know the PIN number to dial out
and if the call is for 911.

What is the best way to implement this solutions?

I have the gotoiftime like so:

exten => s,1,GotoIfTime(5:00-11:59|mon-fri|*|*?custom-blacklist,s,1)

and using Read for the PIN like so:

exten => s,3,Read(Secret,,3)
exten => s,4,NoOp(${Secret})
exten => s,5,Gotoif($[${Secret} = 123]?6:8)

but I guess I am stuck at allowing 911 calls to go through and what order to
place them in.

Thanks for the suggestions.


Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061122/7dce935a/attachment.htm


More information about the asterisk-users mailing list