Bring a pan of lightly salted water to a boil. Pierce the sausages and hot dogs with a fork, add them to the pan, and simmer for about 15 minutes, until just tender. Drain and set aside.
In a mortar (or small food processor), crush the garlic, peppercorns, ginger, salt, thyme, and chili flakes into a smooth paste.
Slice the sausages. Add them to a heavy pot or Dutch oven.
Stir in the spice paste. Add the tomatoes, onions, and 1 cup of water. Bring to a gentle simmer.
Cover and cook on low for about 90 minutes, stirring occasionally and adding a splash of water if the sauce looks too dry.
Serve hot, sprinkled with parsley (and extra chili if you like), with rice.