Dry roast coriander seeds, cumin seeds, sesame seeds, black peppercorns, cinnamon, cloves and fennel seeds one by one. Set aside to cool. Roast dry coconut till it turns reddish. Set aside to cool.
Heat oil in a pan and fry onions, garlic and coriander leaves on low heat till well browned and crisp. Set aside to cool. Mix all these and grind to a fine powder. Mix with the red chilli powder. Store when completely cooled in an air-tight container preferably in a refrigerator.