conf: add config files to module directories

The idea here is that the config files in the module directories will
serve as the canonical documentation of all module configuration
options.
This commit is contained in:
Ken Rice authored and Travis Cross committed 2012-03-24 04:51:08 +00:00
1 parent f65140661c
commit cac6c262bb
83 files changed
+3108

No files matched your search

@@ -0,0 +1,50 @@
<configuration name="nibblebill.conf" description="Nibble Billing">
<settings>
<!-- See http://wiki.freeswitch.org/wiki/Mod_nibblebill for help with these options -->
<!-- Information for connecting to your database -->
<param name="db_username" value="bandwidth.com"/>
<param name="db_password" value="password"/>
<param name="db_dsn" value="bandwidth.com"/>
<!-- The database table where your CASH column is located -->
<param name="db_table" value="accounts"/>
<!-- The column name where we store the value of the account -->
<param name="db_column_cash" value="cash"/>
<!-- The column name for the unique ID identifying the account -->
<param name="db_column_account" value="id"/>
<!-- Custom SQL for loading current balance - overrides 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 - overrides 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"/>
<!-- By default, warn a caller when their balance is at $5.00. You can set this to a negative number. -->
<param name="lowbal_amt" value="5"/>
<param name="lowbal_action" value="play ding"/>
<!-- By default, terminate a caller when their balance hits $0.00. You can set this to a negative number. -->
<param name="nobal_amt" value="0"/>
<param name="nobal_action" value="hangup"/>
<!-- If a call goes beyond a certain dollar amount, flag or terminate it -->
<param name="percall_max_amt" value="100"/>
<param name="percall_action" value="hangup"/>
</settings>
</configuration>
@@ -0,0 +1,27 @@
<include>
<extension name="tollfree800">
<condition field="destination_number" expression="^1{0,1}(800\d{7})$">
<action application="set" data="nibble_account=${accountcode}"/>
<action application="set" data="nibble_rate=0"/>
<action application="bridge" data="sofia/gateway/bandwidth.com/$1"/>
</condition>
</extension>
<extension name="special919rate">
<condition field="destination_number" expression="^1{0,1}(919\d{7})$">
<action application="set" data="nibble_account=${accountcode}"/>
<action application="set" data="nibble_rate=0.07"/>
<action application="bridge" data="sofia/gateway/bandwidth.com/$1"/>
</condition>
</extension>
<extension name="domestic">
<condition field="destination_number" expression="^(1{0,1}\d{10})$">
<action application="set" data="nibble_account=${accountcode}"/>
<action application="set" data="nibble_rate=0.05"/>
<action application="bridge" data="sofia/gateway/bandwidth.com/$1"/>
</condition>
</extension>
</include>