Do you mean my index thread link? It is at :
viewtopic.php?f=6&t=6993
Look at Section Communication > Phone Call. But there is no exact case as you want. I haven't updated the index for long time. Gotta update it in the near future.
To separate the numbers you don't want to ring, simply filter out the allowed number. You are basically using whitelist mode here. So you define a group of number and several free numbers which will be whitelisted and ring when they call. Then all other numbers outside of these will be blocked and not ringing at all.
To achieve maximum effect, you should always use ringing mode vibrate/silent. Or you simply set the ringtone to no sound/silent sound. Then the branch for whitelisted number will turn the ringing mode to normal for a while (30 seconds) or set the ringtone to some ringing sound. Or maybe easier to use action sound directly in Automagic to make it ring (but you have to add additional trigger Incoming Call - Off-Hook, to stop the sound).
The condition expression to check it, is almost the same as before. You can check the group or the numbers defined, as answered by ariloc in your other thread. You can combine both.
Code: Select all
whitelist = newList(
"081122334455",
"088877665544",
"081234567890");
contact_groups == "Family" OR containsElement(whitelist, incoming_number);
This expression will check if the group is "Family" OR it is one of the whitelisted numbers defined. If any of these is true, then go to true branch, set the ringer mode to normal or ring the sound. If false, do nothing or reject the call using end call. Even if you do nothing, the phone won't ring anymore, because you have set the ringer mode to vibrate/silent.
===================================
But actually, not everything need Automagic. Sometimes we just can do it using built-in feature from the OS. Or only with some little help from Automagic.
You don't need DND all the time, or set the ringer mode to vibrate/silent all the time. All you have to do is to set your primary ringtone sound to no sound/silent sound. Most phones have it, if not, you can download a "no sound" file and use it as the ringtone. So all incoming call have ringtone "no sound". Then for each contact groups or whitelisted number, just set custom ringtone with the ringing one (have sound). Done.
All your defined contact group or numbers will ringing as usual, while all others numbers will ring with "no sound". Your DND is off (no need turn on DND) and ringer mode still normal.
If you need other numbers to ring with "sound" during work time, then you only need small help from Automagic. Trigger time (start working time) and action Set Default Ringtone to some ringtone with sound. Another Trigger Time (after work hour) to set it back to "no sound". Much easier to be done.