mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 20:47:06 +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,6 @@
|
||||
<configuration name="skinny.conf" description="Skinny Endpoints">
|
||||
<profiles>
|
||||
<X-PRE-PROCESS cmd="include" data="../skinny_profiles/*.xml"/>
|
||||
</profiles>
|
||||
</configuration>
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
NOTICE:
|
||||
|
||||
This context is used for skinny to match dialed number
|
||||
|
||||
The special applications:
|
||||
- skinny-process tells skinny to process the call (route, set call forwarding, ...)
|
||||
- skinny-drop tells skinny to drop the call
|
||||
- skinny-wait tells skinny to wait 'data' seconds for more numbers before drop
|
||||
-->
|
||||
<!-- http://wiki.freeswitch.org/wiki/Mod_skinny -->
|
||||
<include>
|
||||
<context name="skinny-patterns">
|
||||
<!--
|
||||
Wait 10 seconds for another digit by default
|
||||
-->
|
||||
<extension name="Default">
|
||||
<condition>
|
||||
<action application="skinny-wait" data="10"/>
|
||||
</condition>
|
||||
</extension>
|
||||
|
||||
<!--
|
||||
You can place files in the skinny-patterns directory to get included.
|
||||
-->
|
||||
<X-PRE-PROCESS cmd="include" data="skinny-patterns/*.xml"/>
|
||||
|
||||
</context>
|
||||
</include>
|
||||
@@ -0,0 +1,8 @@
|
||||
<include>
|
||||
<extension name="Demo">
|
||||
<condition field="destination_number" expression="^(9[0-9]{3})$">
|
||||
<action application="skinny-process"/>
|
||||
</condition>
|
||||
</extension>
|
||||
</include>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<include>
|
||||
<extension name="Local_Extension">
|
||||
<condition field="destination_number" expression="^(10[01][0-9])$">
|
||||
<action application="skinny-process"/>
|
||||
</condition>
|
||||
</extension>
|
||||
<extension name="Local_Extension_Skinny">
|
||||
<condition field="destination_number" expression="^(11[01][0-9])$">
|
||||
<action application="skinny-process"/>
|
||||
</condition>
|
||||
</extension>
|
||||
</include>
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<include>
|
||||
<extension name="External">
|
||||
<condition field="destination_number" expression="^(0[0-9]{10,})$">
|
||||
<action application="skinny-process"/>
|
||||
</condition>
|
||||
</extension>
|
||||
</include>
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<include>
|
||||
<!-- drop long dialed number -->
|
||||
<extension name="Default_Drop">
|
||||
<condition field="destination_number" expression="^(.{14,})$">
|
||||
<action application="skinny-drop"/>
|
||||
</condition>
|
||||
</extension>
|
||||
</include>
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
<include>
|
||||
<user id="SEP001120AABBCC">
|
||||
<params>
|
||||
<!-- for devices requesting firmware via SCCP, like ATA186
|
||||
<param name="skinny-firmware-version" value="ATA030101SCCP04"
|
||||
<param name="skinny-soft-key-set-set" value="default"
|
||||
-->
|
||||
<param name="foo" value="bar"/>
|
||||
</params>
|
||||
<skinny>
|
||||
<buttons>
|
||||
<!--
|
||||
position: 1..
|
||||
type: one of line, speed-dial
|
||||
label: button label
|
||||
-->
|
||||
<!--
|
||||
value is the directory number (or user)
|
||||
caller-name is shown to the calling party during call
|
||||
-->
|
||||
<button position="1" type="Line" label="Line 1" value="1101" caller-name="Calling as 1101"/>
|
||||
<button position="3" type="Line" label="Shared Line 10" value="1110" caller-name="Calling as 1110"/>
|
||||
<!--
|
||||
value is the directory number to call
|
||||
-->
|
||||
<button position="5" type="SpeedDial" label="Call 1001" value="1001"/>
|
||||
<!--
|
||||
value is the URL
|
||||
-->
|
||||
<button position="6" type="ServiceUrl" label="Some URL" value="http://phone-xml.berbee.com/menu.xml"/>
|
||||
</buttons>
|
||||
</skinny>
|
||||
</user>
|
||||
</include>
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
<profile name="internal">
|
||||
<settings>
|
||||
<param name="domain" value="$${domain}"/>
|
||||
<param name="ip" value="$${local_ip_v4}"/>
|
||||
<param name="port" value="2000"/>
|
||||
<param name="patterns-dialplan" value="XML"/>
|
||||
<param name="patterns-context" value="skinny-patterns"/>
|
||||
<param name="dialplan" value="XML"/>
|
||||
<param name="context" value="default"/>
|
||||
<param name="keep-alive" value="60"/>
|
||||
<param name="date-format" value="D/M/Y"/>
|
||||
<param name="odbc-dsn" value=""/>
|
||||
<param name="debug" value="4"/>
|
||||
<param name="auto-restart" value="true"/>
|
||||
</settings>
|
||||
<soft-key-set-sets>
|
||||
<soft-key-set-set name="default">
|
||||
<soft-key-set name="KeySetOnHook" value="SoftkeyNewcall,SoftkeyRedial"/>
|
||||
<soft-key-set name="KeySetConnected" value="SoftkeyEndcall,SoftkeyHold,SoftkeyNewcall,SoftkeyTransfer"/>
|
||||
<soft-key-set name="KeySetOnHold" value="SoftkeyNewcall,SoftkeyResume,SoftkeyEndcall"/>
|
||||
<soft-key-set name="KeySetRingIn" value="SoftkeyAnswer,SoftkeyEndcall,SoftkeyNewcall"/>
|
||||
<soft-key-set name="KeySetOffHook" value=",SoftkeyRedial,SoftkeyEndcall"/>
|
||||
<soft-key-set name="KeySetConnectedWithTransfer" value="SoftkeyEndcall,SoftkeyHold,SoftkeyNewcall,SoftkeyTransfer"/>
|
||||
<soft-key-set name="KeySetDigitsAfterDialingFirstDigit" value="SoftkeyBackspace,,SoftkeyEndcall"/>
|
||||
<!-- <soft-key-set name="KeySetConnectedWithConference" value=""/> -->
|
||||
<soft-key-set name="KeySetRingOut" value=",,SoftkeyEndcall,SoftkeyTransfer"/>
|
||||
<soft-key-set name="KeySetOffHookWithFeatures" value=",SoftkeyRedial,SoftkeyEndcall"/>
|
||||
<soft-key-set name="KeySetInUseHint" value="SoftkeyNewcall,SoftkeyRedial"/>
|
||||
</soft-key-set-set>
|
||||
</soft-key-set-sets>
|
||||
<device-types>
|
||||
<device-type id="Cisco ATA 186">
|
||||
<param name="firmware-version" value="ATA030101SCCP04"/>
|
||||
</device-type>
|
||||
</device-types>
|
||||
</profile>
|
||||
|
||||
Reference in new issue
Block a user