It is known that when $\ce{NH3}$ and $\ce{SO2}$ gasses are introduced into $\ce{BaCl2}$ solution, some insoluble white solid is produced. What is the reaction that is taking place in this situation? I think that the white solid could be $\ce{BaSO4}$ or $\ce{BaSO3}$. If it is the former, then some redox takes place. But I'm not sure what $\ce{NH3}$ is doing here.