Upgrade 3CX to v18 and get it hosted free!

Asterisk callingcard tips

Author image

app_prepaid setup

app_prepaid does work once you correctly setup the database etc.

This is open source – you’ve got the source code of app_prepaid. You’ve got the database schema, you’ve got the stored procedures used to do the authentications and number lookup. You need to study this stuff and reach enlightenment…

Anyway, here are a few rather random hints and suggestions:

– You need to build the database and load in the functions etc.

prepaid-make.sh isn’t right. Following the pattern in prepaid-make.sh, feed psql with prepaid-init.sql, prepaid-tables.sql and prepaid-functions-asterisk.sql

Load in the example data by psql … <prepaid-data-country.sql, then prepaid-data-countryprefix.sql

– You need to make sure that you can access the database using the username/password that’s configured in your prepaid.conf

– You need to add data to some other tables:

at least a “blank” record to internationalprefix:

insert into internationalprefix (prefix) values (”);

You will also need to populate countrysubcode, provider, providerdestination, perhaps some of the other tables. Look at the prepaid-functions-asterisk.sql functions to see how they use the tables.
From that you can understand what needs to go into the tables.

– You need to add some cards into the database

It might help to go to your /etc/asterisk/logger.conf and add debug to the console=> line. Run asterisk with -vvvvv -ggggg.

Steve


Go back to Asterisk callingcard


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.