[Home]

Summary:ASTERISK-28014: Can't record video with Record application
Reporter:David Bohorquez Tovar (davidbqzt)Labels:webrtc
Date Opened:2018-08-18 19:24:49Date Closed:2018-08-19 05:06:29
Priority:MajorRegression?
Status:Closed/CompleteComponents:Applications/app_record
Versions:15.5.0 Frequency of
Occurrence
Related
Issues:
Environment:Sangoma Linux release 7.5.1805 (Core), Asterisk 15.5.0Attachments:
Description:Hi,

I'm trying to record a video call from a phone or from a webphone using webRTC (I used the cmp2k with some changes to fit my needs), dialplan is very simple:
{noformat}
exten => record-video,1,Answer()
 same => n,Record(/var/spool/asterisk/monitor/video-${UNIQUEID}.WAV)
 same => n,Hangup()
{noformat}

Obviously Asterisk is correctly configured for video and VP8 codec and I can make a video call between two endpoints.

But, when I make the video call to 'record-video' extension I got an error on the codec:
{noformat}
   -- Executing [record-video@from-internal:1] Answer("PJSIP/1001-00000055", "") in new stack
   -- Executing [record-video@from-internal:2] Record("PJSIP/1001-00000055", "/var/spool/asterisk/monitor/video-1534637965.85.WAV") in new stack
   -- <PJSIP/1001-00000055> Playing 'beep.slin16' (language 'en')
[2018-08-18 19:19:26] WARNING[25464][C-0000002f]: file.c:1477 ast_writefile: No such format 'vp8'
[2018-08-18 19:19:27] WARNING[25464][C-0000002f]: file.c:1477 ast_writefile: No such format 'vp8'
[2018-08-18 19:19:27] WARNING[25464][C-0000002f]: file.c:1477 ast_writefile: No such format 'vp8'
 == Spawn extension (from-internal, record-video, 2) exited non-zero on 'PJSIP/1001-00000055'
   -- Executing [h@from-internal:1] Macro("PJSIP/1001-00000055", "hangupcall") in new stack
   -- Executing [s@macro-hangupcall:1] GotoIf("PJSIP/1001-00000055", "1?theend") in new stack
   -- Goto (macro-hangupcall,s,3)
   -- Executing [s@macro-hangupcall:3] ExecIf("PJSIP/1001-00000055", "0?Set(CDR(recordingfile)=)") in new stack
   -- Executing [s@macro-hangupcall:4] NoOp("PJSIP/1001-00000055", " monior file= ") in new stack
   -- Executing [s@macro-hangupcall:5] AGI("PJSIP/1001-00000055", "attendedtransfer-rec-restart.php,,") in new stack
   -- Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php
   -- <PJSIP/1001-00000055>AGI Script attendedtransfer-rec-restart.php completed, returning 0
   -- Executing [s@macro-hangupcall:6] Hangup("PJSIP/1001-00000055", "") in new stack
 == Spawn extension (macro-hangupcall, s, 6) exited non-zero on 'PJSIP/1001-00000055' in macro 'hangupcall'
 == Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/1001-00000055'
{noformat}

Then no recording with audio or video is left.

I've read on https://www.voip-info.org/asterisk-cmd-record/ that Record should record video and audio, but is not working, current documentation on Record app says nothing about video.

I've discussed this on community some months ago on https://community.asterisk.org/t/reading-a-video-file-and-playback-it-to-a-sip-client-pc/7577/4, they suggested to open a issue.

Can someone help with this?

Thank you.

David
Comments:By: Asterisk Team (asteriskteam) 2018-08-18 19:24:51.246-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Joshua C. Colp (jcolp) 2018-08-19 05:06:29.559-0500

There is no support for recording vp8 or vp9 video as of this time.