Hundreds of thousands of people are flocking at inter-state borders, waiting to go home, often in dangerously squalid conditions.