SMS Service


I am new to asterisk and i wonder is there a possibility to do the following scenario

1- Astersik server will be running and attached to it a USB Modem
2- I need asterisk to receive sms messages from our clients , send a query to a database with the phone number that sent the sms
3- Get the latest status of the client from the DB , and send the client back an sms with that status.

Is that doable ?



Why would you use a IPPBX to do this ? use a sms service that can deliver the sms directly as a http request you then deal with via php.

There is no reason to complicate by using Asterisk.

Thanxs , but we do not want to buy a sms service from any provider, we will use a usb modem attached with a sim card that will send and receive the sms .