[Asterisk-Dev] Jackd and Asterisk

Mike Taht mike.taht at gmail.com
Wed Aug 31 09:04:31 MST 2005


Poking about last night I found a small helper library for maybe doing a 
proof of concept conversion of chan_oss.c <-> jack. - bio2jack: 
http://bio2jack.sourceforge.net/. 

The true "asterisk way" would be different than this, registering a signed 
linear to jack ast_dsp plug/codec, etc.

Also found that jackd will run at a 8000khz sample rate if you chose, and 
your hardware supports it 

/usr/bin/jackd -n asterisk --realtime -d alsa -d hw:1 -r 8000 -p 128 -n 2 

and also supports a dummy driver

/usr/bin/jackd -n asterisk --realtime -d dummy -r 8000 -p 128


On 8/31/05, Steven <critch at basesys.com> wrote:
> 
> On Wed, 2005-08-31 at 14:17 +0300, Tzafrir Cohen wrote:
> > On Tue, Aug 30, 2005 at 11:17:44PM -0500, Steven wrote:
> > > On Tue, 2005-08-30 at 20:52 -0700, Mike Taht wrote:
> > > > I am curious if anyone has tried to create a jackd (jack audio
> > > > connection kit) <-> asterisk plugin? It looks like a straightforward
> > > > way (with admittedly a lot of up and downsampling) to interface odd
> > > > things into asterisk's sound processing loop - graphically watch
> > > > sound quality on a conference for example - mix in a little extra 
> bass
> > > > response on an outgoing call (adding a sense of authoritay to the
> > >
> > > Jackd doesn't force up or downsampling onto anything itself. The 
> trouble
> > > you would run into is that to run any of the graphical portions would
> > > require X. X isn't conducive to a well functioning asterisk machine.
> >
> > Does jack require X? Even so, an X app and the X server need not reside
> > on the same computer. And it is the X server that competes with
> > Asterisk, not the X app.
> 
> No, jackd doesn't require X, just graphical apps. Jackd doesn't even
> need graphical apps to setup and configure. There are nice curses or cli
> apps to handle what ever is needed in jackd.
> 
> While the Xserver is usually a bad thing for asterisk as most people
> want the GUI to be as responsive as possible, the xclients aren't all
> that light if they are doing much in the way of screen drawing. Consider
> the amount of compute load and network traffic you would generate if the
> audio where passed through a scope or other visualization tool.
> 
> My comments there where not to discourage the use of jackd, but rather
> certain functions in it.
> 
> > Anyway, jack is not the only sound server. gstreamer provides similar
> > functionality. esound probably perfoms not as well but may have better
> > networking support in it?
> 
> Jack is more than a sound server. Jack is essentially an audio plumbing
> tool. The idea being that not all sound being routed around the service
> actually needs to find itself outputting to a sound card. Many outputs
> could be routed to other applications and stop there. This is why I
> think this is a good idea for asterisk. You could register up multiple
> "ports" with jack and inside of asterisk, you could link those to the
> functions necessary. Such as, ports for MOH coming in, ports for
> intercom going out, maybe the call centers would like a monitoring out
> port that they could connect to.
> 
> gstreamer doesn't provide anything like this, and esound is tied to a
> sound card. with a jack.udp transport, I don't think network support is
> a problem.
> 
> --
> Steven Critchfield
> critch at basesys.com
> KI4KTY
> 
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> 



-- 
Mike Taht
PostCards From the Bleeding Edge
http://the-edge.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20050831/55accc88/attachment.htm


More information about the asterisk-dev mailing list