I am trying to find a way to block certain numbers from being able to call my home line. I cannot block them with the block feature from the phone company. Can Asterisk do this?
Thats simple in the extension logic, based on Caller ID.
there’s a blacklist AGI function you can stick in the inbound logic…
In Asterisk you can add number matching to the dial plan. It is called the exgirlfriend extension.
This is just an example to give you an idea:
exten => 0592399999,1,Goto(blocking,s,1) ;the number that has been called
exten => s/31621899999,1,Playback(blocking/mary_please_do_not_call_me)
exten => s/31621899988,1,Playback(blocking/Anna_please_do_not_call_me)
exten => s,1,Dial(501) ; the receptionis or your own phone
exten => s/31621899999,2,Hangup
exten => s/31621899988,2,Hangup
exten => s,2,Voicemail(502)
This concept can be used in many ways, to offer personized moh, to route customers directly to their accountmanager or to refuse the incoming call. Your creativity and fantasy are the limits. If you google on exgirlfriend extension an/or number matching you will find a lot more info.