> Question: how can I block someone from calling us? > > Sometimes we get crank calls into our office. We'd like to build a list > of callers to be blocked. When they call, they should hear busy and > then we hang up. We have about 100 DIDs routed to different contexts > and I wouldn't want to have to manually edit all contexts. Is there a > way to do something global to create something like a black list of > caller IDs to block?
I'm working on something that could be usefull for this. It's a PHP AGI that route the call based on the caller ID. When a call comes in, you call this AGI which query a MySQL table and look for this caller ID. If it finds it, it execute the defined steps one after the other. The table as 6 fields (for now) : call_id_num, step, action, option1, option2, option3 Example 1 : Someone you don`t want to answer to. You put something like this in the table 5552222,1,Hangup Example 2 : Your mother in law, send her to voicemail :) 5553333,1,Answer 5553333,2,Voicemail,u7001 Example 3 : Someone you want to know that you don't want him to call you 5554444,1,Answer 5554444,2,Playback,please-dont-call-here-again 5554444,3,Hangup Example 4 : Your mistress, ring your phone directly 5556666,1,Answer 5556666,2,Dial,IAX,7001 The action I have in the script so far are these : - V : send to voicemail 'option1' - D : dial option1/option2 - P : playback sound 'option1' - H : hangup - A : Answer - G : Goto option1,option2,option3 The next step will be to make a PHP page that will be used to build the rules with simple choice from dropbox. It's still in Alpha stage, but if it can help you get rid of those annoying calls, I'll be glad to share it with you. I think this could be extended to make pretty smart CallerID based routing. _______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
