<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On my Asterisk 11 system I have the following in extensions.ael for
chan_sip.<br>
<br>
8001 => {<br>
Set(SIP_CODEC=alaw);<br>
//Dial(MulticastRTP/linksys/224.168.168.168:34567/224.168.168.168:6061);<br>
Page(MulticastRTP/linksys/224.168.168.168:34567/224.168.168.168:6061,q,5);<br>
Hangup();<br>
};<br>
<br>
<br>
I believe in your case you need to set PJSIP_MEDIA_OFFER(ulaw) in a
pre-dial handler prior to making the call.<br>
<br>
See
<a class="moz-txt-link-freetext"
href="https://wiki.asterisk.org/wiki/display/AST/Pre-dial+handlers+Specification">https://wiki.asterisk.org/wiki/display/AST/Pre-dial+handlers+Specification</a>.<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 1/10/2015 1:51 AM, Matthew Murphy
wrote:<br>
</div>
<blockquote cite="mid:BAY182-W15F95BC4E7958DA50489AD94D0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Greetings everyone,
<div><br>
</div>
<div>I was wondering if there was a way to change the codec that
Asterisk uses when streaming via MulticastRTP. Or perhaps a
way to transcode the multicast stream.</div>
<div><br>
</div>
<div>In the CLI, when I have a multicast stream in progress, I
am typing 'core show channel MulticastRTP/0x7f7........' to
get lots of helpful information.</div>
<div><br>
</div>
<div><span style="font-size: 12pt;">I have noticed that when I </span>do
a MULTICAST page and<b> send data from MP3Player</b>, I get no
sound on my speakers and get the following from 'core show
channel PJSIP/xxx':</div>
<div><br>
</div>
<div>
<div>NativeFormats: (slin)</div>
<div>WriteFormat: slin</div>
<div>ReadFormat: slin</div>
<div><b>WriteTranscode: No </b></div>
<div><b>ReadTranscode: No </b></div>
</div>
<div><br>
</div>
<div>I have noticed that when I do a UNICAST page and<b> send
data from MP3Player</b>, everything works flawlessly and I
get the following from 'core show channel MulticastRTP':</div>
<div><br>
</div>
<div>
<div>NativeFormats: (ulaw)</div>
<div>WriteFormat: slin</div>
<div>ReadFormat: slin</div>
<div><b>WriteTranscode: Yes (slin@8000)->(ulaw@8000)</b></div>
<div><b>ReadTranscode: Yes (ulaw@8000)->(slin@8000)</b></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>The <b>only</b> thing that is changing is the following
line in my extensions.conf file:</div>
<div><br>
</div>
<div>; For Multicast Paging</div>
<div>
<div>same =>
n(next),Page(MulticastRTP/basic/239.1.1.2:6061,q)</div>
<div><br>
</div>
<div>; For Unicast Paging</div>
<div>same =>
n(next),Page(PJSIP/107&PJSIP/108,ib(pjsip-auto-answer-header^addheader^1)|p})</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Is there any way to get the MP3Player stream to transcode
(as it does on the UNICAST stream) when I try to MULTICAST?</div>
<div><br>
</div>
<div>Thanks for the help,</div>
<div><br>
</div>
<div>--Matt</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>