Yes, thatās an option I can totally add. My main thinking when I was building this app was to keep it as simple as possible. And even though we need to access the API and OAuth, which is a relatively complex process, I did not want to add more settings to go in your DID, at the webhook, to handle that and make sure you have the right URL.
Because my first thinking was that itās an app that you run on your computer, and you donāt necessarily have external access, and I donāt want to deal with tunneling like ngrok or Cloudflare. But now that I have a version that Iām specifically pointing toward web hosting, I think I can add this setting, which will make perfect sense.
Let me work on that a bit, and I will give you feedback as soon as itās set up. That was my first idea.
Thanks for your consideration. This is a great piece of work! You may have noticed that there is an Android app by Michael Kourlas based on voip.ms API. I saw this Web URL use there.
This is what AI explains:)
How the Web Callback Works
Push Notification Service: When notifications are enabled, the app configures your VoIP.ms DID to ping a web service hosted by Michael Kourlas whenever an SMS or MMS message arrives. [1]
Cloudflare Worker: This push service is built as a Cloudflare Worker. [1]
Firebase Cloud Messaging: The service relays the notification through Firebase Cloud Messaging to wake up your Android device using a unique installation ID. [1]
Synchronization: Once the app receives the web callback/ping, it queries the VoIP.ms servers to fetch the actual text message content while protecting user privacy. [1, 2]
Good news: version 1.8.0 adds what you asked for. VoIP.ms can now tell the portal as soon as a text comes in, instead of the portal checking every minute.
In the portal, open Settings ā Updates and click Install to get 1.8.0, then reload the page.
In Settings ā Receiving texts, choose Instantly, through a VoIP.ms webhook. The portal sets up your numbers at VoIP.ms by itself; each one should then say āCalls the portalā.
Thatās it: new texts show up within seconds. āLast call from VoIP.msā in that section confirms it after your next incoming text.
Keep the cron job: it still runs as a safety net every 15 minutes (for texts sent from other apps), and downloads MMS pictures.
@dansleboby for shared hosting, I have 2 DIDs and I want myself see two numbers and another person see one number only (turn the other one off). Is this possible? Thanks.
SMS Portal 2.0 is out (2.0.2 as of today), and a lot of it comes straight from this thread. Thanks for all the feedback!
Whatās new
Team mode (@TheDude, @yzhou): several people on one install, each with their own email and password. You choose the numbers each person sees, read only or with sending, and every text shows who sent it. Read/unread can be shared or per person, number by number.
Several VoIP.ms accounts in one portal (one per client, say). The add-account dialog now shows the IP to whitelist right away, then offers to import the accountās history.
Instant receiving, number by number, for every account. A number already wired to another app can stay on regular checks, so that app keeps getting its texts.
Address books per number, plus a personal one for each user.
My numbers: hide or mute a number just for yourself.
Activity log for admins, and My sessions to sign out of every other device.
Short codes (@hohokus): you can now text them, e.g. transit bots that answer a keyword. Accented letters from short codes no longer go missing.
One server for Docker and cPanel: the Docker image now runs the same PHP app as the shared hosting zip.
Upgrading keeps everything (conversations, contacts, settings); everyone just signs in again once.
cPanel: pick PHP 8.4+ in MultiPHP Manager first, then Settings ā Updates.
Docker:docker compose pull && docker compose up -d
The emoji button is gone on phones in 2.0.2. Good call, the keyboard already has it.
Push notifications already carry the message text, so the phone fetches nothing. But the VoIP.ms callback stays a simple āpingā: VoIP.ms doesnāt sign its callbacks, so the portal canāt prove a call really came from them. It reads the text from the API instead, a few seconds later. The 15-minute safety check stays.
Group MMS is still not possible, sadly: VoIP.ms doesnāt support it on their side.
As always, issues and ideas are welcome on GitHub.
@dansleboby This is really great. Thanks. I cannot wait to try it!.
Regarding the callback, sorry for my naiveness, can the callback be configured https://ā¦+{TO}, {FROM}, {MESSAGE}, and {MEDIA}to indicate the source? Just a guess:)
Yes, VoIP.ms can fill those in: the callback URL can carry {FROM}, {TO}, {MESSAGE}, {MEDIA}, {ID}⦠But they tell the portal what the text says, not who is calling. Anyone who has the URL can call it with any values they like, and the portal canāt tell the difference.
Thatās the missing piece: VoIP.ms doesnāt sign its callbacks. Twilio or Stripe add a signature made with a secret only you and they know, so your server can check that a call really comes from them and wasnāt changed on the way. VoIP.ms has nothing like that: the only secret is the URL itself.
Guessing that URL is hopeless (32 random characters). The real risk is a leak: it sits in your DID settings, in the web hostās access logs and stats pages (on cPanel you donāt control those), in backups, in a screenshot sent to support⦠and it never expires.
A text āfromā a client you know shows up in their conversation, under their name, with a push notification: āHi, itās Marie, I changed banks, please send the deposit toā¦ā. In Team mode, a colleague has no reason to doubt it.
{MEDIA} is a URL the server downloads. A forged call could make your server fetch whatever itās told, including addresses on its own network.
The price of doing it right is small: one API call per incoming text, made after answering VoIP.ms. It adds a few seconds at most (the VoIP.ms API has been slow lately), and the push goes out as soon as the text is in.
If VoIP.ms ever adds signed webhooks, Iāll gladly switch. @VoIP.ms
Good question, @yzhou! Instant receiving is set per number, for the whole portal, not per user: an admin picks it in Settings ā Receiving texts, and it applies to everyone who has that number.
A user only ever gets the texts and notifications of the numbers theyāve been given (read only or with sending), minus the ones they hid or muted in Settings ā My numbers. Texts to other numbers still come in instantly for the people who have those numbers, but they never show up for that user, and they donāt get notified about them.
Thanks, @dansleboby . It is almost a perfect SMS app for me! You are an excelant developer. One small request. In the password window, is it possible to add a visible toggle? My fingers are too big for phone keyboard to correctly type.
I opened a ticket asking about URL callback capability. Here is what I got from voip.ms support:
"At the moment, our SMS/MMS URL Callback documentation does not mention support for callback signatures or authentication mechanisms.
We recommend submitting this suggestion through our Feature Request section so our development team can review it and consider it for future implementation."
So I submit a feature request. Will wait and see how responsive voip.ms will be:)