Yes thats what Im trying to see via the wireshark captures.
Goodness, well doing a restart on this demo virtual machine and restarting FS seems to get it working. I am using this dialplan.
<extension name="video_record">
<condition field="destination_number" expression="^9193$">
<action application="answer"/>
<action application="set" data="enable_file_write_buffering=false"/>
<action application="set" data="nolocal:enable_file_write_buffering=false"/>
<action application="record_mp4" data="$${temp_dir}/testrecord_${uuid}.mp4"/>
</condition>
</extension>
So when it starts to this dialplan here are the cli logs:
2015-11-09 17:00:00.010636 [DEBUG] mod_dptools.c:1498 SET sofia/internal/
1001@192.168.2.244 [enable_file_write_buffering]=[false]
2015-11-09 17:00:00.010636 [DEBUG] mod_dptools.c:1498 SET sofia/internal/
1001@192.168.2.244 [nolocal:enable_file_write_buffering]=[false]
EXECUTE sofia/internal/
1001@192.168.2.244 record_mp4(/tmp/testrecord_845ceec5-0462-4ffb-8786-e6e3717c6a41.mp4)
2015-11-09 17:00:00.010636 [ERR] mod_mp4v2.c:337 ms: 20000, ts: 1200
2015-11-09 17:00:00.010636 [DEBUG] mod_mp4v2.c:377 Audio Codec Activation Success
2015-11-09 17:00:00.010636 [DEBUG] switch_core_codec.c:221 sofia/internal/
1001@192.168.2.244 Push codec PCMU:0
2015-11-09 17:00:00.010636 [DEBUG] switch_core_media.c:5035 sofia/internal/
1001@192.168.2.244 Video thread started. Echo is off
2015-11-09 17:00:00.086900 [DEBUG] sofia.c:6750 Channel sofia/internal/
1001@192.168.2.244 entering state [ready][200]
2015-11-09 17:00:00.116406 [DEBUG] switch_rtp.c:6598 Correct audio ip/port confirmed.
2015-11-09 17:00:00.116406 [INFO] mod_mp4v2.c:457 init timer
2015-11-09 17:00:00.116406 [ERR] mod_mp4v2.c:462 960 960
...Above message repeated 40 times.
2015-11-09 17:00:00.536999 [ERR] mod_mp4v2.c:462 960 960
2015-11-09 17:00:00.546869 [DEBUG] switch_rtp.c:6598 Correct video ip/port confirmed.
2015-11-09 17:00:00.546869 [WARNING] mod_mp4v2.c:78 We have no idea about the video size without decoding the video or actually parse the SPS, using hardcoded 1280x720
for the whole duration of the message it keeps displaying this hundreds of lines in one second:
2015-11-09 17:00:00.556695 [ERR] mod_mp4v2.c:462 960 960
2015-11-09 17:00:00.856407 [ERR] mod_mp4v2.c:462 960 960
2015-11-09 17:00:05.016710 [ERR] mod_mp4v2.c:462 960 960
2015-11-09 17:00:05.036475 [ERR] mod_mp4v2.c:462 960 960
2015-11-09 17:00:05.056776 [NOTICE] sofia.c:952 Hangup sofia/internal/
1001@192.168.2.244 [CS_EXECUTE] [NORMAL_CLEARING]
2015-11-09 17:00:05.056776 [ERR] mod_mp4v2.c:462 960 960
2015-11-09 17:00:05.056776 [WARNING] mod_mp4v2.c:481 waiting video thread to be done ...
2015-11-09 17:00:05.056776 [DEBUG] switch_core_media.c:5159 sofia/internal/
1001@192.168.2.244 Video thread ended
2015-11-09 17:00:05.156425 [DEBUG] switch_core_codec.c:246 sofia/internal/
1001@192.168.2.244 Restore previous codec opus:116.
2015-11-09 17:00:05.156425 [NOTICE] mod_mp4v2.c:497 closing file /tmp/testrecord_845ceec5-0462-4ffb-8786-e6e3717c6a41.mp4
So, I'm thinking its all expected and normal !!
Thanks,
Sammy