Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 9:09 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: "Remove Prefix" more than 1 prefix to be removed
PostPosted: Thu Dec 06, 2007 11:49 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
The more I use A2B, the more I think that we should have this feature.

We have clients around the world. Some of them (in North America) used 011 as international prefix; others use 00 instead. And it's hard for them to using those practices. In the trunk setting, we can currently entered just one undesired prefix to be removed.

It could be nice to be able to give coma separated values like: 00,011,0

Those values can be used and regular expression patterns to remove either of the given prefixes.

Of course, if there is another way to do this without programming, I am all ears.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 06, 2007 11:56 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Should this be in the trunk settings?
Does this not do what you need?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 07, 2007 12:01 am 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
The trunk setting? Are you saying that I can remove at the same time 00 and 011 (2 different kind of prefixes). How do I do that?

I failed to make it work. That why I have posted this message.

Added after 2 minutes:

I didn't see your link. I will check it out.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 07, 2007 12:05 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
A2B has historically always removed '00', '011', '09' and '1' from the start of dial strings before matching against a ratecard.
This is now (v1.3.1) configurable per agi-confX section, and I'm sure does what you need.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 07, 2007 12:09 am 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
I am using v1.3 not v1.3.1.

It's a production server and I can't change the a2b version just as easily before making sure that the features we had working doe us are still working well in the next version.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 07, 2007 12:15 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Well I made a complete hash of it initially, so the commits aren't too easy to read, but you can see the changes here. All very simple stuff, and I've been running it in production for a couple of months now with no adverse effects.
Perhaps you'd prefer to take the easier route described in my post earlier this evening.


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 10 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