This appears to be a continuation of How to send SMS using Asterisk
The important thing for you SMS gateway is the dongle. You need physical access to the server for that.
My feeling is that you are trying to avoid paying for a service without actually understanding enough about how the service works.