Connection from FreePBX to Kamailio

The fact that the call is hitting the anonymous endpoint is the clue. The trunk for the Kamailio server needs to have the Kamailio IP in the Match (Permit) setting of the trunk. Kamailio is sending a request to the PBX and none of the endpoints configured are matching the source IP of the requests and thus ends up on the anonymous endpoint which sends calls to a specific context.