In the Netherlands we have a proverb that reads: "Where the emperor is not, he loses his rights". The only way to access a specific dialer is using inline Java. In addition, it also dawns on Android designers that all kinds of things such as a dialer can be misused by malicious people.
Finally, in a similar question, Erel wrote this
However, if you read the documentation you will see that it will not work on Android 10+ devices
I'm afraid that your and no direct B4A function is to use/misuse underlying dialer hardware and that you run into all kinds of security rules that you might be able to make work for a short time after deep research via some "hacks" or very heavy tweaking. Perhaps it is more convenient to ignore the dialer and look for another solution?