Advertisement
Guest User

Untitled

a guest
Sep 19th, 2013
499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  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.  
  5. <!-- Information for connecting to your database -->
  6. <!--<param name="db_username" value="freeswitch"/>
  7. <param name="db_password" value="my_password"/>
  8. <param name="db_dsn" value="freeswitch"/>
  9. -->
  10. <!-- The database table where your CASH column is located -->
  11. <param name="db_table" value="accounts"/>
  12.  
  13. <!-- The column name where we store the value of the account -->
  14. <param name="db_column_cash" value="cash"/>
  15.  
  16. <!-- The column name for the unique ID identifying the account -->
  17. <param name="db_column_account" value="id"/>
  18.  
  19. <!-- Custom SQL for loading current balance - overrides column names
  20. channel vars are interpreted.
  21. field nibble_balance is used for balance info
  22. -->
  23. <param name="custom_sql_lookup" value="SELECT cash AS freeswitch FROM accounts WHERE account_code='${nibble_account}'"/>
  24. <!-- Custom SQL for loading current balance - overrides column names
  25. channel vars are interpreted.
  26. nibble_increment is the amount to update
  27. -->
  28. <param name="custom_sql_save" value="UPDATE accounts SET cash=cash-${nibble_increment} WHERE account_code='${nibble_account}'"/>
  29.  
  30.  
  31.  
  32. <!-- Default heartbeat interval. Set to 'off' for no heartbeat (i.e. bill only at end of call) -->
  33. <param name="global_heartbeat" value="60"/>
  34.  
  35. <!-- By default, warn a caller when their balance is at $5.00. You can set this to a negative number. -->
  36. <param name="lowbal_amt" value="5"/>
  37. <param name="lowbal_action" value="play ding"/>
  38.  
  39. <!-- By default, terminate a caller when their balance hits $0.00. You can set this to a negative number. -->
  40. <param name="nobal_amt" value="0"/>
  41. <param name="nobal_action" value="hangup"/>
  42.  
  43. <!-- If a call goes beyond a certain dollar amount, flag or terminate it -->
  44. <param name="percall_max_amt" value="100"/>
  45. <param name="percall_action" value="hangup"/>
  46.  
  47. </settings>
  48. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement