mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 07:04:17 +00:00
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:
1 parent
f65140661c
commit
cac6c262bb
83 files changed
+3108
No files matched your search
@@ -0,0 +1,28 @@
|
||||
<configuration name="easyroute.conf" description="EasyRoute Module">
|
||||
<settings>
|
||||
<!-- These are kind Obvious -->
|
||||
<param name="db-username" value="root"/>
|
||||
<param name="db-password" value="password"/>
|
||||
<param name="db-dsn" value="easyroute"/>
|
||||
|
||||
<!-- Default Technology and profile -->
|
||||
<param name="default-techprofile" value="sofia/default"/>
|
||||
|
||||
<!-- IP or Hostname of Default Route -->
|
||||
<param name="default-gateway" value="192.168.66.6"/>
|
||||
|
||||
<!-- Number of times to retry ODBC connection on connection problems, default is 120 -->
|
||||
<param name="odbc-retries" value="120"/>
|
||||
|
||||
<!-- Customer Query. Use this with Care!!! We are not responsible if you mess
|
||||
This up!!! Query *MUST* return columns in the following order!
|
||||
gateway varchar(128) - contains destination gateway host:port pair (ex: 192.168.1.1:5060 )
|
||||
group varchar(128) - contains optional group name
|
||||
call_limit varchar(16) - contains optional call limit
|
||||
tech_prefix varchar(128) - tech prefix used to build dial string (ex: sofia/default )
|
||||
acctcode varchar(128) - used to set channel variable acctcode for logging into the CDRs
|
||||
destination_number varchar(16) - Number returning for the query for building the dial string. (ex: 18005551212)
|
||||
See Documentation on the Wiki for further information -->
|
||||
<!-- <param name="custom-query" value="call FS_GET_SIP_LOCATION(%s);"/> -->
|
||||
</settings>
|
||||
</configuration>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<include>
|
||||
<!-- This example will test the limit value for the DID number being checked -->
|
||||
<!-- If over limit, send 503 -->
|
||||
<extension name="easyroute">
|
||||
<condition field="destination_number" expression="^1?(\d{10})$" break="on-true">
|
||||
<action application="easyroute" data="$1"/>
|
||||
<action application="limit" data="db easyroute ${easy_group} ${easy_limit} LE-$1"/>
|
||||
<action application="bridge" data="${easy_dialstring}"/>
|
||||
</condition>
|
||||
</extension>
|
||||
|
||||
<extension name="easyroute_limit_exceeded">
|
||||
<condition field="destination_number" expression="^LE-(\d{10})$" break="on-true">
|
||||
<action application="respond" data="503 Buzz Off You Ran Out of Channels"/>
|
||||
</condition>
|
||||
</extension>
|
||||
|
||||
<!-- Simple example - just grab the dialstring and send the call -->
|
||||
<extension name="easyroute">
|
||||
<condition field="destination_number" expression="^1?(\d{10})$" break="on-true">
|
||||
<action application="set" data="dialstring={easyroute($1 dialstring)"/>
|
||||
<action application="bridge" data="${easy_dialstring}"/>
|
||||
</condition>
|
||||
</extension>
|
||||
|
||||
<include>
|
||||
Reference in new issue
Block a user