Fail to Register IP Phone

I am very new to this field. I set up asterisk server in my local network and cannot register phone to asterisk server. Please guide me.

What is the configuration?
What actually happens?
Does traffic get to Asterisk?