Iran, Turkmenistan and Azerbaijan have signed a gas swap deal for up to 2 billion cubic meters (bcm) per year.