No Connections / IAX2

I have two phone servers one working and one not, on the one that isn’t working on the ‘FreePBX Connections’ there isn’t anything at all showing e.g. Trunks although i have two trunks placed in.
Looking at the settings they both seem fine compared to the one working.

PEER Details:

type=peer
host=My Host
username=My Username
auth=md5
secret=Password
trunk=yes
qualify=3000
qualifysmoothing=yes
qualifyfreqok=10000
qualifyfreqnotok=1000

User Details:

type=user
context=from-trunk
trunk=yes
auth=md5
secret=Password
requirecalltoken=auto

Same for the other truck apart from user details as nothing is placed in there.

Also in reports> Asterisk Info > IAX Info says:

No such command ‘iax2 show registry’ (type ‘core show help iax2 show’ for other possible commands)

Other system shows : Host, mask, port, status.

Any idea what is going on? looked around but can’t find anything helpful.

Sounds like IAX2 module isnt’ getting loaded or there’s a problem with your IAX2 configuration.

Look through your logs for references to “iax2” - maybe you can find a reason in there that explains the problem.

If you can get onto the server, connect to the server using “asterisk -vr” and type “help iax2” - that will give you all of the commands. If “iax2” isn’t there, you have narrowed the problem down.

There is no errors referring to iax but putting the command help iax2 or anything related to iax2 doesn’t work says “Can’t find command”