login | register
Thu 07 of Aug, 2008 [23:18 UTC]

voip-info.org

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
For placing the call it will use Application LCDial instead of Asterisk cmd Dial if it is available. So you also get Least Cost Routing and Failover.

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/Makefile

CFLAGS+=-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


Sounds

You will need to record and place the following sounds in /var/lib/asterisk/sounds; prepaid-and, prepaid-auth-fail, prepaid-card-in-use, prepaid-card-inactive, prepaid-cents, prepaid-dest-blocked, prepaid-dest-unreachable, prepaid-enter-card-num, prepaid-enter-dest, prepaid-euro, prepaid-final, prepaid-max-duration, prepaid-minute, prepaid-minutes, prepaid-no-aaa, prepaid-reseller-balance, prepaid-seconds, prepaid-three-failures, prepaid-you-have, prepaid-zero-balance. They are not included in the source code distribution or any of the Asterisk sound packages.


Help

If you are having trouble getting the application up and running and need professional help, feel free to drop us a line at info@commoveo.com

Management Interface

If you are looking for a management frontend or a turn-key-solution please get in touch with us: info@commoveo.com

Get it

You can download the actual version here

Comments

Comments Filter
222

333performance???

by vbtin, Friday 29 of July, 2005 [07:16:36 UTC]
As I can see many prepaid and LCR solutions, I can't make sure which one is the best.
and the most important is the performance of them? Your experience?? please!
best regard.
222

333Compile notes

by jonp, Thursday 26 of May, 2005 [01:06:18 UTC]
Found the following to work while setting this up.
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.
222

333Is there any tutorial for this app

by aminshah75, Sunday 17 of April, 2005 [04:28:15 UTC]
Dear friend,
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.

222

333Any Body Help

by aminshah75, Tuesday 12 of April, 2005 [14:56:48 UTC]
hi i am trying this on Fedora Core 3
  1. 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.c
app_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
222

333prepaid sound files?

by terchris, Monday 21 of March, 2005 [15:28:48 UTC]
Does anyone have a set of sample sound files for the sound/prepaid directory?
222

333compile problem on Asterisk@Home(CentOS)

by terchris, Monday 21 of March, 2005 [14:29:32 UTC]
If you compile on Centos 3.4 (The Asterisk@Home v0.6 CD) you must change the following line in apps/Makefile:
LIBS+= -lmysqlclient
to:
LIBS+= -L/usr/lib/mysql/lmysqlclient