Skinny: add example dialplan and directory config

This commit is contained in:
Mathieu Parent 2010-05-18 14:47:36 +02:00
parent e66e9fa878
commit 1bfcc17e54
5 changed files with 47 additions and 0 deletions

View File

@ -268,6 +268,12 @@
</condition>
</extension>
<extension name="Local_Extension_Skinny">
<condition field="destination_number" expression="^(20[01][0-9])$">
<action application="bridge" data="skinny/internal/${destination_number}"/>
</condition>
</extension>
<extension name="group_dial_sales">
<condition field="destination_number" expression="^2000$">
<action application="bridge" data="${group_call(sales@${domain_name})}"/>

View File

@ -4,5 +4,10 @@
<action application="skinny-route"/>
</condition>
</extension>
<extension name="Local_Extension_Skinny">
<condition field="destination_number" expression="^(20[01][0-9])$">
<action application="skinny-route"/>
</condition>
</extension>
</include>

View File

@ -0,0 +1,34 @@
<include>
<user id="SEP001120AABBCC">
<params>
<!-- for devices requesting firmware via SCCP, like ATA186
<param name="skinny-firmware-version" value="ATA030101SCCP04"
-->
<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="2001" caller-name="Calling as 2001"/>
<button position="3" type="Line" label="Shared Line 10" value="2010" caller-name="Calling as 2010"/>
<!--
value is the directory number to call
-->
<button position="5" type="SpeedDial" label="Test" value="2011"/>
<!--
value is the URL
-->
<button position="6" type="ServiceUrl" label="Some URL" value="http://phone-xml.berbee.com/menu.xml"/>
</buttons>
</skinny>
</user>
</include>

View File

@ -76,6 +76,7 @@
/opt/freeswitch/conf/directory/default/brian.xml
/opt/freeswitch/conf/directory/default/default.xml
/opt/freeswitch/conf/directory/default/example.com.xml
/opt/freeswitch/conf/directory/default/skinny-example.xml
/opt/freeswitch/conf/directory/default.xml
/opt/freeswitch/conf/extensions.conf
/opt/freeswitch/conf/freeswitch.xml

View File

@ -83,6 +83,7 @@ opt/freeswitch/conf/directory/default/1019.xml
opt/freeswitch/conf/directory/default/brian.xml
opt/freeswitch/conf/directory/default/default.xml
opt/freeswitch/conf/directory/default/example.com.xml
opt/freeswitch/conf/directory/default/skinny-example.xml
opt/freeswitch/conf/directory/default.xml
opt/freeswitch/conf/extensions.conf
opt/freeswitch/conf/freeswitch.xml