![]() |
Question: SMS autoreply - howto?
I am changing a mobile (for our American friends: "cell") provider and have decided to take this opportunity to not migrate my old number but start afresh to get rid of all the spam. The trouble is, I've had that number for over 15 years and have no idea how many people and companies I do want to hear from have it.
So I concocted a plan to update my voicemail prompt with something like, "this number is no longer valid, please call XYZ instead". However, the vast majority of my mobile communication by far - about 99.95% - is by SMS. So my idea is, setting up one of my spare N900s with my old SIM and some app or a script or whatever that would automatically reply to any incoming SMS with a prompt to update their address book - and leaving it running for a year or so, or until the credit runs out, whichever comes sooner. Now, I am aware of SMSCON but have no experience with it. Having read its wiki, I am not entirely convinced it is cut out for the job. I do not want to set up a master number and definitely cannot expect people sending me messages to include special codes in them. I just want it to autoreply to any incoming message with a predefined text. Kinda like an SMS equivalent of an "out of the office" email. Any ideas? Before I take the SMSCON code and start hacking it into shape ;) |
Re: Question: SMS autoreply - howto?
See this for sending an SMS from a script; but I don't know how to trigger a script on an incoming message.
|
Re: Question: SMS autoreply - howto?
Thanks. I was planning to use smssend for the sending but your solution is just as good if not better as it does not require an extra package installed.
The remaining question is, how to trigger a command from receiving an SMS. I have a feeling that dbus might be somehow involved but despite having spent the last 25 years of my life writing software for a living, dbus remains a big mystery to me ;) |
Re: Question: SMS autoreply - howto?
(should be) definitely possible.
Phone control is the easy way to go for sending. And for triggering you are right dbus Hyes, a big mistery ;)) is involved. Have a look at dbus-scripts-settings (a package). This allows all user configurable actions (scripts). Unfortunately I do not know the syntax for incoming SMS. But for calls something like this is working for me here. Quote:
|
Re: Question: SMS autoreply - howto?
|
Re: Question: SMS autoreply - howto?
The code can be literally found on the related wiki page (https://wiki.maemo.org/PyMaemo/Phone...d_SMS_examples)
HTML Code:
import gobject, dbus |
Re: Question: SMS autoreply - howto?
Quote:
action-script.sh * * com.nokia.phone.sms IncomingSegment should work, too. |
Re: Question: SMS autoreply - howto?
Quote:
Maybe I can finally write that SMS Eliza-bot to chat with my wife when she texts me. |
Re: Question: SMS autoreply - howto?
Quote:
|
All times are GMT. The time now is 16:33. |
vBulletin® Version 3.8.8