Just want to make sure that this will work for an un-rooted phone.
Most things in Tasker work without the need for root.
Just want to make sure that this will work for an un-rooted phone.
Here ya go, Eking.
- Event = Call, Type = Incoming, Number = C:FAV
- Enter Task (step 1) = Silent Mode, Mode = Off, If = %SilentNight Is Set
- Exit Task (step 1) = Wait, MS = 0, Seconds = 0, Minutes = 1, Hours = 0, Days = 0
- Exit Task (step 2) = Silent Mode, Mode = On, If = %SilentNight Is Set
The phone number C:FAV matches all contacts that are marked as favorites (starred) in your address book.
The wait time in exit task step 1 gives the phone time to ring as well as generate any notification sound if a voicemail or text message follows the call. You can increase it if you like (e.g., if your phone rings longer before going to voicemail).
A separate event turns on/off silent mode based on a calendar item (e.g., from midnight to 6 am), sets %SilentNight to 1 during that time and clears it afterward. The %SilentNight variable is needed by the "ring for VIPs task" to track the original state of Silent Mode, otherwise Tasker won't know if it should re-enable it upon exit.
Very interesting eking. Many variables to consider. You may want to minimize the number of things controlling your phone in order to make it easier to debug. It could very well be conflicting apps vying for the phone's attention. I've even accidentally had tasks fight over what should happen at a given time or for a given event. So, simplify the situation by disabling the other apps and verify that Tasker, by itself, is doing what you expect.
I deleted the phone dialer/contact app and it works! Thanks for your help bitseeker. Do you know of any contact app that lists company name in the contact title that might play well with tasker.