a2billing½ç”¨ ‰‹†Œ

  • View
    221

  • Download
    0

Embed Size (px)

Text of a2billing½ç”¨ ‰‹†Œ

  • 7/29/2019 a2billing

    1/40

    The Asterisk A2Billing Calling-Card-PlatformDocumentation

    Arezqui Belaid

    areski @NOSPAM gmail.com

  • 7/29/2019 a2billing

    2/40

    The Asterisk A2Billing Calling-Card-Platform Documentationby Arezqui Belaid

    Copyright 2005 Copyright @ 2005 The Asterisk Calling Card platform

    A guide to the basics of using A2Billing

    This document may be distributed subject to the terms and conditions set forth in the Open Publication License, v1.0 or

    later (the latest version is presently available at http://www.opencontent.org/openpub/ )

    Revision History

    Revision 0.1 $Date: 2005/19/15 16:29:00 $

  • 7/29/2019 a2billing

    3/40

    Table of Contents

    1. Introduction ....................................................................................................................... 1

    General concept of the calling card platform ........................................................... 1AreskiCC, is it the same ?............................................................................................ 1Prerequisite knowledge and skills ............................................................................. 1What to expect ? ........................................................................................................... 1Key Solution Features .................................................................................................. 2How does it work (briefly).......................................................................................... 3Licence ........................................................................................................................... 4

    2. Preparing your system for A2Billing ............................................................................ 5

    Choose an Operating System / Distribution ........................................................... 5Install Asterisk & have it up running........................................................................ 5

    Get Asterisk from precompiled Binary Packages .......................................... 5Get Asterisk from sources & compile .............................................................. 5Link for Asterisk installation ............................................................................ 6

    Linux Requirements..................................................................................................... 6Required Packages.............................................................................................. 6Verify the server installation ............................................................................. 6

    Conclusion..................................................................................................................... 8

    3. Getting & Installing A2Billing .................................................................................... 11Getting the tarball ...................................................................................................... 11Create the applications database - Postgres .......................................................... 11

    Create A2Billing system/database user........................................................ 11Create the database and populate it with the sql dump - postgresql .......11

    Create the applications database - Mysql .............................................................. 12Create A2Billing system/database user........................................................ 12Create the database and populate it with the sql dump - mysql ...............13

    Install the file for the a2billing configuration......................................................... 13Install the file for the currencies table ..................................................................... 14Install the php web management interface ............................................................ 15

    Install management interface.......................................................................... 15Configure & customize the Interface : a2billing.conf.................................. 15Files / directory right....................................................................................... 16SIP/IAX friends include .................................................................................. 17Configure the manager .................................................................................... 17Configure MusicOnHold................................................................................. 17Give a try! .......................................................................................................... 18Increase security of the Admin interface with an htaccess......................... 18

    Install the customer web interface ........................................................................... 18Install customer web interface ........................................................................ 18

    Install The AGI components : IVR CallingCard application ............................... 18Install .................................................................................................................. 19Install Sounds files............................................................................................ 19Configure & customize the AGI : a2billing.conf.......................................... 19Configure extensions to run A2Billing into Asterisk .................................. 21

    4. Specific information for Installation according to the distribution...................... 23

    RedHat ......................................................................................................................... 23Files Locations differences............................................................................... 23Commands Syntax differences ....................................................................... 23

    Fedora .......................................................................................................................... 23Debian .......................................................................................................................... 23Ubuntu......................................................................................................................... 23CentOS ......................................................................................................................... 23Mandriva ..................................................................................................................... 23Suse............................................................................................................................... 23Dos 5.0.......................................................................................................................... 23Windows 3.11.............................................................................................................. 23

    iii

  • 7/29/2019 a2billing

    4/40

    Xbox.............................................................................................................................. 23

    5. User Guideline ................................................................................................................ 25

    Entities interaction in the callingcard platform ..................................................... 25Create customer/card................................................................................................ 26

    Card properties ................................................................................................. 26CallerID Authentication .................................................................................. 27

    Billing Engine.............................................................................................................. 27Introduction....................................................................................................... 27TariffGroup ........................................................................................................ 28Ratecard ............................................................................................................. 28Rate ..................................................................................................................... 28Trunk .................................................................................................................. 28Import Ratecard ................................................................................................ 28

    SIP/IAX Friends......................................................................................................... 28Make card recharge & notify payment.................................................................... 29Reporting tools ........................................................................................................... 29

    cdr report ........................................................................................................... 29calls compare ..................................................................................................... 29monthly traffic................................................................................................... 29daily load ........................................................................................................... 29

    Invoice ................................................................................................................ 29Edit/Add administrator (& define ACL) ............................................................... 29Customer web interface ...........................................................