Bring a pan of lightly-salted water to a taste. Pierce the sausages and hotdogs with a fork, add to the pan and cook for about 15 minutes, or until just tender. Drain and set aside.
Crush the garlic, black peppercorns, ginger, salt, thyme and chili flakes to a smooth paste in a mortar.
Cut the sausages into slices and add to a cooking pot.
Stir in the spice mixture and add the tomatoes, onions and 1 cup of water. Bring to a simmer, cover the pot and cook gently for 90 minutes, topping up with water as needed.
Serve hot garnished with chilies and accompanied with steamed rice.