Condensate pump

I called out a condensate discharge line (from a pump) connected directly to a waste stack today. Should this not be an indirect connection or at the very least be trapped?

I would say it should be both, indirect connection and trapped!