[asterisk-users] usb - audio asterisk crashes

Jerry Geis geisj at pagestation.com
Fri Jun 27 07:45:11 CDT 2008


> On Fri, Jun 27, 2008 at 06:57:22AM -0400, Jerry Geis wrote:
> >/ I am using usb-audio for Console/Dsp with asterisk.
> />/ 
> />/ it is crashing 1.4.21 and also svn.
> /
> Which channel driver? chan_alsa ? chan_oss? Or maybe chan_console ?
>
> >/ During the brief times its working the audio is choppy but understandable.
> />/ 
> />/ I have used aplay and arecord at the same time on the same wave file
> />/ and they work fine every time and I have done it MANY times.
> />/ Asterisk failes after 1 or 2 times.
> /
> an you try playing the same sound files Asterisk uses? (to make sure
> that this is not the issue with the sample rate of 8000Hz).
>
> >/ 
> />/ Any ideas on something I can try?
> /
> Are there any strange errors / warnings / whatever in the log? Can you
> get a backtrace from the crash?

I am using chan_alsa. 

I am playing the same sound file. 
Asterisk on my server is calling asterisk box 2 (one that crashes), dials the console/dsp,
and the wave file plays and or crashes.

What can I try different? As I mentioned aplay sounds fine and never has crashed. 

below is the crash.
----------------

#0  0xb7d77947 in raise () from /lib/tls/libc.so.6
#1  0xb7d790c9 in abort () from /lib/tls/libc.so.6
#2  0xb7d7105f in __assert_fail () from /lib/tls/libc.so.6
#3  0xb741861f in snd_pcm_area_copy (dst_area=0x81cc62c, dst_offset=0, 
    src_area=0x81cb7ec, src_offset=5223, samples=816, 
    format=SND_PCM_FORMAT_S16_LE) at pcm_local.h:499
#4  0xb744b7b7 in snd_pcm_dsnoop_sync_ptr (pcm=0x81cb930) at pcm_dsnoop.c:77
#5  0xb7410b11 in snd_pcm_hwsync (pcm=0x81cb930) at pcm.c:932
#6  0xb7422b55 in snd1_pcm_generic_hwsync (pcm=0x81cc1c8) at pcm_generic.c:143
#7  0xb7410b11 in snd_pcm_hwsync (pcm=0x81cc1c8) at pcm.c:932
#8  0xb742fb4d in snd_pcm_rate_hwsync (pcm=0x81cc3f8) at pcm_rate.c:624
#9  0xb7410b11 in snd_pcm_hwsync (pcm=0x81cc3f8) at pcm.c:932
#10 0xb7417817 in snd1_pcm_read_areas (pcm=0x81cc3f8, areas=0xb70a5b70, 
    offset=0, size=160, func=0xb7421e10 <snd_pcm_mmap_read_areas>)
    at pcm.c:6376
#11 0xb742111f in snd_pcm_mmap_readi (pcm=0x81cc3f8, buffer=0xb74a5a40, 
    size=160) at pcm_mmap.c:236
#12 0xb740fff4 in snd_pcm_readi (pcm=0x81cc038, buffer=0xb74a5a40, size=2440)
    at pcm_local.h:521
#13 0xb749579b in alsa_read (chan=0x8213f18) at chan_alsa.c:683
#14 0x080855b1 in __ast_read (chan=0x8213f18, dropaudio=0) at channel.c:2100
#15 0x08087725 in ast_channel_bridge (c0=0x8212858, c1=0x817cf68, 
    config=0xb70a6eac, fo=0xb70a5fe8, rc=0xb70a5fe4) at channel.c:2380
#16 0xb7c75592 in ast_bridge_call (chan=0x8212858, peer=0x8213f18, 
    config=0xb70a6eac) at res_features.c:1490
#17 0xb75c38fd in dial_exec_full (chan=0x8212858, data=0xb70a8fd8, 
    peerflags=0xb70a6f84, continue_exec=0x0) at app_dial.c:1773
#18 0xb75c519d in dial_exec (chan=0x8212858, data=0xb70a8fd8)
    at app_dial.c:1827
#19 0x080c6e3f in pbx_extension_helper (c=0x8212858, con=0x0, 
    context=0x82129d8 "smvoice", exten=0x8212a28 "s", 
    priority=3, label=0x0, callerid=0x8215450 "404", action=E_SPAWN)
    at pbx.c:537
#20 0x080c9185 in __ast_pbx_run (c=0x8212858) at pbx.c:2317
#21 0x080c9ebe in pbx_thread (data=0x8212858) at pbx.c:2636
#22 0x080f51d2 in dummy_start (data=0x8213178) at utils.c:909
#23 0xb7eff0bd in start_thread () from /lib/tls/libpthread.so.0
#24 0xb7e1b01e in clone () from /lib/tls/libc.so.6
(gdb) quit


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080627/ee2fe341/attachment.htm 


More information about the asterisk-users mailing list