Hundreds of migrants are housed in heated military tents near the Bosnian-Croatian border after days of uncertainty.