He says that's the same message the United States is sending.
But Obama says if Iran comes into the conflict solely as an armed force backing the Shiite-led government, its involvement would probably worsen the situation.
Obama says Iran's leaders have a decision to make about what role to play there.
He says Tehran should consider whether its view of the region is solely through sectarian frames. He says if that's the case, Iran could find itself fighting in lots of places in the world.