Skip navigation.
Home
ASTPP is an open source VOIP billing and calling card application for Asterisk(TM) and Freeswitch(TM).

Update on MySQL + ASTPP + Freeswitch Installation

Before building and installing Freeswitch, please be sure to install MySQL, unixODBC and their drivers.

However improbable this sounds, the fact is that in CentOs entering “yum install unixODBC” and "yum install unixODBC-devel" commands on the command line may not install all you need for interconnection of MySQL with unixODBC.

Hence, be sure you resolve any interconnectivity issues between MySQL and unixODBC as Freeswitch would seek out unixODBC so as to make provisions and incorporate it for use while building.

Since all servers would not be configured by one method, Please see these resources for assistance as per your scenario:

Updated Installation Manual - Freeswitch on CentOs

Install Operating System

Install Centos 5.x. ( I Only Selected  Server, Server GUI Options ).  Then Did yum update and yum upgrade all sofware default dependacies to the latest versions.  This would upgraded a Centos 5.x to Cenos 5.4
Note:- please be sure to disable SELINUX

Install Required Software

  1. Install MySql, MySql-Server and  be sure to set the password for the root user.  Note:- please do not remove the “test database” or disable the “anonymous user access” at this time.
  2. Install Apache
  3. Install PHP & PHPMyAdmin (Optional but recommended)
  4. Install Freeswitch
    • Full instructions for installing Freeswitch may be found here http://wiki.freeswitch.org/wiki/Installation_Guide
    • If you’ll use sangoma Card or any other card that needs installing before Freeswitch is installed, please Install it’s dependencies and relevant Drivers, then install OpenZap in the case of WanPipe; so Freeswitch could build making provision for the sangoma wares.
    • You'll need to install the FreeSwitch Mod_Perl.  This is done by uncommenting the "mod_perl" line the in the Freeswitch modules.conf file.  You may be missing more dependencies.  A lot of systems need "gdbm-devel" and "db4-devel" installed.  (yum install gdbm-devel db4-devel
    • Install Freeswitch (make && make install)

3. Install dependencies of ASTPP, please see 3b.

Modify Accountcode

I've added support to apply regex code to accountcodes before rating.  This only applies during the rating process and is necessary for those that store extra data in their accountcodes.  It does not come populated in the configuration by default as it shouldn't be used unless necessary.

cdr_regex_accountcode

Example: -\d\d\d\d$

This will strip a taililng hyphen and 4 digits.

Edit Configuration

As of a few minutes ago svn -trunk has the ability to edit the configuration from within the web interface.

Sample cdr_csv.conf.xml

<configuration name="cdr_csv.conf" description="CDR CSV Format">
  <settings>
    <!-- 'cdr-csv' will always be appended to log-base -->
    <!--<param name="log-base" value="/var/log"/>-->
    <param name="default-template" value="astpp"/>
    <!-- This is like the info app but after the call is hung up -->
    <!--<param name="debug" value="true"/>-->

Updated Features List

The features page (http://www.astpp.org/?q=node/165) has been entirely redone and updated.  Check it out!

Freeswitch Callingcards

Freeswitch calling card support is "working" in svn -trunk.  I'm using it in testing but I'd like to get more testers on board to handle different environments.  You need astpp-fs-monitor.pl running to get the calls rated.

Freeswitch DID Handling

The DID handling for Freeswitch is entering beta testing.  It should be stabilized shortly.

Updates

Just a quick update for everyone.  Expect to see another release before March with stable Freeswitch support.  It's looking like our payment and invoice presentation will be coming for the end of Q2 2009.

Freeswitch Support Update

Just a quick update on our FreeSwitch support.....  There were issues with routing calls to SIP peers that required passwords.  This has been resolved.  The following features are working:

  1. LCR
  2. SIP User handling in database
  3. Rating

That leaves the following features:

  1. Calling Cards