Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Mar 29, 2024 9:20 am
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Billing DAHDI calls and SIP calls
PostPosted: Wed Oct 19, 2011 10:37 am 
Offline

Joined: Wed Oct 19, 2011 10:09 am
Posts: 4
Hi, i am new to a2billing and i hope that someone can help me understand how to use it with asterisk.

I am working on a project with several remote offices and a central location (hub).In each location there is an asterisk servers and each location has it's own extension pool.For example location 1 uses ext.100-200, location 2 uses 201-300 and so on. Locations are connected through VPN and SIP calls are working perfectly.Each location has also some PSTN lines connected to dahdi channels.Now i need to be able to bill calls from SIP to PSTN by making a rate cards saying that calls begining with 033 cost 0.1 euro/min for example.And this is only neccesary for admin who will monitor the costs of the employee of the company so there is no need to add customers.Also it is neccessary that admin can use a2biling as the cdr so he can see who calls who and what was the call duration.
After installed a2billing v. 1.9.4 i wanted to test cdr by calling from ext. 100 to ext. 105 but there is no data for the call???
Can saomeone help me understand how to configure this?


Top
 Profile  
 
 Post subject: Re: Billing DAHDI calls and SIP calls
PostPosted: Wed Oct 19, 2011 1:13 pm 
Offline

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

Normally the architecture would be:-

Asterisk server -> A2Billing -> PSTN

So your calls have to pass through A2Billing to make a call and be billed.

It is possible to install components of A2Billing on each office PBX, and them bill from a central DB, but that can be complicated if you have not got a full understanding of the architecture and components of A2Billing.

Joe


Top
 Profile  
 
 Post subject: Re: Billing DAHDI calls and SIP calls
PostPosted: Wed Oct 19, 2011 1:38 pm 
Offline

Joined: Wed Oct 19, 2011 10:09 am
Posts: 4
I have installed a2billing on the same server as asterisk.So on each location a2billing would do SIP-PSTN just for that location.
How to make calls going from asterisk through a2billing to PSTN?

I have theese lines in extensions.conf


[a2billing]
exten => _X.,1,Answer
exten => _X.,2,Wait,2
exten => _X.,3,DeadAGI,a2billing.php
exten => _X.,4,Wait,2
exten => _X.,5,Hangup

[a2billing_did]
exten => _X.,1,Agi(a2billing.php,1,did)
exten => _X.,2,Hangup

[a2billing-callback]
exten => _X.,1,AGI(a2billing.php,1,callback)
exten => _X.,n,Hangup


Top
 Profile  
 
 Post subject: Re: Billing DAHDI calls and SIP calls
PostPosted: Wed Oct 19, 2011 1:42 pm 
Offline

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

If you are using FreePBX, then look at the pre-dial hook stuff on this forum, a quick search should bring it up.

If you are not, then you need to pass your calls out via the A2Billing context, which may want to be shortened to just

[a2billing]
exten => _X.,1,DeadAGI,(a2billing.php,1)
exten => _X.,n,Hangup

Joe


Top
 Profile  
 
 Post subject: Re: Billing DAHDI calls and SIP calls
PostPosted: Wed Oct 19, 2011 5:55 pm 
Offline

Joined: Wed Oct 19, 2011 10:09 am
Posts: 4
Thanks, i'll try that.


Top
 Profile  
 
 Post subject: Re: Billing DAHDI calls and SIP calls
PostPosted: Fri Oct 28, 2011 7:42 am 
Offline

Joined: Wed Oct 19, 2011 10:09 am
Posts: 4
Nothing helped :(


Top
 Profile  
 
 Post subject: Re: Billing DAHDI calls and SIP calls
PostPosted: Fri Oct 28, 2011 2:46 pm 
Offline

Joined: Mon Jan 08, 2007 6:56 pm
Posts: 345
Concentrate on one Asterisk system for the moment.

DAHDI trunk: dahdi01
extension: 100
outside dial code: 033

In a2b webadmin create a PROVIDER, TRUNK (dahdi01), Ratecard, Rates And Callplan in that order

create an agiconf and configure it: SYSTEM SETTINGS->Add agi conf . default is "1" eg; conf1.

Then create a customer attached to the call plan you just created. This customer will have an accountcode that you will define in the asterisk config for ext 100.

[100]
.
accountcode=xxxxxxxxx
.


100 dials a call 0331xxxxxxxxx

[somecontext]
_0331NXXNXXXXXX,n,Goto(a2billing,${EXTEN:3},1) ;strip 3 chars , 033


Your a2b context:

[a2billing]
exten => _X.,1,DeadAGI,(a2billing.php,1) ; 1 = conf1 that you just configured
exten => _X.,n,Hangup


There are many ways to configure your system.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 
Auto Dialer Software


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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group