Detect which SIM is beeing called

655 views
Skip to first unread message

Eric Kruis

unread,
May 31, 2019, 5:27:06 AM5/31/19
to Tasker
I have a dual SIM Note 9, and want to detect on which SIM card I'm receiving a call (to be able to hang up immediately if it is on SIM2 during certain times). I had a working profile, using the %SIMNUM variable, but lately %SIMNUM always returns the serialnr of the SIM card that's selected as the default SIM card for calls, no matter which card is actually receiving a call. Ideas anyone on how to detect the right SIM? The call-screen on the phone shows the right SIMcard (#1 of #2) when receiving a call.
Thanks! Eric

João Dias

unread,
May 31, 2019, 5:34:29 AM5/31/19
to tas...@googlegroups.com
Maybe you can use AutoInput UI Query?

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


On Fri, May 31, 2019 at 10:27 AM Eric Kruis <eric...@gmail.com> wrote:
I have a dual SIM Note 9, and want to detect on which SIM card I'm receiving a call (to be able to hang up immediately if it is on SIM2 during certain times). I had a working profile, using the %SIMNUM variable, but lately %SIMNUM always returns the serialnr of the SIM card that's selected as the default SIM card for calls, no matter which card is actually receiving a call. Ideas anyone on how to detect the right SIM? The call-screen on the phone shows the right SIMcard (#1 of #2) when receiving a call.
Thanks! Eric

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/58ed37a4-8814-42d3-b9c0-235878ef4ba0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sumedh Manwar

unread,
Aug 18, 2023, 1:07:46 PM8/18/23
to Tasker
Here's something that seems to work.
I installed AutoNotification plugin and created profile with event Autonotification intercept. Inconfiguration I chose phone app.
whenever I get a call I have text in notification "Incoming call via <SIM NAME>". this phrase is referenced by %antext. You can use If statement to check the SIM.
Reply all
Reply to author
Forward
0 new messages