res_fax module ERROR: No Fax license detected

Good day!
I have res_fax.so and res_fax_digium.so modules installed.

ls -lahF /usr/lib/asterisk/modules/ | grep fax

-rwxr-xr-x 1 root root 1.4M Sep 6 11:21 res_fax_digium.so*
-rwxr-xr-x 1 root root 1.4M Aug 28 14:51 res_fax_digium.so.old*
-rwxr-xr-x 1 root root 75K Sep 6 11:21 res_fax.so*
-rwxr-xr-x 1 root root 72K Feb 27 2013 res_fax.so.old*
-rwxr-xr-x 1 root root 18K Mar 29 23:30 res_fax_spandsp.so*

I have all appropriate licences installed.

ls -la /var/lib/asterisk/licenses/

total 20
drwxrwxr-x. 2 asterisk asterisk 4096 Aug 27 22:34 .
drwxrwxr-x. 13 asterisk asterisk 4096 Aug 19 20:49 …
-rwxrwxrwx 1 asterisk asterisk 325 Aug 27 10:57 FAX-XXXXX.lic
-rwxrwxrwx 1 asterisk asterisk 325 Aug 27 10:55 FAX-XXXXX.lic
-rwxrwxrwx 1 asterisk asterisk 325 Aug 28 14:26 FFA-XXXXX.lic

Yesterday I had to reboot the * server and since that I have not been able to receive any faxes. I get this from GUI->extensions settings

ERROR: No Fax license detected.
Fax-related dialplan will NOT be generated!
This module has detected that Fax for Asterisk is installed without a license.
At least one license is required (it is available for free) and must be installed.

But at the same time all my licences do appear at

*CLI> fax show licenses
Fax Licensing Information

Free fax licenses: 1
Total licensed ports: 5

Licenses Found:
File: FAX-XXXXX.lic – Key: FAX-XXXXX – Product: RESFAX – Host-ID: e8:80:7c:cb:e1:bd:8d:25:09:14:b1:9b:fb:xx:xx:xx:xx:xx:xx:xx – Ports: 3 (OK)
File: FFA-XXXXX.lic – Key: FFA-XXXXX – Product: RESFFA – Host-ID: e8:80:7c:cb:e1:bd:8d:25:09:14:b1:9b:fb:xx:xx:xx:xx:xx:xx:xx – Ports: 1 (OK)
File: FAX-XXXXX.lic – Key: FAX-XXXXX-- Product: RESFAX – Host-ID: e8:80:7c:cb:e1:bd:8d:25:09:14:b1:9b:fb:xx:xx:xx:xx:xx:xx:xx – Ports: 1 (OK)

I tried to reload modules and restart * but no success. And fax show stats command disappeared.
Please, help!

What version of the Fax module are you using?

res_fax-1.6.2.0_1.2.1-x86_32
res_fax_digium-1.8.4_1.3.1-c3_2_32

That is not what I asked. I asked what version of the FreePBX Fax module are you using?

got it fixed when put the res_fax.so from the clean installation of FreePBX.