Professional Documents
Culture Documents
Asterisk - Video Recording On Current Version (18.6.0) - Super User
Asterisk - Video Recording On Current Version (18.6.0) - Super User
0) - Super User
I’ve setup Asterisk to be able to accept inbound video connections and setup an extension to record as follows: pjsip.conf contains:
[video-trunk]
type = endpoint
transport = transport-tls-nat
force_rport = yes
ice_support = yes
direct_media = no
context = video
disallow = all
allow = h264,ulaw
extensions.conf contains:
[video]
exten = 2001,1,Verbose(1, "${CALLERID(num)} dialed in.")
same = n,Answer()
same = n,Wait(2)
same = n,Record("/recording/file.wav",0,30,qf)
same = n,Hangup()
I’m able to use Linphone to establish a connection to 2001@my-sip.example.com, but when the Record gets triggered the console outputs:
I’ve looked at file.c and the message comes after it traverses the &formats – adding debugging information to that function, I find that it doesn’t contain any
video codecs… just:
wav16
wav
WAV|wav49
g722
au
https://superuser.com/questions/1678933/asterisk-video-recording-on-current-version-18-6-0 1/2
30/08/2023, 07:54 Asterisk - Video Recording on current version (18.6.0) - Super User
alaw|al|alw
pcm|ulaw|ul|mu|ulw
gsm
Various things on the internet (more than a few years old now) said that the above should work.
Is there a way to record video on a current version of Asterisk? I’ve found a reference to app_mp4 on the net, but it requires the mpeg4ip library which hasn’t
been maintained for 14+ years.
video recording asterisk
0 load = format_h264.so
Once I added that, it creates the files (although still having issues playing them back using Playback, but that wasn't my initial question)
https://superuser.com/questions/1678933/asterisk-video-recording-on-current-version-18-6-0 2/2