Revolutionary Guards Commander Jafari's message on Sunday, backed by this chiding of Ankara, appears to be, "We are in Syria. Deal with it." Perhaps someone in Tehran planned it as part of a carrot-and-stick strategy, with the commander offering the tough posture while the President was saying, "Look, you really want us in talks."
More likely, however, is that there is no strategist --- not Jafari, not Ahmadinejad, not the Foreign Ministry, not the Supreme Leader --- thinking through the statements and Iran's actions. And that failure is likely to set Iran back in its effort to retain some influence in the Syrian situation.