Sip trunk incoming settings

I config a sip trunk, it can dial out, but cannot dial in

Outgoing Settings
Trunk Name: freevoip-eu
PEER Details:
context=out-trunk
fromdomain=192.168.5.21
fromuser=902
host=192.168.5.21
insecure=invite
nat=yes
secret=902
type=peer
username=902

Incoming Settings
USER CONTEXT: 902
USER Details:
context=from-trunk
fromdomain=192.168.5.21
fromuser=902
insecure=invite
nat=yes
port=5060
secret=902
type=user

Register String:
902:902@192.168.5.21/902

what have any problem about Incoming Settings? it cannot work?

903 gedistered(192.168.5.21) , 903 dial 902 , it give me “Number does not exist\nCall rejected: 404 Not FOUND”

Taking a guess because of lack of information…

I’ll assume since you have a secret setup for your trunk, it needs to register that extension.

Add

register => fromuser@fromdomain:secret@host

To the [general] section of your sip.conf.

Thank you for your help! I changed someting config, and it can work