Credit

As of · 0 account(s) · undefined cannot place a call right now · node node-a

Accounts available = balance − reserved − credit_limit

Every account is a balance with a credit line. Credit is how far below zero the balance may go (credit_limit holds it as a negative number; none means the account stops at zero). Reserved is what is set aside for calls that are up but not yet billed — that is what stops a hundred simultaneous calls from each spending the same money. When available reaches zero, new calls get 402 and calls in progress are cut off by a timer set when they were answered.

No accounts.

Hourly spend cap

The only control that acts in real time, and the only thing that protects an account with a credit line from a stolen password. It counts money reserved, not money billed, so it bites while an attack is happening rather than minutes later when the calls are rated.

No account has an hourly spend cap.
A credit line is a month of exposure. A stolen account spends a month's credit in an afternoon, and this cap is the only control that acts in real time. Set customers.spend_cap_hour.

Refreshes every 20 seconds. On the command line: make credit-check, make credit-refused.