I'm trying to turn a small embedded device into a fully functional A2DP+HFP receiver.I've got everything working, but I'm really having trouble figuring out how to get the module-echo-cancel to work with ofonoHere is what I have:- PulseAudio 7.1- Ofono 1.15I'm running a headless system, so everything is run under the root user. I have tried loading the module-echo-cancel from the config file, and the module loads, but when I make a call a new sink and a new source is added and the module-echo-cancel is not automatically added to them.I have tried manually loading the module-echo-cancel after the call is established and the new sink and source is added. This does create a new virtual echo_cancelled source and sink, but it's only sitting IDLE and then gets suspended, the sound still goes through the initially created sink/source.Listing the modules after the connection is established shows me this:Module #21        Name: module-loopback        Argument: source=bluez_source.30_5A_3A_19_C0_5B.echo-cancel sink_dont_move=true source_output_properties=media.role=phone        Usage counter: n/a        Properties:                module.author = Pierre-Louis Bossart                module.description = Loopback from source to sink                module.version = 7.1Module #22        Name: module-loopback        Argument: source=bluez_source.30_5A_3A_19_C0_5B source_dont_move=true sink_input_properties=media.role=phone        Usage counter: n/a        Properties:                module.author = Pierre-Louis Bossart                module.description = Loopback from source to sink                module.version = 7.1If I try to unload this modules, load the echo-cancel module and then load the loopback module the sound gets bounced back to the phone instead of being heard from the devices speakers.I have tried to do, but didn't helped either:PULSE_PROP=filter.want=echo-cancel ofonodAny suggestion on how can I enable the echo-cancellation for Ofono?Thank you.
How to get PulseAudio echo-cancel to work with Ofono
pulseaudio