Manufacturing of pipe fittings