Heat a dry skillet over medium heat. After 2 minutes, when the pan is hot, toast the whole coriander seeds, cumin seeds, fenugreek seeds, and brown mustard seeds. Stir frequently for about 3 minutes until they start to crackle and pop and release their aroma.
Add the whole star anise, cinnamon (or cassia bark), green cardamom pods, black peppercorns and Kashmiri chilies to the skillet. Continue toasting the mixture for another two minutes, stirring constantly to prevent burning.
Turn off the heat and stir in the curry leaves, turmeric and asafetida. Let the curry leaves slightly dry from the heat of the pan for 10 minutes as the contents of the pan cool.
Grind the spices to a fine powder in a spice grinder, high-speed blender, or mortar and pestle.
Transfer the ground spice blend to a jar for storage, placing the lid on the jar only when the curry powder has cooled to room temperature.