]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODAPP-409 - update default config with commented out examples
authorRupa Schomaker <rupa@rupa.com>
Tue, 23 Mar 2010 17:14:01 +0000 (17:14 +0000)
committerRupa Schomaker <rupa@rupa.com>
Tue, 23 Mar 2010 17:14:01 +0000 (17:14 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17082 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/autoload_configs/nibblebill.conf.xml

index b70af4b6f8ec1b530273e3373ddd563855780eca..aec6e76423eda6922c0cf0d1644e4befd56062ec 100644 (file)
     <!-- The column name for the unique ID identifying the account -->
     <param name="db_column_account" value="id"/>
 
+    <!-- Custom SQL for loading current balance - overides column names
+         channel vars are interpreted.
+         field nibble_balance is used for balance info
+
+    <param name="custom_sql_lookup" value="SELECT cash AS nibble_balance FROM accounts WHERE account_code='${nibble_account}'"/>
+    -->
+
+    <!-- Custom SQL for loading current balance - overides column names
+         channel vars are interpreted.
+         nibble_increment is the amount to update
+
+    <param name="custom_sql_save" value="UPDATE accounts SET cash=cash-${nibble_increment} WHERE account_code='${nibble_account}'"/>
+    -->
+
 
     <!-- Default heartbeat interval. Set to 'off' for no heartbeat (i.e. bill only at end of call) -->
     <param name="global_heartbeat" value="60"/>