Heat oil in a pan.
Once hot add in the channa dal, dry chillies, curry leaves.
Saute for a few seconds.
Now add in the fennel seeds, cumin, pepper corns and coriander seeds and give a quick stir.
Stir fry this on low until aromatic.
Now add the chopped onions and shallow fry until it is translucent.
Add in the chopped tomatoes, turmeric powder and salt.
Cook this on slow until the tomatoes are soft and mushy.
Now add the freshly grated coconut and cook it further for 5 mins.
Switch off and let this cool.
Once cooled, grind it into a smooth paste with enough water.