Medium and jacket pipes for district heating systems