Freepbx showing trunks offline

I’m running a machine built from freepbx distro 6.12.65
I have four sip trunks, two are draytel and the other two are sipgate trunks. Freepbx is acting strange, showing the draytel trunks up but the sipgate trunks down, yet if I call my sipgate numbers from an outside line they both come in fine with two way audio. The freepbx system status page shows two trunks offline (in red) and if I go into the consile and do ‘sip show peers’ the sipgate trunks show as ‘unreachable’. Why would freepbx display this?

These are the settings I am using on my sipgate trunks and they show as registered and work fine.

username=myusername
type=peer
secret=MYPASSWORD
registerattempts=0
qualify=yes
nat=force_rport,comedia
insecure=very
host=sipgate.co.uk
fromuser=myusername
fromdomain=sipgate.co.uk
dtmfmode=auto
disallow=all
context=from-trunk
canreinvite=no
allow=ulaw&alaw

My router has 5060 UDP and 10000-20000 UDP forwarded to my PBX internal IP

paul thankyou very much, your settings worked for me, freepbx is now showing the sipgate trunks are up.