I'd like to use linphone as softphone using a normal bluetooth headset.
However, linphone crashes when I attempt to do that.
How to reproduce
1. Start linphone-3 (compiled form linphone-3.0.0).
2. Go to View/Preferences/Multimedia Settings
3. Change "Ring device" to "PASND: bluetooth"
4. Press the Ring sound "Play" button.
Expected result
Linphone plays some sound.
Actual result
Linphone crashes.
I've repeated this using gdb and I get follow stack trace:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb64a26c0 (LWP 25540)]
pasnd_open (device=0x8290580, devnumber=<value optimized out>, bits=16,
stereo=1, rate=44100, minsz=0xbf9425e0) at pasnd.c:155
155 outputParameters.suggestedLatency = Pa_GetDeviceInfo(
outputParameters.device )->defaultLowOutputLatency;
(gdb) bt
#0 pasnd_open (device=0x8290580, devnumber=<value optimized out>,
bits=16, stereo=1, rate=44100, minsz=0xbf9425e0) at pasnd.c:155
#1 0xb7fc3f74 in pasnd_write_preprocess (f=0x8489bc0) at pasnd.c:459
#2 0xb7fb8878 in ms_filter_preprocess (f=0x81e7c04, t=0x83bfaa0) at
msfilter.c:208
#3 0xb7fb9fa2 in ms_ticker_attach (ticker=0x83bfaa0, f=0x8394490) at
msticker.c:130
#4 0xb7fbfb21 in ring_start_with_cb (file=0x8202a88
"/usr/local/share/sounds/linphone/rings/oldphone.wav", interval=2000,
sndcard=0x81f08b0, func=0xb7f97f80 <notify_end_of_ring>,
user_data=0x81e6bf8) at audiostream.c:407
#5 0xb7f99614 in linphone_core_preview_ring (lc=0x81e6bf8,
ring=0x8202a88 "/usr/local/share/sounds/linphone/rings/oldphone.wav",
func=0x8050e20 <linphone_gtk_end_of_ring>, userdata=0x83c4d50) at
linphonecore.c:1761
#6 0x0805296b in linphone_gtk_play_ring_file (w=0x83c4d50) at
propertybox.c:167
#7 0xb78e72a4 in g_cclosure_marshal_VOID__VOID () from
/usr/lib/libgobject-2.0.so.0
#8 0xb78d9c3b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
I hope that helps. :-)
ciao,
Xuân.
P.S.: It appears that all "pasnd" sound devices show the same behaviour.