The problem with call recording is intrinsic to many of the latest xiaomi.eu MIUI ROMs based on Android Pie and Q. To temporarily solve it, just isntall a Magisk Skvalex module, and it should fix this issue (of course, it is a workaround, but at least it helps).