arnonym / ha-plugins

Home-Assistant SIP Gateway
Apache License 2.0
157 stars 19 forks source link

Hang up other SIP session possible? #35

Closed billytkid closed 1 year ago

billytkid commented 1 year ago

Hi, this isnt a bug, but I'm not sure if it's meant to work or not.

I have a SIP phone at home, and my gate calls the SIP phone when someone presses the gate buzzer (this is on Home Assistant).

When I want to let someone in I hit a button in HA and it opens the gate.

I'd like HA to be able to hang up the SIP session on the other device, is that possible? I've configured both HA-SIP and my SIP phone on the same account.

Thanks!

arnonym commented 1 year ago

Hi Billy,

ha-sip can only hangup calls that are accepted or executed by ha-sip itself. If the door station is calling the sip phone there is no way for ha-sip to cancel that. Not sure if you meant that, if not please clarify.

Regards, Arne

billytkid commented 1 year ago

Hi Arne, Thanks for getting back to me. Yep that's exactly the use case I was trying to achieve, I'll have to see if I can do it another way.

Thanks!

arnonym commented 1 year ago

Thinking about that a bit more: if the door-station is still ringing the phone and ha-sip, you could try to accept the call and hang-up right after.

billytkid commented 1 year ago

Thats a great idea, will give that a go! Thank you

arnonym commented 1 year ago

Please report if it worked. I'm curious.

billytkid commented 1 year ago

That works perfectly, amazing!

I can even use the TTS to say on the intercom 'please come in'

Superb! Thank you