[Freeswitch-svn] [commit] r10918 - in freeswitch/trunk/conf: dialplan directory

FreeSWITCH SVN brian at freeswitch.org
Tue Dec 23 09:45:48 PST 2008


Author: brian
Date: Tue Dec 23 12:45:47 2008
New Revision: 10918

Log:
group examples

Modified:
   freeswitch/trunk/conf/dialplan/default.xml
   freeswitch/trunk/conf/directory/default.xml

Modified: freeswitch/trunk/conf/dialplan/default.xml
==============================================================================
--- freeswitch/trunk/conf/dialplan/default.xml	(original)
+++ freeswitch/trunk/conf/dialplan/default.xml	Tue Dec 23 12:45:47 2008
@@ -240,6 +240,24 @@
       </condition>
     </extension>
 
+    <extension name="group_dial_sales">
+      <condition field="destination_number" expression="^2000$">
+	<action application="bridge" data="group/sales@${domain_name}"/>
+      </condition>
+    </extension>
+
+    <extension name="group_dial_support">
+      <condition field="destination_number" expression="^2001$">
+	<action application="bridge" data="group/support@${domain_name}"/>
+      </condition>
+    </extension>
+
+    <extension name="group_dial_billing">
+      <condition field="destination_number" expression="^2002$">
+	<action application="bridge" data="group/billing@${domain_name}"/>
+      </condition>
+    </extension>
+
     <!-- voicemail operator extension -->
     <extension name="operator">
       <condition field="destination_number" expression="^operator$|^0$">

Modified: freeswitch/trunk/conf/directory/default.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default.xml	(original)
+++ freeswitch/trunk/conf/directory/default.xml	Tue Dec 23 12:45:47 2008
@@ -31,7 +31,43 @@
       <variable name="transfer_fallback_extension" value="operator"/>
     </variables>
 
-    <X-PRE-PROCESS cmd="include" data="default/*.xml"/>
+    <groups>
+      <group name="default">
+	<users>
+	  <X-PRE-PROCESS cmd="include" data="default/*.xml"/>
+	</users>
+      </group>
+
+      <group name="sales">
+	<users>
+	  <user id="1000" type="pointer"/>
+	  <user id="1001" type="pointer"/>
+	  <user id="1002" type="pointer"/>
+	  <user id="1003" type="pointer"/>
+	  <user id="1004" type="pointer"/>
+	</users>
+      </group>
+
+      <group name="billing">
+	<users>
+	  <user id="1005" type="pointer"/>
+	  <user id="1006" type="pointer"/>
+	  <user id="1007" type="pointer"/>
+	  <user id="1008" type="pointer"/>
+	  <user id="1009" type="pointer"/>
+	</users>
+      </group>
+
+      <group name="support">
+	<users>
+	  <user id="1010" type="pointer"/>
+	  <user id="1011" type="pointer"/>
+	  <user id="1012" type="pointer"/>
+	  <user id="1013" type="pointer"/>
+	  <user id="1014" type="pointer"/>
+	</users>
+      </group>
+    </groups>
 
   </domain>
 </include>



More information about the Freeswitch-svn mailing list