Hi Carlos Carlos Ruiz Diaz wrote:
Hello all. After a lot of searching and reading I finally make kannel works. Now, today, I have a new problem to get over. I want to catch the incoming SMSs to my number and do some operation if some word is found, a common sms service. I do read the manual and I write the exact example that I found in there but is not working at all, so I reduce the complexity to test and still nothing. Now i just want to exec a perl script if the word "ping" is found.
...
group = sms-service keyword = ping. exec = "/usr/bin/perl /home/carlos/development/perl/kannel/test.pl" #accepted-smsc = "change as needed"
You have 'ping.' so that will do a case-insensitive match on any message that begins with 'ping.' - note the full-stop. If that is not what is happening then supply some log entries detailing the messages your trying to send. You may also want to consider the keyword-regex config parameter and starting with a basic 'text = "It works"' setting (before moving onto an exec call).