The fix is technically simple. Check if the teleport flag area is currently a siege zone before allowing the teleportation.
And, ofc, check if the siege zone is really covering all the ground it should be.
All castles, siege-able clan halls, gainak, fortresses, etc.. any permanent or temporary pvp zone.