Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] how to block spammer calls


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
tpeirce at digitalcon.ca
Guest





PostPosted: Sat Jan 05, 2008 12:56 am    Post subject: [asterisk-users] how to block spammer calls Reply with quote

ram wrote:
Quote:
Hi

I am setting up a Calling card Plat form

I have incoming toll number, the provider charges incoming calls

I see some spammers( competetors) keep calling my toll. so iam getting
huge invoices

how can i identify those kind of spammers and block the callerID for
some time

any suggestions or example could help me
If the caller doesn't key in a valid PIN after so many tries, disconnect
them.
If they are disconnected more than so many times, block them.

If you'd like to hire someone to implement this for you, you'd be better
served by posting to the -biz list and asking for assistance there.

Best regards,
Trevor Peirce

--
Does your Canadian VoIP service need CRTC-compliant 9-1-1 services? Please
visit http://www.digitalcon.ca/voip9-1-1/ to find out more!
Back to top
talk2ram at gmail.com
Guest





PostPosted: Sat Jan 05, 2008 1:28 am    Post subject: [asterisk-users] how to block spammer calls Reply with quote

On Jan 5, 2008 11:26 AM, Trevor Peirce <tpeirce at digitalcon.ca> wrote:

Quote:
ram wrote:
Quote:
Hi

I am setting up a Calling card Plat form

I have incoming toll number, the provider charges incoming calls

I see some spammers( competetors) keep calling my toll. so iam getting
huge invoices

how can i identify those kind of spammers and block the callerID for
some time

any suggestions or example could help me
If the caller doesn't key in a valid PIN after so many tries, disconnect
them.
If they are disconnected more than so many times, block them.

If you'd like to hire someone to implement this for you, you'd be better
served by posting to the -biz list and asking for assistance there.

Hi

I understand what you are saying.

so once we see he is not input the pin more than 2times
he will be blocked for hour ( i will run cron job, after one hour release
them)

is this a good idea.

ram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080105/d7c28f1e/attachment.htm
Back to top
anselm at hoffmeister-...
Guest





PostPosted: Sat Jan 05, 2008 5:54 am    Post subject: [asterisk-users] how to block spammer calls Reply with quote

Am Samstag, den 05.01.2008, 11:58 +0530 schrieb ram:

Quote:


Hi

I understand what you are saying.

so once we see he is not input the pin more than 2times
he will be blocked for hour ( i will run cron job, after one hour
release them)

is this a good idea.

Hi Ram,

I do not think that is a good idea. 2 tries are not much on the one
hand, and on the other hand, your competitors probably know how to fake
CALLERID, so once they find out their calls are not answered anymore,
they can just set another CALLERID and dial in again and again. If they
really want you to pay for useless minutes, the only thing you could do
against it (if you do not want to block everyone) is requiring your
customers to register the phone number from which they will dial in, and
throw away (by not answering) any other calls.

Using cronjobs is possibly a bad idea because you create load spikes, if
e.g. 5000 asterisk -rx commands are issued within a few seconds. A
better way to implement it would be storing the last unsuccessful
authentication system time and wrong PIN count for each CALLERID, and
block the ID if a count of >=3 happened less than 1800 seconds ago or
similar. This blocking would need appropriate dialplan logic. I think
there is soem material about astdb, time and blocking in the examples
section on www.voip-info.org; if you cannot build something on your own,
(as mentioned) you might want to pay someone some bucks for implementing
it.

In Germany I _think_ calling 0800 numbers for abuse can be sued against,
on the grounds of tampering with phone infrastructure. If the same
number calls in more than 100 times a day or so, you could probably ask
the number provider to close the caller's account (and if they will not,
you can still sue). If the person calling your 0800 is a competitor,
there is a law called UWG here (law against unfair competition): It
probably allows you to sue them for compensation of minutes and blocked
lines, but you would need to ask a lawyer for details - and any other
country will see a completely different solution anyway.

BR
Anselm
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Sat Jan 05, 2008 6:31 am    Post subject: [asterisk-users] how to block spammer calls Reply with quote

On Sat, Jan 05, 2008 at 11:54:41AM +0100, Anselm Martin Hoffmeister wrote:

Quote:
Using cronjobs is possibly a bad idea because you create load spikes, if
e.g. 5000 asterisk -rx commands are issued within a few seconds.

Why would you do that?

If you want to write 5000 commands, write them directly to the socket or
use the manager interface.

I posted one a simple script for writing batch commands to the
asterisk.ctl socket using socat. You have to strip the '\n' in the end
of each command, and write every command in a separate write (I used a
'sleep 0.001' for that).

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Back to top
anselm at hoffmeister-...
Guest





PostPosted: Sat Jan 05, 2008 7:44 am    Post subject: [asterisk-users] how to block spammer calls Reply with quote

Am Samstag, den 05.01.2008, 13:31 +0200 schrieb Tzafrir Cohen:
Quote:
On Sat, Jan 05, 2008 at 11:54:41AM +0100, Anselm Martin Hoffmeister wrote:

Quote:
Using cronjobs is possibly a bad idea because you create load spikes, if
e.g. 5000 asterisk -rx commands are issued within a few seconds.

Why would you do that?

If you want to write 5000 commands, write them directly to the socket or
use the manager interface.

I posted one a simple script for writing batch commands to the
asterisk.ctl socket using socat. You have to strip the '\n' in the end
of each command, and write every command in a separate write (I used a
'sleep 0.001' for that).

Hi Tzafrir,

good to know, and thanks for pointing this out to me. Until now I always
got around large command lists, ran just the occasional cronjob for the
odd task.

Besides the possible effects of running a large command list (which may
be neglible, I admit), you gain another load spike by those users who
know they can retry calling after the next full hour. So the first few
minutes of each hour might be loaded heavier than the later parts.

I do not like the idea of "opening the gates" at a fixed time. Releasing
a lock for a certain CALLERID after a given time (in minutes), not a
given point of time (as clock time) seems much more elegant to me.

BR
Anselm
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services