Her delivery was hindered by arduous road access wrecked by both the quake and a subsequent landslide, according to obstetrician Monica Wulandari, adding that adequate medicine and tools were short.

"Perhaps this earthquake carried its own blessing for my wife, because my wife was handled by specialist doctors who were very good. My wife made it into labour, the baby was born, and I am happy with the blessings," said Solihin.

Monday's 5.6-magnitude quake caused extensive damage in the mountain town about 45 miles (75 km) south of the capital, Jakarta -- 271 were killed and 40 people remained missing.

Indonesia is one of the world's most earthquake-prone countries. It frequently records earthquakes offshore that are stronger than the one that hit West Java.