Billing

This is a project by Luis Daniel Lucio Quiroz to manage billing for VoIP.

=What is Billing for FusionPBX?= Billing for FusionPBX is a native FusionPBX application (please see App menu on any FusionPBX installation) that allows to bill for incoming, internal or outgoing calls and some other capabilities.

=Features= Billing for FusionPBX is a commercial third party development, therefore it is not included in FusionPBX out of the box. You must download it, install it and get a valid license.

Billing for FusionPBX has next capabilities:
 * 1) Compatible with FusionPBX 3.6 or higher,
 * 2) Compatible with MySQL 5.x, MariaDB 5.x, 10.x and PostgreSQL 9.x
 * 3) It works by configuring billing profiles,
 * 4) You can work with multi-tenant or single-tenant FusionPBX,
 * 5) You can have sub-profiles of billing,
 * 6) Multiple call ratesheets,
 * 7) Specify costs for inbound, outbound or internal calls,
 * 8) Multi-currency option, with default currency selection,
 * 9) Lets you charge clients in one currency and pay their suppliers in other,
 * 10) Post-Paid and Pre-Paid billing plans,
 * 11) Bring a list of users referred by other users,
 * 12) Disable the service when the balance is insufficient,
 * 13) Auto-suspension if not payment,
 * 14) Payment credits/Refunds,
 * 15) Sets static charges,
 * 16) Adds % based charges (eg taxes)
 * 17) View a history of payments and fees,
 * 18) Sets Prices for Destinations FusionPBX,
 * 19) Sets Prices for extensions created,
 * 20) Accept offline payments, paypal or stripe, (only paypal plugin is included, others must be purchased)
 * 21) List the detailed call log the cost of the call,
 * 22) It has auxiliary tools that suggest selling prices based on prices from suppliers,
 * 23) Query tools have to check the balance of the service

Requirements
Billing for FusionPBX requires FusionPBX 3.6.x or better. Your FusionPBX must use MySQL/MariaDB or PostgreSQL as a backend database.

Download the software
You can go to author's Billing for FusionPBX website at www.okay.com.mx and download LCR and Billing for FusionPBX. You need to download both, since Billing needs LCR to work.

Install
You will find in www.okay.com.mx LCR and Billing quick starts. However, to install, you must follow next steps:
 * 1) Download both zip files
 * 2) Install shadowphp extension, you can download it here
 * 3) Unzip both tarballs inside /app directory
 * 4) Run the Schema Update and Menu update

Professional installation services available for free after you have purchased a commercial license (SSH root access and superadmin access to your FusionPBX access required).

You can follow next directions to install the software using RPMS. It will install FusionPBX, LCR and Billing. You will only need to install the license.

Get a license
You can purchase your licenses here using this link: goo.gl/ozEivW (short URL). Later, you will get by email your license key, the next step is to paste that license inside a filename with .key extension (name doen not matter at all). And you are done.