I don’t know about Iran, but in 1600’s ice cubes in Lahore, Punjab were made by freezing water in wooden pans in the foothills of mountains. The pans were swept early in the morning, and transported to special underground pens lined up with straw, hay etc. Ice lasted through summer and Mughal kings enjoyed their cold drinks.
Even away from the mountains, I know they did this in Allahabad (according to Fanny Parkes) which must be only barely cold enough. Compared to that, lots of places in Iran should be easy, lots of it is quite high. You can go skiing for the day from Tehran, in May!