CallingCard Applications
Created by: wuwu,Last modification on Mon 24 of Oct, 2005 [06:26 UTC]
CallingCard Applications
Description
The CallingCard Applications consists of 3 Applications- Application PrepaidAuthCID
- Application PrepaidAuthPIN
- Application PrepaidCall
Features
- Handle calling cards with variable credit, startpulse, frequency, tariffrates and announcements (everything can be configured per card)
- Authenticate against CallerID
- Authenticate with the use of a PIN (10 digits)
- Number of simultaneous sessions per card can be configured per card basis (up to 255)
- Least Cost Routing with the help of Application LCDial
- Announce the remaining credit
- Announce the maximal call time for the given destination number
- Interupt the call if the card balance gets zero
- Inform the caller about the call interupt 60 seconds before the call gets interupted
- The Announcement Language can be configured on per card basis
- Can be used with postgresql and mysql (mysql is preferred and better tested)
- Can be compiled against asterisk cvs head (at time) and asterisk stable
Compile It
By default it compiles for the use with a mysql database - if you want to compile for use with a postgresql database then you have to comment these lines in app/MakefileCFLAGS+=-DUSE_MYSQL
INCLUDE+= -I /usr/include/mysql
LIBS+= -lmysqlclient
and uncomment these lines
CFLAGS+=-DUSE_PGSQL
INCLUDE+= -I /usr/include/postgresql
ASTERISKINCLUDE=-I/usr/include/pgsql -I/usr/local/pgsql -I/usr/local/pgsql/include -I$(ASTERISKINCDIR)
LIBS+= -lpq
It assumes that the asterisk sources can be found at /usr/src/asterisk, that the asterisk modules directory is at /usr/lib/asterisk/modules and that the asterisk configuration is at /etc/asterisk/.
For compiling it you need to have already installed asterisk ;-) - and the mysql or postgresql client libary and header files.
From asterisk stable to asterisk cvs head the channel structure has changed a little bit - so if you want to compile against asterisk stable then you have to comment this "CFLAGS+=-DUSE_CVS" line to get it to compile (else you would get an error like "error: structure has no member named `cid'"
Configuration
- mysql Database for the CallingCard Applications
- postgresql Database for the CallingCard Applications
- prepaid.conf for the CallingCard Applications
- extensions.conf for the CallingCard Applications


Comments
333performance???
and the most important is the performance of them? Your experience?? please!
best regard.
333Compile notes
In apps/Makefile I changed the mysql lines to:
INCLUDE+= -I /usr/local/include/mysql
LIBS+= -L/usr/local/lib/mysql -lmysqlclient
Also if your using mysql 5.0 the table create script gives an error when trying to create the "call" table. Changed this to calls and all was good.
333Is there any tutorial for this app
I am trying this and AreskiCC on my Fedora core. A lot of user have no luck with either. is there any tutorial, or how-to which is easy to understand. We will all be pleased with such nice applications. The tutorial or How-to is more important than the application it self.
333Any Body Help
- make
gcc -pipe -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -I /usr/include/mysql -D_REENTRANT -D_GNU_SOURCE -O6 -DUSE_MYSQL -DUSE_CVS -fPIC -c -o app_prepaid_auth_pin.o app_prepaid_auth_pin.capp_prepaid_auth_pin.c: In function `prepaidauthpin_exec':
app_prepaid_auth_pin.c:355: error: structure has no member named `cid'
make: *** app_prepaid_auth_pin.o Error 1
What is wrong. it there a good site/tutorial for calling card applications. AsteriskCC is also not working....any body help
333prepaid sound files?
333compile problem on Asterisk@Home(CentOS)
LIBS+= -lmysqlclient
to:
LIBS+= -L/usr/lib/mysql/lmysqlclient