<div dir="ltr"><div>Very simply, I want to pipe some external audio into a channel (bridge) using the externalMedia channel option.</div><div>Running Asterisk 18 on ubuntu, here's what I did to try and test things out:</div><div><br></div><div>open a console tab</div>vlc -vvv <a href="https://media-ssl.musicradio.com/LBCUK">https://media-ssl.musicradio.com/LBCUK</a> --sout '#transcode{vcodec=none,acodec=ulaw,channels=1,samplerate=8000}:rtp{dst=127.0.0.1,port=5005}'<div><br></div><div>open another console tab  <br>wscat -c "ws://localhost:8088/ari/events?api_key=asterisk:asterisk&app=playback-example"</div><div><br></div><div>open another console tab    <br>curl -v -u asterisk:asterisk -X POST "<a href="http://localhost:8088/ari/channels/externalMedia?external_host=127.0.0.1:5005&channelId=musicChannel&format=ulaw&app=playback-example">http://localhost:8088/ari/channels/externalMedia?external_host=127.0.0.1:5005&channelId=musicChannel&format=ulaw&app=playback-example</a>"<br>curl -v -u asterisk:asterisk -X POST "<a href="http://localhost:8088/ari/bridges/musicBridge?type=mixing">http://localhost:8088/ari/bridges/musicBridge?type=mixing</a>"<br></div><div>then dial in from a phone</div><div>curl -v -u asterisk:asterisk -X GET "<a href="http://localhost:8088/ari/channels">http://localhost:8088/ari/channels</a>"  </div><div>and note the new call channel ID<br>curl -v -u asterisk:asterisk -X POST "<a href="http://localhost:8088/ari/bridges/musicBridge/addChannel?channel=">http://localhost:8088/ari/bridges/musicBridge/addChannel?channel=</a><phone channel from above>,musicChannel"<br></div><div><br></div><div>... and there is silence when I expected either music or at least some kind of noise.</div><div><br></div><div>Is it something I'm doing wrong with the channel mixing, or with the transcoding with vlc? Been battling this all day and could really use a second pair of eyes on this.</div><div>Thanks.</div><div><br></div><div>(PS - of course, I would use the node SDK for live stuff, and not "asterisk:asterisk" as username/password!)</div><div><br></div><div>Here's the VLC output - does "PCMU/8000 on port 5005 RTP/AVP 0" look reasonable?</div><div><br></div><div>o=- 16401160996019665100 16401160996019665100 IN IP4 ip-172-31-37-244<br>s=Unnamed<br>i=N/A<br>c=IN IP4 127.0.0.1<br>t=0 0<br>a=tool:vlc 3.0.11<br>a=recvonly<br>a=type:broadcast<br>a=charset:UTF-8<br>m=audio 5005 RTP/AVP 0<br>b=AS:64<br>b=RR:0<br>a=rtpmap:0 PCMU/8000<br>a=rtcp:5006<br></div></div>