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? Thanks, Daniel
Daniel Salama wrote:> 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? > > Thanks, > Daniel >I used bits and pieces that I got from this list and from the wiki and made this up - I'm using it on aah - but it should be usable with slight modification on any asterisk install. If you just want busy you'll have to edit the blacklisted1 macro currently it plays the SIT sound and then the this number is no longer in service message It usually gets me taken off their call lists pretty quickly :) http://www.oinko.net/astrecipes/index.php?from=0&q=astrecipes/how+to+blacklist+unwanted+callerid
What's what I'm trying to avoid. To answer your question: I have TE4XXP with T1s (not PRIs). What I want to do is block it based on the caller-id and not the DID Number. That way, I don't have to write 100+ lines. Thanks, Daniel On Apr 29, 2005, at 6:23 PM, Stefan Gofferje wrote:> Daniel Salama schrieb: > >> 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? > > Depends on what channel / hardware you are using... > > try exten => <incomingdidno>/<annoyingcallersnumber>,1,Busy > > regards, > Stefan > > -- > (o_ Stefan Gofferje | Linux Systems Specialist > //\ Reg'd Linux User #247167 | Network Security Specialist > V_/_ Heckler & Koch - the original point and click interface > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
> 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.