Iran’s president says indirect discussions with Washington can only happen if sanctions are lifted.