I've tried resolving the problem and finally it got solved when I set ignore_early_media=false. Thanks Brian for your response.