I have e new installation of FreePBX 13. Ran all updates, and am on 13.66-6 (x64) with all modules updated. The first thing I did was configure my analog trunks. Ran DAHDI Configuration, then configured my first analog trunk. FreePBX throws off an error, and will not reload.
“Reload faild because retrieve_conf encountered and error:1”
Further information:
exit: 1
Whoops\Exception\ErrorException: file_put_contents(/etc/wanpipe/global.conf): failed to open stream: Permission denied in file /var/www/html/admin/modules/dahdiconfig/modules/sangoma.module on line 116
Stack trace:
setup-sangoma from the CLI and configure the card correctly - answer a few questions - let it restart Asterisk (since it’s not running anyway) and post results.
I ran setup-sangoma from the CLI. It found no cards. My card is an OpenVOX 4-port analog card with Digium compatibility.
This is confusing to me, because I did this several times previously with this hardware with no errors. Now all of a sudden I am getting an error with a fresh install.
Ok, that is a clone of a Digium card, so from the cli “dahdi_genconf” and then restart Dahdi and Asterisk (“amportal kill” and “amportal start”) and go into the asterisk command line “asterisk -vvvr” and then check dahdi with “dahdi show status” and “dahdi show channels” and post your results.
It wasn’t the permissions on sangoma.module which were wrong but the permissions on /etc/wanpipe/global.conf…
(sangoma.module at line 116 tries to write that file)
I wonder why it was not able to write a default configuration there… Even if you don’t have a Sangoma card this directory should have been there I believe… Did you play with persmissions on anything under /etc?
Thanks. I had no global.conf file in the directory. I created a null file, changed ownership to asterisk, and changed Rights, and I was able to get it to work.
There must be a problem with the distro, because I used a fresh install, and I tested it a couple of times with the same result.
I would have to ask why? , if you don’t have any Sangoma hardware, the “distribution” should not push that on you, no? If Dahdi supports OpenVox in the “distribution” it should “know”
Caveate, I don’t use the the “distibution” but have used sangoma hardware for years, equally as good as the Digium stuff . . . maybe better , but without doubt a different philosophy (read driver) . . … (not so much the cloned hardware )
Andrew, if dicko concern cannot be easily address do you think it would be possible to automagically do a “fwconsole chown” after first boot to restore the proper permissions?