Please Help, new in Asterisk!

Hi! I’m new in the world of Asterisk, and obviously in this forum.
I have Asterisk 1.8 and Asterisk-Gui installed, so i don’t know if I’m writing in the right place.

Adding an user is not a problem, and it register without any problems.
My problem is when i want to register a trunk. I want that ‘trunk_2’ register in localhost, with port 5062.

Seeing the Asterisk trace:

[May 10 11:10:30] WARNING[6839]: chan_sip.c:12442 transmit_register: Probably a DNS error for registration to trunk_2@, trying REGISTER again (after 20 seconds)
[May 10 11:10:30] NOTICE[6839]: chan_sip.c:12357 sip_reg_timeout: – Registration for ‘trunk_2@’ timed out, trying again (Attempt #2)

And in the users.conf:

host =
username = trunk_2
secret = trunk_2
trunkname = trunk_2 ; GUI metadata
context = DID_trunk_2
hasexten = no
hasiax = no
hassip = yes
registeriax = no
registersip = yes
trunkstyle = voip
insecure = no
disallow = all
allow = ulaw,alaw,gsm,g726

What I’m doing wrong?

Please Help Me!

Sorry about my bad English, i hope you understand me! :wink: