Common Problems and Solutions for Ubuntu+Asterisk+FreePBX Installation

By July 30, 2011asterisk

1.Some dependencies error   (1).configure: error: no acceptable C compiler found in $PATH Solution:apt-get install gcc   (2).configure: error: C++ preprocessor “/lib/cpp” fails sanity check Solution:apt-get install g++ or apt-get install build-essential (3). configure: *** XML documentation will not be available because the ‘libxml2’ development package is missing. configure: *** Please run the ‘configure’ script with the ‘–disable-xmldoc’ parameter option configure: *** or install the ‘libxml2’ development package. Solution:install libxml2-dev doesn’t help,run ./configure '--disable-xmldoc' (4). configure: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing) Solution:apt-get install ncurses-dev (5). [FATAL] PEAR must be install (reauires DB.php). Include path: .:/usr/share/pear:/usr/local/src/PEAR Solution:pear install db   2.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: vi /etc/apache2/httpd.conf default it’s a empty file,add two lines User asterisk Group asterisk Restart apache service. /etc/init.d/apache2 restart   3.Softphone registration error Problem:After adding Extensions in FreePBX,soft phone can’t register extensions.       Solution: Log in your asterisk (asterisk -r) and press sip show peers,if no such command, run module load,load the sip module. Restart 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. iptables -F 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.  


Leave a Reply