I am beginner on asterisk server and the problem I have, is that : My Iphone can not register to asterisk server using 3G connection but on wifi at local network , is possible.
First check that your ISP is not blocking the sip port. then yoiu can enable the sip debug in order to see if request are coming into your asterisk. Also check your router port forwarding & the pbx firewall too.
It is normally 5060/UDP that would be blocked. You only tested 5060/TCP!
As already suggested, the SIP trace produced by sip set debug on is pretty much essential for all such problems.
Also could you explain why you have “nat=yes”. If this is really needed it is an important piece of information. On the other hand this is possibly the most common incorrect setting, as people think it applies to cases when Asterisk is behind NAT. It is actually a work round for broken NAT on the remote system.
The other common mistake is to use type=friend, rather than type=peer. Both this and the preivous one only really affect security.
Your router configuration requires a non-default rtp.conf, and defines rather a small number of RTP ports (50). This also doesn’t affect registration.