I know a farang who was in there for about 5 days, he was deported from another country back to Thailand then from here to the UK, seems like the immigration have their own travel agents in his case no choice on where you can get your flight, he did say people have been in there for years,
He did keep his phone,