<div dir="ltr">maybe you have a SPACE in your file name?<div><br></div><div>try replace the file name with /tmp/test.mp4  and see if it works.</div><div><br></div><div>Also, don&#39;t send to me directly as it&#39;s very hard to REPLY to the list.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 21, 2015 at 6:05 PM, Ankitt Sharma <span dir="ltr">&lt;<a href="mailto:akkishrm0825@gmail.com" target="_blank">akkishrm0825@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hey seven,<br>We are using freeswitch as media server in integration with kamailio. So  <br>the purpose of using freeswitch is to record the two-way video calls between the legs<br><br>so without any recording freeswich application or API being used my video and audio is working just perfect (running on default media handling mode i.e. proxy_media &amp; bypass media not used), late-negotiation is disabled, zrtp-passthru is set to false and disable-transcoding is set to true <br><br>after exploring all over web over my recording concern i got to know about the following APP/APIs:<br>record, record_session, record_fsv, record_mp4, uuid_record (however i want to record in .mp4 format)<br><br>so following the very first step I looked for &quot;video-media-bug&quot; branch and got to know it is merged in freeSWITCH 1.6 master, so used the 1.6 master , and now the vide-media-bug branch is contained within my current repo<br><br>now using all above mentioned applications i&#39;am not getting my recording done, here i&#39;am sharing what&#39;s happening with uuid_record being used as<br><br>my kbridge dialplan is:<br>   &lt;extension name=&quot;kbridge&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^kb-(.+)$&quot;&gt;<br>          &lt;action application=&quot;set&quot; data=&quot;proxy_media=false&quot;/&gt;<br>          &lt;action application=&quot;set&quot; data=&quot;call_timeout=30&quot;/&gt;<br>          &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<br>          &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br>          &lt;action application=&quot;set&quot; data=&quot;sip_invite_domain=192.168.5.99&quot;/&gt;<br>          &lt;action application=&quot;set&quot; data=&quot;voicemail_authorized=${sip_authorized}&quot;/&gt;<br>          &lt;action application=&quot;export&quot; data=&quot;sip_contact_user=ufs&quot;/&gt;<br>    <br>        &lt;action application=&quot;export&quot; data=&quot;api_args=${uuid_setvar ${uuid} enable_file_write_buffering=false&quot;/&gt;<br>        &lt;action application=&quot;export&quot; data=&quot;api_result=${uuid_record ${uuid} start /usr/local/freeswitch/recordings/${strftime(%Y-%m-%d-%H-%M-%S)}_$1_${caller_id_number}_${destination_number}.mp4}&quot;/&gt;<br>          &lt;action application=&quot;bridge&quot; data=&quot;sofia/$${domain}/$<a href="mailto:1@192.168.5.99" target="_blank">1@192.168.5.99</a>&quot;/&gt;<br>          &lt;action application=&quot;answer&quot;/&gt;<br>          &lt;action application=&quot;voicemail&quot; data=&quot;check auth $${voicemail_profile} default $${domain} $1&quot;/&gt;<br>      &lt;/condition&gt;<br>    &lt;/extension&gt;<br><br><br>and the fs_cli log says:<br>2015-08-21 13:19:50.980274 [NOTICE] switch_channel.c:1089 New Channel sofia/internal/<a href="mailto:102@192.168.5.99" target="_blank">102@192.168.5.99</a> [c1d25c8d-4e6e-458c-abe0-c40b89bc3d68]<br>2015-08-21 13:19:50.990233 [INFO] mod_dialplan_xml.c:637 Processing 102 &lt;102&gt;-&gt;kb-101 in context public<br>2015-08-21 13:19:50.990233 [NOTICE] switch_ivr.c:1877 Transfer sofia/internal/<a href="mailto:102@192.168.5.99" target="_blank">102@192.168.5.99</a> to XML[kb-101@default]<br>2015-08-21 13:19:50.990233 [INFO] mod_dialplan_xml.c:637 Processing 102 &lt;102&gt;-&gt;kb-101 in context default<br>2015-08-21 13:19:51.000223 [INFO] switch_ivr_async.c:2339 Sending early media<br>2015-08-21 13:19:51.000223 [INFO] switch_core_media.c:6543 Activating VIDEO RTCP PORT 5244 interval 2000 mux 1<br>2015-08-21 13:19:51.000223 [NOTICE] mod_sofia.c:2296 Pre-Answer sofia/internal/<a href="mailto:102@192.168.5.99" target="_blank">102@192.168.5.99</a>!<br>2015-08-21 13:19:51.010223 [INFO] mod_native_file.c:101 Opening File [/usr/local/freeswitch/recordings/2015-08-21-13-19-51-in.G722] 16000hz<br>2015-08-21 13:19:51.010223 [INFO] mod_native_file.c:101 Opening File [/usr/local/freeswitch/recordings/2015-08-21-13-19-51-out.G722] 16000hz<br>2015-08-21 13:19:51.010223 [NOTICE] switch_channel.c:1089 New Channel sofia/internal/<a href="mailto:101@192.168.5.99" target="_blank">101@192.168.5.99</a> [5127cf3a-c7ec-4038-a033-f287b2999a79]<br>2015-08-21 13:19:51.220289 [NOTICE] sofia.c:6817 Ring-Ready sofia/internal/<a href="mailto:101@192.168.5.99" target="_blank">101@192.168.5.99</a>!<br>2015-08-21 13:19:55.240230 [INFO] switch_core_media.c:6543 Activating VIDEO RTCP PORT 0 interval 2000 mux 0<br>2015-08-21 13:19:55.240230 [NOTICE] sofia.c:7576 Channel [sofia/internal/<a href="mailto:101@192.168.5.99" target="_blank">101@192.168.5.99</a>] has been answered<br>2015-08-21 13:19:55.240230 [NOTICE] switch_ivr_originate.c:3526 Channel [sofia/internal/<a href="mailto:102@192.168.5.99" target="_blank">102@192.168.5.99</a>] has been answered<br>2015-08-21 13:20:04.180275 [NOTICE] sofia.c:952 Hangup sofia/internal/<a href="mailto:102@192.168.5.99" target="_blank">102@192.168.5.99</a> [CS_EXECUTE] [NORMAL_CLEARING]<br>2015-08-21 13:20:04.290279 [NOTICE] switch_ivr_bridge.c:874 Hangup sofia/internal/<a href="mailto:101@192.168.5.99" target="_blank">101@192.168.5.99</a> [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]<br>2015-08-21 13:20:04.290279 [NOTICE] switch_core_session.c:1657 Session 29 (sofia/internal/<a href="mailto:101@192.168.5.99" target="_blank">101@192.168.5.99</a>) Ended<br>2015-08-21 13:20:04.290279 [NOTICE] switch_core_session.c:1661 Close Channel sofia/internal/<a href="mailto:101@192.168.5.99" target="_blank">101@192.168.5.99</a> [CS_DESTROY]<br>2015-08-21 13:20:04.300232 [NOTICE] switch_core_session.c:1657 Session 28 (sofia/internal/<a href="mailto:102@192.168.5.99" target="_blank">102@192.168.5.99</a>) Ended<br>2015-08-21 13:20:04.300232 [NOTICE] switch_core_session.c:1661 Close Channel sofia/internal/<a href="mailto:102@192.168.5.99" target="_blank">102@192.168.5.99</a> [CS_DESTROY]<br><br><br>now in the recordings directory i got 2 files(can be seen in the log ) the files hav the extension .G722, which is not supposed to be the required output <br><br>since uuid_record is an API I tried using uuid_record in console <br>so started the call (after commenting the record api in dialplan) and it gave me this error:<br>-ERR Cannot locate session! <br><br><br>so help me out over this concern <br>thanks in advance :)<br>Ankit <br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">About: <a href="http://about.me/dujinfang" target="_blank">http://about.me/dujinfang</a><br>Blog: <a href="http://www.dujinfang.com" target="_blank">http://www.dujinfang.com</a><br>Proj:  <a href="http://www.freeswitch.org.cn" target="_blank">http://www.freeswitch.org.cn</a></div>
</div>