Thread: Call Rejector
View Single Post
Posts: 199 | Thanked: 144 times | Joined on Sep 2009 @ gbg.se
#30
Originally Posted by kwotski View Post
Maybe something could be done by using the dbus calls shown on the wiki at:

http://wiki.maemo.org/Documentation/..._in_Freemantle

(scroll down past the two sms ones).

There's two python methods shown, one which can find the calling number of an incoming call, and another which can reject a call.

Assuming that all works, it doesn't look too hard to construct something that would sit there waiting to be told a call was coming in, and then reject it or not based on a config file.

Another idea which occurs to me is to put the phone into silent mode and have a the same script/daemon see which number is calling, then for non-rejected calls, start the media player playing a configured mp3/wav/etc. file as a ringtone, to give per-contact ringtones, albeit behind the back of the provided contact/profile system.

No idea whether any of the above is possible, but might not be too hard to find out..

This hacky way of going around the provided but unfortunately closed phone app would be quite attractive to me personally if it works. I actually like the idea of configuring my contacts via a text file with vim
These could maybe be useful as Shepherd plugins? Other actions apart from call rejection or specific ring tone might be interesting when a certain call comes in. Likewise, it might be possible to dream up other inputs than a certain incoming call to be relevant for rejecting calls.