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?
why would you want to block
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?
residential
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?
nothing simple. And honestly,
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.
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