Poking about last night I found a small helper library for maybe doing
a proof of concept conversion of chan_oss.c <-> jack. -
bio2jack: <a href="http://bio2jack.sourceforge.net/">http://bio2jack.sourceforge.net/</a>. <br><br>
The true "asterisk way" would be different than this, registering a signed linear to jack ast_dsp plug/codec, etc.<br>
<br>
Also found that jackd will run at a 8000khz sample rate if you chose, and your hardware supports it <br>
<br>
/usr/bin/jackd -n asterisk --realtime -d alsa -d hw:1 -r 8000 -p 128 -n 2 <br>
<br>
and also supports a dummy driver<br>
<br>
/usr/bin/jackd -n asterisk --realtime -d dummy -r 8000 -p 128<br>
<br>
<br><div><span class="gmail_quote">On 8/31/05, <b class="gmail_sendername">Steven</b> <<a href="mailto:critch@basesys.com">critch@basesys.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, 2005-08-31 at 14:17 +0300, Tzafrir Cohen wrote:<br>> On Tue, Aug 30, 2005 at 11:17:44PM -0500, Steven wrote:<br>> > On Tue, 2005-08-30 at 20:52 -0700, Mike Taht wrote:<br>> > > I am curious if anyone has tried to create a jackd (jack audio
<br>> > > connection kit) <-> asterisk plugin? It looks like a straightforward<br>> > > way (with admittedly a lot of up and downsampling) to interface odd<br>> > > things into asterisk's sound processing loop - graphically watch
<br>> > > sound quality on a conference for example - mix in a little extra bass<br>> > > response on an outgoing call (adding a sense of authoritay to the<br>> ><br>> > Jackd doesn't force up or downsampling onto anything itself. The trouble
<br>> > you would run into is that to run any of the graphical portions would<br>> > require X. X isn't conducive to a well functioning asterisk machine.<br>><br>> Does jack require X? Even so, an X app and the X server need not reside
<br>> on the same computer. And it is the X server that competes with<br>> Asterisk, not the X app.<br><br>No, jackd doesn't require X, just graphical apps. Jackd doesn't even<br>need graphical apps to setup and configure. There are nice curses or cli
<br>apps to handle what ever is needed in jackd.<br><br>While the Xserver is usually a bad thing for asterisk as most people<br>want the GUI to be as responsive as possible, the xclients aren't all<br>that light if they are doing much in the way of screen drawing. Consider
<br>the amount of compute load and network traffic you would generate if the<br>audio where passed through a scope or other visualization tool.<br><br>My comments there where not to discourage the use of jackd, but rather
<br>certain functions in it.<br><br>> Anyway, jack is not the only sound server. gstreamer provides similar<br>> functionality. esound probably perfoms not as well but may have better<br>> networking support in it?
<br><br>Jack is more than a sound server. Jack is essentially an audio plumbing<br>tool. The idea being that not all sound being routed around the service<br>actually needs to find itself outputting to a sound card. Many outputs
<br>could be routed to other applications and stop there. This is why I<br>think this is a good idea for asterisk. You could register up multiple<br>"ports" with jack and inside of asterisk, you could link those to the
<br>functions necessary. Such as, ports for MOH coming in, ports for<br>intercom going out, maybe the call centers would like a monitoring out<br>port that they could connect to.<br><br>gstreamer doesn't provide anything like this, and esound is tied to a
<br>sound card. with a jack.udp transport, I don't think network support is<br>a problem.<br><br>--<br>Steven Critchfield<br><a href="mailto:critch@basesys.com">critch@basesys.com</a><br>KI4KTY<br><br>_______________________________________________
<br>Asterisk-Dev mailing list<br><a href="mailto:Asterisk-Dev@lists.digium.com">Asterisk-Dev@lists.digium.com</a><br><a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev
</a><br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br><br clear="all"><br>
-- <br>Mike Taht<br>PostCards From the Bleeding Edge<br><a href="http://the-edge.blogspot.com">http://the-edge.blogspot.com</a>