|
mattmc97
|
 |
« Reply #30 on: July 19, 2010, 06:40:05 PM » |
|
check your /var/log/asterisk/full and then search for ERROR (in vi it is ?ERROR).
Then do a noload=> error_file.so in your asterisk modules.conf
Here is what I have:
Edit /etc/asterisk/modules.conf to noload all problem files
noload =>app_directory.so noload =>res_adsi.so noload => codec_dahdi.so noload => res_config_ldap.so noload => res_config_pgsql.so noload = app_directory_odbc.so noload = app_voicemail_odbc.so noload = app_voicemail_imap.so noload => chan_vpb.so noload => chan_iax2.so
How did you get past the dahdi compile error from above? I need to add dahdi to my install still. I didn't know I needed it.
Also did you compile asterisk or use apt?
|
|
|
|
« Last Edit: July 19, 2010, 07:02:36 PM by mattmc97 »
|
Logged
|
|
|
|
klingon
Newbie

Posts: 41
|
 |
« Reply #31 on: July 20, 2010, 04:38:01 AM » |
|
Thanks. I will try this. I initially wanted to install new by compiling Asterisk myself but got stuck with dahdi. Complains about missing sources for kernel 2.6.33 when I do the make. Thats when I shifted direction and tried your script and installed asterisk using apt-get.
Since we're using the sheevaplug version of Debian for the Dockstar, is this the same version as on your Sheeva? If so, wonder if the admin can shed some light on how he managed to compile dahdi.
You only need dahdi dummy since we dont have any dahdi cards installed. Can you do the following commands and check if the asterisk install using apt may have installed dahdi as well?
# chkconfig dahdi on
# service dahdi start
|
|
|
|
|
Logged
|
|
|
|
|
mattmc97
|
 |
« Reply #32 on: July 20, 2010, 06:49:10 AM » |
|
Here is what mine has....
root@plugpbx:~# chkconfig dahdi on root@plugpbx:~# service dahdi start /etc/dahdi/system.conf not found. Nothing to do. root@plugpbx:~# locate dahdi /etc/dahdi /etc/asterisk/chan_dahdi.conf /etc/asterisk/chan_dahdi.conf.template /etc/dahdi/xpp.conf /etc/init.d/dahdi /etc/rc0.d/K02dahdi /etc/rc1.d/K01dahdi /etc/rc2.d/S18dahdi /etc/rc3.d/S18dahdi /etc/rc4.d/S18dahdi /etc/rc5.d/S18dahdi /etc/rc6.d/K02dahdi /lib/udev/rules.d/60-dahdi.rules /usr/lib/asterisk/modules/app_dahdibarge.so /usr/lib/asterisk/modules/app_dahdiras.so /usr/lib/asterisk/modules/app_dahdiscan.so /usr/lib/asterisk/modules/chan_dahdi.so /usr/lib/asterisk/modules/codec_dahdi.so /usr/lib/asterisk/modules/res_timing_dahdi.so /usr/lib/debug/usr/lib/asterisk/modules/app_dahdibarge.so /usr/lib/debug/usr/lib/asterisk/modules/app_dahdiras.so /usr/lib/debug/usr/lib/asterisk/modules/app_dahdiscan.so /usr/lib/debug/usr/lib/asterisk/modules/chan_dahdi.so /usr/lib/debug/usr/lib/asterisk/modules/codec_dahdi.so /usr/lib/debug/usr/lib/asterisk/modules/res_timing_dahdi.so /usr/sbin/dahdi_cfg /usr/sbin/dahdi_diag /usr/sbin/dahdi_genconf /usr/sbin/dahdi_hardware /usr/sbin/dahdi_monitor /usr/sbin/dahdi_registration /usr/sbin/dahdi_scan /usr/sbin/dahdi_test /usr/sbin/dahdi_tool /usr/sbin/lsdahdi /usr/share/dahdi /usr/share/asterisk/conf/chan_dahdi.conf.sample /usr/share/asterisk/sounds/en_US_f_Allison/spy-dahdi.gsm /usr/share/dahdi/XppConfig.pm /usr/share/dahdi/astribank_hook /usr/share/dahdi/init_card_1_30 /usr/share/dahdi/init_card_2_30 /usr/share/dahdi/init_card_3_30 /usr/share/dahdi/init_card_4_30 /usr/share/dahdi/waitfor_xpds /usr/share/dahdi/xpp_fxloader /usr/share/doc/dahdi /usr/share/doc/dahdi-linux /usr/share/doc/asterisk-config/examples/configs/chan_dahdi.conf.sample.gz /usr/share/doc/dahdi/README.Astribank.gz /usr/share/doc/dahdi/README.Astribank.html /usr/share/doc/dahdi/README.Debian /usr/share/doc/dahdi/README.gz /usr/share/doc/dahdi/README.html /usr/share/doc/dahdi/changelog.Debian.gz /usr/share/doc/dahdi/changelog.gz /usr/share/doc/dahdi/copyright /usr/share/doc/dahdi/dahdi_cfg.8 /usr/share/doc/dahdi/dahdi_cfg.8.html /usr/share/doc/dahdi/dahdi_diag.8 /usr/share/doc/dahdi/dahdi_diag.8.html /usr/share/doc/dahdi/dahdi_monitor.8 /usr/share/doc/dahdi/dahdi_monitor.8.html /usr/share/doc/dahdi/dahdi_scan.8 /usr/share/doc/dahdi/dahdi_scan.8.html /usr/share/doc/dahdi/dahdi_test.8 /usr/share/doc/dahdi/dahdi_test.8.html /usr/share/doc/dahdi/dahdi_tool.8 /usr/share/doc/dahdi/dahdi_tool.8.html /usr/share/doc/dahdi/examples /usr/share/doc/dahdi/fxotune.8.gz /usr/share/doc/dahdi/fxotune.8.html /usr/share/doc/dahdi/fxstest.8 /usr/share/doc/dahdi/fxstest.8.html /usr/share/doc/dahdi/patgen.8 /usr/share/doc/dahdi/patgen.8.html /usr/share/doc/dahdi/pattest.8 /usr/share/doc/dahdi/pattest.8.html /usr/share/doc/dahdi/tonezones.txt /usr/share/doc/dahdi/examples/genconf_parameters.gz /usr/share/doc/dahdi/examples/init.conf.sample /usr/share/doc/dahdi/examples/modprobe.conf.sample /usr/share/doc/dahdi/examples/system.conf.sample.gz /usr/share/doc/dahdi-linux/Changelog_xpp /usr/share/doc/dahdi-linux/README.Debian.gz /usr/share/doc/dahdi-linux/README.gz /usr/share/doc/dahdi-linux/README.html /usr/share/doc/dahdi-linux/UPGRADE.txt /usr/share/doc/dahdi-linux/changelog.Debian.gz /usr/share/doc/dahdi-linux/changelog.gz /usr/share/doc/dahdi-linux/copyright /usr/share/doc/dahdi-linux/examples /usr/share/doc/dahdi-linux/examples/make_static_nodes /usr/share/doc/dahdi-linux/examples/xpp.conf /usr/share/doc-base/dahdi /usr/share/doc-base/dahdi-linux /usr/share/doc-base/dahdi.astribank /usr/share/man/man8/dahdi_cfg.8.gz /usr/share/man/man8/dahdi_diag.8.gz /usr/share/man/man8/dahdi_genconf.8.gz /usr/share/man/man8/dahdi_hardware.8.gz /usr/share/man/man8/dahdi_monitor.8.gz /usr/share/man/man8/dahdi_registration.8.gz /usr/share/man/man8/dahdi_scan.8.gz /usr/share/man/man8/dahdi_test.8.gz /usr/share/man/man8/dahdi_tool.8.gz /usr/share/man/man8/lsdahdi.8.gz /usr/share/perl5/Dahdi/Config/Gen/Chandahdi.pm /usr/src/freepbx-2.7.0/amp_conf/astetc/chan_dahdi.conf.template /var/cache/apt/archives/dahdi-linux_1%3a2.2.1.1+dfsg-1_all.deb /var/cache/apt/archives/dahdi_1%3a2.2.1.1-1_armel.deb /var/lib/dpkg/info/dahdi-linux.conffiles /var/lib/dpkg/info/dahdi-linux.list /var/lib/dpkg/info/dahdi-linux.md5sums /var/lib/dpkg/info/dahdi-linux.postinst /var/lib/dpkg/info/dahdi-linux.preinst /var/lib/dpkg/info/dahdi.conffiles /var/lib/dpkg/info/dahdi.list /var/lib/dpkg/info/dahdi.md5sums /var/lib/dpkg/info/dahdi.postinst /var/lib/dpkg/info/dahdi.postrm /var/lib/dpkg/info/dahdi.prerm /var/lib/update-rc.d/dahdi
The only file in /etc/dahdi is xpp.conf
I can confirm that with apt-get asterisk, that both dahdi and dahdi-linux are installed as pre-reqs.
I read up a little on asterisk 1.6.2 and it seems like there is three different timing modules built into asterisk 1.6.2 plus there is ConfBridge which is a replacement for MeetMe, so I don't know if DAHDI is even still required.
I can't really find enough info to determine how to check if the NEW timing modules are working as DAHDI replacements or how to setup ConfBridge in FreePBX. I don't know if it is automatic in FreePBX or not implemented yet.
If anyone with asterisk experience can point me to how to check the timing, I will look it up or test it.
|
|
|
|
|
Logged
|
|
|
|
klingon
Newbie

Posts: 41
|
 |
« Reply #33 on: July 20, 2010, 07:16:51 AM » |
|
You can test dahdi timing using "dahdi_test -v"
If you see output lines like "8192 samples in ....." repeatedly, then you're good.
dahdi_test is the std tool provided if dahdi is properly installed.
|
|
|
|
|
Logged
|
|
|
|
|
mattmc97
|
 |
« Reply #34 on: July 20, 2010, 07:47:50 AM » |
|
root@plugpbx:/etc/dahdi# dahdi_test -v Unable to open dahdi interface: No such file or directory
|
|
|
|
|
Logged
|
|
|
|
klingon
Newbie

Posts: 41
|
 |
« Reply #35 on: July 20, 2010, 08:36:13 AM » |
|
Guess dahdi is not properly installed or may be missing some files based on the error msg you received "/etc/dahdi/system.conf not found". I checked my Asterisk install on my main server and it shld have the following directories and files. If you think dahdi is installed on your system, I can send you the following files and you can try it out. Just give me your email ID.
/etc/dahdi/ genconf_parameters init.conf modules system.conf
|
|
|
|
|
Logged
|
|
|
|
|
mattmc97
|
 |
« Reply #36 on: July 20, 2010, 10:06:29 AM » |
|
PM Sent. Please send instructions, if there is anything I need to do.
|
|
|
|
|
Logged
|
|
|
|
xdm
Newbie

Posts: 21
|
 |
« Reply #37 on: July 21, 2010, 05:30:06 PM » |
|
All - Below is working script that will compile and install the latest stable releases of asterisk, dahdi-complete, asterisk-addons and FreePBX. Compiling the packages from source is highly recommended as the apt-get packages have issues (asterisk won't start until you unload modules (ones you may use!), dahdi_dummy module isn't included in the dahdi package, etc). This script is known to work with Debian Squeeze with the 2.6.32-5-kirkwood kernel. I used the images and instructions posted by mattmc97 in this thread to install the OS. Once the correct OS is installed all you need to do is run this script and it will run through all the necessary steps. When it installs mysql you will be prompted to create a root password for it and my script prompts you for that same password again when it is creating the mysql databases. When it runs the FreePBX install and that script is asking questions, just keep pressing enter for the default values. There are two issues with using this script that I have been unable to resolve yet... 1) In the FreePBX web interface, a Notice appears that states "Failed to copy from module agi-bin - Retrieve conf failed to copy file(s) from a module's agi-bin dir: Added X minutes ago (retrieve_conf.CPAGIBIN)". I can't seem to find any issue with file permissions and I'm not sure what is causing this. 2) Also in the FreePBX web interface, a Notice appears that states "Low Memory Limit - Your memory_limit, -1M, is set too low and may cause problems. FreePBX is not able to change this on your system. You should increase this to 100M in you php.ini config file - Added X minutes ago (core.MEMERR)" My php.ini file has "memory_limit = 100M". I can't seem to get past this one either. These two things have me stumped for now but may be really easy for someone else to figure out. Everything else works great and there are no issues that result from the error notices that I can tell so far. The Dahdi_dummy module is working when I use the MeetMe conferences. #!/bin/bash
# You may need to update the below version numbers from the Asterisk FreePBX sits to make sure # the current version is being installed.
VER_ASTERISK="1.6.2.9"; VER_DAHDI_COMPLETE="2.3.0.1+2.3.0"; VER_ADDONS="1.6.2.1"; VER_FREEPBX="2.8.0";
clear echo "+----------------------------------------------------------------+" echo "| |" echo "| FreePBX Installer for SheevaPlug Dev Kit |" echo "| |" echo "| originally based on a script by |" echo "| Matt Chipman - matt@corenetworks.com.au |" echo "| |" echo "+----------------------------------------------------------------+" echo " This script will install the following packages: " echo " " echo " Asterisk..........${VER_ASTERISK} " echo " Dahdi-Complete....${VER_DAHDI_COMPLETE} " echo " Asterisk Addons...${VER_ADDONS} " echo " FreePBX...........${VER_FREEPBX} " echo "+----------------------------------------------------------------+" echo "| Press <ENTER> to continue |" echo "+----------------------------------------------------------------+" read
echo "+----------------------------------------------------------------+" echo "| Running apt-get update and installing dependencies... |" echo "+----------------------------------------------------------------+"
apt-get update apt-get -y install ssh kernel-package g++ libncurses5-dev linux-libc-dev sqlite libnewt-dev libusb-dev zlib1g-dev libmysqlclient-dev libsqlite0-dev php5 mysql-server php-pear php5-mysql php-db php5-gd linux-headers-$(uname -r) bison openssl libssl-dev libeditline0 libeditline-dev libedit-dev gcc make mc php5-cli sox
echo "+----------------------------------------------------------------+" echo "| Downloading and decompressing sources... |" echo "+----------------------------------------------------------------+"
mkdir /tmp/asterisk/ wget -c http://www.asterisk.org/downloads/asterisk/releases/asterisk-${VER_ASTERISK}.tar.gz -O /tmp/asterisk/asterisk-${VER_ASTERISK}.tar.gz wget -c http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-${VER_DAHDI_COMPLETE}.tar.gz -O /tmp/asterisk/dahdi-linux-complete-${VER_DAHDI_COMPLETE}.tar.gz wget -c http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-addons-${VER_ADDONS}.tar.gz -O /tmp/asterisk/asterisk-addons-${VER_ADDONS}.tar.gz wget -c http://mirror.freepbx.org/freepbx-${VER_FREEPBX}.tar.gz -O /tmp/asterisk/freepbx-${VER_FREEPBX}.tar.gz
cd /usr/src/ tar zxvf /tmp/asterisk/asterisk-${VER_ASTERISK}.tar.gz tar zxvf /tmp/asterisk/asterisk-addons-${VER_ADDONS}.tar.gz tar zxvf /tmp/asterisk/dahdi-linux-complete-${VER_DAHDI_COMPLETE}.tar.gz tar zxvf /tmp/asterisk/freepbx-${VER_FREEPBX}.tar.gz
echo "+----------------------------------------------------------------+" echo "| Compiling Dahdi-linux-complete... |" echo "+----------------------------------------------------------------+"
cd /usr/src/dahdi-linux-complete-${VER_DAHDI_COMPLETE} make all make install make config
modprobe dahdi_dummy
echo "+----------------------------------------------------------------+" echo "| Compiling Asterisk... |" echo "+----------------------------------------------------------------+"
cd /usr/src/asterisk-${VER_ASTERISK} ./configure --disable-xmldoc make sed -i 's/PROC=armv5tel/PROC=arm/g' /usr/src/asterisk-${VER_ASTERISK}/makeopts make make install make samples make config rm -f /etc/asterisk/sip_notify.conf
echo "+----------------------------------------------------------------+" echo "| Compiling Asterisk Addons |" echo "+----------------------------------------------------------------+"
cd /usr/src/asterisk-addons-${VER_ADDONS} ./configure make make install make samples
echo "+----------------------------------------------------------------+" echo "| Creating symlinks (Modules) |" echo "+----------------------------------------------------------------+"
ln -s /lib/modules/`uname -r`/ /lib/modules/`uname -r`/asterisk depmod
echo "+----------------------------------------------------------------+" echo "| Changing PHP Settings for FreePBX... |" echo "+----------------------------------------------------------------+"
cp /etc/php5/apache2/php.ini /etc/php5/apache2/php.ini-orig sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 20M/g' /etc/php5/apache2/php.ini
echo "+----------------------------------------------------------------+" echo "| Setting permissions for the asterisk user... |" echo "+----------------------------------------------------------------+"
adduser asterisk --disabled-password --gecos "asterisk PBX" --home /var/lib/asterisk adduser www-data asterisk chown asterisk:asterisk -R /var/www chown asterisk:asterisk -R /etc/asterisk
echo "+----------------------------------------------------------------+" echo "| Setting up MySQL for FreePBX... |" echo "+----------------------------------------------------------------+" echo "| You must enter the MySQL root password chosen |" echo "| during the MySQL installation... |" echo "| |" echo "| Be sure to enter it correctly or this script will fail! |" echo "+----------------------------------------------------------------+"
read -p 'MySQL root password: ' mysqlpw
echo "create database asteriskcdrdb;" | mysql -u root -p$mysqlpw echo "create database asterisk;" | mysql -u root -p$mysqlpw echo "GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY 'amp109';" | mysql -u root -p$mysqlpw echo "GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY 'amp109';" | mysql -u root -p$mysqlpw
mysql -u asteriskuser -pamp109 asteriskcdrdb < /usr/src/freepbx-${VER_FREEPBX}/SQL/cdr_mysql_table.sql mysql -u asteriskuser -pamp109 asterisk < /usr/src/freepbx-${VER_FREEPBX}/SQL/newinstall.sql
echo "+----------------------------------------------------------------+" echo "| Starting asterisk... |" echo "+----------------------------------------------------------------+"
/usr/sbin/asterisk
echo "+----------------------------------------------------------------+" echo "| Modifying FreeBBX configuration files... |" echo "+----------------------------------------------------------------+"
cp /usr/src/freepbx-${VER_FREEPBX}/install_amp /usr/src/freepbx-${VER_FREEPBX}/install_amp-orig sed -i "s/\(^\$webroot*\)\(.*\)/\1 = \"\/var\/www\";/" /usr/src/freepbx-${VER_FREEPBX}/install_amp
LOCAL_IP=`/sbin/ifconfig eth0` LOCAL_IP=`echo ${LOCAL_IP} | sed -e "s/\ Bcast:\(.*\)//"` LOCAL_IP=`echo ${LOCAL_IP} | sed -e "s/\(.*\)\ inet addr://"` sed -i "s/xx.xx.xx.xx/${LOCAL_IP}/g" "/usr/src/freepbx-${VER_FREEPBX}/install_amp"
chmod 755 /usr/src/freepbx-${VER_FREEPBX}/install_amp
echo "+----------------------------------------------------------------+" echo "| Running FreePBX install script... |" echo "+----------------------------------------------------------------+" echo "| Press <ENTER> at each question for the default option |" echo "+----------------------------------------------------------------+" echo "| Press <ENTER> to continue |" echo "+----------------------------------------------------------------+"
read
cd /usr/src/freepbx-${VER_FREEPBX}/ ./install_amp ./install_amp ./apply_conf.sh
echo "+----------------------------------------------------------------+" echo "| Stoping Asterisk... |" echo "+----------------------------------------------------------------+"
asteriskPID=$(cat /var/run/asterisk/asterisk.pid) kill -9 $(cat /var/run/asterisk/asterisk.pid)
echo "+----------------------------------------------------------------+" echo "| Removing Apache2 Redirect... |" echo "+----------------------------------------------------------------+"
sed -i "s/\(RedirectMatch*\)\(.*\)//" /etc/apache2/sites-enabled/000-default
echo "+----------------------------------------------------------------+" echo "| Restarting Apache... |" echo "+----------------------------------------------------------------+"
/usr/sbin/apachectl restart
echo "+----------------------------------------------------------------+" echo "| Changing permissions... |" echo "+----------------------------------------------------------------+"
chown -R asterisk:asterisk /etc/asterisk chmod 770 /etc/asterisk/
chown -R asterisk:asterisk /var/lib/asterisk/ chmod 770 /var/lib/asterisk/
chown -R asterisk:asterisk /var/www/
echo "+----------------------------------------------------------------+" echo "| Copying missing images... |" echo "+----------------------------------------------------------------+"
cp /var/www/admin/modules/dashboard/images/notify_* /var/www/admin/images/
echo "+----------------------------------------------------------------+" echo "| Startup script (Asterisk+FreePBX) |" echo "| /etc/init.d/freepbx [start|stop|restart] |" echo "+----------------------------------------------------------------+"
STARTUP_SCRIPT="/etc/init.d/freepbx"; echo "Creating file ${STARTUP_SCRIPT} ...";
echo '#!/bin/bash' > ${STARTUP_SCRIPT} echo '' >> ${STARTUP_SCRIPT} echo 'AMPORTAL_BIN=/usr/local/sbin/amportal' >> ${STARTUP_SCRIPT} echo '' >> ${STARTUP_SCRIPT} echo 'if [ ! -x ${AMPORTAL_BIN} ]; then' >> ${STARTUP_SCRIPT} echo ' echo "error : amportal binary can not be found (${AMPORTAL_BIN})"' >> ${STARTUP_SCRIPT} echo ' exit 0' >> ${STARTUP_SCRIPT} echo 'fi' >> ${STARTUP_SCRIPT} echo '' >> ${STARTUP_SCRIPT} echo '' >> ${STARTUP_SCRIPT} echo 'start() {' >> ${STARTUP_SCRIPT} echo ' echo "Starting FreePBX ..."' >> ${STARTUP_SCRIPT} echo ' ${AMPORTAL_BIN} start' >> ${STARTUP_SCRIPT} echo '}' >> ${STARTUP_SCRIPT} echo '' >> ${STARTUP_SCRIPT} echo 'stop() {' >> ${STARTUP_SCRIPT} echo ' echo "Stopping FreePBX ..."' >> ${STARTUP_SCRIPT} echo ' ${AMPORTAL_BIN} stop' >> ${STARTUP_SCRIPT} echo '}' >> ${STARTUP_SCRIPT} echo '' >> ${STARTUP_SCRIPT} echo 'case "$1" in' >> ${STARTUP_SCRIPT} echo ' start)' >> ${STARTUP_SCRIPT} echo ' start' >> ${STARTUP_SCRIPT} echo ' ;;' >> ${STARTUP_SCRIPT} echo '' >> ${STARTUP_SCRIPT} echo ' stop)' >> ${STARTUP_SCRIPT} echo ' stop' >> ${STARTUP_SCRIPT} echo ' ;;' >> ${STARTUP_SCRIPT} echo '' >> ${STARTUP_SCRIPT} echo ' restart)' >> ${STARTUP_SCRIPT} echo ' stop' >> ${STARTUP_SCRIPT} echo ' start' >> ${STARTUP_SCRIPT} echo ' ;;' >> ${STARTUP_SCRIPT} echo '' >> ${STARTUP_SCRIPT} echo ' *)' >> ${STARTUP_SCRIPT} echo ' echo $"Usage: $0 {start|stop|restart}"' >> ${STARTUP_SCRIPT} echo ' exit 1' >> ${STARTUP_SCRIPT} echo 'esac' >> ${STARTUP_SCRIPT} echo '' >> ${STARTUP_SCRIPT} echo 'exit 0' >> ${STARTUP_SCRIPT} chmod 755 ${STARTUP_SCRIPT}
echo "Update services loading at boot time..." update-rc.d freepbx defaults
/etc/init.d/freepbx start
clear echo "+----------------------------------------------------------------+" echo "| Asterisk with FreePBX installation is finished. |" echo "| For running asterisk+freepbx you must use this command : |" echo "| # /etc/init.d/freepbx start |" echo "+----------------------------------------------------------------+"
echo "FreePBX has been started visit http://${LOCAL_IP}"
|
|
|
|
|
Logged
|
|
|
|
|
mattmc97
|
 |
« Reply #38 on: July 21, 2010, 06:16:39 PM » |
|
Awesome!  I will clean up the first part of my script and post this as a complete all-in-one compilation on a new thread. I did find two php.ini on my server using by issuing an 'updatedb', then locate php.ini I changed both of them to 100 megs, but the error still shows up in the freepbx web log, but I have been running for three weeks and it still shows the original warning date, so I think it is an old error. The second php.ini is found at vi /etc/php5/cli/php.ini Why didn't you make this script a month ago???  You could have saved me a lot of time!!!
|
|
|
|
« Last Edit: July 22, 2010, 02:28:57 PM by mattmc97 »
|
Logged
|
|
|
|
|
PlugPBX Admin
|
 |
« Reply #39 on: July 21, 2010, 06:20:10 PM » |
|
NICE!!!!!!
Lets start a living version on the wiki for version control, and smashing bugs.
With this I can roll up and Build the new PlugPBX, throw in some of the magic like Avahai etc. VERY COOL GUYS!!!!
VERY VERY COOL
|
|
|
|
|
Logged
|
-Greg
|
|
|
rayholland
Newbie

Posts: 9
|
 |
« Reply #40 on: August 31, 2010, 12:25:18 PM » |
|
Hi,
I tried the script, but i get these warnings:
WARNING: Can't read module /lib/modules/2.6.32-5-kirkwood/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/2.6.32-5-kirkwood/2.6.32-5-kirkwood/asterisk/2.6.32-5-kirkwood/asterisk/asterisk/asterisk/asterisk/kernel/drivers/net/jme.ko: Cannot allocate memory WARNING: Can't read module /lib/modules/2.6.32-5-kirkwood/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/2.6.32-5-kirkwood/2.6.32-5-kirkwood/asterisk/2.6.32-5-kirkwood/asterisk/asterisk/asterisk/asterisk/kernel/drivers/net/wimax/i2400m/i2400m.ko: Cannot allocate memory WARNING: Can't read module /lib/modules/2.6.32-5-kirkwood/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/2.6.32-5-kirkwood/2.6.32-5-kirkwood/asterisk/2.6.32-5-kirkwood/asterisk/asterisk/asterisk/asterisk/kernel/drivers/net/wimax/i2400m/i2400m-usb.ko: Cannot allocate memory WARNING: Can't read module /lib/modules/2.6.32-5-kirkwood/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/2.6.32-5-kirkwood/2.6.32-5-kirkwood/asterisk/2.6.32-5-kirkwood/asterisk/asterisk/asterisk/asterisk/kernel/drivers/net/wimax/i2400m/i2400m-sdio.ko: Cannot allocate memory WARNING: Can't read module /lib/modules/2.6.32-5-kirkwood/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/2.6.32-5-kirkwood/2.6.32-5-kirkwood/asterisk/2.6.32-5-kirkwood/asterisk/asterisk/asterisk/asterisk/kernel/drivers/net/ppp_deflate.ko: Cannot allocate memory WARNING: Can't read module /lib/modules/2.6.32-5-kirkwood/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/2.6.32-5-kirkwood/2.6.32-5-kirkwood/asterisk/2.6.32-5-kirkwood/asterisk/asterisk/asterisk/asterisk/kernel/drivers/net/hamradio/baycom_ser_hdx.ko: Cannot allocate memory WARNING: Can't read module /lib/modules/2.6.32-5-kirkwood/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/2.6.32-5-kirkwood/2.6.32-5-kirkwood/asterisk/2.6.32-5-kirkwood/asterisk/asterisk/asterisk/asterisk/kernel/drivers/net/hamradio/yam.ko: Cannot allocate memory
etc. etc. etc.
here's the lib/modules listing: root@sheevaplug:/usr/src# ls /lib/modules/2.6.32-5-kirkwood 2.6.32-5-kirkwood asterisk build dahdi kernel modules.alias modules.alias.bin modules.dep modules.dep.bin modules.devname modules.softdep modules.symbols modules.symbols.bin source root@sheevaplug:/usr/src#
Does anyone know what went wrong?
|
|
|
|
« Last Edit: August 31, 2010, 12:27:44 PM by rayholland »
|
Logged
|
|
|
|
|
PlugPBX Admin
|
 |
« Reply #41 on: August 31, 2010, 05:35:01 PM » |
|
Woooo boy. Looks like some kind of recursive soft/hard link me thinks  Meaning you have a directory 'linked' to a directory that jumps back to the parent. So as its re-cursing into a directory, it loops around and goes in deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper, and deeper *THUD* Sorry, ran out of memory there, fell off my chair 
|
|
|
|
|
Logged
|
-Greg
|
|
|
cannibalflea
Newbie

Posts: 12
|
 |
« Reply #42 on: December 24, 2010, 06:29:03 PM » |
|
Hi all,
Well I'm trying my hand at re-building PlubPBX from scratch. I'm currently installing Debian on a fresh SD card. I'm using Martin Michlmayr's installer method and it is going well. Now I'm wondering which packages I need to install (in addition to asterisk and the other packages outlined in xdm's install script? The installation asked me to choose packages I want (e.g. web server, mail server, ssh server, etc.). I'm not sure if it is best to let the installer setup the packages or if I should selectively install specific packages to optimize the performance. I would think selective install is best, but then I wasn't sure which packages are needed. I'm new to all this so any help is appreciated.
Thanks and merry Christmas to all, Al
|
|
|
|
|
Logged
|
|
|
|
|
PlugPBX Admin
|
 |
« Reply #43 on: December 25, 2010, 04:58:31 AM » |
|
I've got a preliminary script that sets up PlugPBX from a naked debian install on the plug under way. It works and built a PlugPBX2 box. I am just coding in configuration file modifications and can post a copy, so stay tuned. That will have all the apt-get package commands  Look under the news section of the forums, I'm making scratch notes as I progress. But, its xmas so I'll be idle a few days  Cheers
|
|
|
|
|
Logged
|
-Greg
|
|
|
|
PlugPBX Admin
|
 |
« Reply #44 on: December 25, 2010, 05:11:38 AM » |
|
Oh ya, and if you look at my last post in 'news' I posted a 139k log of the install, hence you can see the list of debian packages installed 
|
|
|
|
|
Logged
|
-Greg
|
|
|
|