Skip to main content

Scheduled Call Blocking and Routing

Posted by raven on Sun, 11/28/2010

One of my customers would like a daily scheduled call blocking from and routing to a certain Caller ID/phone number. Is there anyway to accomplish that?


Submitted by moshe on Sun, 11/28/2010 Permalink

Create 2 extensions 1 as regular and 2 as multi device Set 1 to have call blocking and 2 not to than route on a Schedlue to go to 1 or 2 which will ring on the same phone

I didn't tried it but I think it should work

Submitted by eeman on Mon, 11/29/2010 Permalink

why would you want to block someone only some of the time? As far as outbound dialing there is no such thing as a schedule based outbound route. Discipline problems with employees?

Submitted by raven on Mon, 11/29/2010 Permalink

This is a residential customer who wants to keep his teenager from calling his girlfriend or vice-versa from 10 pm to 6pm the next day, and additionally would like to cut any calls in progress to/from that number at 10pm. It's not that big a deal, and if it is totally impossible, nevermind.

I don't want to spend much time on it, unless I could learn something I could use elsewhere.

I do see some pointers to back end scripts that would route a call based on caller id (http://lists.digium.com/pipermail/asterisk-users/2004-September/055331…) and it would seem to be easy to place a translation in the back end with a script fired by cron.

Would that be possible, and in what files would I need to make changes?

Submitted by eeman on Mon, 11/29/2010 Permalink

nothing simple. And honestly, he's a teenager; If you shut down the phone they'll just text, or pre-paid cell phone, or setup other voip solutions like skype etc. you cant win the passive-aggressive technology game with a determined, and horny, teenager. These sort of problems require a much older approach to the problem, not some tit-for-tat technology war.