<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You would just change the PCMU to whatever codec you want. This should have nothing to do with file io, take a look at the line that has PCMU hardcoded, thats all you should need to change.<div><br></div><div>Mike</div><div><br><div><div>On Feb 22, 2010, at 1:47 AM, MohammedShehzad wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Yes, PCMU is hardcoded currently from multicaster. I looked into mod_sndfile for decoding PCMU to other codec, but it seems that module is using libsndfile, which reads sound file directly and decode them to L16. If something similar to libsndfile is available, which work on stream instead of file io, then it would surely work.<br>
<br>I don't know how exactly Freeswitch's codec structures & functions work, I am sure decoding can be done by using that, but don't know how to use them.<br><br><div class="gmail_quote">On Sun, Feb 21, 2010 at 7:17 AM, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com">mike@jerris.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex; position: static; z-index: auto; "><div style="word-wrap: break-word;">You will need to create the codec for what you need, I think it is hardcoded in there to PCMU at the moment, correct? This will of course need to match the stream its reading.<div>
<br></div><div>Mike</div><div><div></div><div class="h5"><div><br><div><div>On Feb 20, 2010, at 12:50 AM, MohammedShehzad wrote:</div><br><blockquote type="cite"><br><br><div class="gmail_quote">On Fri, Feb 19, 2010 at 1:32 PM, MohammedShehzad <span dir="ltr"><<a href="mailto:pmhshz@gmail.com" target="_blank">pmhshz@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><br><br><div class="gmail_quote">On Fri, Feb 19, 2010 at 12:59 PM, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Listening on multicast is noting special for multicast, it is just<br>
like reading any other udp socket<br>
<br>
Mike<br>
<div><div></div><br clear="all"></div></blockquote></div></div>Correct, but I have to play those audio stream back to caller taking care of the audio codec and other things, do anybody have any idea in that part? Please let me know that.<br>
<font color="#888888">
-- <br><br>-MohammedShehzad<br>
</font></blockquote></div><br>I am able to receive the play the multicasted RAW PCMU RTP (modified the skel of format provided by brian), so that caller can hear the multicast which done by other Freeswitch server using mod_esf application, but when i change the caller's codec from PCMU to something else, it breaks.<br clear="all">
</blockquote></div><br></div></div></div></div></blockquote></div></blockquote></div><br></div></body></html>