Ok, I should be ok to put a larger overflow pipe in, if that's what is required. The grey pipe definitely goes outside onto the patio. I wouldn't want it dumping salty water out there every night though.
I can't say for sure where the waste pipe goes after the trap, as all the drainage is...