Take a pressure cooker add oil heat it and fry half onion slices until it becomes golden brown.transfer in a plate then add whole spices in the oil and saute few seconds.now add left onion saute when it becomes light brown then add tomatoes,green chilli,1 tsp salt,garam masala powder and red chilli powder.cooked until the tomatoes turn soft.now add the soaked dal and add 1 cup water.cover and cooked for 2-3 whistles.