Common Problems and Solutions for CentOS+Asterisk+FreePBX Installation

By July 30, 2011asterisk

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

Unknown SQL engine

Unknown SQL engine

 

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!

asterisk error

asterisk error

 

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.

 

Zoiper Registering

Zoiper Registering

 

eyeBeam Registering

eyeBeam Registering

 

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.

Zoiper Wrong Codecs

Zoiper Wrong Codecs

 

eyeBeam Wrong Codecs

eyeBeam Wrong Codecs

 

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

 

Zoiper Selected Codecs

Zoiper Selected Codecs

 

 

eyeBeam Selected Codecs

eyeBeam Selected Codecs

 

or select the proper codecss in a FreePBX EXTENSION configuration.

 

FreePBX Extensions Codecs

FreePBX Extensions Codecs

 

 

 

5 Comments

  • channa says:

    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.
    —————————————————–

    • admin says:

      are you using astercc box? you can check /etc/asterisk/asterisk.conf make sure it has astrundir => /var/run/asterisk

  • anurag roy says:

    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..

  • Bardwell says:

    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 ??

Leave a Reply