<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>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 & 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 "video-media-bug" 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'am not
getting my recording done, here i'am sharing what's happening with
uuid_record being used as<br><br>my kbridge dialplan is:<br> <extension name="kbridge"><br> <condition field="destination_number" expression="^kb-(.+)$"><br> <action application="set" data="proxy_media=false"/><br> <action application="set" data="call_timeout=30"/><br> <action application="set" data="continue_on_fail=true"/><br> <action application="set" data="hangup_after_bridge=<div dir="ltr"><wbr>true"/><br> <action application="set" data="sip_invite_domain=192.<wbr>168.5.99"/><br> <action application="set" data="voicemail_authorized=${<wbr>sip_authorized}"/><br> <action application="export" data="sip_contact_user=ufs"/><br> <br> <action application="export" data="api_args=${uuid_setvar ${uuid} enable_file_write_buffering=<wbr>false"/><br> <action application="export" data="api_result=${uuid_record ${uuid} start /usr/local/freeswitch/<wbr>recordings/${strftime(%Y-%m-%<wbr>d-%H-%M-%S)}_$1_${caller_id_<wbr>number}_${destination_number}.<wbr>mp4}"/><br> <action application="bridge" data="sofia/$${domain}/$<a href="mailto:1@192.168.5.99" target="_blank">1@192.<wbr>168.5.99</a>"/><br> <action application="answer"/><br> <action application="voicemail" data="check auth $${voicemail_profile} default $${domain} $1"/><br> </condition><br> </extension><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.<wbr>99</a> [c1d25c8d-4e6e-458c-abe0-<wbr>c40b89bc3d68]<br>2015-08-21 13:19:50.990233 [INFO] mod_dialplan_xml.c:637 Processing 102 <102>->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.<wbr>99</a> to XML[kb-101@default]<br>2015-08-21 13:19:50.990233 [INFO] mod_dialplan_xml.c:637 Processing 102 <102>->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.<wbr>99</a>!<br>2015-08-21 13:19:51.010223 [INFO] mod_native_file.c:101 Opening File [/usr/local/freeswitch/<wbr>recordings/2015-08-21-13-19-<wbr>51-in.G722] 16000hz<br>2015-08-21 13:19:51.010223 [INFO] mod_native_file.c:101 Opening File [/usr/local/freeswitch/<wbr>recordings/2015-08-21-13-19-<wbr>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.<wbr>99</a> [5127cf3a-c7ec-4038-a033-<wbr>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.<wbr>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.<wbr>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.<wbr>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.<wbr>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.<wbr>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.<wbr>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.<wbr>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.<wbr>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.<wbr>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 </div>                                            </div></body>
</html>