2
0

nibblebill.conf.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <configuration name="nibblebill.conf" description="Nibble Billing">
  2. <settings>
  3. <!-- See http://wiki.freeswitch.org/wiki/Mod_nibblebill for help with these options -->
  4. <!-- Information for connecting to your database -->
  5. <param name="odbc-dsn" value="bandwidth.com"/>
  6. <!-- The database table where your CASH column is located -->
  7. <param name="db_table" value="accounts"/>
  8. <!-- The column name where we store the value of the account -->
  9. <param name="db_column_cash" value="cash"/>
  10. <!-- The column name for the unique ID identifying the account -->
  11. <param name="db_column_account" value="id"/>
  12. <!-- Custom SQL for loading current balance - overrides column names
  13. channel vars are interpreted.
  14. field nibble_balance is used for balance info
  15. <param name="custom_sql_lookup" value="SELECT cash AS nibble_balance FROM accounts WHERE account_code='${nibble_account}'"/>
  16. -->
  17. <!-- Custom SQL for loading current balance - overrides column names
  18. channel vars are interpreted.
  19. nibble_increment is the amount to update
  20. <param name="custom_sql_save" value="UPDATE accounts SET cash=cash-${nibble_increment} WHERE account_code='${nibble_account}'"/>
  21. -->
  22. <!-- Default heartbeat interval. Set to 'off' for no heartbeat (i.e. bill only at end of call) -->
  23. <param name="global_heartbeat" value="60"/>
  24. <!-- By default, warn a caller when their balance is at $5.00. You can set this to a negative number. -->
  25. <param name="lowbal_amt" value="5"/>
  26. <param name="lowbal_action" value="play ding"/>
  27. <!-- By default, terminate a caller when their balance hits $0.00. You can set this to a negative number. -->
  28. <param name="nobal_amt" value="0"/>
  29. <param name="nobal_action" value="hangup"/>
  30. <!-- If a call goes beyond a certain dollar amount, flag or terminate it -->
  31. <param name="percall_max_amt" value="100"/>
  32. <param name="percall_action" value="hangup"/>
  33. </settings>
  34. </configuration>