Setup A2Billing in Asterisk@home 2.2
Generat Setup
Log into A2Billing
http://AsteriskBoxIP/a2billing>
(Username:
root
; Password:
myroot
)
Modify the
default Trunk
(TRUNK -> List Trunk -> Edit)
PROVIDERTECH:
Your AAH Trunk Protocol (SIP or IAX)
PROVIDERIP:
Your AAH Trunk Name
Create a
RateCard
. RATECARD -> Create new RateCard
Create a new
Rate
. RATECARD -> Add Rate
RATECARD
Name of the card created before
DIALPREFIX
1
DESTINATION
USA
BUYING RATE
0.1
RATEINITIAL
0.2
Create a
Tariff Group
. RATECARD -> Create TariffGroup
TARIFFPLAN: Name of the RateCard created before
Create a
Customer
CUSTOMERS -> Create customer
WEBUI PASSWORD
1234
CREDIT
10
TARIFFGROUP
Name of the TariffGroup created before
Customer login:
http://AsteriskBoxIP/a2customer
Username: Card Number, Password: WEBUI PASSWORD
Method 1
: Customer dials a number to access the service
extensions_custom.conf
Un-comment the lines of the CallingCard application
Modify the Incoming Route of the assigned number to Custom App: custom-callingcard,s,1
Authentication:
Method 1: When a customer dials the assigned number, A2Billing will prompt to enter the card number
Method 2: Using Caller ID
Log into A2Billing http://AsteriskBoxIP/a2billing
CUSTOMERS -> List Customer
Click Edit on the customer you want to be authenticated using Caller ID
Enter the Caller ID at the end of the page (CALLERID)
Modify a2billing.conf, change cid_enable=NO to YES
If the customer will access the service using that Caller ID, A2Billing will NOT prompt for a PIN
Method 2
: Customer uses SIP or IAX agent (Software or hardware)
Add to sip.conf
#include additional_a2billing_sip.conf
Add to iax.conf
#include additional_a2billing_iax.conf
Add to extensions_custom.conf
[callingcard]
;allow phones to access trunks
include => outbound-allroutes
exten => s,1,Answer
exten => s,2,Wait,2
exten => s,3,DeadAGI,a2billing.php
exten => s,4,Wait,2
exten => s,5,Hangup
Log into A2Billing http://AsteriskBoxIP/a2billing
CUSTOMERS -> List Customer
Click SIP or IAX on the customer you want
Click “GENERATE ADDITIONAL_A2BILLING_SIP.CONF”
Click “Click here to reload Asterisk Server”
CUSTOMERS -> List SIP-FRIEND
Click Edit on the customer you want to modify
Change SECRET to the same value as WEBUI PASSWORD
Change NAT to meet your requirement
Change ALLOW to meet your requirement