Request better logic for phone call shortcut

Hi everyone,

I wanted to share some background information to better explain my needs:

  • In France, my mobile operator includes calls to French numbers, but not to mobiles in other EU countries.
  • When I’m in the EU but outside of France, calls to other EU countries are included.
  • WiFi Calling is treated as if all calls are made from France.
  • I have plenty of data in France, but much less when I’m outside of France.
  • My wifi has a EU number (not FR) and my family has a non-EU number (inlcuded if I make the phone call in France).
  • Therefore, I prefer to use FaceTime Audio to call my wife when I’m in France, and regular phone calls when I’m outside of France.
  • And I want to call my family only if I am in France (or WiFi Calling is on).

Currently, my solution is to keep WiFi Calling turned off (so, not calling my family :(). I’ve created a shortcut that checks:

  • if the “Mobile Service network’s country code” contains “FR”,
    • If it does, it uses FaceTime;
    • otherwise, it makes a regular phone call.

Since there isn’t a shortcut to toggle WiFi Calling, I need help improving my logic.

“Call wife shortcut”:
something like (with WiFi Calling on): if contry code is FR → facetime; if country code is not FR and WiFi is connected → Facetime; if country code is not FR and no WiFi → phone call. However, I can not get the WiFi status. If iPhone is “trying” to connect to a WiFi x, the shortcut will will return the x as the WiFi name which is not connected yet…

Or something like (with WiFi Calling on): if contry code is FR → facetime; if country code is not FR and IP info not with France IP (which means I am not using cell data) → Facetime; if country code is not FR and FR IP → phone call. However, if my phone has no network, the IP info request will failed and stop the whole shortcut…

I also don’t want to turn off WiFi before making a call because I’m afraid I might forget to turn it back on and end up using too much data.

Thanks for your help!