maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [ANNOUNCE] Callerx -- Call Blocker in QT (https://talk.maemo.org/showthread.php?t=75013)

khuong 2011-07-17 18:31

[ANNOUNCE] Callerx -- Call Blocker in QT
 
Callerx is a simple calls blocker app daemon for N900, it blocks calls based on a simple whitelist.txt or blacklist.txt file in MyDocs folder. This app is auto-start after installed, auto-start upon boot, auto-detect and reload if any changes made to to the list. It allows range block by entering first partial block of phone number in list Lists format are using each phone number per line without any other characters or spaces except prefix "+" if you see it on your screen (just digits and "+" with no spaces in between or in front) To block unknown number just enter "unknown" without quote To switch to whitelist mode which allow block all callers except those listed in whitelist.txt, use command "/etc/init.d/callerx loadwhitelist".

Usage command:

"/etc/init.d/callerx loadblacklist"
"/etc/init.d/callerx loadwhitelist"
"/etc/init.d/callerx start"
"/etc/init.d/callerx reload"
"/etc/init.d/callerx stop"

Usage Note: This a daemon app running in background and currently there is no user interface to keep it small and simple. It will auto-start after installed, and default to blacklist block mode, a new file name blacklist.txt will be also created in MyDocs folder where you can start enter the phone number you want to block. If you want to switch to whitelist mode, just create a new whitelist.txt file in MyDocs folder and run comand "/etc/init.d/callerx loadwhitelist" in xterm. The configuration file is located /home/user/.config/callerx folder, you can change the default whitelist.txt or blacklist.txt location to different folder by edit the config file if you want.

Callerx 0.1.3 * Added a Call Block button to powerkey menu, which is an option rejecting call and add that number to the blacklist when phone is ringing ( button is only visible while call is ative ).

Callerxui 0.0.5 *A callerx with user interface allows controlling and managing blocklists, settings, import phone numbers from address book, file, list, kept inbound calls log with blocked indicator. It install/update callerx along with it. So no need to install callerx if you haven't done so. For those already have installed callerx before, all you need is just install Callerxui and it will update your callerx to latest version which is compatible with it.

santiago 2011-07-17 18:51

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
unknown numbers?!?!
u made my day!!!!!! thx!!!!!!!

Can You change the blacklist and withelist path ? i mean, if i format the MyDocs, i'll lose everything.. Better that we can save list in a secure folder under /home/user path.. Can you do that ? ;) thank in advance ;)

khuong 2011-07-17 20:03

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by santiago (Post 1052824)
unknown numbers?!?!
u made my day!!!!!! thx!!!!!!!

Can You change the blacklist and withelist path ? i mean, if i format the MyDocs, i'll lose everything.. Better that we can save list in a secure folder under /home/user path.. Can you do that ? ;) thank in advance ;)

Yes you can, just edit the config file in /home/user/.config/callerx folder
to change path or file name to whatever you want, and move the files to new folder before enter command "/etc/init.d/callerx stop" then /etc/init.d/callerx start". Just make sure the user have the read permission to that file.

santiago 2011-07-17 20:07

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by khuong (Post 1052871)
Yes you can, just edit the config file in /home/user/.config/callerx folder
and move the files to new folder before enter command "/etc/init.d/callerx stop" then /etc/init.d/callerx start".

u made my day and saved my lists :D
i see a link in the application menu under the ls command from xterm, maybe u r working to a GUI for that ?

x61 2011-07-17 20:12

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Does it also block private numbers?

khuong 2011-07-17 20:18

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by santiago (Post 1052875)
u made my day and saved my lists :D
i see a link in the application menu under the ls command from xterm, maybe u r working to a GUI for that ?

Yes I will, but it will be a seperate app ui to control this one and edit the blacklist and whitelist with auto-activate list based on time. Ex. at night I dont want to accept any call except my gf.

khuong 2011-07-17 20:23

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by x61 (Post 1052879)
Does it also block private numbers?

private number? enter unknown in the list should block it. I never see a private word appear on my phone. unknown should block it as well if it doesn't show any number.

Estel 2011-07-17 20:35

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Operators in some countries show it as (translation to english) "Private". Still, it's same as "unknown" i think.

santiago 2011-07-17 20:37

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by khuong (Post 1052889)
Yes I will, but it will be a seperate app ui to control this one and edit the blacklist and whitelist with auto-activate list based on time. Ex. at night I dont want to accept any call except my gf.

Good IDEA u made my week then!!! :D it works :) finally what i want to have in my super N900

PS: do you need a translation for the Italian Version? i mean if u'll use the callerx.mo file in /usr/share/locale/lang_LANG/LC_Messages

khuong 2011-07-17 21:23

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by Estel (Post 1052903)
Operators in some countries show it as (translation to english) "Private". Still, it's same as "unknown" i think.

Though I used the word unknown here doesn't mean that it only block the word unknown. Most unknown ,private or any withheld number will come as a blank string "", I just used the unknown as a equal value in the app code.

Estel 2011-07-18 01:26

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
That's exactly what i thought - thanks for clarification! :) BTw, it's such a great idea, that I'm really surprised no one made app like that before. I don't know if it's same on other countries, but here in Poland we got recently new plague - automatic messages calling our mobile phones (not SMS, calling!) telling, that we won lottery and need to (...blablabla..) - faking TV show presenters calling to winners. Of course it's plain b.u.l.l.s.h.i.t, but its f****ng irritating, if you get 2-3 calls like that a day. They all call from hidden id ;)

So, bye bye, lotteries!

nemasus 2011-07-18 14:28

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Hello khuong, brilliant script, can we block a number pattern, for example; all numbers starting with 0845* which here in the UK are used for marketting and dodgy money making schemes?

khuong 2011-07-18 14:34

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by nemasus (Post 1053356)
Hello khuong, brilliant script, can we block a number pattern, for example; all numbers starting with 0845* which here in the UK are used for marketting and dodgy money making schemes?

Yes, just enter 0845 without * in the list, any phone number starting with 0845 will be blocked.

admiral0 2011-07-18 14:39

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Where is the source? Put it on github and i'll help. It's been in my todo for 1 year lol.

khuong 2011-07-18 14:44

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by admiral0 (Post 1053363)
Where is the source? Put it on github and i'll help. It's been in my todo for 1 year lol.

You can download the source from http://maemo.org/packages/source/vie...callerx/0.0.8/

admiral0 2011-07-18 14:45

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
@khuong come in #maemo in irc.freenode.net

webchat.freenode.net, channel #maemo

admiral0 2011-07-18 16:21

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
I took a look at your code... It needs some refactoring.

I'll upload to git as soon as i refactor. Where did you get csd API?

kureyon 2011-07-18 16:29

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Thanks for this program! One small problem - it doesn't autostart on reboot :(

khuong 2011-07-18 16:33

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by kureyon (Post 1053448)
Thanks for this program! One small problem - it doesn't autostart on reboot :(

The startup script /etc/event.d/callerxd at boot worked fine when I tested but after packaged and installed from repository, it stopped working, I have to update the file with the code below to get it auto-start at boot again. I've been scratching my head on this issue.

Just edit the /etc/event.d/callerxd to make it look like below code then restart. That should auto-start at boot again.

Code:

description        "Callerx Daemon"

start on started hildon-desktop

script
  exec su - user -c "exec /opt/callerx/bin/callerx"
end script


khuong 2011-07-18 16:38

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by admiral0 (Post 1053441)
I took a look at your code... It needs some refactoring.

I'll upload to git as soon as i refactor. Where did you get csd API?

is it available?...:) I just used dbus-monitor

admiral0 2011-07-18 16:44

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
i miss qdbus and qdbusviewer on n900

admiral0 2011-07-18 20:47

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Hmm, i think there might be some trouble with the daemon in 0.0.8. It uses session bus that is different from any user.. Should use systembus instead. Fixing.

kureyon 2011-07-19 00:32

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by khuong (Post 1053450)
Just edit the /etc/event.d/callerxd to make it look like below code then restart. That should auto-start at boot again.

When I started to edit file using vi it was apparent that file had DOS line endings. I just left the code as-is and fixed the line endings and now it autostarts fine :)

khuong 2011-07-19 00:38

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by kureyon (Post 1053745)
When I started to edit file using vi it was apparent that file had DOS line endings. I just left the code as-is and fixed the line endings and now it autostarts fine :)

Thanks, I never thought about it.

khuong 2011-07-19 02:20

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by admiral0 (Post 1053623)
Hmm, i think there might be some trouble with the daemon in 0.0.8. It uses session bus that is different from any user.. Should use systembus instead. Fixing.

No need to use systembus, sessionbus is sufficient.

admiral0 2011-07-19 06:54

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
callerxd runs as user?

khuong 2011-07-19 12:24

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by admiral0 (Post 1053896)
callerxd runs as user?

Yes it runs as user.

CasTTeLLo 2011-07-19 13:39

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
I have installed it via app man...how to activate it?? Pls give more detail on how its work...

Andre Klapper 2011-07-19 13:52

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by CasTTeLLo (Post 1054158)
how to activate it?? Pls give more detail on how its work...

Please read the very first comment in this thread. If those instructions don't work for you, explain in detail.

CasTTeLLo 2011-07-19 13:57

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by Andre Klapper (Post 1054162)
Please read the very first comment in this thread. If those instructions don't work for you, explain in detail.

do you mean this commands? :

Usage command:

"/etc/init.d/callerx loadblacklist"
"/etc/init.d/callerx loadwhitelist"
"/etc/init.d/callerx start"
"/etc/init.d/callerx stop"


this is the output :

/home/user # /etc/init.d/callerx loadblacklist
Callerx Daemon: Loading blacklist..
Failed to open connection to "session" message bus: (null)

/home/user # /etc/init.d/callerx loadwhitelist
Callerx Daemon: Loading whitelist..
Failed to open connection to "session" message bus: (null)

IcyMoustache 2011-07-19 14:03

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
khuong,

Can we also have a special tone play for the blocked numbers??? e.g. it picks up the call and says "You have been blocked for violating the love rules of IcyMoustache" for that ex-gf or "Dont ask me for a new bank loan again" for that telemarketing guy....

These can be mp3 files stored in emmc.

admiral0 2011-07-19 14:12

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
castello you attempt to run it as root.

CasTTeLLo 2011-07-19 14:19

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Can u give an example on how to add multiples blacklist??

khuong 2011-07-19 14:24

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by CasTTeLLo (Post 1054180)
Can u give an example on how to add multiples blacklist??

muliples blacklist is not possible with current verions, do you really have that many number to block which require multiple blacklist? :)

The app is auto-start after install and boot, all you need is just edit the list and save. It will detect and reload the list automatically when the list is modified. isn't that simple enough?

CasTTeLLo 2011-07-19 14:40

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Yeap i have more than one numbers to block....hope to c multiples list in the next update....thanks...

admiral0 2011-07-19 15:20

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
@khuong https://github.com/admiral0/callerx

PS I'm still on IRC waiting...

admiral0 2011-07-19 15:26

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by CasTTeLLo (Post 1054191)
Yeap i have more than one numbers to block....hope to c multiples list in the next update....thanks...

Explain what you want to do.

x61 2011-07-19 15:57

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Quote:

Originally Posted by CasTTeLLo (Post 1054191)
Yeap i have more than one numbers to block....hope to c multiples list in the next update....thanks...

Read the first page. The blacklist.txt that you create can contain multiple number column-wise eg:
Code:

123456789
098765432
unknown
785555445
566888099

all those numbers are expected to be blocked including all Unknown Numbers.

CasTTeLLo 2011-07-19 22:37

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
Sorry for the inconvenience...

onasre 2011-07-20 01:16

Re: [ANNOUNCE] Callerx -- Call Blocker in QT
 
You Rock ! Long waited the App , Please Consider making nice GUI for easy editing white/black list , Start / stop


All times are GMT. The time now is 04:01.

vBulletin® Version 3.8.8