Quantcast
Viewing all articles
Browse latest Browse all 11

A2Billing configuration on FreePBX

Image may be NSFW.
Clik here to view.
Here is the step by step instruction on how to configure a2billing with FreePBX 2.4:

Step1)

In a2billing, go to Trunks > create provider

Step2)

In a2billing, go to Trunks > Add Trunk

Image may be NSFW.
Clik here to view.

Step3)

In a2billing, go to RATECARD > Create new RateCard

Image may be NSFW.
Clik here to view.

Step4)

In a2billing, go to RATECARD > Create Call Plan

Step5)

In a2billing, go to RATECARD > Create Call Plan

Image may be NSFW.
Clik here to view.

Here is how you can test the rates by the simulator:

Step6)

Assign a customer (extension) to a call plan:

Image may be NSFW.
Clik here to view.

Step7)

In FreePBX, create a custom trunk:

Custom Dial String: Local/$OUTNUM$@a2billing/n

and use this trunk as destination for outbound routes.

You’re all set now. For troubeshooting run this:

# tail -f /var/log/asterisk/a2billing/a2billing_agi.log

Here is a sample ERROR (related to lack of rate card for the called number)

[22/02/2012 18:43:40]:[file:Class.A2Billing.php - line:721]:[CallerID:124]:[CN:124]:[ERROR ::> RateEngine didnt succeed to match the dialed number over the ratecard
(Please check : id the ratecard is well create ; if the removeInter_Prefix is set according to your prefix in the ratecard ; if you hooked the ratecard to the Call Plan)]
[22/02/2012 18:43:40]:[file:Class.A2Billing.php - line:636]:[CallerID:124]:[CN:124]:[[CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='124']]
[22/02/2012 18:43:40]:[CallerID:124]:[CN:124]:[[exit]]

Viewing all articles
Browse latest Browse all 11

Trending Articles