18.7.1 – Can’t Load Res_fax, Can’t Stop App_fax
Hi,
I’m using Asterisk 18.7.1.
I can’t get res_fax to load. I built it accidentally with app_fax enabled, and was getting this in the log on startup:
[Nov 3 11:52:31] ERROR[10886] loader.c: Error loading module ‘res_fax_spandsp.so’, missing dependency: res_fax
Discovering that app_fax and res_fax conflict, I went back in to make menuselect and unselected app_fax, so now it says this:
( ) app_fax
and in the resource modules I have this:
[*] res_fax
so I re-did make and make install and then a full asterisk restart, but I still got the same “missing dependency: res_fax” error in the log.
I noticed that “noload => res_fax.so” was in modules.conf so I removed that line and restarted Asterisk again, but it then declined to load, ending with this error:
[Nov 3 11:54:45] ERROR[11381] loader.c: *** Failed to load module app_fax.so
[Nov 3 11:54:45] ERROR[11381] asterisk.c: Module initialization failed. ASTERISK EXITING!
and sure enough if I put that line back in to modules.conf, Asterisk start and I notice that it’s been saying this:
[Nov 3 11:54:59] WARNING[11510] loader.c: Module ‘app_fax’ has been loaded but was deprecated in Asterisk version 16 and will be removed in Asterisk version 19. Its replacement is ‘res_fax’.
I can’t figure out why it’s still loading app_fax. Any ideas?
Cheers, Kingsley.
—
5 thoughts on - 18.7.1 – Can’t Load Res_fax, Can’t Stop App_fax
You should probably do a
make distclean
And then run configure again before re-compiling.
Doug
—
Is the app_fax.so module still in /usr/lib/asterisk/modules? If so – if you remove it do things work. Is app_fax.so explicitly being loaded in modules.conf?
Thanks.
I was already waiting for it to finish recompiling after Doug’s suggestion but yes, app_fax.so was still in there and removing it then let me remove the noload => res_fax.so line from modules.conf and everything started fine.
At the end of the re-compile it was nice to see it point this out actually:
–8<-- WARNING WARNING WARNING Your Asterisk modules directory, located at /usr/lib/asterisk/modules contains modules that were not installed by this version of Asterisk. Please ensure that these modules are compatible with this version before attempting to run Asterisk. app_fax.so WARNING WARNING WARNING --8<-- No, modules.conf didn't mention app_fax. Thanks. All sorted. Now to work on the next one 😉 -- Cheers, Kingsley. --
Thanks.
I was already waiting for it to finish recompiling after Doug’s suggestion but yes, app_fax.so was still in there and removing it then let me remove the noload => res_fax.so line from modules.conf and everything started fine.
At the end of the re-compile it was nice to see it point this out actually:
–8<-- WARNING WARNING WARNING Your Asterisk modules directory, located at /usr/lib/asterisk/modules contains modules that were not installed by this version of Asterisk. Please ensure that these modules are compatible with this version before attempting to run Asterisk. app_fax.so WARNING WARNING WARNING --8<-- No, modules.conf didn't mention app_fax. Thanks. All sorted. Now to work on the next one 😉 -- Cheers, Kingsley. --
I always empty /usr/lib/asterisk/modules if I am going to do an install with a different version, or better to do it always.
—
Your life is like a penny. You’re going to lose it. The question is:
How do you spend it?
John Covici wb2una
covici@ccs.covici.com
—