Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Apr 16, 2024 5:09 am
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: authorized country or country white list
PostPosted: Fri Sep 13, 2013 12:20 pm 
Offline

Joined: Thu Dec 03, 2009 11:18 am
Posts: 62
Is there a way to create a list of countries prefixes that we may allow calls to complete?
I only call a hand full of countries on a regular basis, it becomes a big hassle to remove the rates or add rates in a hurry when we want to call a specific country. or manage a dialplan in all my asterisk trunks.

lets say only destinations on a list can be called and we can add or remove on this list realtime on the fly and it a rate is available it can be called as usual otherwise announce the destination is not available.


Top
 Profile  
 
 Post subject: Re: authorized country or country white list
PostPosted: Fri Sep 13, 2013 4:16 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
no rate, no call.

Or to put it another way, if you have not get a rate for the destination, you can't call it through A2Billing.

Joe


Top
 Profile  
 
 Post subject: Re: authorized country or country white list
PostPosted: Fri Sep 13, 2013 5:19 pm 
Offline

Joined: Sat Nov 28, 2009 12:47 pm
Posts: 7
I was looking for something a little easier to maintain like a white/black list.
as I have several providers it becomes hard to add or delete rates from the several rate cards.
perhaps a table in a2b that if the country code is in it the call will go thru find the rate and complete the call, if it is not it will fail.


Top
 Profile  
 
 Post subject: Re: authorized country or country white list
PostPosted: Fri Sep 13, 2013 8:58 pm 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
You could create a dummy trunk and then have a rate card using this trunk with 'blacklisted' routes all costing 0.00. This way this rate card would always get chosen for these routes and the calls would fail.

The behaviour of this could depend on some a2billing settings so check it's doing what you expect.

I do it myself and it's useful because you can see call attempts to these routes in the CDRs


Top
 Profile  
 
 Post subject: Re: authorized country or country white list
PostPosted: Sun Sep 15, 2013 1:56 pm 
Offline

Joined: Sat Nov 28, 2009 12:47 pm
Posts: 7
Thanks, that worked somewhat. it takes a little while to time out but it will not complete the call.
how can I actually send all calls to that trunk to an IVR or announcement to call the office or something alike?
That way it would be faster to get nowhere :)


Top
 Profile  
 
 Post subject: Re: authorized country or country white list
PostPosted: Sun Sep 15, 2013 6:15 pm 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
To play an announcement you can ...

Add this to your default dial plan (extensions.conf?) -

exten => _999999,1,Answer()
exten => _999999,n,Playback(tt-weasels,skip)
exten => _999999,n,HangUp()

Create the trunk in a2billing where -

Provider Tech = local
Provider IP = 999999
Failover Trunk = Not defined

Then when a number that goes via that trunk is called the call will get passed to local/999999. This will answer the call and play the announcement. You may want a different message announced :-)


Top
 Profile  
 
 Post subject: Re: authorized country or country white list
PostPosted: Mon Sep 16, 2013 1:55 pm 
Offline

Joined: Sat Nov 28, 2009 12:47 pm
Posts: 7
Thanks, I worked somewhat, now it does not take long to get to a message but not the message I intended.
I wonder what I did wrong.

I created a provider in a2b called local
then the trunk in a2b as you indicated above.
I then I added this to the extensions_a2billing.conf instead of the extensions.conf so it would not be written over by freepbx

[a2billing-nowhere]
exten => _999999,1,Answer()
exten => _999999,n,Playback(no-route-exists-to-dest,skip)
exten => _999999,n,Playback(check-number-dial-again,skip)
exten => _999999,n,HangUp()

and I get this when I make the call
-- Couldn't call local/999999/01182...........
== Everyone is busy/congested at this time (0:0/0/0)
instead of my canned message.


Top
 Profile  
 
 Post subject: Re: authorized country or country white list
PostPosted: Mon Sep 16, 2013 2:00 pm 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
By default Asterisk will be trying to find 99999 in your default context.

So you didn't want to create [a2billing-nowhere], you wanted to add those lines under [default]


Top
 Profile  
 
 Post subject: Re: authorized country or country white list
PostPosted: Mon Sep 16, 2013 2:02 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

Try this

trunk tech local

Provider IP
%dialingnumber%@a2billing-nowhere

Then change your dialplan to be:

[a2billing-nowhere]
exten => _X.,1,Answer()
exten => _X.,n,Playback(no-route-exists-to-dest,skip)
exten => _X.,n,Playback(check-number-dial-again,skip)
exten => _X.,n,HangUp()

Joe


Top
 Profile  
 
 Post subject: Re: authorized country or country white list
PostPosted: Mon Sep 16, 2013 2:32 pm 
Offline

Joined: Sat Nov 28, 2009 12:47 pm
Posts: 7
JACKPOT Joe, joy joy joy

Many thanks to all that helped.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 
Voice Broadcast System


All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group