13

Has anyone got Home Assistant to work with an IP phone as a local voice control?

I have a Grandstream GXP 2140, and I cannot get it talking to HA for the functionality. It doesn't have the same settings as the Grandstream pots to IP Phone device from the article.

https://www.home-assistant.io/voice_control/worlds-most-private-voice-assistant/

I have Whisper and Piper installed, and showing up under the Wyoming protocol. I have the IP Phone addon installed, but it never detects my phone.

top 8 comments
sorted by: hot top controversial new old
[-] theamigan@lemmy.dynatron.me 3 points 9 months ago

Yes, I have it actually going via my asterisk dialplan from my grandstream HT802. It should just work if SIP and RTP can pass correctly.

[-] Banzai51@midwest.social 1 points 9 months ago

It's all local network with a local assistant in HA. Nothing should be stopping it.

[-] theamigan@lemmy.dynatron.me 1 points 9 months ago

I had the benefit of pjsip set logger verbose on to display raw SIP stanzas while I was getting it working with asterisk. You may wish to do some tcpdumping to see what is going on.

[-] redcalcium@lemmy.institute 2 points 9 months ago* (last edited 9 months ago)

Does the voip integration actually support your device though? The supported device in the doc seems to be very different from your model: https://www.home-assistant.io/integrations/voip

Also, does the SIP port 5060 created by the integration actually accessible from your network? If you're using a firewall, you might need to open the port there.

[-] theamigan@lemmy.dynatron.me 2 points 9 months ago

SIP is SIP. As I stated elsewhere, I actually have it working with asterisk initiating the call from its dialplan.

[-] Banzai51@midwest.social 1 points 9 months ago

The directions show how to take a transitional POTS phone and hook it up with a VOIP device. I do want to do that with a fancy looking old phone (but new construction). But with my existing VOIP phone I thought I could skip the conversion device.

[-] redcalcium@lemmy.institute 2 points 9 months ago* (last edited 9 months ago)

Have you checked the homeassistant log and see if there is any error there? It should listen to port 5060 udp. try calling any number and see if it log any error.

In my case, I'm able to connect using ACR Phone android app and home assistant detected it but no sounds even though opus codec is selected. I haven't investigated it further. None of other android sip apps I tried come this close because they either don't support opus, or crash the integration with "Padding and extension headers not supported" error, or refuse to connect because the integration can't handle SIP INVITE.

[-] Banzai51@midwest.social 1 points 9 months ago* (last edited 9 months ago)

Update: I got my MicroSip soft phone working. But HA doesn't like to hear me properly. Example: When I ask it to "turn on office light" it works 70% of the time. The "turn off office light" only has worked once. Looks like the system is seeing "officelight" as what is spoken. I'm going to through all the exposed devices and creating one word aliases like "officelight." I'll test again soon to see if that improves recognition.

MicroSip setup:

Note: SIP Proxy and Domain IP address are the same, the IP of my Home Assistant.

Now I just have to figure out if I can get my Grandstream IP phone to use something similar.

this post was submitted on 02 Feb 2024
13 points (100.0% liked)

homeassistant

12007 readers
131 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 1 year ago
MODERATORS