What sort of gateway are you using? I had a lot of problems setting up a Clickatell gateway via the DHIS2 ‘mobile configuration’ app (which contains a different Clickatell URL), and in the end (with @zubair’s help) I had to use an API call to set up the gateway instead. See the following community thread: