IAX2 Trunk between 2 servers not working

I have 5 FreePBX servers behind SonicWalls. One server is a new server. Inter-company calls work between all servers except one. I have rechecked all configurations, and have run out of ideas. All servers are running FreePBX 13.0.192.9 with current updates applied. Calling from System 1 to System 5 does not complete with messages "Your call cannot be completed as dialed. Console output is as follows:

– Executing [11121@from-internal:3] GotoIf(“PJSIP/10101-00000132”, “1?notblind”) in new stack
– Goto (from-internal,11121,6)
– Executing [11121@from-internal:6] GotoIf(“PJSIP/10101-00000132”, “1?restrictedroute-76bb5e75edbfa0abeb26352c22048f73,11121,2:outbound-allroutes,11121,2”) in new stack
– Goto (restrictedroute-76bb5e75edbfa0abeb26352c22048f73,11121,2)
– Channel ‘PJSIP/10101-00000132’ sent to invalid extension: context,exten,priority=restrictedroute-76bb5e75edbfa0abeb26352c22048f73,11121,2
– Executing [i@restrictedroute-76bb5e75edbfa0abeb26352c22048f73:1] Goto(“PJSIP/10101-00000132”, “bad-number,s,1”) in new stack
– Goto (bad-number,s,1)
– Executing [s@bad-number:1] Goto(“PJSIP/10101-00000132”, “11,1”) in new stack
– Goto (bad-number,11,1)

Configuration for the System 1 trunk is as follows:
Trunk Name=System 2
host=System 2 IP Address
username=System1
secret=password
type=friend
context=from-internal
qualify=yes
qualifyfreqok=25000
transfer=no
trunk=yes
forceencryption=yes
encryption=yes
auth=md5

Configuration of System 2 Trunk is as follows:
Trunk Name = System 1
host=System 1 IP Address
username=System 2
secret=Password
type=friend
context=from-internal
qualify=yes
qualifyfreqok=25000
transfer=no
trunk=yes
forceencryption=yes
encryption=yes
auth=md5

System 1 IP range = 10.1.1.0/24
System 2 IP range = 10.11.1.0/24
System 1 extensions = 101XX
System 2 extensions = 111XX

Appropriate Outbound Routes are set up with extension numbers for each other’s extensions.

I have VPNs set up with the SonicWalls, with VoIP turned off. With VoIP on, I have problems connected phones remote to my servers on other networks.

Any ideas?

But qualify shows that the trunks can reach each other both ways?

You can also try iax2 debug

It looks like it’s matching a restricted route from what you posted