]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
group intercept by sekil
authorBrian West <brian@freeswitch.org>
Fri, 3 Oct 2008 23:03:39 +0000 (23:03 +0000)
committerBrian West <brian@freeswitch.org>
Fri, 3 Oct 2008 23:03:39 +0000 (23:03 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9818 d0543943-73ff-0310-b7d9-9358b9ac24b2

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

index 070e54d404d00c160d8ecdcbb1a662fce050d349..3507b978e057ffc0cfcbde2dfb9ef69d4c1fc858 100644 (file)
@@ -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)}"/>
       </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"/>
        <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}"/>-->
index a415a80b977ab91eeec33f178cb1f8c8e777e66c..a8fee30baedc11d752cd08fb72b229bb3c9aba66 100644 (file)
@@ -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>
index 701789627da68bceaa76d0245c83eefe412284fb..dc81d8f7e3e1ec97fb853ab6e165f2a302cce847 100644 (file)
@@ -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>
index a6ec3fd0b8e04598816c49b5eb2139ecb9d7d62e..e64bfec5517ecd04b747ebb0278b4df70e88394f 100644 (file)
@@ -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>
index 7630b098380eab536ad134df9e48330515a17b65..fb482c8a43f88ee59f4655fa10291f0fb5719fb0 100644 (file)
@@ -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>
index 49f4198ddf7b58ff52803972abed129990e10690..1fe9e1d572be43c09955783bea60cbe6b5fbf958 100644 (file)
@@ -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>
index 909f1fa39494471fbb0af7e6de7cc27c0a995844..172c4ee80eef37f8d3045b4f087edaecc6314d7c 100644 (file)
@@ -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>
index f8eb5ec4e4c34a3d3da4d09ae3c7b953f5d6e3cc..7eedaf4db7c167e0d5c3ec56927d49be0fe972c1 100644 (file)
@@ -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>
index 143506157a8e2614d4a00c74b01adac12a2b3513..84ec70b53c1150a72a6ca8ffd9aa37aac12fce1d 100644 (file)
@@ -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>
index ee030bb4f9889f84b8f37596e86c9501eff9d369..69b9cf27063b28d2f74d1d671573d0fa3609ddc4 100644 (file)
@@ -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>
index e61177bead4a2d82b3d3a93b28a18ed72587fe6b..70efbb3b6d34f8f8b29ead37961270756a4c812a 100644 (file)
@@ -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>
index 52fd922104853450faefd2233cbbc2fe2b214003..053ba8e003f18d45c579927fbe8cecf1606ac71e 100644 (file)
@@ -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>
index 0d37c7b188294e3a3f4c9166761f4d7eedf984d9..5aff568deadd5e2f8908c8a0ba29f064f22ad287 100644 (file)
@@ -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>
index 5217ccb2583c1ab46a70b967a5500773a9e11063..d0f8c44795a38fc451f4b26159a62af6550ffb8e 100644 (file)
@@ -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>
index 257b1c8b0e68191d3acd700152ae6e7756d674c4..2fe130117ad33ea21cf69209e53e737f9a90050d 100644 (file)
@@ -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>
index fe40f411aca28318b9ec41440c41eb63eddffc81..20995e982030be1224b78153acf83e8e226f133c 100644 (file)
@@ -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>
index 9f1aea81d4d19fe73a069399e4076b2057c312a8..f13d5679dd186dd567f92735ad7f211dff4792d0 100644 (file)
@@ -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>
index ef1e8b113ada25c5c8e17adafbcad6ba4d996075..8b0dbb3c9c07f13e91d814df15df28266c69662f 100644 (file)
@@ -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>
index fba7d318d778e109a6fd0d803bdd3c69dc32eae0..f9d8059b320ca4137a3ac3dd7671c4a3243c6d95 100644 (file)
@@ -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>
index 362843351b69b6538c3c5d3f81799ca7a1be035d..e617579e923150310f7baf982f7c00f0aadc0d3f 100644 (file)
@@ -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>
index 09be69d9b9c356845f30ab7f257bc868c359c048..fff7a9251196405414f21ef17dff7519e94cd1dd 100644 (file)
@@ -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>