General phase transition models for vehicular traffic with point constraints on the flow