SIP/VOIP doorphone (connected to a SIP/VOIP pbx) sending notifications

Hi community, I need your knowledge on how to make a SIP/VOIP doorphone (connected to a SIP/VOIP pbx) sending notifications to my Home Assistant each time that somebody is ringing our home.

My guess is that I need a kind of SIP integration and I have to make a MQTT sensor.

Having a notification in HA is fundamental, after that I know how to manipulate it and having email or Telegram message in my phone.

I couldn’t find anything in this community and I have no idea how to categorize my query …

I think it depends on your PBX. I’ve used the FreePBX REST API’s to accomplish similar capabilities in the past, such as knowing when I’m on the phone and disabling TTS announcements. It could be MQTT or a trigger on your PBX that simply executes and API call to HA to do something.

My pbx is a yeastar s20 and I haven’t seen any setting in is menu that I can relate in my mind.

Does it have the ability to do webhooks? Or triggers? If so then you can call the HA REST API.

I have no idea but never met such terms in the menu!

PS I got an addon named Ha-sip and I"m trying to find out how is working…

Ha-sip has webhook thing, I have setup it but I can’t find out how to work with it.
Fanvil doorbell, in its menu, has a whole page with so called “action url”.
Any idea how to proceed?