]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Add other_callers_in_conf phrase macro
authorMichael S Collins <msc@freeswitch.org>
Sat, 21 Jan 2012 00:23:08 +0000 (16:23 -0800)
committerMichael S Collins <msc@freeswitch.org>
Sat, 21 Jan 2012 00:23:08 +0000 (16:23 -0800)
conf/lang/en/ivr/sounds.xml

index 1e67062061d1d3cb5297239689b100e97862c49b..d2b3e4686a3e9a1d9bd026310f30be05f218860f 100644 (file)
@@ -1,33 +1,61 @@
 <include> <!--This line will be ignored it's here to validate the xml and is optional -->
-       <macro name="queue_position">
-               <input pattern="^(\d+)$">
-                       <match>
-                               <action function="play-file" data="ivr/ivr-you_are_number.wav"/>
-                               <action function="say" data="$1" method="pronounced" type="items"/>
-                               <action function="play-file" data="ivr/ivr-in_line.wav"/>
-                       </match>
-               </input>
-       </macro>
+    <macro name="queue_position">
+        <input pattern="^(\d+)$">
+            <match>
+                <action function="play-file" data="ivr/ivr-you_are_number.wav"/>
+                <action function="say" data="$1" method="pronounced" type="items"/>
+                <action function="play-file" data="ivr/ivr-in_line.wav"/>
+            </match>
+        </input>
+    </macro>
 
-       <macro name="has_called_conf">
-               <input pattern="^(\d+)$">
-                       <match>
-                               <action function="play-file" data="$1"/>
+    <macro name="has_called_conf">
+        <input pattern="^(\d+)$">
+            <match>
+                <action function="play-file" data="$1"/>
+                <action function="sleep" data="100"/>
+                <action function="play-file" data="conference/conf-has_joined.wav"/>
+            </match>
+        </input>
+    </macro>
+    
+    <macro name="has_left_conf">
+        <input pattern="^(\d+)$">
+            <match>
+                <action function="play-file" data="$1"/>
+                <action function="sleep" data="100"/>
+                <action function="play-file" data="conference/conf-has_left.wav"/>
+            </match>
+        </input>
+    </macro>
+    
+    <macro name="callers_in_conf">
+        <input pattern="^1$" break_on_match="true">
+            <match>
+                <action function="sleep" data="500"/>
+<!--                <action function="play-file" data="ivr/ivr-there_is.wav"/> -->
+                <action function="play-file" data="digits/1.wav"/>
+                <action function="sleep" data="100"/>
+                <action function="play-file" data="conference/conf-listener_in_conference.wav"/>
+            </match>
+        </input>
+        <input pattern="^(\d+)$">
+            <match>
+                <action function="sleep" data="500"/>
+                <action function="play-file" data="ivr/ivr-there_are.wav"/>
+                <action function="say" data="$1" method="pronounced" type="items"/>
                 <action function="sleep" data="100"/>
-                               <action function="play-file" data="conference/conf-has_joined.wav"/>
-                       </match>
-               </input>
-       </macro>
-       
-       <macro name="has_left_conf">
-               <input pattern="^(\d+)$">
-                       <match>
-                               <action function="play-file" data="$1"/>
+                <action function="play-file" data="conference/conf-members_in_conference.wav"/>
+            </match>
+            <nomatch>
+                <action function="sleep" data="500"/>
+                <action function="play-file" data="ivr/ivr-there_are.wav"/>
+                <action function="play-file" data="digits/0.wav"/>
                 <action function="sleep" data="100"/>
-                               <action function="play-file" data="conference/conf-has_left.wav"/>
-                       </match>
-               </input>
-       </macro>
+                <action function="play-file" data="conference/conf-members_in_conference.wav"/>
+            </nomatch>          
+        </input>
+    </macro>    
 
     <macro name="enter_dest_number">
       <input pattern="^(.*)$">