Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Sep 17, 2019 4:21 pm
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: A2Billing as Call Tracking and Billing System w/ trixbox
PostPosted: Sun Mar 29, 2009 10:37 pm 
Offline

Joined: Sun Mar 29, 2009 9:53 pm
Posts: 25
Hi,

I am looking at the possibility of using A2Billing as a transparent tracking and billing system on a trixboxCE IP-PBX. We would like to track all the outgoing calls from the IP-PBX to our VoIP service provider we're using for wholesale VoIP service as well as track all incoming calls to the PBX from DID's which would also include toll free numbers. I would need A2Billing to simply track all of these calls and rate them and then provide billing info through the Admin interface to us as well as to the customer through the customer interface. Thus, I want to be able to transparently pass all the outgoing calls from trixbox extensions through A2Billing before going to service providers trunk as well as to transparently pass all the incoming calls from DID's through A2Billing before going to auto-attendants or trixbox extensions. In both cases, A2Billing should not interrupt the calls asking for phone numbers or pin numbers etc, just pass the calls on while tracking, rating and reporting the calls duration and pricing.

I have played around with A2Billing in the past when looking at setting up a calling card service and currently have A2Billing 1.3.4 installed on a test server along side of trixboxCE 2.6.2.2. From what I understand of how A2Billing works, this looks like it could be possible to set up, but I need some confirmation and guidance (if possible) from others more experienced with A2Billing.

If anyone needs any further clarification on what I am trying to do, please just ask and I will be happy to provide it.

Any help would be greatly appreciated.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 29, 2009 11:15 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
I'm not aware of any problems implementing what you describe. This should give you an idea where to start.


Top
 Profile  
 
 Post subject: Just What the Doctor Ordered
PostPosted: Mon Mar 30, 2009 2:21 am 
Offline

Joined: Sun Mar 29, 2009 9:53 pm
Posts: 25
stavros,

Thanks so much for replying. This is just what I was looking for!!

I've got it working on my test server.

Now what I need is to get a similar thing working for incoming calls from DID's. If you know of anywhere on the forum where this has been discussed, I would greatly appreciate knowing. If not, I will try to figure something out from what I have learned already.

Again, thanks so much for your prompt reply and excellent diagnosis of my requirements.

Dave


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 30, 2009 8:11 am 
Offline

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

A rather wordy article, but accurate nevertheless.

http://www.pbxinaflash.com/forum/showthread.php?t=2925

It shows billing inbound and outbound.

Joe


Top
 Profile  
 
 Post subject: Inbound billing now working
PostPosted: Mon Mar 30, 2009 11:36 pm 
Offline

Joined: Sun Mar 29, 2009 9:53 pm
Posts: 25
Joe,

Thanks for providing the link. As you say, it is lengthy but is accurate. I have used it to now set up tracking, rating and billing on incoming calls and it works great.

I have not been able to get through everything in the article, but I did note the comment about follow me not being able to work and needing a workaround. Has that been created and is it covered in the article?

I will no doubt have a few additional questions as I keep adapting A2Billing for our needs.

Thanks again to yourself and stavros for your help.

Dave


Top
 Profile  
 
 Post subject: FollowMe not working in Trixbox CE
PostPosted: Tue Mar 31, 2009 4:49 pm 
Offline

Joined: Sun Mar 29, 2009 9:53 pm
Posts: 25
Joe,

I have read more of the article posted on the PIAF Forum and have now found the coverage of using FollowMe with a2billing and FreePBX. In that section, Tony states that

"Previously in this article thread – I told you that FollowMe didn’t work correctly with A2B, and that special changes would need to be made. After spending no small amount of time to “make it work” – I discovered, to steal a quote, that “reports of FollowMe/A2Billing issues have been greatly exaggerated”. In other words – the incompatibility was apparently fixed in a previous release of FreePBX – and there is no special code work around required."

Does this mean that FollowMe should work for an incoming call that goes to an extension set up for FollowMe now in FreePBX? If so, I am not finding this the case when using the latest trixbox CE release 2.6.2.2 although I have not had any problems in setting up incoming and outgoing calls through A2Billing using the instructions in the article.

My problem appears to be that the outbound FollowMe call is not authenticating through A2Billing and therefore, is not passed onto my provider's trunk. This appears to be a similar problem to what another poster, snapvox, was experiencing. I know that Tony and yourself are confident that it does work based on tests that you did using the latest FreePBX release, so could this be something which was not captured in trixbox's version of FreePBX.

Below are two snippets of output in the asterisk cli. The first is for a call going out from an extension 300.

a2billing.php|1: (
a2billing.php|1: [agi_request] => a2billing.php
a2billing.php|1: [agi_channel] => SIP/300-09a06430
a2billing.php|1: [agi_language] => en
a2billing.php|1: [agi_type] => SIP
a2billing.php|1: [agi_uniqueid] => 1238514246.45
a2billing.php|1: [agi_callerid] => 519xxxxxxx
a2billing.php|1: [agi_calleridname] => xxxxxxx
a2billing.php|1: [agi_callingpres] => 0
a2billing.php|1: [agi_callingani2] => 0
a2billing.php|1: [agi_callington] => 0
a2billing.php|1: [agi_callingtns] => 0
a2billing.php|1: [agi_dnid] => 1519xxxxxxx
a2billing.php|1: [agi_rdnis] => unknown
a2billing.php|1: [agi_context] => custom-freepbx-a2billing
a2billing.php|1: [agi_extension] => 1519xxxxxxx
a2billing.php|1: [agi_priority] => 1
a2billing.php|1: [agi_enhanced] => 0.0
a2billing.php|1: [agi_accountcode] => 7120910331
a2billing.php|1: )

The second is for an external call being redirected out using FollowMe setup on the same extension

a2billing.php|1: (
a2billing.php|1: [agi_request] => a2billing.php
a2billing.php|1: [agi_channel] => Local/[email protected],2
a2billing.php|1: [agi_language] => en
a2billing.php|1: [agi_type] => Local
a2billing.php|1: [agi_uniqueid] => 1238508026.44
a2billing.php|1: [agi_callerid] => 519xxxxxxx
a2billing.php|1: [agi_calleridname] => unknown
a2billing.php|1: [agi_callingpres] => 0
a2billing.php|1: [agi_callingani2] => 0
a2billing.php|1: [agi_callington] => 0
a2billing.php|1: [agi_callingtns] => 0
a2billing.php|1: [agi_dnid] => unknown
a2billing.php|1: [agi_rdnis] => unknown
a2billing.php|1: [agi_context] => custom-freepbx-a2billing
a2billing.php|1: [agi_extension] => 1519xxxxxxx
a2billing.php|1: [agi_priority] => 1
a2billing.php|1: [agi_enhanced] => 0.0
a2billing.php|1: [agi_accountcode] =>
a2billing.php|1: )

followed by the later output

a2billing.php|1: file:Class.A2Billing.php - line:1780 - PREPAID-NO-CARD-ENTERED
a2billing.php|1: file:Class.A2Billing.php - line:1788 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15
-- <Local/[email protected],2> Playing 'prepaid-enter-pin-number' (language 'en')
a2billing.php|1: file:Class.A2Billing.php - line:1790 - RES DTMF : -1
a2billing.php|1: file:Class.A2Billing.php - line:1794 - CARDNUMBER ::> -1
a2billing.php|1: file:Class.A2Billing.php - line:1804 - PREPAID-INVALID-DIGITS
a2billing.php|1: file:a2billing.php - line:319 - [AUTHENTICATION FAILED (cia_res:-1)]
-- AGI Script a2billing.php completed, returning -1

As you can see, no accountcode is being passed in the case of the outbound call through FollowMe. I have not tried to make a call from one extension to another extension configured to use FollowMe, only using an incoming external call, so I'm not sure if the same behaviour would be duplicated in that case.

Unfortunately, all I can do at this point is report my observations. I don't have any clue yet as to where to begin to address the problem. Hopefully, this could give someone else, who is more familiar with FreePBX, some clues as to how to solve the problem.

Dave


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 31, 2009 5:00 pm 
Offline

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

The truth is that we are not sure, as we have not had the time to look at this in any great detail. That message was posted as a result of a couple of tests by Tony, so not that scientific.

The more reliable method, although a bit long winded, is to prepend the followme number with the A2B Account number, and then strip off the account number and present it to A2Billing as the account code in a custom dialplan

There may be something you can do in FreePBX, to ensure that the account code is carried through with a followme.

This feature request may be better asked in the FreePBX forums, although we'd be happy to hear of your results here.

Joe


Top
 Profile  
 
 Post subject: Re: A2Billing as Call Tracking and Billing System w/ trixbox
PostPosted: Thu Jul 23, 2009 3:19 pm 
Offline

Joined: Thu Jul 23, 2009 3:14 pm
Posts: 1
Tracking all outgoing calls from the IP-PBX to a VoIP service provider that is used for wholesale VoIP service? how is it, how is the policy?



_________________
Contact center


Top
 Profile  
 
 Post subject: Re: A2Billing as Call Tracking and Billing System w/ trixbox
PostPosted: Tue Dec 22, 2009 12:31 pm 
Offline

Joined: Tue Dec 22, 2009 11:49 am
Posts: 1
I have setup a a2billing

this is cli output

on simulator i a able to see the charges but when i dial the number no outbound calls are made

-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
<SIP/8140395811-0000001f>AGI Tx >> agi_request: a2billing.php
<SIP/8140395811-0000001f>AGI Tx >> agi_channel: SIP/8140395811-0000001f
<SIP/8140395811-0000001f>AGI Tx >> agi_language: en
<SIP/8140395811-0000001f>AGI Tx >> agi_type: SIP
<SIP/8140395811-0000001f>AGI Tx >> agi_uniqueid: 1261484284.31
<SIP/8140395811-0000001f>AGI Tx >> agi_version: 1.6.0.20
<SIP/8140395811-0000001f>AGI Tx >> agi_callerid: 8140395811
<SIP/8140395811-0000001f>AGI Tx >> agi_calleridname: 8140395811
<SIP/8140395811-0000001f>AGI Tx >> agi_callingpres: 0
<SIP/8140395811-0000001f>AGI Tx >> agi_callingani2: 0
<SIP/8140395811-0000001f>AGI Tx >> agi_callington: 0
<SIP/8140395811-0000001f>AGI Tx >> agi_callingtns: 0
<SIP/8140395811-0000001f>AGI Tx >> agi_dnid: 919013223047
<SIP/8140395811-0000001f>AGI Tx >> agi_rdnis: unknown
<SIP/8140395811-0000001f>AGI Tx >> agi_context: a2billing
<SIP/8140395811-0000001f>AGI Tx >> agi_extension: 919013223047
<SIP/8140395811-0000001f>AGI Tx >> agi_priority: 1
<SIP/8140395811-0000001f>AGI Tx >> agi_enhanced: 0.0
<SIP/8140395811-0000001f>AGI Tx >> agi_accountcode: 8140395811
<SIP/8140395811-0000001f>AGI Tx >> agi_threadid: 1112340800
<SIP/8140395811-0000001f>AGI Tx >>
-- <SIP/8140395811-0000001f>AGI Script a2billing.php completed, returning 0


I am able to make any calls hel pme on this please

also i am not getting any voice prompt


Top
 Profile  
 
 Post subject: Re: A2Billing as Call Tracking and Billing System w/ trixbox
PostPosted: Mon Aug 23, 2010 1:18 am 
Offline

Joined: Mon Aug 23, 2010 1:01 am
Posts: 1
The operating system is CentOS 5.2 (a free version of RedHat).
A2billing is a billing application designed for Asterisk.
You can use it to keep track of your own costs or you could use it to resell calling cards or
provides a csv file with their call rates in, then it's normally possible to upload..


________________
make money online


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 6 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