@Isabel ***
I don't understand your usage here. If you are a volunteer in Thailand you don't earn money, even though you do need a work permit. If you work for a German organisation that pays you to volunteer in Thailand then you pay tax in Germany. But if you are in fact working in Thailand and earning money (albeit you are on a volunteer visa, which I didn't think allowed paid work) due to the work you are doing here then you should pay tax in Thailand.
I think you need to make your situation more clear if you want help.