Pipe fitting and method for manufacturing thereof