Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 18, 2024 10:01 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Blocking prefixes
PostPosted: Thu Nov 30, 2006 6:04 pm 
Offline

Joined: Sat Jul 15, 2006 4:55 pm
Posts: 37
Hey all,

Is there any way to block certain prefixes from being called...?

i.e.
To allow calls to 1212xxxxxxx
but block all calls to 1646xxxxxxx

Thanks in advance!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 30, 2006 6:27 pm 
Offline
Moderator
User avatar

Joined: Tue Jun 06, 2006 12:14 pm
Posts: 685
Location: florida
Sure - have in your rating table
1212, but not 1646. Of course you can't have 1 as a catchall cause it would pick up on the 1646 numbers.

Another idea might be to have 1646 listed, but then on the ratecard - have a carrier for it that doesn't work so that they'd just get like a fast busy or something.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 30, 2006 6:33 pm 
Offline

Joined: Sat Jul 15, 2006 4:55 pm
Posts: 37
Yep, I do need that catch all prefix, just need certain areas excluded.

But hmmm interesting solution, i'll give that a shot right now and see how that turns out.. Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 01, 2006 2:36 pm 
Offline

Joined: Sat Jul 15, 2006 4:55 pm
Posts: 37
Dont this this is working out unfortunatly,

since i do need '1' to be the catch all, it will pick up the 1646 which is directed to 'no provider' ...

There should really be a away to block certain prefixes even though there is a catch all ... :cry:


Top
 Profile  
 
 Post subject: Blocking Prefixes
PostPosted: Mon Jan 08, 2007 11:12 pm 
Offline

Joined: Mon Jan 08, 2007 6:56 pm
Posts: 345
Create the prefix with a very high "rate initial" charge eg; $5000

you may want to disallow other prefixes like:

311 - Non-Emergency Access.
411 - Local Directory Assistance.
456 - International Inbound.
500 - Personal Communication Services.
600 - Services in Canada.
611 - Repair Services.
700 - IC Services.
710 - U.S. Government.
711 - TRS Access.
880 - Toll Free Calling (Paid 800 Service)***.
881 - Toll Free Calling (Paid 888 Service)***.
882 - Toll Free Calling (Paid 877 Service)***.
883 - Toll Free Calling (Paid 866 Service)***.
900 - Paid Service Calls.
976 - Paid Service Calls.

Double check, could be wrong on some of these.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 07, 2007 10:17 am 
Offline

Joined: Tue Nov 21, 2006 7:01 pm
Posts: 19
Here's what I did to block prefixes gracefully:

Create a trunk called "BlackHole" or whatever.
Provider Tech = "LOCAL"
Provider IP = s@invalidprefix/n

Add entries in rate table you want blocked, specifying "BlackHole" for the trunk.

Then in extensions.conf, add this context:
[invalidprefix]
exten => s,1,Playback(prepaid-invalid-digits)
exten => s,2,Hangup

Calls to blocked prefixes get an error message played instead of waiting for a SIP timeout. And as icing on the cake, when it hits the hangup statement it returns to the a2billing script and asks the caller to enter the number again!

Tim


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 13 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group