<div dir="ltr">On Tue, Aug 13, 2013 at 12:02 PM, Ryan Conrad <span dir="ltr"><<a href="mailto:rconrad54@gmail.com" target="_blank">rconrad54@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Sorry for being a little ambiguous. I am looking at this function:<br><br></div><div>static int console_write(struct ast_channel *chan, struct ast_frame *f)</div>
<div>{</div><div><span style="white-space:pre-wrap">        </span>struct console_pvt *pvt = ast_channel_tech_pvt(chan);</div>
<div><br></div><div><span style="white-space:pre-wrap">        </span>Pa_WriteStream(pvt->stream, f->data.ptr, f->samples);</div><div><br></div><div><span style="white-space:pre-wrap">        </span>return 0;</div><div>
}<br><br>However, I dont use PortAudio, instead I have my own stream that instead will send throught a socket the raw buffer of the frame. I just need to be able to get the raw voice buffer off of the phone every 10ms doing 8khz raw PCM data (SLINEAR). That is all I am trying to get from the console_write. Is there a better way to get that voice data coming from the endpoint device?<br>
<br>Basically, I have a SIP configured phone and my custom driver, so when console_write gets hit, I should be taking the SIP phone's voice frames and then I want to send those on their way with my stream to a totally separate device. <br>
</div></div></blockquote><div><br></div><div>Sooo ... you're basically not using chan_console, then. That was indeed a bit misleading. Since you're doing a custom channel driver I don't think I can help much.</div>
<div><br></div><div>In general, search for all of the instances of SLINEAR16 in the driver you started with. Those are the places you need to change.</div><div><br></div><div>-- </div><div>Russell Bryant </div></div></div>
</div>