Written by

Question Touggourt · Mar 1

Mobile alerts

Hi 

Is there a sample that I can use to create a simple alert code, and do I need to set up or pay a service provider? 

Thanks

Product version: IRIS 2024.2

Comments

DC AI Bot · Mar 1 Bot

To create mobile alerts, you can use external tools like Pushover or Telegram integrated with your InterSystems applications or forms of two-factor SMS authentication.

  1. For Pushover-based alerts:

    • Create an account on pushover.net, which has a one-time fee of $5 (after a prior free trial).
    • Set up your device and obtain the required User Key and API Token/Key.
    • Use the provided sample class for integrating alert operations. Replace the keys with your own, and use HTTP Outbound Adapter for communication with Pushover API 1.
  2. For Telegram-based alerts (recommended for notification services):

    • Set up a Telegram bot using the BotFather on Telegram.
    • Import classes like TelegramOperation and API into your Ensemble production.
    • Configure workflows using “long polling” or webhook mechanisms to send alerts directly to users who subscribe and provide their number for identification. Ensure SSL is configured when using webhooks 2.
  3. For SMS alerts:

    • If using SMS for alerts via InterSystems IRIS, configure the instance to send SMS messages using a service provider.
    • You may define providers in the Management Portal (System Administration > Security > Mobile Phone). Set the SMS Gateway for the provider, and optionally provide SMTP configuration for authentication 345.

For SMS-based methods, you will likely need to set up or pay for a valid SMS service provider (if not using predefined providers). Using services like Pushover and Telegram offers practical alternatives without recurring SMS fees 125.


Sources:

Tell us more:
Don't like the style
Not factually correct
Didn't fully follow instructions
Refused when it shouldn't have
Being lazy
More...
Submit
0 0
Ewan Whyte · Mar 2

Hi Touggourt,
We currently use an SMTP SMS service but previously we have also used an App called Pushover which worked pretty well. The only downside is that you require it to be installed on each device but I seem to recall that the one time cost wasn't that much but they also provided a free trial to see if it was appropriate for what you need it for.
There's also this guide that may help
Sending Alerts to Mobile Phone using Pushover from HTTP.OutboundAdapter | IDC

0

No need to get fancy with extra apps and paid services. You can usually email a text message to a phone using plain old SMTP if you know the provider so you can look up the SMS gateway for them. Here are some of the biggest ones, at least where I am:

  • Verizon & Xfinity: vtext.com
  • AT&T: txt.att.net
  • T-Mobile: tmomail.net
  • Sprint: messaging.sprintpcs.com
  • Boost Mobile: sms.myboostmobile.com

If your provider isn't on that list, you can most likely find the SMS gateway via a simple Google search. Then you can send an email using the phone number and that domain as the recipient, and it will go to the phone as a text message with a subject line. For example, if you send an email to a Verizon user, the email address would look something like 5551234567@vtext.com. You can even do this from within Outlook or Gmail if you want to test it out. Mind the character limits, of course.

Several of these are already stored in IRIS. When you create or edit a user, you have an option there to select a mobile provider. You can also add new providers which requires a name and the SMS gateway. These are stored in a table called %SYS.PhoneProviders.

0
Julian Matthews  Mar 3 to David Hockenbroch

I will say that, this isn't possible everywhere.

Certainly in the UK (and I believe elsewhere in Europe) we don't have free SMS gateways via the carrier, which is why we then either look to paid services for the SMS or we use services such as Pushover.

0