Pipewire issues with element-desktop and schildichat-desktop

my pipewire config (literally almost just what is in the wiki):

{ config, pkgs, ... }:
{
	environment.systemPackages = with pkgs; [ pamixer ];
	security.rtkit.enable = true;
	sound.enable = false;
	services.pipewire = {
		enable = true;
		wireplumber.enable = true;
		pulse.enable = true;
		alsa.enable = true;
		alsa.support32Bit = true;
		jack.enable = false;
	};
	environment.etc = {
		"wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = 
		''
			bluez_monitor.properties = {
				["bluez5.enable-sbc-xq"] = true,
				["bluez5.enable-msbc"] = true,
				["bluez5.enable-hw-volume"] = true,
				["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]"
			}
		'';
	};
}

the issue is that sound in calls doesn’t work properly
at first everything works as intended, I can hear my call partner, and they can hear me
but after a few seconds the sound just stops working, and I can confirm in pavucontrol that no audio stream exists
I have tried enabling jack, disabling alsa (makes sound in element stopping to work entirely). no success
I have literally no idea what could be wrong, or if the problem is just not on my site.

Here is my config repository: quantenzitrone/nix-config: config for my NixOS machine - Codeberg.org

Hi have a little same configuration and same issue sound is not really stable.
If anyone have idea how to fix ?

Best Regards

interesting, I don’t have this issue.

Maybe some more infos would be nice: what audio devices are you guys using for input and output?

Is this limited to element-desktop?

Element-Desktop works for me, Schildichat-Desktop when I last checked did not.
My current pipewire config is also different:

security.rtkit.enable = true;
sound.enable = true;
services.pipewire = {
  systemWide = true;
  enable = true;
  audio.enable = true;
  wireplumber.enable = true;
  pulse.enable = true;
  alsa.enable = true;
  alsa.support32Bit = true;
};

I was most probably using my Bluetooth headphones for output and an external Microphone (because the laptop internal mic is garbage). But I think I would have noticed if it worked on some in/output devices and for some not.