[asterisk-users] streaming audio

Dovid Bender dovid at telecurve.com
Mon Nov 13 10:40:23 CST 2017


If you run /usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s
http://streaming5.easyonhold.com:10010/strea from root does tcpdump show
anything? What is asterisk runing as? I always use custom bash scripts when
doing moh so I can put in my own logging. For instance:

moh,sh:
#! /bin/bash

/usr/bin/ffmpeg  -i 'https:/myurl.com/playlist.m3u8' -vn -ar 8000 -ac 1 -f
s16le -
echo "[$(date +%F) $(date +%T)] $0" >> /tmp/streams_down #Log downed
streams for now. In the future put out an alert
sleep $(( ( RANDOM % 60 )  )) #This is extremley important as if it's not
here the repeat will lockup a core on the box


musiconhold.conf
[test]
mode=custom
application=/etc/asterisk/moh.sh



On Mon, Nov 13, 2017 at 10:41 AM, Jerry Geis <jerry.geis at gmail.com> wrote:

>  tcpdump -A -i eth0  port 10010
>
> give no output.
>
> music on hold entry is:
>
> [easyonhold]
> mode=custom
> application=/usr/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s
> http://streaming5.easyonhold.com:10010/strea
> ming/571c0e9d84290
>
> The stream is not complete. I removed the ending.
> if I past that stream into a windows browser behind the firewall it works.
>
> My server is centos 7.4
> I tried stopping iptables and firewalld
> re-ran the tcpdump command above and nothing.
>
> Thoughts?
>
> Jerry
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at: https://community.asterisk.
> org/
>
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20171113/b4151eab/attachment.html>


More information about the asterisk-users mailing list