<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Refused to switch profile to headset_head_unit when trying to use bluetooth headset microphone"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93898">93898</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Refused to switch profile to headset_head_unit when trying to use bluetooth headset microphone
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>core
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>yajo.sk8@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lennart@poettering.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I have 2 bluetooth headsets. With the first one I can connect "without
problems"[1], and enable HSP/HFP flawlessly[1] from GNOME sound settings. Its
info:

Device 00:00:00:00:36:59
    Name: BT-H06
    Alias: BT-H06
    Class: 0x240404
    Icon: audio-card
    Paired: yes
    Trusted: yes
    Blocked: no
    Connected: yes
    LegacyPairing: no
    UUID: Serial Port               (00001101-0000-1000-8000-00805f9b34fb)
    UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
    UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
    UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
    UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
    UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
    UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)


The second device works fine in A2DP mode, but when switching to HSP/HFP from
the same place it logs this:

[pulseaudio] module-bluez5-device.c: Refused to switch profile to
headset_head_unit: Not connected

The device:

Device 7F:65:1D:43:BB:EC
    Name: Mini503-TF
    Alias: Mini503-TF
    Class: 0x240404
    Icon: audio-card
    Paired: yes
    Trusted: yes
    Blocked: no
    Connected: yes
    LegacyPairing: yes
    UUID: Serial Port               (00001101-0000-1000-8000-00805f9b34fb)
    UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
    UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
    UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)

I see some differences between them, but both work fine with my Android phone
so I guess it must be a PA/Bluez/oFono problem.

[1] Well, not exactly without problems. I had to apply workaround from
<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - HSP not working in pulseaudio with BlueZ 5"
   href="show_bug.cgi?id=73325#c50">https://bugs.freedesktop.org/show_bug.cgi?id=73325#c50</a> (downgrade to bluez
5.35) to make it work. But I'm not sure if both bugs are the same, because with
bluez 5.36 the logs show the same message you have above for both headsets.
Should I open a new bug for that?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>