Koozali.org: home of the SME Server

Caller blacklist... anyone?

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Caller blacklist... anyone?
« on: January 02, 2010, 02:37:28 AM »
Would there be anyone with a blacklist custom app?
Sophie from Montréal

Offline bbialy

  • ****
  • 105
  • +0/-0
Re: Caller blacklist... anyone?
« Reply #1 on: January 03, 2010, 07:04:22 AM »
Just guessing because short question so the answer will be short.
Ptt_clid group in trunklines???
Reading with understanding is the hardest thing IN THE WORLD

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Caller blacklist... anyone?
« Reply #2 on: January 03, 2010, 09:49:49 PM »
HI Sophie

Depends what you want really...

If you mean inbound blacklist then bbialy is quite correct, you can use PTT_CLID trunks to dump inbound calls from CLIDs you don't like the look of and PTT_CLID_Class trunks to dump whole sets of numbers you don't like.

If you mean outbound blacklist then you can use Class of Service to prevent individual or whole sets of numbers (like premium rate lines) from being dialled.

Kind Regards

S   

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: Caller blacklist... anyone?
« Reply #3 on: January 04, 2010, 03:28:03 AM »
Hey thanks for this tip... I didn't get it when I first read bbialy's post.
I'll post a custom-app I'm working on to use incoming blacklist database with *30,*31,*32.
At least I can block a number until I get things working!
Thanks again...
Sophie from Montréal

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Caller blacklist... anyone?
« Reply #4 on: January 04, 2010, 09:41:11 AM »
You'll neeed to be careful with *30,31 and 32 because sark uses those codes for opening and closing the system.  If these are commonly used feature codes for blacklists then let me know and we'll make a decision on our use of 30,31 and 32.

Kind Regards

S

Offline portedaix

  • ***
  • 54
  • +0/-0
Re: Caller blacklist... anyone?
« Reply #5 on: July 31, 2012, 01:34:09 PM »
Hello,

CLID works find to filter (undesired) inbound calls. But how to do it with an anonymous caller ID ?

Thanks
olivier

Offline bbialy

  • ****
  • 105
  • +0/-0
Re: Caller blacklist... anyone?
« Reply #6 on: August 01, 2012, 11:22:12 PM »
Well,
First fact is that on whole word there are millions of callers with restricted caller ID.
You are lucky because from your point of you it is only one calling party.

With this fact we can do:
Write one rule in custom app like
Exten => s,1,if ${callerid(num)}="" goto... Check on VoIP-info what are operands for expression.

Or you can use asterisk db to store allowed callerid.
In asterisk Cli
Database put whitelist 888888 1
Then you can use db put and db get in custom app. To send each call to proper place ( Anonymous into space ie.)

There are other solutions  but question is how big is your system. And do prefer to allow most of calls and block just few or the other hand.

If you need example dial plan with db put and db get just post here. I ll post that code tommorow
Best maciej
Reading with understanding is the hardest thing IN THE WORLD