To Hamas and other Palestinian groups, the US president sent a strong condemnation, saying there is no justification for "the cowardly acts" of launching rockets into Israel.
To the Israeli prime minister, Benyamin Netanyahu, he sent a message of support and simply urged him to "avoid" civilian casualties.
So far around two dozen Palestinians have been killed including six children and a pregnant woman. Three Israeli civilians have been killed.