Reading a video file and playback it to a sip client (PC)

Hi all,

Can any one please help me? I want to read a video (h263) file stored in asterisk and playback it to a sip client (PC kphone) through sip channel. Is it possible? If yes how? What configurations do i need for it?

I shall be highly obliged if some one helps me?



Hi, I have the same need, did you ever find any solution? I’ve tried with playback but no luck, no sure if is a problem of format or something like that or how to convert the video to the right format.

Thanks in advance.


The Record application can record video and the Playback application can play it back.

exten => 101,1,Answer()
same => n,Record(/tmp/myfile.ulaw,k)
same => n,Hangup()

exten => 201,1,Answer()
same => n,Playback(/tmp/myfile)
same => n,Hangup()

@johnkiniston, thanks for your reply, using a recorded video on h263 works, but on playback the video goes very much slower than audio, but anyway what I need is on VP8.

So I try with VP8, I configure 2 PJSIP extensions, 1001 and 1002, a video call from one to the other works on VP8, is the only one video codec allowed. Both endpoints are Zoiper on Android.

But when I call to the record feature I got a warning message and the video is not recorded:

Console verbose was OFF and is now 3.
– Executing [98001@from-internal:1] Answer(“PJSIP/1001-0000000a”, “”) in new stack
– Executing [98001@from-internal:2] Record(“PJSIP/1001-0000000a”, “/tmp/test.ulaw,k”) in new stack
– Remote UNIX connection
– Remote UNIX connection disconnected
– <PJSIP/1001-0000000a> Playing ‘beep.alaw’ (language ‘en’)
[2017-03-06 07:44:12] WARNING[12470][C-00000007]: file.c:1479 ast_writefile: No such format ‘vp8’
[2017-03-06 07:44:12] WARNING[12470][C-00000007]: file.c:1479 ast_writefile: No such format ‘vp8’

When I playback I get only audio.

The project is looking forward to webrtc, a web softphone and so on, that’s the reason why I’m trying with PJSIP and VP8

Could this be a bug or just PJSIP don’t support what I’m trying to do?

Thanks for your help.


I’d suggest filing a bug report.