[asterisk-bugs] [Asterisk 0016023]: [patch] App_jack.so JACK_HOOK half works

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Oct 7 10:17:13 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16023 
====================================================================== 
Reported By:                fabien comte
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16023
Category:                   Applications/app_jack
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.1.6 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-10-06 04:57 CDT
Last Modified:              2009-10-07 10:17 CDT
====================================================================== 
Summary:                    [patch] App_jack.so JACK_HOOK half works
Description: 
Hello,

My configuration is :
Card 0 - kernel dummy sound card
Card 1 - my soundcard

I have a jackd running in background. My jackd launch command is :
jackd --port-max 16 --realtime --no-mlock -d alsa --playback hw:1,0
--capture hw:1,0 --rate 8000 --period 1024 --shorts --inchannels 2
--outchannels 2 --dither triangular &

1 ) I open asterisk with chan_alsa.so connected (with asoundrc) to the
kernel dummy sound card (allow me dial command). I do a call with a
JACK_HOOK from app_jack.so, sound is sent but no one is received.

My extensions.conf :
exten => _0.,1,Answer 
exten =>
_0.,n,Set(JACK_HOOK(manipulate,c(asterisk))i(from_voip:input)o(to_voip:output)))=on)
exten => _0.,n,Dial(SIP/freephonie-out/${EXTEN:1})

Asterisk command :
console dial 0xxxxxxxx

2) Jackd works well with anothers applications when I force them to use
jack as input/output. -> probably not a jack configuration problem.

3) If I kill jackd and I use chan_alsa.so with the real soundcard, it
works. -> probably not a network or sip configuration problem.


4) If I replace "f_buf[i] = s_buf[i] * (1.0 / SHRT_MAX);" with "f_buf[i] =
0.5 * sin(0.3454 * ((float) i));" in app_jack.c and I retry the test 2, I
get test sound. 
It looks like no sound was read in channel...

====================================================================== 

---------------------------------------------------------------------- 
 (0111992) fabien comte (reporter) - 2009-10-07 10:17
 https://issues.asterisk.org/view.php?id=16023#c111992 
---------------------------------------------------------------------- 
I come back to the original sources (asterisk V1.6.1.6)

I tried the simplest test and it does not worked.

; answer to incoming calls and create a jack client named toto
exten => _3.,1,Answer 
exten => _3.,n,JACK(c(toto))

I call with a softphone this machine ex 300. The machine is responding.

During the call is running, I lanch the command : 
jack_connect toto:input toto:output

To do an echo. A simple way to test jack, very useful.

The problem is I do not have any echo.

Is it normal ? Do I have not understood something ? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-07 10:17 fabien comte   Note Added: 0111992                          
======================================================================




More information about the asterisk-bugs mailing list