Iran has said it is ready to call for the withdrawal of foreign fighters in Syria.