Trunk context is not being assigned

My Box start working fine, but after some hours running I always have to reset (aportal restart) asterisk in my box because the call from my trunk (which context=from-trunk) do not recognize the SIP inbound call (entering in the box as from-sip-extern).

Log lines:

[2014-02-28 11:35:06] VERBOSE[10113][C-00000004] pbx.c: – Executing [01140631173@from-sip-external:1] NoOp(“SIP/XXXX.net-00000004”, “Received incoming SIP connection from unknown peer to 01140631173”) in new stack
[2014-02-28 11:35:06] VERBOSE[10113][C-00000004] pbx.c: – Executing [01140631173@from-sip-external:2] Set(“SIP/XXXX.net-00000004”, “DID=01140631173”) in new stack
[2014-02-28 11:35:06] VERBOSE[10113][C-00000004] pbx.c: – Executing [01140631173@from-sip-external:3] Goto(“SIP/vono.net.br-00000004”, “s,1”) in new stack
[2014-02-28 11:35:06] VERBOSE[10113][C-00000004] pbx.c: – Goto (from-sip-external,s,1)
[2014-02-28 11:35:06] VERBOSE[10113][C-00000004] pbx.c: – Executing [s@from-sip-external:1] GotoIf(“SIP/vono.net.br-00000004”, “0?checklang:noanonymous”) in new stack
[2014-02-28 11:35:06] VERBOSE[10113][C-00000004] pbx.c: – Goto (from-sip-external,s,5)
[2014-02-28 11:35:06] VERBOSE[10113][C-00000004] pbx.c: – Executing [s@from-sip-external:5] Set(“SIP/XXXX.net-00000004”, “TIMEOUT(absolute)=15”) in new stack
[2014-02-28 11:35:06] VERBOSE[10113][C-00000004] func_timeout.c: – Channel will hangup at 2014-02-28 11:35:21.013 BRT.
[2014-02-28 11:35:06] VERBOSE[10113][C-00000004] pbx.c: – Executing [s@from-sip-external:6] Log(“SIP/XXXXX.net-00000004”, “WARNING,“Rejecting unknown SIP connection from 201.86.XXX.XXX””) in new stack
[2014-02-28 11:35:06] WARNING[10113][C-00000004] Ext. s: "Rejecting unknown SIP connection from 201.86.XXX.XXX"
Trunk PEER Details:
type=peer
username=XXXXXXXX
secret=XXXXXXXX
domain=XXXXXXXXX
fromuser=XXXXXXXX
fromdomain=XXXXXXXX
host=XXXXXXX
insecure=invite,port
qualify=yes
qualifyfreq=3600
port=5060
nat=yes
disallow=all
allow=g729
dtmfmode=rfc2833
context=from-trunk
reinvite=no
canreinvite=no
language=pt_BR
auth=md5
encryption=no
Inbound is also Ok, otherwise it would not start working fine.
Could someone send me an idea to solve instability of the system? I have no clue of what is happening.

Are you sure the “host=” setting matches the IP this call is coming from?

Here’s the issue, it has nothing to do with context: Rejecting unknown SIP connection from 201.86.XXX.XXX

You might want to change from “type=peer” to “type=friend”.

I tried to set the host the IP address, but when I do it, the trunk stop working no only with income calls, but also outcome calls. It just work when host=my provider domain (not IP).