[asterisk-bugs] [Asterisk 0016598]: app_jack fails to connect to jackd

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Feb 5 12:18:31 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16598 
====================================================================== 
Reported By:                dwhitesel
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16598
Category:                   Applications/app_jack
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           SVN 
JIRA:                       SWP-722 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-01-13 21:07 CST
Last Modified:              2011-02-05 12:18 CST
====================================================================== 
Summary:                    app_jack fails to connect to jackd
Description: 
I have been unable to get app_jack to function as documented. I contacted
Russell via email and he suggested posting here.

I have pasted what I believe to be the relevant config sections, as well
as the debug output that I captured in the Additional Information field.
The guidelines advise to send them as an attachment. However, I don't see a
button for sending an attachment. My apologies if this is inappropriate.

I have a simple test extension configured which calls app_jack with no
arguments. For debugging purposes, I added the playout of a sound after the
app_jack command to verify that the dialplan was progressing past the
app_jack call. It is.

Upon dialing ext 800, Asterisk attempts to connect a jack port. That
connection immediately fails or is dropped, causing the dialplan to move on
to the next command for that extension. Which, for debugging purposes, is
playing the sound "beeperr.gsm". After that, the channel is dropped.

Some info about the test system...

Ubuntu 9.10
2.6.31-16-generic
Jack 0.116.1-4ubuntu2 (from distro repository)
Asterisk 1.6.2 (compiled from source)

Please advise if there is additional debugging output that can be of
assistance. I will be happy to help any way I can.

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

---------------------------------------------------------------------- 
 (0131532) dlake02 (reporter) - 2011-02-05 12:18
 https://issues.asterisk.org/view.php?id=16598#c131532 
---------------------------------------------------------------------- 
OK - if I run qjackctl as user Asterisk and then try to connect to the JACK
port, I get this on the Asterisk CLI:
localhost*CLI>
    -- Accepting AUTHENTICATED call from 67.161.6.43:
       > requested format = ulaw,
       > requested prefs = (),
       > actual format = ulaw,
       > host prefs = (ulaw|alaw|gsm),
       > priority = mine
    -- Executing [1234 at test:1] Answer("IAX2/anatoliy-2287", "") in new
stack
    -- Executing [1234 at test:2] JACK("IAX2/anatoliy-2287", "") in new
stack
localhost*CLI>
Disconnected from Asterisk server

/usr/sbin/safe_asterisk: line 145:  6116 Segmentation fault      (core
dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >
/dev/${TTY} 2>&1 < /dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal 11.


If I run Asterisk from the command line, this is what I see:



    -- Accepting AUTHENTICATED call from 67.161.6.43:
       > requested format = ulaw,
       > requested prefs = (),
       > actual format = ulaw,
       > host prefs = (ulaw|alaw|gsm),
       > priority = mine
    -- Executing [1234 at test:1] Answer("IAX2/anatoliy-1432", "") in new
stack
    -- Executing [1234 at test:2] JACK("IAX2/anatoliy-1432", "") in new
stack
jackd 0.118.0
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn
and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details


Memory locking is unlimited - this is dangerous. You should probably alter
the line:
     @audio   -  memlock    unlimited
in your /etc/limits.conf to read:
     @audio   -  memlock    1556472
getting driver descriptor from /usr/local/lib/jack/jack_dummy.so
getting driver descriptor from /usr/local/lib/jack/jack_alsa.so
getting driver descriptor from /usr/local/lib/jack/jack_oss.so
getting driver descriptor from /usr/local/lib/jack/jack_net.so
JACK compiled with System V SHM support.
server `default' registered
loading driver ..
registered builtin port type 32 bit float mono audio
registered builtin port type 8 bit raw midi
clock source = system clock via clock_gettime
start poll on 3 fd's
new client: alsa_pcm, id = 1 type 1 @ 0x9eff440 fd = -1
apparent rate = 8000
creating alsa driver ...
plughw:0|plughw:0|1024|2|8000|1|1|nomon|swmeter|-|32bit
control device hw:0
configuring for 8000Hz, period = 1024 frames (128.0 ms), buffer = 2
periods
ALSA: final selected sample format for capture: 32bit float little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit float
little-endian
ALSA: use 2 periods for playback
new buffer size 1024
registered port system:capture_1, offset = 4096
registered port system:playback_1, offset = 0
++ jack_sort_graph
++ jack_rechain_graph():
+++ client is now alsa_pcm active ? 1
client alsa_pcm: internal client, execution_order=0.
-- jack_rechain_graph()
-- jack_sort_graph
6310 waiting for signals
server thread back from poll
new client: IAX2/anatoliy-1432, id = 2 type 2 @ 0xb680f000 fd = 27
start poll on 4 fd's
server thread back from poll
new client IAX2/anatoliy-1432 using 28 for events
start poll on 4 fd's
server thread back from poll
registered port IAX2/anatoliy-1432:input, offset = 0
start poll on 4 fd's
[Feb  5 12:03:58] NOTICE[6306]: app_jack.c:186 log_jack_status: Client
Open Status: Server Started
server thread back from poll
registered port IAX2/anatoliy-1432:output, offset = 8192
start poll on 4 fd's
server thread back from poll
marking client IAX2/anatoliy-1432 with SOCKET error state = Not triggered
errors = 0
trying to lock graph to remove 1 problems
we have problem clients (problems = 1
++ Removing failed clients ...
client IAX2/anatoliy-1432 error status 10000000
removing failed client IAX2/anatoliy-1432 state = Not triggered errors =
10000000
removing client "IAX2/anatoliy-1432"
removing client "IAX2/anatoliy-1432" from the processing chain
+++ deactivate IAX2/anatoliy-1432
Kill wait pid to stop
Segmentation fault
jack main caught signal 12
starting server engine shutdown
stopping driver
[root at localhost ~]#
[root at localhost ~]#
[root at localhost ~]#
[root at localhost ~]#
[root at localhost ~]#
[root at localhost ~]# lock-driven null cycle
unloading driver
freeing shared port segments
stopping server thread
stopping watchdog thread
last xrun delay: 0.000 usecs
max delay reported by backend: 13.000 usecs
freeing engine shared memory
max usecs: 0.000, engine deleted
cleaning up shared memory
cleaning up files
unregistering server `default' 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-05 12:18 dlake02        Note Added: 0131532                          
======================================================================




More information about the asterisk-bugs mailing list