I just had the same issue. In my case, setting up WhatsApp for the first time. It is unable to send the text.
Unfortunately WhatsApp makes me wait an hour between tries, so I’m waiting, but thinking about it. I have a couple of ideas while I’m waiting.
I ported my number to Smarty. Initially, though everything seemed to work, my iPhone would not update the phone number in my Mobile Service setting. Another thing that would not work was Apple not being able to register my number for iMessage and FaceTime. It kept only showing my temporary Smarty SIM number, which was no longer active of course.
I fixed this by going into my General Settings and doing a reset of network settings and a reboot. This fixed the number that showed in settings, and also my Apple apps then registered properly.
While this did not solve WhatsApp for me, maybe it can work for you.
Also, it got me remembering something from my old tech days. Some companies will send text messages via an app that selects a provider, and uses their gateway for the text. Phone numbers will show up in lists of the original pre-port provider, and a texting system may be trying this method of sending. Ie. If you’ve ported your number, WhatsApp *might* be detecting your old provider as "owning" the number, even though you’ve ported, which could fail if they’re trying the old provider’s texting gateway. Just a thought. If this is the case it will probably never work.
I know that would get spam calls from Three when I had been on O2 for a while, because my number was in the Three range of ‘original’ numbers.
Another thought - my next test (in another hour!!). Smarty wants you to update your “Mobile Data Network" settings if you intend to roam in Europe. Without making this change, they say that roaming won’t work. Not sure if this is the issue here, but I’ll try it. You need to change your APN to mob.asm.net in two places. I could be on the wrong track. [edit: did not work]
WhatsApp isn’t critical to me, but it would be nice to solve this. If I manage to make it work, I’ll post back.
[Edit] Could this be related to Smarty not supporting RCS messaging?