I would like to introduce you the new plugin I made for playSMS, SMS Autorespond.
This plugin will scan for each incoming SMS for a match with configured regular expression and reply automatically based on its setup.
The main difference with SMS Autoreply is the incoming SMS scanned based on patterns, not keyword and scenarios.
Please visit the URL for more information, install instructions and usage:
Lets discuss it here.
I like this as people always input the incorrect Keyword because its advertised please sms “HELLO” to 3743434
So some sms Keyword HELLO and some “HELLO” etc.
Will be be able to use -ELL- or %HELLO%
Yup, thats the idea. You can match them using regular expression.
To simply match with any SMS containing HELLO you can use: /hello/i
/hello/i will match with
"HELLo", and also with
Hello there or
I said hello!
I’m using this to find a match:
Info on regex:
To test your regex:
Thanks will patch and Test over the weekend and give feedback here
I have 2 modems and am trying to use autorespond to reply to incoming messages. However the autorespond does not always come from the proper modem, even if I have it set to Routed SMSC or Supplied SMSC.
Is there a way to make the autorespond come from the modem that received the SMS?
you should test only with Supplied SMSC
you should also check the result in Reports -> All sent messages, the SMSC for the reply message should be the SMSC used for incoming SMS
what gateway do you use ?
That seems to work now… Thanks.
Version 2 has been released:
- change to hook recvsms_intercept_after() to fix missing feature and status
- now SMS shown in feature messages
- change name from sms_autorespond to autorespond
Installation and upgrades instruction available on the released package
If you want to add something the current playSMS autorespond plugin, what are they ?
For example I might working on something like SMS custom, instead of just replying the message the plugin will also forward the message to a URL
This is a great idea Anton. I think that being able to hook into a STOPLIST url would be a good use of the custom attribute.
I’m success to install and try but no reports ‘my feature messages’ in user and missing default message footer. Autorespond sent sms using footer @username
So, I installed autorespond feature.
What is “Receiver number” for here ?
To redirect (forward message) to receiver different than sender one ?
But if I specify any receiver number, autoresponder doesn’ t work.
It is shown as incoming message at log, not as autorespond.
receiver number pushed by the gateway you used.
Hi Pak Anton,
I want to implement something like this :
playsms respond the incoming SMS with a process (we can use the CLI command) and decide to forward the SMS to a number (edit some text pattern in advance, after get some respond from cli). is it possible using autorepond plugin?
Autorespond was designed for auto replying an incoming SMS, not to forward with modification
You can use sms custom or sms command to do so
Hi Anton could the autorespond also cater for sub users ie: I have a user prepaid which is a user but the autorespond belongs to one of my subusers, at the moment I can only use the user as the owner of the keyword.