After a lot of hours of searching, I finaly made it work!! The other application's crash had nothing to do with FOP2 and it was just a bad coincidence that happend when I activated the FOP2. So I focused on the problem that a user's extension could not log in if it was used from the other application. On my lab,everything worked perfect, but at my customers PBX, I still had the same behaviour. Finally I commented the #exec line and programmed everything from the scratch on buttons.cfg and it wotked!! I still do not know why the freepbx autoconfig did not worked. Maybe a system restart could have fixed the problem...
Anyway, I would like to thank you for your instant reply and the support and all your efforts!!
Best regards