CONSTANTS

CONSTANTS

There are three new functions which return accounting information. Each function will return a value based on a parameter passed to it. Several constants have been added to make accessing these values easier. The following list details these consts and what they are used for.
for use with PCBACCOUNT() only!

valconstAssociated value
0NEWBALANCECredits Given to a new user account
1CHRG_CALLCredits charged for a call
2CHRG_TIMECredits charged for time used (in minutes)
3CHRG_PEAKTIMECredits charged for peak time used
4CHRG_CHATCredits charged for chat session
5CHRG_MSGREADCredits charged for reading a message
6CHRG_MSGCAPCredits charged for capturing a message
7CHRG_MSGWRITECredits charged for writing a message
8CHRG_MSGECHOEDCredits charged for writing an echoed message
9CHRG_MSGPRIVATECredits charged for writing a private message
10CHRG_DOWNFILECredits charged for downloading a file
11CHRG_DOWNBYTESCredits charged for downloading bytes
12PAY_UPFILECredits given for uploading a file
13PAY_UPBYTESCredits given for uploading bytes
14WARN_LEVELCredit threshold for low credit warning

The following are for use with PCBACCSTAT() only!

valconstantAssociated value
0ACC_STATReturns status of the “Enable Accounting”
switch in the PWRD file.
0=Accounting disabled (N),
1=Tracking (T), and 2=Enabled (Y).
1ACC_TIMEThe amount of ADDITIONAL units to charge
per minute while in the current
conference.
2ACC_MSGRThe amount to charge in ADDITION for each
message read in the current conference.
3ACC_MSGWThe amount to charge in ADDITION for each
message entered in the current conference.

The following are for use with ACCOUNT(), ACCOUNT and RECORDUSAGE only!

valconstantdescription
0START_BALUsers starting balance.
1START_SESSIONUsers starting balance for this session
2DEB_CALLDebit for this call
3DEB_TIMEDebit for time on
4DEB_MSGREADDebit for reading message
5DEB_MSGCAPDebit for capturing a message
6DEB_MSGWRITEDebit for writing a message
7DEB_MSGECHOEDDebit for echoed message
8DEB_MSGPRIVATEDebit for writing private message
9DEB_DOWNFILEDebit for downloading a file
10DEB_DOWNBYTESDebit for downloading bytes
11DEB_CHATDebit for chat
12DEB_TPUDebit for TPU
13DEB_SPECIALDebit special
14CRED_UPFILECredit for uploading a file
15CRED_UPBYTESCredit for uploading bytes
16CRED_SPECIALCredit special
17SEC_DROPSecurity level to drop to at 0 credits

This group of constants can be used to access or modify user account information using the ACCOUNT() function, ACCOUNT statement and/or RECORDUSAGE. The ACCOUNT() function returns the current value and the ACCOUNT statement is used to modify a value. Record usage also modifies a value with more information stored in a usage file.


See also: Account, RecordUsage