Setting up Yealink SIP-T58 with Assist

Hello everyone,

When I found that you could dial up HA with sip, I thought, can I use a regular SIP deskphone with this?

I did and it shows up:

image
But the deskphone says Not acceptable here
It also shows this error in the log

Error details Logger: homeassistant.components.websocket_api.http.connection

Source: components/websocket_api/connection.py:188

Integration: Home Assistant WebSocket API (documentation, issues)

First occurred: 9:20:02 AM (3 occurrences)

Last logged: 10:01:07 AM

[547377263824] Error handling message: Unauthorized (unauthorized) Deskphone from 192.168.1.8 (okhttp/4.10.0)
Error details And this error as well

Logger: voip_utils.sip

Source: /usr/local/lib/python3.11/site-packages/voip_utils/sip.py:134

First occurred: 8:52:34 AM (4 occurrences)

Last logged: 9:58:22 AM

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/voip_utils/sip.py", line 57, in datagram_received
    method, ruri, headers, body = self._parse_sip(message)
                                  ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/voip_utils/sip.py", line 216, in _parse_sip
    method = line_parts[0]
             ~~~~~~~~~~^^^
IndexError: list index out of range

I have a softphone (MicroSIP) and it works perfectly on my computer
image
These are my settings on MicroSIP, an I know it uses opus for codec, so I had to add it:
image
Here are the settings on the SIP phone


I have enabled IP Call:

The phone still shows Not acceptable here

Please Help

Inglan

I have a bunch of yealinks, haven’t tried yet, but interested in your progress

I’m pretty sure the reason it immediately hangs up with “Not acceptable here” is due to a conflict with codecs. Though the Yealink phone supports opus, I think their sample rates are different, which conflicts and leads to issues. I tried with two different Yealink T46s’ and both have the exact same result as yourself.

I was however successful at connecting them by setting up a basic asterisk server and assigning the IP address of Home Assistant to an extension. I still need to do some tweaking to my setup to get over some oddities, but it’s fully functional.

Here is how the extension looks like for Home Assistant in my extensions.conf file for asterisk

exten => 7000,1,Dial(SIP/192.168.1.200:5065,20)

I have tried this setup but my call is ended with a

[Oct 24 00:04:36] NOTICE[2665][C-00000001]: chan_sip.c:10884 process_sdp: No compatible codecs, not accepting this offer!

But i think the opus codec is active, after following this tutorial,

Did you perform any other modifications?

I tried

exten => 7000,1,Dial(SIP/192.168.1.200:5060,20)
exten => 7000,n,SET(SIP_CODEC=opus)

Haven’t got anywhere with this