The recent spell of hot weather has put paid to our old Asterisk server so I had to create a new one over the weekend. In the process I upgraded to Centos 5.5 and Asterisk 1.4 (from 1.2). After some effort we seem to have a working server now so I thought I’d change some things while I’m still familiar with the system.
All seemed to go okay until I got as far as:
“4.4) Verify that the number of G.729 licensed channels available…”
If I type “g729 show licenses” all I get is:
localhost*CLI> g729 show licenses
No such command ‘g729 show licenses’ (type ‘help g729 show’ for other possible commands)
Well, “help” doesn’t help and “show g729” isn’t any better.
There is a licence file in /var/lib/asterisk/licenses and /usr/lib/asterisk/modules/codec_g729a.so exists.
It must not be loading the module. Did you explicitly load the module to see if any errors occur? You can load the module and then tail the messages in /var/log/asterisk/messages to see if there is any specific error.
If it is not loading the module, rerun the bench utility to determine if you have the right build for the version of asterisk you are running.
When I do section 4.3:
asterisk -rx “module load codec_g729a.so”
…it pauses for a second and then comes straight back to the prompt - there are no messages.
Looking in /var/log/asterisk/messgaes I find:
[May 26 09:09:42] WARNING[5572] loader.c: Error loading module ‘codec_g729a.so’: /usr/lib/asterisk/modules/codec_g729a.so: cannot restore segment prot after reloc: Permission denied
[May 26 09:09:42] WARNING[5572] loader.c: Module ‘codec_g729a.so’ could not be loaded.
I wonder if I’ve forgotten a chmod somewhere or perhaps selinux is getting in the way.