Years ago I had to extend the waste pipe of a dw & incorporate an anti syphon valve at the high point on the run.
Istr as the hose was corrugated hard plastic, it took a couple of goes & I ended up slathering the valve spigots with silicone, assembling loosely, letting it set, then nip up the jubilee clips .