Joining a room from android sdk fails for the first time and connects properly from the second time on private server

Jitsi Server is installed and configured on an AWS ec2 instance.
When joining a room for the first time using android SDK the following error is thrown and the call is terminated.
What could be the possible issue and the fix here…?