Page 1 of 1

can't load the modules

PostPosted: Fri May 22, 2009 7:56 am
by dponzone
I wanted to give a try to FFA but I can't find a way to load the modules:

root@ns354349:~# asterisk -V
Asterisk 1.4.23-rc1

ns354349*CLI> module load
[May 22 15:44:07] WARNING[18764]: loader.c:359 load_dynamic_module: Error loading module '': /usr/local/lib/asterisk/modules/ cannot open shared object file: No such file or directory
[May 22 15:44:07] WARNING[18764]: loader.c:653 load_resource: Module '' could not be loaded.

but the files are there:

root@ns354349:/usr/local/lib/asterisk/modules# ls -l res_fax*
-rwxr-xr-x 1 root staff 1374804 2009-05-22 14:52
-rwxr-xr-x 1 root staff 49180 2009-05-22 14:51

root@ns354349:/usr/local/lib/asterisk/modules# file res_fax* ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped

(For info, I look the c3-2 version, following the benchfax result, despite the fact that the CPU is a Core2Duo).

root@ns354349:/usr/local/lib/asterisk/modules# uname -a
Linux #1 SMP Thu Nov 27 17:08:30 CET 2008 x86_64 GNU/Linux

I am stuck there.

Any ideas ?


PostPosted: Fri May 22, 2009 11:50 am
by sethsdad0627
You're probably running Asterisk as a non-root user. You can try chmod 0777 on the files and see if they load then.

PostPosted: Fri May 22, 2009 4:37 pm
by dponzone
Nope, my Asterisk is running as root, and all my modules are 755.
Nice try anyway, I forgot to check that!

I am really getting crazy on this...

How to load the module

PostPosted: Mon May 25, 2009 8:09 pm
by tiloulou
You have to disable SELINUX in the directory /etc/selinux and in config put : selinux=disabled.

Good Luck


PostPosted: Tue May 26, 2009 3:31 am
by dponzone
My sillyness!
I was absolutely not aware SELINUX was enabled on my Debian.

Thanks, I am rebooting now, and pretty sure it gonna work!

PostPosted: Tue May 26, 2009 3:54 am
by dponzone
I replied too quickly...

Even after disabling SELINUX and rebooted, I can't load the FFA modules.
Anyway, SELINUX was in permissive mode before, so I guess it was not hurting anything.

I am stuck.
I can't find anyone else with the same issue.
Perhaps I should try to request Digium's help ?

PostPosted: Tue Oct 06, 2009 7:19 pm
by wauters
Did anyone find an answer to this?

PostPosted: Wed Oct 07, 2009 7:15 am
by sethsdad0627
Did you select the right architecture when registering the module?

Re: can't load the modules

PostPosted: Fri Dec 18, 2009 12:42 pm
by jmituzas
I bet its the same problem I have 64-bit...