]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add this neat little thing
authorBrian West <brian@freeswitch.org>
Tue, 18 Dec 2007 23:12:46 +0000 (23:12 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 18 Dec 2007 23:12:46 +0000 (23:12 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6888 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/dialplan/default.xml

index dcebade5e80b6819ef9d4fd0e92509e793ec3919..c770d335e85d2d401c83bee78e8446d64edc770c 100644 (file)
     
     
     <!-- 
-        Parking extensions... transferring calls to 5900 will park them in a 
-        queue. dialing 5901 will let you pull them out of the queue.
+        Parking extensions... transferring calls to 5900-5909 will park them in a queue.
     -->
     <extension name="park">
-      <condition field="destination_number" expression="^5900$">
-       <action application="fifo" data="default in undef $${moh_uri}"/>
+      <condition field="destination_number" expression="^(590[0-9])$">
+       <action application="fifo" data="$1@$${domain} in undef $${moh_uri}"/>
       </condition>
     </extension>
-    
+    <!-- 
+        The grandstream phone will subscribe to park+number and call **park+number to pickup.
+    -->
     <extension name="unpark">
-      <condition field="destination_number" expression="^5901$">
+      <condition field="destination_number" expression="^\*{0,2}park\+(590[0-9])$">
        <action application="answer"/>
-       <action application="fifo" data="default out nowait"/>
+       <action application="fifo" data="$1@$${domain} out nowait"/>
       </condition>
     </extension>