Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Notify using SIP server #5375

Open
Hoto-Cocoa opened this issue Nov 24, 2024 · 6 comments
Open

Notify using SIP server #5375

Hoto-Cocoa opened this issue Nov 24, 2024 · 6 comments
Labels
area:notifications Everything related to notifications feature-request Request for new features to be added type:new proposing to add a new monitor

Comments

@Hoto-Cocoa
Copy link

📑 I have found these related issues/pull requests

I searched about SIP but there was exist only about monitoring SIP server but not using SIP server.

🏷️ Feature Request Type

New notification-provider

🔖 Feature description

I have local SIP server and I'm using this as my emergency contact.

Now I want integrate my Uptime Kuma instance to my SIP server.

✔️ Solution

Add SIP server to notification method. If monitor goes down, Dial to specified number.

I think just dialing only is OK, but If I can play audio file or Uptime Kuma can say sentences will be awesome.

❓ Alternatives

No response

📝 Additional Context

No response

@Hoto-Cocoa Hoto-Cocoa added the feature-request Request for new features to be added label Nov 24, 2024
@CommanderStorm
Copy link
Collaborator

CommanderStorm commented Nov 25, 2024

This is kind of niche/uncommon notification provider.
If you/someone else would like to contribute such a provider, here is the Contribution guide:
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md

If you/someone else do decide to do this, please not these two suggestions, which often push PRs back by a review-cycle:

  • Ensure that the PR includes screenshots of the DOWN/UP and testing/cert-expiry events.
  • All keys that can/should be translated are in en.json (⇒ our translators can translate this and no merge-confilicts between weblate and master can arise)

Related Notification provider-requests:

@CommanderStorm CommanderStorm added area:notifications Everything related to notifications type:new proposing to add a new monitor labels Nov 25, 2024
@kristiandg
Copy link

I've asked my developers to submit a pull request for this. I asked for a similar module a couple years ago. This module can register as a SIP endpoint or just do an OPTIONS request. We didn't build it for a NOTIFY because that's an uncommon method for SIP health, but here's the pull request, which I'm hoping gets approved. #5382

@Hoto-Cocoa
Copy link
Author

Anyways then I will try implement it myself when I have time for this.

I think I don't have any time for do this now, but I hope I have more time to do this later.

@kristiandg
Copy link

kristiandg commented Nov 29, 2024

@Hoto-Cocoa, what is your SIP server? Is it something like Asterisk, or something like NetSapiens? I ask because, something like NetSapiens, has the ability to execute web instructions to tell the SIP server to do things. There's an entire structure utilizing something called a WebResponder that allows you to instruct the server to speak via it's native TTS engine (or, of course, play a sound file).

If you're using something like FreePBX, then you could use the Voicemail Notification module (which calls out to an escalating set of numbers, or just the one number), whenever a voicemail is left, and you could generate a phone call to leave a voicemail that would then trigger that event.

@Hoto-Cocoa
Copy link
Author

@kristiandg I'm currently using Asterisk only.

@kristiandg
Copy link

kristiandg commented Nov 29, 2024

@Hoto-Cocoa OK, so raw Asterisk and not the FreePBX variant. Just wanted to make sure. Another thing you could do is register an ATA to it, and set that to auto call an extension or queue in Asterisk (and in that extension or queue, you have it set to redirect to the numbers you want called). Then, all you'd need is a contact closure to short out the analog port on the ATA, which will then generate the phone call. That's a very "analog" way to achieve it, but in a pinch, I just wanted to mention it as well. :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area:notifications Everything related to notifications feature-request Request for new features to be added type:new proposing to add a new monitor
Projects
None yet
Development

No branches or pull requests

3 participants