]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tone stream example
authorBrian West <brian@freeswitch.org>
Wed, 2 Jan 2008 04:30:30 +0000 (04:30 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 2 Jan 2008 04:30:30 +0000 (04:30 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7056 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/dialplan/default.xml
conf/tetris.ttml [new file with mode: 0644]

index 591d2563c470363dda13ebe47cfb7aafe4f0310a..e1437f1918ac484259267e7bd075c485e313dc6c 100644 (file)
       </condition>
     </extension>
 
+    <extension name="tone_stream">
+      <condition field="destination_number" expression="^9998$">
+       <action application="answer"/>
+       <action application="playback" data="tone_stream://path=${base_dir}/conf/tetris.ttml;loops=10"/>
+      </condition>
+    </extension>
+
     <extension name="hold_music">
       <condition field="destination_number" expression="^9999$">
        <action application="answer"/>
diff --git a/conf/tetris.ttml b/conf/tetris.ttml
new file mode 100644 (file)
index 0000000..2e33a5d
--- /dev/null
@@ -0,0 +1,69 @@
+%(428,0,659,494)
+%(214,0,494,415)
+%(214,0,523,440)
+%(214,0,587,494)
+%(107,0,659,494)
+%(107,0,587,494)
+%(214,0,523,440)
+%(214,0,494,415)
+%(428,0,330,440)
+%(214,0,330,440)
+%(214,0,523,440)
+%(428,0,659,523)
+%(214,0,587,494)
+%(214,0,523,440)
+%(214,0,494,415)
+%(214,0,494,440)
+%(214,0,494,415)
+%(214,0,523,440)
+%(428,0,587,494)
+%(428,0,659,523)
+%(428,0,523,440)
+%(428,0,330,440)
+%(857,0,330,440)
+%(214,0,0,0)
+%(428,0,587,349)
+%(214,0,698,440)
+%(214,0,880,523)
+%(107,0,880,523)
+%(107,0,880,523)
+%(214,0,784,494)
+%(214,0,698,440)
+%(642,0,659,392)
+%(214,0,523,330)
+%(214,0,659,392)
+%(107,0,659,440)
+%(107,0,659,392)
+%(214,0,587,349)
+%(214,0,523,330)
+%(214,0,494,415)
+%(214,0,494,330)
+%(214,0,494,415)
+%(214,0,523,440)
+%(214,0,587,494)
+%(214,0,587,415)
+%(214,0,659,523)
+%(214,0,659,415)
+%(214,0,523,440)
+%(214,0,523,330)
+%(428,0,440,330)
+%(428,0,440,330)
+%(428,0,0,0)
+%(857,0,330,262)
+%(857,0,262,220)
+%(857,0,294,247)
+%(857,0,247,208)
+%(857,0,262,220)
+%(857,0,220,165)
+%(857,0,208,165)
+%(428,0,247,208)
+%(428,0,0,0)
+%(857,0,330,262)
+%(857,0,262,220)
+%(857,0,294,247)
+%(857,0,208,165)
+%(428,0,262,220)
+%(428,0,330,262)
+%(857,0,440,330)
+%(857,0,415,294)
+%(857,0,0,0)