Hi @Udara Chandimal
I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.
Ask: How to Use Own JavaScript Bundle CallComposite.js to Join a Teams Meeting as Teams User
Solution:I have raised the same problem in the azure communication ui library git hub repository discussion. They have mentioned that there is an issue in that JavaScript file when we use MicrosoftUserId. They going to fix it in near soon.
Please don’t forget to Accept Answer
and Yes
for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.