Thread
:
pycallblocker
View Single Post
badboyuk
2011-05-24 , 14:11
Posts: 334 | Thanked: 45 times | Joined on Jan 2010
#
10
Does anyone know how to block unknown numbers? I have read that a couple people have but their details are very sketchy on how to do it. Something to do with adding in entries for unknown number blocklist and someone else mentioned this: "When you receive a call from "Unknown number", the parameter callernumber is actually an empty string. So, in order to block the calls from "Unknown number" you can check whether the length of callernumber is 0. I made this small change in the script and works just fine.
Ex.: if len(callernumber) == 0:"
This only applies to "Unknown number" calls. To make it work also with other numbers replace the line "if callernumber in blocklist:" from handle_call with "if callernumber in blocklist or len(callernumber) == 0:"
but I haven't a scooby where to enter this or how.......I have checked both old and new versions of the py scripts and can't find anything relating to what he's mentioned, so I'm at a loss.
Can someone please shed some light on this?
Quote & Reply
|
The Following User Says Thank You to badboyuk For This Useful Post:
shawwawa
badboyuk
View Public Profile
Send a private message to badboyuk
Find all posts by badboyuk