Ubuntu Bluetooth phone calls Android as handsfree

Posted by MD     Category: Informatica



Hello, everyone,
I was able to hear and make calls from the mobile phone connected in BT (bluetooth) through the computer with Ubuntu and with headphones with microphone connected to the PC.
Let’s say how modern cars that have the Bluetooth handsfree, in fact you can make calls without headphones inserted.

0) Connect and pair the android smartphone (I used android 7.1) with BT to Ubuntu 18.04
1) Install ofono from package manager
2)Edit the file with

sudo gedit /etc/dbus-1/system.d/ofono.conf

putting in the final part

  <policy user="pulse">
<allow send_destination="org.ofono"/>
</policy>

</busconfig>

3) edit the file with

sudo gedit /etc/pulse/default.pa

Replace

load-module module-bluetooth-discover

with

load-module module-bluetooth-discover headset=ofono

4) Restart the PC
5) From smartphone go to BT and connect with a simple click to the already associated pc
6) In audio settings (system PC), in the input sub-menu, do not select the BT of the cell but the input of the microphone or of the PC or of the headphones connected to the PC (if it does not appear, change this setting during the call).
7) make a call and see if everything works! (remember when changing the microphone input as step 6)

Since searching on the internet I have not found any solution I have worked hard to write this guide
I hope you can use it
Greetings to all