Yeah, it's a bit of a messy setup depending on the phone, but it's the feature called "Allow cellular data switching" (iPhone), "Switch mobile data automatically" (Pixel), or "Backup Calling" (Samsung).
Depending on the phone, it will either just work if enabled if your Telstra SIM is roaming...