Calls won't play the ringtone after changing the output audio device
What problem did you encounter
Calls won't play the ringtone after changing the output audio device. This doesn't affect the call, it only affects the ringtone.
What is the actual behaviour?
Calls plays the ringtone when getting a call. Changing the audio output to the headphone makes Calls not play the ringtone anymore. Even after restoring the audio output device to the default built in audio output doesn't make Calls play the ringtone again, until the device is restarted.
What is the expected behaviour?
Calls should keep playing the ringtone on the different audio output devices.
How to reproduce
- Boot the device (in my case, the devkit)
- Unlock the sim card
- Get a call
- => Calls plays the ringtone loud and clear in the device speakers
- Plug in headsets to the device (and change the output device in the system settings)
- Get a call
- => Calls doesn't play the ringtone anymore in the headsets
- Unplug the headsets (and restore the output device to the default one in the system settings)
- Get a call
- => Calls doesn't play the ringtone anymore in the device speakers
Which version of Calls did you encounter the bug in?
I compiled it myself. If you compiled Calls from source please provide the git revision via e.g. by running
git log -1 --pretty=onelineand pasting the output below.
I used the precompiled Debian package (e.g. by running a prebuilt image). Please paste the output of
dpkg -s callsbelow.
Package: calls Status: install ok installed Priority: optional Section: comm Installed-Size: 415 Maintainer: Bob Ham <email@example.com> Architecture: arm64 Version: 0.0.1~205.gbp974650 Depends: libc6 (>= 2.17), libebook-contacts-1.2-2 (>= 3.16.2), libglib2.0-0 (>= 2.57.2), libgom-1.0-0 (>= 0.3.2), libgsound0 (>= 1.0.1), libgtk-3-0 (>= 3.17.9), libhandy-0.0-0 (>= 0.0.10), libmm-glib0 (>= 1.5.993), libpango-1.0-0 (>= 1.14.0), libpeas-1.0-0 (>= 1.0.0), libwayland-client0 (>= 1.9.91), modemmanager Conffiles: /etc/xdg/autostart/sm.puri.Calls.desktop 656e549c2c3e7b931a8f37ac739cbc3c Description: Make and receive PSTN phone calls A GTK+ user interface for PSTN phone calls using oFono.
What hardware are you running Calls on?
amd64 qemu image
other (please elaborate)
What modem are you using?
Sep 09 11:32:28 pureos pulseaudio: W: [alsa-sink-308b0000.sai-sgtl5000 sgtl5000-0] alsa-sink.c: Resume failed, couldn't restore original sample settings. Sep 09 11:32:28 pureos pulseaudio: W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended. Sep 09 11:32:28 pureos calls: Attempt to load unknown IM context type 'simple' Sep 09 11:32:28 pureos calls: Error playing ringtone: Invalid state