1.Unknown SQL engine
Problem:After installing the FreePBX,admin page show the following message:
FATAL ERROR
Unknown SQL engine: []
Trace Back
/var/www/html/admin/common/db_connect.php:57 die_freepbx()
[0]: Unknown SQL engine: []/var/www/html/admin/bootstrap.php:75 require_once()
[0]: /var/www/html/admin/common/db_connect.php/var/www/html/admin/config.php:61 require()
[0]: /var/www/html/admin/bootstrap.php
Solution:
vim +231 /etc/httpd/conf/httpd.conf
change User apache and Group apache to User asterisk and Group asterisk.
vim +327 /etc/httpd/conf/httpd.conf
change None to All.
or use sed to replace.
sed -i '231,232s/apache/asterisk/i;327s/none/All/i' /etc/httpd/conf/httpd.conf
Restart apache service.
service httpd restart
2.Asterisk is not running,
Problem:After installing the FreePBX,the Server Status Panel of admin page show the following message:
Asterisk ERROR
Asterisk is not running, this is a critical service!
Solution:
vim +$ /etc/asterisk/manager.conf
Press dddd
to delete the last two lines and press ZZ
to save&quit.
or use sed to delete the last line twice.
sed -i '$d' /etc/asterisk/manager.conf
sed -i '$d' /etc/asterisk/manager.conf
Restat the asterisk service.
service asterisk restart
3.Softphone registration error
Problem:After adding Extensions in FreePBX,soft phone can’t register extentsions.
Solution:
Log in your asterisk (asterisk -r
) and press sip show peers
,if no such command,
run module load chan_sip.so
,load the sip module.
Restat the asterisk service.
core restart now
If nothing changes,maybe firewall blocks asterisk,you should disable the firewall and prevent it from starting on reboot.
service iptables stop
chkconfig iptables off
4.Soft phone can’t connect to eachother
Problem:Softphone can register freepbx extensions but can’t connect to eachother.
Log in your asterisk (asterisk -r
),when soft phone registering,asterisk show error:
chan_sip.c:8876 process_sdp: No compatible codecs, not accepting this offer!
Solution:
Make sure that you have selected a-law or u-law in soft phone selected codecs
or select the proper codecss in a FreePBX EXTENSION configuration.
I try amportal restart but error
STOPPING ASTERISK
STOPPING FOP SERVER
SETTING FILE PERMISSIONS
Permissions OK
STARTING ASTERISK
Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.
mpg123: no process killed
Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.
mpg123: no process killed
—————————————————–
Asterisk could not start!
Use ‘tail /var/log/asterisk/full’ to find out why.
—————————————————–
are you using astercc box? you can check /etc/asterisk/asterisk.conf make sure it has astrundir => /var/run/asterisk
Dear sir,
I m new in this field .
i just want to know how to enable firewall in asterisk ,and from where i can get more information about asterisk dialer ..
pls guide me , abt any site of more info ..
thanks..
you can read http://www.voip-info.org/wiki/view/Asterisk+firewall+rules
for beginner, you can use astercc box, download from http://astercc.org/downloads, document: http://wiki.astercc.com
I have installed asterbilling but when i go to try and call it from the browser using http://X.X.X.X/astercc/ , i get no errors but just a blank page .. any ideas what im missing ??