Probably it will happen many of us foreigners in the near futur. A visit to a branch office to clear it out will be needed. They will check your visa/extension, address and telephone number.
I have asked two different tax office and get totally different answers, and in my hometown they refuse to give me a TIN number because my home country have a dual tax agreement with Thailand since 1988.