]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Skinny: add example dialplan and directory config
authorMathieu Parent <math.parent@gmail.com>
Tue, 18 May 2010 12:47:36 +0000 (14:47 +0200)
committerMathieu Parent <math.parent@gmail.com>
Tue, 18 May 2010 12:47:36 +0000 (14:47 +0200)
conf/dialplan/default.xml
conf/dialplan/skinny-patterns/20-Local_extension.xml
conf/directory/default/skinny-example.xml [new file with mode: 0644]
debian/freeswitch.conffiles
debian/freeswitch.install

index 00896b6d0cd381b67964a43ed50fd7589a4bf004..d3530ea3aae7fe0da1db0352dbeb9cc7ba8d3c2a 100644 (file)
       </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})}"/>
index 488d74079039b7d591d0738d51f16bf5b05d819b..7e8c51859bcf15735f2c59c23dac69dd2ddd3595 100644 (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>
 
diff --git a/conf/directory/default/skinny-example.xml b/conf/directory/default/skinny-example.xml
new file mode 100644 (file)
index 0000000..f997259
--- /dev/null
@@ -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>
+
index a9cd17804b4050ea54fa750e2b42f4e00fbad55a..071ecf8dd51e8638e8129acc3d70c73cd07951ac 100644 (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
index 820039c806a088639ffcfda69218b7a37b9b0d95..b780187453a28d243651e7545f1395182835fe5f 100644 (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