IP Security Forum

Sicherheit im Internet => GEOTEK Phone Book => Topic started by: pj on Saturday, 11.10.2008 21:52

Title: phonebook 2.4 - dilaler "Permission denied"
Post by: pj on Saturday, 11.10.2008 21:52
Installed phonebook 2.4, but when I try to call, I got "Permission denied" error message on dialer web interface.
asterisk manager debug shows nothing more than:

[Oct 11 21:03:48]   == Manager 'phonebook' logged on from 127.0.0.1
[Oct 11 21:03:48]   == Manager 'phonebook' logged off from 127.0.0.1
...
Asterisk SVN-trunk-r145692

in apache error log:

[Sat Oct 11 20:58:24 2008] [error] [client 78.31.25.36] Sat, 11 Oct 2008 20:58:24 +0200 - Got event.. peerstatus
[Sat Oct 11 20:58:24 2008] [error] [client 78.31.25.36] Sat, 11 Oct 2008 20:58:24 +0200 - No event handler for event 'peerstatus'
[Sat Oct 11 20:58:58 2008] [error] [client 78.31.25.36] PHP Warning:  file(/etc/asterisk/voicemail.conf) [<a href='function.file'>function.file[/url]]: failed to open stream: No such file or directory in /var/
www/html/phonebook/init_php.inc on line 402, referer: https://xxx/phonebook/dialer.php
[Sat Oct 11 20:58:58 2008] [error] [client 78.31.25.36] PHP Warning:  current() [<a href='function.current'>function.current[/url]]: Passed variable is not an array or object in /var/www/html/phonebook/init_ph
p.inc on line 403, referer: https://xxxx/phonebook/dialer.php
[Sat Oct 11 20:58:58 2008] [error] [client 78.31.25.36] PHP Warning:  current() [<a href='function.current'>function.current[/url]]: Passed variable is not an array or object in /var/www/html/phonebook/init_ph
p.inc on line 404, referer: https://xxx/phonebook/dialer.php



Title: Re: phonebook 2.4 - dilaler "Permission denied"
Post by: admin on Tuesday, 14.10.2008 08:44
Hi pj,

This error indicates that GEOTEK Phonebook tries to read voicemail.conf but is not allowed to do this. The webserver/PHP user must have at least read access rights to the complete Asterisk config directory. Depending on your asterisk configuration there are a number of ways to do this, a quick and dirty way would be to simply allow public read access rights to this directory. In addition, you must also allow full access to the voicemail directories of asterisk.