Hello, This is the latest version of patches for HandsfreeGateway. Instead of unloading module at disconnect, the profile is set to "off" using a message sent from IO thread to main thread according to Luiz suggestion. v4 takes into account Arun comments in patch 3! Best regards, Fr?d?ric Fr?d?ric Dalleau (7): bluetooth: Fix Media Endpoint for HandsfreeGateway bluetooth: Do not unload module-bluetooth-device on ERR or HUP bluetooth: Release MediaEnpoint if card profile is set to Off bluetooth: Set off profile on SCO disconnect bluetooth: Set hfgw profile when HandsfreeGateway is playing bluetooth: Use static string in DBUS signal handler description bluetooth: Remove match for org.bluez.MediaTransport.PropertyChanged src/modules/bluetooth/bluetooth-util.c | 14 ++- src/modules/bluetooth/bluetooth-util.h | 1 + src/modules/bluetooth/module-bluetooth-device.c | 114 +++++++++++++++++++-- src/modules/bluetooth/module-bluetooth-discover.c | 4 +- 4 files changed, 119 insertions(+), 14 deletions(-) -- 1.7.4.1