eofster/Telephone — Issue #43: Config stuck trying bluetooth headset first causing calls to fail
Author: jinnko
Created: 2012-01-13 11:27:20+00:00
State: open

I've been using Telephone for a couple of years successfully, however now there's a bug and I can't figure out how to clear it out.

I have a bluetooth headset that I occasionally use, however when the device isn't available I always get the "Bluetooth audio failed / Stop using headset" prompt several times with about 10-15 seconds delay between prompts.

I have checked all layers of audio config and they're correct:
1. Within Telephone.app the Sound settings are set to Internal (Microphone|Speaker)
2. In the System Preferences all settings are configured for Internal (Microphone|Speaker)
3. All other apps function correctly and the problem is only isolated to Telephone.app

Enabling debugging I get the following in the logs corresponding to the problem:

``` 11:14:02.293 pjsua_acc.c Keep-alive timer started for acc 1, destination:w.x.y.z:5060, interval:15s
11:14:23.074 pjsua_media.c Opening sound device PCM@16000/1/20ms
11:14:23.075 ec0x116b263f0 AEC created, clock_rate=16000, channel=1, samples per frame=320, tail length=200 ms, latency=20 ms
11:14:32.483 pjsua_media.c Opening sound device PCM@44100/1/20ms
11:14:32.489 ec0x101b29fc0 AEC created, clock_rate=44100, channel=1, samples per frame=882, tail length=200 ms, latency=20 ms
11:14:41.787 pjsua_media.c Opening sound device PCM@48000/1/20ms
11:14:41.789 ec0x116ba3b80 AEC created, clock_rate=48000, channel=1, samples per frame=960, tail length=200 ms, latency=20 ms
11:14:51.787 pjsua_media.c Opening sound device PCM@32000/1/20ms
11:14:51.788 ec0x101aec8f0 AEC created, clock_rate=32000, channel=1, samples per frame=640, tail length=200 ms, latency=20 ms
11:15:01.311 pjsua_media.c Opening sound device PCM@16000/1/20ms
11:15:01.312 ec0x116a05dd0 AEC created, clock_rate=16000, channel=1, samples per frame=320, tail length=200 ms, latency=20 ms
11:15:11.348 pjsua_media.c Opening sound device PCM@8000/1/20ms
11:15:11.348 ec0x101b29fc0 AEC created, clock_rate=8000, channel=1, samples per frame=160, tail length=200 ms, latency=20 ms
11:15:20.787 pjsua_media.c Unable to open sound device: Internal PortAudio error [status=469985]
11:15:20.788 pjsua_core.c RX 548 bytes Request msg OPTIONS/cseq=102 (rdata0x1008c0628) from UDP 84.243.247.100:5060:
````

I was trying to find a way to delete all preferences and re-setup my accounts with the hope it may fix the problem but wasn't able to find the Telephone prefs in any path such as ~/Library/Application Support/