(This is why I laugh and laugh at people who insist that VoIP numbers are more "fraudulent" because of whatever. Right now, breaking no rules whatsoever, I can get a hundred mobile numbers that any service will accept, and they'll go for a year without needing any more money. Stop using phone numbers as identity verifiers, people. All you're doing is making it harder for the people who aren't technically savvy and accomplishing nothing to prevent actual fraud.)
It seems like it would be easy enough to change your setup to hide your actual location by locating the gateway elsewhere and backhauling with its own IP connection.
BTW are there any standard interoperable formats for transmitting/presenting/archiving text messages, akin to Maildir for email or SIP for voice? If not, maybe Maildir is the right answer.
And everyone tells me that only accepting "real" mobile phone numbers means they're just piggybacking on the identity checks that mobile carriers do. Which, if true, I'd like to introduce you to Constable George Crabtree and his nineteen perfectly valid mobile numbers, all of them with his name in the CNAM field.
All this does is prevent someone who's not tech savvy and who might be trying to save a bit of cash by using a Republic Wireless or TextNow or some other "free calls and texts!" service from fully participating in this new app-based reality we've constructed. Someone who actually wants to commit fraud will step right over these dumb speed humps and do whatever they like.
I'm not saying don't do fraud detection, I'm saying don't do fraud detection that is so screamingly trivial to bypass.