You can’t record a call, Until the call is answered OR If the call’s on hold OR When you create a conference call OR your mobile have below android 9 version OR you are in call recording restricted country.