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

Freeswitch SVN brian at freeswitch.org
Fri Oct 3 19:03:40 EDT 2008


Author: brian
Date: Fri Oct  3 19:03:39 2008
New Revision: 9818

Modified:
   freeswitch/trunk/conf/dialplan/default.xml
   freeswitch/trunk/conf/directory/default/1000.xml
   freeswitch/trunk/conf/directory/default/1001.xml
   freeswitch/trunk/conf/directory/default/1002.xml
   freeswitch/trunk/conf/directory/default/1003.xml
   freeswitch/trunk/conf/directory/default/1004.xml
   freeswitch/trunk/conf/directory/default/1005.xml
   freeswitch/trunk/conf/directory/default/1006.xml
   freeswitch/trunk/conf/directory/default/1007.xml
   freeswitch/trunk/conf/directory/default/1008.xml
   freeswitch/trunk/conf/directory/default/1009.xml
   freeswitch/trunk/conf/directory/default/1010.xml
   freeswitch/trunk/conf/directory/default/1011.xml
   freeswitch/trunk/conf/directory/default/1012.xml
   freeswitch/trunk/conf/directory/default/1013.xml
   freeswitch/trunk/conf/directory/default/1014.xml
   freeswitch/trunk/conf/directory/default/1015.xml
   freeswitch/trunk/conf/directory/default/1016.xml
   freeswitch/trunk/conf/directory/default/1017.xml
   freeswitch/trunk/conf/directory/default/1018.xml
   freeswitch/trunk/conf/directory/default/1019.xml

Log:
group intercept by sekil

Modified: freeswitch/trunk/conf/dialplan/default.xml
==============================================================================
--- freeswitch/trunk/conf/dialplan/default.xml	(original)
+++ freeswitch/trunk/conf/dialplan/default.xml	Fri Oct  3 19:03:39 2008
@@ -44,7 +44,7 @@
       </condition>
     </extension>
 
-    <extension name="intercept">
+    <extension name="global-intercept">
       <condition field="destination_number" expression="^886$">
 	<action application="answer"/>
 	<action application="intercept" data="${db(select/${domain_name}-last_dial/global)}"/>
@@ -52,6 +52,14 @@
       </condition>
     </extension>
 
+    <extension name="group-intercept">
+      <condition field="destination_number" expression="^\*8$">
+	<action application="answer"/>
+	<action application="intercept" data="${db(select/${domain_name}-last_dial/${callgroup})}"/>
+	<action application="sleep" data="2000"/>
+      </condition>
+    </extension>
+
     <extension name="intercept-ext">
       <condition field="destination_number" expression="^\*\*(\d+)$">
 	<action application="answer"/>
@@ -215,6 +223,8 @@
 	<anti-action application="set" data="continue_on_fail=true"/>
 	<anti-action application="db" data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/>
 	<anti-action application="db" data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/>
+	<anti-action application="set" data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}"/>
+	<anti-action application="db" data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/>
 	<anti-action application="bridge" data="user/${dialed_extension}@${domain_name}"/>
 	<anti-action application="answer"/>
 	<!--<anti-action application="send_display" data="Voicemail for ${dialed_extension}"/>-->

Modified: freeswitch/trunk/conf/directory/default/1000.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1000.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1000.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1000"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1001.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1001.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1001.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1001"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1002.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1002.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1002.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1002"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1003.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1003.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1003.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1003"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1004.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1004.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1004.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1004"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1005.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1005.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1005.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1005"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1006.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1006.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1006.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1006"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1007.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1007.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1007.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1007"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1008.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1008.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1008.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1008"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1009.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1009.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1009.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1009"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1010.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1010.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1010.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1010"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1011.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1011.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1011.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1011"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1012.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1012.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1012.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1012"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1013.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1013.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1013.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1013"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1014.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1014.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1014.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1014"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1015.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1015.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1015.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1015"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1016.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1016.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1016.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1016"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1017.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1017.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1017.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1017"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1018.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1018.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1018.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1018"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>

Modified: freeswitch/trunk/conf/directory/default/1019.xml
==============================================================================
--- freeswitch/trunk/conf/directory/default/1019.xml	(original)
+++ freeswitch/trunk/conf/directory/default/1019.xml	Fri Oct  3 19:03:39 2008
@@ -12,6 +12,7 @@
       <variable name="effective_caller_id_number" value="1019"/>
       <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
       <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
+      <variable name="callgroup" value="techsupport"/>
     </variables>
   </user>
 </include>



More information about the Freeswitch-svn mailing list