Illegal in Germany. You may not record conversations, if you try to enter something like that as evidence you'll get punished as well.
I suspect there are many countries with laws like that, and if your phone actually disables the feature when you enter them or just let's you hang to dry...