RogerBW
Posts: 9
Joined: Fri Jun 29, 2012 7:42 am

SIP audio failures (Griffin iMic)

Wed Sep 12, 2012 2:42 pm

I'm trying to make the Pi act as a headless SIP client for conferencing. I'm using Debian/wheezy and linphonec.

For sound input I have a Griffin iMic (it also has an output socket), which plays back local audio files perfectly well - and works well for two-way audio on a laptop.

An echo test to the SIP server, using the iMic for input and output, gives about half a second of audio before it goes silent. There doesn't seem to be any error reported at either end - as far as linphone is concerned, the call keeps going, and nothing relevant shows up in dmesg.

Switching to the built-in audio output (keeping the iMic for input), I get unusably choppy and broken audio.

Is there anything I can do to fix this, other than hoping for better USB drivers?

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: SIP audio failures (Griffin iMic)

Sun Sep 16, 2012 2:38 pm

Some driver hacks are listed here:
http://elinux.org/Rpi_USB_check-list

Might want to post dmesg in case someone sees something you missed.
Changing the logging levels might give some hints.
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

kyelo
Posts: 64
Joined: Sun Oct 23, 2011 6:31 pm

Re: SIP audio failures (Griffin iMic)

Sun Sep 16, 2012 4:52 pm

@RogerBW,

What you are describing bears some similarities to what I was experiencing:
http://www.raspberrypi.org/phpBB3/viewt ... &start=450
and
http://www.raspberrypi.org/phpBB3/viewt ... &start=200

and yes in my opinion the USB driver is the offender. The next time you get a disconnect from the sip provider, check your dmesg. I ALWAYS had a reset for the device number of my Logitech USB headset by dwc_otg, which I think is the USB device driver.

Interestingly, I finally was able to do VOIP by plugging the USB headset into the R_pi itself and not into a powered USB hub (I tried a 7-port D-link hub listed as "acceptable" and a 4-port Belkin which is as yet not categorized as "acceptable" or "unacceptable") - both hubs gave me the reset of my headset (and disconnect from sip provider) reported by dmesg.

So if you are plugging your mic into a hub, it might be worth trying plugging it into the R_pi.

Good luck.

RogerBW
Posts: 9
Joined: Fri Jun 29, 2012 7:42 am

Re: SIP audio failures (Griffin iMic)

Thu Sep 27, 2012 6:00 pm

I did these from the checklist at http://elinux.org/Rpi_USB_check-list (I don't have an rpi-update command):

smsc95xx.turbo_mode=N in /boot/cmdline.txt
dwc_otg.microframe_schedule=1 in /boot/cmdline.txt
vm.min_free_kbytes=16384 in /etc/sysctl.conf

and apt-get upgraded to the latest version, and it now seems to work - it's not perfect, but it's a whole lot better. Thanks to elatllat for the pointer.

tfcb
Posts: 3
Joined: Tue Oct 16, 2012 1:41 am

Re: SIP audio failures (Griffin iMic)

Tue Oct 16, 2012 3:18 am

Hi,

Slightly off topic, but what SIP client are you using? I'm also interested in implementing such if you have any pointers.

Thanks,

Tim

RogerBW
Posts: 9
Joined: Fri Jun 29, 2012 7:42 am

Re: SIP audio failures (Griffin iMic)

Tue Oct 16, 2012 11:51 am

Tim, I'm using linphone (specifically linphonec), on the basis that there are two SIP clients I use regularly elsewhere - ekiga and linphone - and linphone has a substantially smaller footprint. I control my pi entirely over an SSH link, so something that can run in a simple terminal window (or under screen) makes life much easier.

Twinkle also looks promising, but I haven't tried it yet.

Return to “Graphics, sound and multimedia”