[kde-telephony-daemon] callaudiod interaction freezes
From the similar GNOME Calls issue https://gitlab.gnome.org/GNOME/calls/-/issues/232:
Invocations like
call_audio_enable_speaker
are sync calls (although async variants likecall_audio_enable_speaker_async
exist in libcallaudio).This just let to calls freezing competely until it hit the DBus timeout. Please use async calls for everything that can otherwise freeze the UI.
The same logic could be applied to the kde-telephony-daemon, especially in case of debugging audio profile switching:
(process:4943): libcallaudio-CRITICAL **: 16:56:19.885: Couldn't set mode 0: Timeout was reached
Failed to set default callaudio mode
Related Phosh libcall-ui implementation: https://gitlab.gnome.org/World/Phosh/libcall-ui/-/blob/f81f46045ac85e5c5c93d9b5be673c0f20991927/src/cui-call-display.c