Send new SMS from SMS callback function
To send a auto-reply for an incoming SMS you can use Auto-reply twilio extension. You can modify the extension to support for your provider as this extension supports for only Twilio.

HTH
Pradeep