one of the discussions from the SMS gateway tutorial DVD with codeigniter https://belajarphp.net/courses/membangun-sebuah-sms-gateway-berbasis-client-server/