I would like to find out whether one can use a script to query a user some data through kannel.
Usecase
Consider a scenario where I need to carry out a registration process via sms. I need to query for the name, birthdate, gender and so forth.
Suggestions highly appreciated.
Progress
I have tried doing so using the sms-service;
# SMS SERVICE
group = sms-service
keyword = limo
get-url = "http://localhost:3000/client?sender=%p&text=%k"
accept-x-kannel-headers = true
max-messages = 3
concatenation = true
In this case I am relying on get-url to extract the sender's msisdn. Upon receipt of the keyword "limo", I would like to start prompting the user for their name, birthdate, gender etc...in a step wise manner.
When a user sends "limo", I will respond using a question, for example, "Reply with your name?". The user may text back "Willy". I would like to retrieve and store this in the data base and prompt for the birthdate which i will in turn also store in the database.
The challenge is to extract these responses effectively from smsbox.log as well as handle the session.