webOS Nation Forums >  Homebrew >  webOS Patches > [Patch] Call Block/Ignore
[Patch] Call Block/Ignore
  Reply
Like Tree2Likes

 
Thread Tools Display Modes
Old 10/24/2009, 01:23 AM   #1 (permalink)
Member
 
elryon's Avatar
 
Posts: 715
Here is a small patch I created that will automatically reject any call that comes in and is listed as a number for a contact with the name: 'Do Not Answer'
No announcement will be seen or any notification whatsoever. I believe it will still list the call in the history though. So apply the patch, make a contact by the name 'Do Not Answer' (no quotes), and put in any number you want to block... enjoy!

EDIT: you can also link profiles to that 'Do Not Answer' contact so long as its the primary, they should all be blocked.

EDIT: it does not still list in the call history.

11/17/2009: Now works fully with 1.3.1 ... no more notification of missed call.
3/1/2011 : uploaded versions for 2.1 ... will actually disconnect call immediately.
Attached Files
File Type: patch callblock.patch (756 Bytes, 1468 views) Email Attachment
__________________
Avatar on Left Patch
Call Rejecter Patch
Make your messanger look like the iphone's
SMS tone per Contact
No Alert During call

Thanks are always appreciated or for a really big Thanks you can always:
(it can go a long way to convince my fiancee that this is worth my time)

Please feel free to PM for more direct assistance.

Last edited by elryon; 03/01/2011 at 09:33 PM. Reason: new versions
elryon is offline   Reply With Quote
Liked by tinacjarrett likes this.
Old 10/24/2009, 01:36 AM   #2 (permalink)
Member
 
Posts: 54
I am looking at the code - I have done very little exploring in regards to creating patches but it appears that one could easily expand the logic some how to include "Blocked number" and "Unknown number".

Besides rooting my pre and looking at the TelephonyEventListener.js file is there any other way to view these files?
kennyidaho is offline   Reply With Quote
Old 10/24/2009, 01:42 AM   #3 (permalink)
Member
 
elryon's Avatar
 
Posts: 715
just use a text editor on the patch file itself
you could also pull out the webos file from the doctor, it has all the files there... use 7zip.
__________________
Avatar on Left Patch
Call Rejecter Patch
Make your messanger look like the iphone's
SMS tone per Contact
No Alert During call

Thanks are always appreciated or for a really big Thanks you can always:
(it can go a long way to convince my fiancee that this is worth my time)

Please feel free to PM for more direct assistance.
elryon is offline   Reply With Quote
Old 10/24/2009, 02:12 AM   #4 (permalink)
Member
 
Posts: 54
Thank you.

When I first looked at your patch I wondered why we could just not change the code on line 8 to something like this:

Code:
if (contact.name === 'Do Not Answer' || contact.name === 'Unknown number' || contact.name === 'Blocked number')
However I seem to understand now that your patch is searching the contact list.

What I am wondering about is how the phone identifies the difference between blocked numbers and unknown numbers.

For example on my phone it shows:

Code:
Unknown number
Unknown caller
time

Blocked number
Unknown caller
time
kennyidaho is offline   Reply With Quote
Old 10/24/2009, 02:32 AM   #5 (permalink)
Member
 
irocdaspot513's Avatar
 
Posts: 490
how do i install this patch? is there anyway you can get it into webos quick install or preware?/
irocdaspot513 is offline   Reply With Quote
Old 10/24/2009, 05:11 AM   #6 (permalink)
Member
 
Posts: 206
just drop the patch file into WOQI and it works just fine!
Hernie is offline   Reply With Quote
Old 10/24/2009, 05:39 AM   #7 (permalink)
Member
 
mamouton's Avatar
 
Posts: 5,719
Is there a way to expand this patch to send out a predefined text like (running late, busy, etc) for missed or ignored calls similar to TreoFlex for the Treo?
TreoFlex 3.5 (for Palm OS) - mytreo.net/downloads Greenhex developed for the Treo and it was very useful, it sent out messages automatically based on what you had in your notes field. It is truly missed.
mamouton is offline   Reply With Quote
Thanked By: Jeffmcc
Old 10/24/2009, 08:36 AM   #8 (permalink)
Member
 
mracer29's Avatar
 
Posts: 472
why can't we edit that like of code to include a persons name?
mracer29 is offline   Reply With Quote
Old 10/24/2009, 08:52 AM   #9 (permalink)
Member
 
Posts: 671
Let's say theoretically you are already on the phone with someone and you get a call from 'Do Not Answer'. Will the disconnectCall() function hang up both calls or just the incoming one?
dallashigh is offline   Reply With Quote
Old 10/24/2009, 09:54 AM   #10 (permalink)
Member
 
mracer29's Avatar
 
Posts: 472
Quote:
Originally Posted by mracer29 View Post
why can't we edit that like of code to include a persons name?
FYI... I just entered a contacts name and it worked. Now i wonder if you can add more contacts by entering a comma between each??
mracer29 is offline   Reply With Quote
Old 10/24/2009, 10:12 AM   #11 (permalink)
Member
 
elryon's Avatar
 
Posts: 715
Quote:
Originally Posted by mamouton View Post
Is there a way to expand this patch to send out a predefined text like (running late, busy, etc) for missed or ignored calls similar to TreoFlex for the Treo?
TreoFlex 3.5 (for Palm OS) - mytreo.net/downloads Greenhex developed for the Treo and it was very useful, it sent out messages automatically based on what you had in your notes field. It is truly missed.
This might be possible having looked over the phone code, I will have to look into it some more..., I would probably make this a separate app than a call block.

Quote:
Originally Posted by dallashigh View Post
Let's say theoretically you are already on the phone with someone and you get a call from 'Do Not Answer'. Will the disconnectCall() function hang up both calls or just the incoming one?
It should only disconnect the incoming call, there is a separate function for disconnect all and this is placed in a function only accessed for incoming.

Quote:
Originally Posted by mracer29 View Post
FYI... I just entered a contacts name and it worked. Now i wonder if you can add more contacts by entering a comma between each??
you can do it by adding || between each.

I'm am planning on expanding this to an app that you can specify a list of contacts, but as my time is limited it might be a bit. I wanted to get something out there for everyone requesting something.
FYI, I didnt want to include 'unknown' as it looks at the name and say your waiting on a job interview call... if the job isn't in your contacts it would come up 'unknown'... or if the business for some reason blocks their number it would come up 'blocked'. The app will have these as options though.
__________________
Avatar on Left Patch
Call Rejecter Patch
Make your messanger look like the iphone's
SMS tone per Contact
No Alert During call

Thanks are always appreciated or for a really big Thanks you can always:
(it can go a long way to convince my fiancee that this is worth my time)

Please feel free to PM for more direct assistance.
elryon is offline   Reply With Quote
Thanked By: jfrex
Old 10/24/2009, 10:13 AM   #12 (permalink)
Member
 
elryon's Avatar
 
Posts: 715
Quote:
Originally Posted by Irocdaspot513 View Post
how do i install this patch? is there anyway you can get it into webos quick install or preware?/
I did submit it so hopefully it will be on soon.
__________________
Avatar on Left Patch
Call Rejecter Patch
Make your messanger look like the iphone's
SMS tone per Contact
No Alert During call

Thanks are always appreciated or for a really big Thanks you can always:
(it can go a long way to convince my fiancee that this is worth my time)

Please feel free to PM for more direct assistance.
elryon is offline   Reply With Quote
Thanked By: evolone
Old 10/24/2009, 10:15 AM   #13 (permalink)
Member
 
mracer29's Avatar
 
Posts: 472
Quote:
Originally Posted by mracer29 View Post
FYI... I just entered a contacts name and it worked. Now i wonder if you can add more contacts by entering a comma between each??
I tried 2 contacts seperated by a comma and it didnt block either cotact. I tried it like this 'Treo 755p' 'chuck' ..... IT DIDNT WORK! Caused my phone to go back and forth from the boot screen to the just charge/usb screen. Lucky i was still able to goto webos QI and remove the patch.
mracer29 is offline   Reply With Quote
Old 10/24/2009, 10:17 AM   #14 (permalink)
Member
 
Posts: 32
i would like this app 4 blocking private calls! such as unknown number, blocked number, unkown caller,etc.. i hate when people call me blocked!
DannyNY718 is offline   Reply With Quote
Old 10/24/2009, 10:31 AM   #15 (permalink)
Member
 
mracer29's Avatar
 
Posts: 472
Quote:
Originally Posted by Dshowtime718 View Post
i would like this app 4 blocking private calls! such as unknown number, blocked number, unkown caller,etc.. i hate when people call me blocked!
Did you even read through the past 10 post?? Cause that was for sure discussed! Now pay attention Mister! Lol j/k but it was discussed
mracer29 is offline   Reply With Quote
Old 10/24/2009, 10:37 AM   #16 (permalink)
Member
 
Posts: 345
Wow, just tested, works nicely.
Never thought of this myself, kudos to you.

An app that allows you to check contacts from a list, as well as add separate numbers or strings that are not in your contacts list would be great such as Blocked Number.

love it - nice work.
dhMassacre is offline   Reply With Quote
Thanked By: steves743
Old 10/24/2009, 10:44 AM   #17 (permalink)
Member
 
mracer29's Avatar
 
Posts: 472
[QUOTE=elryon;1996324]



you can do it by adding || between each.

QUOTE]

Is that done like the guy said above? like this..

(contact.name === 'Do Not Answer' || contact.name === 'Treo 755p' )
mracer29 is offline   Reply With Quote
Old 10/24/2009, 10:59 AM   #18 (permalink)
Member
 
elryon's Avatar
 
Posts: 715
[QUOTE=mracer29;1996362]
Quote:
Originally Posted by elryon View Post



you can do it by adding || between each.

QUOTE]

Is that done like the guy said above? like this..

(contact.name === 'Do Not Answer' || contact.name === 'Treo 755p' )
Yes, I'm not sure if it will work though, tried it on emulator and no calls could come throught but I had tried (contact.name == 'Do Not Answer' || 'unknow')
Doing it that way may work. Let me know... g/f calling for attention....

EDIT: doesnt work...
__________________
Avatar on Left Patch
Call Rejecter Patch
Make your messanger look like the iphone's
SMS tone per Contact
No Alert During call

Thanks are always appreciated or for a really big Thanks you can always:
(it can go a long way to convince my fiancee that this is worth my time)

Please feel free to PM for more direct assistance.

Last edited by elryon; 10/24/2009 at 11:08 AM.
elryon is offline   Reply With Quote
Old 10/24/2009, 11:03 AM   #19 (permalink)
Member
 
Geoffrey's Avatar
 
Posts: 86
I made an icon for the "Do Not Answer" contact out of the International No sign.

Here it is for your use:
Attached Images
File Type: jpg DoNotAnswer.jpg (38.3 KB, 129 views) Email Attachment
Geoffrey is offline   Reply With Quote
Thanked by cgardner, elryon
Old 10/24/2009, 12:19 PM   #20 (permalink)
Member
 
Kablin's Avatar
 
Posts: 38
Please! Please! Please! Put it to preware!!!!!!!!!!!!!!!! Please!!!!!!!!!!!!!!!!
Kablin is offline   Reply With Quote
Thanked By: Jeffmcc
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0