Julien Claassen
2008-Sep-11 19:18 UTC
[asterisk-users] about application Jack and its runtime
Greetings! Does application Jack run the whole time, the conversation is going? If so: is there a SIMPLE extensions.conf-only-based way to put it in the "background"? I know AGI and other applications... :-( Kindest regards and thanks Julien -------- Music was my first love and it will be my last (John Miles) ======== FIND MY WEB-PROJECT AT: =======http://ltsb.sourceforge.net the Linux TextBased Studio guide ======= AND MY PERSONAL PAGES AT: ======http://www.juliencoder.de
Russell Bryant
2008-Sep-12 01:11 UTC
[asterisk-users] about application Jack and its runtime
On Sep 11, 2008, at 2:18 PM, Julien Claassen wrote:> Does application Jack run the whole time, the conversation is going? > If so: is there a SIMPLE extensions.conf-only-based way to put it > in the > "background"? I know AGI and other applications... :-(Yes. When you use the Jack application, it runs as blocking. It will not exit until the call is over. However, there is another option, which is the JACK_HOOK function. The Jack application acts as an endpoint for a call. The JACK_HOOK function is different. It allows you to hook into the audio stream for a channel while the channel goes off and executes other Asterisk applications. Your hook can be listen-only, write-only (which would replace the channel's audio with something), or as a manipulate audiohook. The manipulate version is the most common because you have full access to the audio stream for a channel and can do whatever you want with it. When I wrote JACK_HOOK, the idea I had in mind was being able to use some external application using jack to add sound effects, like a vocoder. Some more information about these interfaces can be found here: http://www.russellbryant.net/blog/2008/01/13/jack-interfaces-for-asterisk/ -- Russell Bryant Senior Software Engineer Open Source Team Lead Digium, Inc.