Monday, August 10, 2009

running asterisk with SELinux enabled

The common problem on asterisk running on top of linux with SELinux enabled is the error while trying to load the codecs

the error usually said :

loader.c:359 __load_resource: /usr/lib/asterisk/modules/codec_g729.so: cannot restore segment prot after reloc: Permission denied

The majority of user just disabling the SELinux, but if that is not an option, just change the context of said file above wiith this command :

chcon -t texrel_shlib_t /usr/lib/asterisk/modules/codec_g729.so

1 comment:

Anonymous said...

Thanks man!

current

last archive