Sip connection between two local PBX systems (Avaya & FreePBX)

something goofy going on with that error.

what ver is this freepbx? any custom programming leftover?

also make sure you got the full SIP debug with INVITE and all the replies from asterisk. also asterisk -rvvvvv to see the asterisk events related to the replies and invites