By condensation of 1,5-diphenyl-1-pentanol (I) with 3-(dimethylamino)propyl chloride (II) by means of NaH in refluxing toluene, followed by a treatment with citric acid.