[asterisk-users] call an IP camera?
hw
hw at gc-24.de
Fri Sep 25 16:36:03 CDT 2020
On Thu, 2020-09-24 at 18:45 +0200, Antony Stone wrote:
> On Thursday 24 September 2020 at 18:28:13, hw wrote:
>
> > On Thu, 2020-09-24 at 16:57 +0200, Antony Stone wrote:
> > > I would start with something like
> > > https://www.voip-info.org/asterisk-config-musiconholdconf/
> > > https://www.voip-info.org/wiki/view/Asterisk+config+musiconhold.conf
> > > (or any more up to date documentation if you can find it).
> > >
> > > I've never tried that with video, but given how the media negotiation
> > > between Asterisk and SIP devices is handled, I would expect it to work
> > > given compatible codecs.
> >
> > Unfortunately, musiconhold.conf doesn't understand rtsp:
> > [test]
> > mode=playlist
> > entry=rtsp://10.10.30.20/12
>
> Have a look at https://www.voip-info.org/asterisk-config-musiconholdconf/ and
> the section headings "Stream radio using MPlayer for MOH" and "Example using
> asx (mms://)(.wmv) streams. (or “anything” that mplayer can play)."
>
> Those look promising to me.
[test]
mode=custom
application=ffmpeg -i rtsp://10.10.30.20/12 -map 0:0 -f rawvideo pipe:1
WARNING[100823]: res_musiconhold.c:794 monmp3thread: poll() failed: Interrupted system call
Other than getting lots of error messages as above, the command basically works
in that ffmpeg pipes the video to STDOUT. I can use
'ffmpeg -i rtsp://10.10.30.20/12 -map 0:0 -f matroska pipe:1 > some_file'
and then play the file with mpv (rawvideo doesn't work with mpv --- but should
work with a phone?).
Why is the system call being interrupted all the time? Because asterisk doesn't
take video for music?
More information about the asterisk-users
mailing list