Codec problems

Hi guys
i am a new guy to freepbx but i have manage to configure extensions and my other extensions which are working are those i am using snom phones but if i try to use X-lite smart phone i am have an error of not accepted i tried several sources to find a solution but none of the solutions is helping me out. please help me out