]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7648 test config for FS-7687
authorBrian West <brian@freeswitch.org>
Tue, 23 Jun 2015 13:10:34 +0000 (08:10 -0500)
committerBrian West <brian@freeswitch.org>
Tue, 23 Jun 2015 14:20:58 +0000 (09:20 -0500)
conf/testing/dialplan/default/0020_record_on_answer_video.xml [new file with mode: 0644]

diff --git a/conf/testing/dialplan/default/0020_record_on_answer_video.xml b/conf/testing/dialplan/default/0020_record_on_answer_video.xml
new file mode 100644 (file)
index 0000000..e967021
--- /dev/null
@@ -0,0 +1,13 @@
+<extension name="from-centos">
+  <condition field="destination_number" expression="^(6080)$">
+    <action application="export" data="nolocal:absolute_codec_string=OPUS,VP8"/>
+    <action application="set" data="hangup_after_bridge=true"/>
+    <action application="set" data="record_concat_video=true"/>
+    <!--
+       DO NOT EXPORT execute_on_answer in this case.
+       It will cause both sessions to record to the exact same file.
+    -->
+    <action application="set" data="execute_on_answer=record_session /var/www/html/rec/${strftime(%Y%m%d_%H%M%S)}_${destination_number}.mp4"/>
+    <action application="bridge" data="sofia/external/sip:decode@cantina.freeswitch.org"/>
+  </condition>
+</extension>