[asterisk-bugs] [JIRA] (ASTERISK-28014) Can't record video with Record application

David Bohorquez Tovar (JIRA) noreply at issues.asterisk.org
Sat Aug 18 19:28:54 CDT 2018


     [ https://issues.asterisk.org/jira/browse/ASTERISK-28014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Bohorquez Tovar updated ASTERISK-28014:
---------------------------------------------

    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:

exten => record-video,1,Answer()
  same => n,Record(/var/spool/asterisk/monitor/video-${UNIQUEID}.WAV)
  same => n,Hangup()

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:

    -- Executing [record-video at from-internal:1] Answer("PJSIP/1001-00000055", "") in new stack
    -- Executing [record-video at 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 at from-internal:1] Macro("PJSIP/1001-00000055", "hangupcall") in new stack
    -- Executing [s at macro-hangupcall:1] GotoIf("PJSIP/1001-00000055", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s at macro-hangupcall:3] ExecIf("PJSIP/1001-00000055", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s at macro-hangupcall:4] NoOp("PJSIP/1001-00000055", " monior file= ") in new stack
    -- Executing [s at 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 at 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'

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

  was:
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:

exten => record-video,1,Answer()
  same => n,Record(/var/spool/asterisk/monitor/video-${UNIQUEID}.WAV)
  same => n,Hangup()

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:

    -- Executing [record-video at from-internal:1] Answer("PJSIP/1001-00000055", "") in new stack
    -- Executing [record-video at 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 at from-internal:1] Macro("PJSIP/1001-00000055", "hangupcall") in new stack
    -- Executing [s at macro-hangupcall:1] GotoIf("PJSIP/1001-00000055", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s at macro-hangupcall:3] ExecIf("PJSIP/1001-00000055", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s at macro-hangupcall:4] NoOp("PJSIP/1001-00000055", " monior file= ") in new stack
    -- Executing [s at 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 at 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'

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.

Can someone help with this?

Thank you.

David


> Can't record video with Record application
> ------------------------------------------
>
>                 Key: ASTERISK-28014
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28014
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_record
>    Affects Versions: 15.5.0
>         Environment: Sangoma Linux release 7.5.1805 (Core), Asterisk 15.5.0
>            Reporter: David Bohorquez Tovar
>              Labels: webrtc
>
> 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:
> exten => record-video,1,Answer()
>   same => n,Record(/var/spool/asterisk/monitor/video-${UNIQUEID}.WAV)
>   same => n,Hangup()
> 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:
>     -- Executing [record-video at from-internal:1] Answer("PJSIP/1001-00000055", "") in new stack
>     -- Executing [record-video at 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 at from-internal:1] Macro("PJSIP/1001-00000055", "hangupcall") in new stack
>     -- Executing [s at macro-hangupcall:1] GotoIf("PJSIP/1001-00000055", "1?theend") in new stack
>     -- Goto (macro-hangupcall,s,3)
>     -- Executing [s at macro-hangupcall:3] ExecIf("PJSIP/1001-00000055", "0?Set(CDR(recordingfile)=)") in new stack
>     -- Executing [s at macro-hangupcall:4] NoOp("PJSIP/1001-00000055", " monior file= ") in new stack
>     -- Executing [s at 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 at 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'
> 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



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list