Free Billing, Routing and Management software for Asterisk and VOIP
Home | Forums | Wiki | Manual | Open Source | Billing and BSS | My Blue Heart | astbss.org
DownLoad | Bugs | Help Wanted | Numbering Plan
  
 

Warning: NO CREDIT

 
By pis2005 at Mon, 2005-10-03 08:21 | AstBill Software - General and Support

what is the Problem, how can i add
Balance for this accountcode.

i think the Problem in asvaccount2 table
it have no data and i can not add data in
this table.

PLZ see the logs from agiastar.agi
thanks

Executing: /usr/sbin/asterisk Mon Oct 3 10:59:55 2005
config.conf loaded. dbhost = localhost
AGI Environment Dump:
-- accountcode =
-- callerid = device
-- channel = SIP/200-738f
-- context = macro-stdexten
-- dnid = 9110
-- enhanced = 0.0
-- extension = s
-- language = en
-- priority = 1
-- rdnis = unknown
-- request = agiastar.agi
-- type = SIP
-- uniqueid = 1128326395.12
SIP/200-738f more:200
getNumber: 9110 ZAP 1128326395.12
getNumber: 9110 ZAP 1128326395.12
accountcode: 200
database: 192.168.0.1:5060:1800:200:sip:200@192.168.0.1:5060
USERAGENT: X-Lite release 1105d
Balance: 0.00 1 getCost: 10.63 17.25 30
Warning: NO CREDIT
DEBUG:

what is the Problem, how can i add
Balance for this accountcode.

i think the Problem in asvaccount2 table
it have no data and i can not add data in
this table.

Thanks

Add Balance for Accountcode

By london3 on Mon, 2005-10-03 08:51

There are two ways to add Balance for the Accountcode.

Sorry The web interface for payments was left out in AstBill 0.9.0.2

It will be included in AstBill 0.9.0.3 to be released in a few days.

update the field astaccount.creditlimit in MySQL with correct amount.
You can do this in MySQL or phpMyAdmin.
start
bin/mysql -p
use astbill
update astaccount set creditlimit = 50 where accountcode = '200';

This is used if you want to give a credit limit to an account.

If you want to process a payment. This is done with the following SQL
bin/mysql -p
use astbill
INSERT INTO astpayment (accountcode, paytype, paidamount, date_created) VALUES ('200', 'PayPal', 50,Now());

ARE --

» login or register to post comments
  
BerliOS Developer LogoSourceForge.net Logo Drupal.org Logo