Koozali.org: home of the SME Server

Installed Asteriskathome 2.8BETA1 on SME7RC1

jazbokes

Installed Asteriskathome 2.8BETA1 on SME7RC1
« on: April 03, 2006, 07:39:00 AM »
Installed asteriskathome 2.8BETA1 on SME7RC1

1. create directory /var/aah_load
2. cd /var/aah_load
3. download asteriskathome-2.8BETA1.tar.gz
4. tar xzvf asteriskahome-2.8BETA1.tar.gz
5. save/replace the listed files below to their respective directories and other files remain the same..
6. Connectivity has not be tested.. Feedbacks  are Welcome..

7. run sh install_sme.sh



/var/aah_load


1. install_sme.sh
#!/bin/sh
# Install all

echo ""
echo " --------------------------------------------------------"
echo "|   Installing Asterisk                                  |"
echo "|                                                        |"
echo "|   This can take some time...                           |"
echo "|   This install may need some files from the Internet   |"
echo " --------------------------------------------------------"
echo ""

echo "Installing Asterisk dependencies..."
# set up SME so you can compile
if ! /sbin/e-smith/db yum_repositories show | grep "base=repository" >/dev/null 2>&1; then
 /sbin/e-smith/db yum_repositories setprop base status enabled
 /sbin/e-smith/db yum_repositories setprop base Visible yes
 /sbin/e-smith/db yum_repositories setprop addons status enabled
 /sbin/e-smith/db yum_repositories setprop addons Visible yes
 /sbin/e-smith/db yum_repositories setprop updates status enabled
 /sbin/e-smith/db yum_repositories setprop updates Visible yes
 /sbin/e-smith/expand-template /etc/yum.conf
fi

# install Asterisk@Home base packages
yum --enablerepo=base --enablerepo=updates -y install alsa-utils audiofile-devel bison cpp curl curl-devel flex gcc gd glibc-devel glibc-headers glibc-kernheaders grub kernel-devel kernel-smp-devel krb5-devel libcap libpcap libtermcap-devel libtiff libtiff-devel libxml2 lm_sensors mkisofs ncurses-devel newt-devel openssl096b openssl-devel perl-libwww-perl perl-DBD-MySQL perl-DBI perl-Time-HiRes perl-XML-Parser readline readline-devel speex speex-devel subversion rpm-build slang-devel sox zlib-devel

echo "" 2>&1 | tee /root/install_asterisk.log
echo "Installing Asterisk@Home..." 2>&1 | tee -a /root/install_asterisk.log
echo "" 2>&1 | tee -a /root/install_asterisk.log
date 2>&1 | tee -a /root/install_asterisk.log
echo "" 2>&1 | tee -a /root/install_asterisk.log

cd /var/aah_load
sh install_parts_sme.sh 2>&1 | tee -a /root/install_asterisk.log




2. install_parts_sme.sh

#!/bin/bash
LOAD_LOC=pwd
echo "*********************************************************"
echo "** install addon ****************************************"
echo "*********************************************************"

echo "-------------------------------------------"
echo "installing misc RPM"
echo "-------------------------------------------"

rpm --import $LOAD_LOC/RPM-GPG-KEY-CentOS-4
rpm -i lame-3.96.1-4.el4.rf.i386.rpm

cp spinlock.h /usr/src/kernels/2.6.9-34.EL-i686/include/linux
cd /usr/share
tar xvfz $LOAD_LOC/festival-1.96.tar.gz
cp /usr/share/festival/bin/text2wave /usr/bin



echo "-------------------------------------------"
echo "installing Web Voicemail"
echo "-------------------------------------------"

#load web voicemail access
cp $LOAD_LOC/vmail.cgi /var/www/cgi-bin
chmod 4755 /var/www/cgi-bin/vmail.cgi

echo "-------------------------------------------"
echo "installing Web GUI"
echo "-------------------------------------------"

#load Asterisk Web UI
cd /var/www/html
mkdir /var/www/upload
chmod 777 /var/www/upload
tar xzvf $LOAD_LOC/webapps.tar.gz
cp $LOAD_LOC/asterisk.reload /bin
chmod 777 /bin/asterisk.reload

echo "-------------------------------------------"
echo "installing Asterisk Perl"
echo "-------------------------------------------"

#install astersik-perl
cd /usr/src
tar xzvf $LOAD_LOC/asterisk-perl-0.08.tar.gz
cd /usr/src/asterisk-perl-0.08
perl Makefile.PL
make all
make install


echo "-------------------------------------------"
echo "Configuring MySQL"
echo "-------------------------------------------"

/usr/bin/mysql < $LOAD_LOC/fix_sql.sql

#create SQL table for storing CDRs
/usr/bin/mysqladmin create asteriskcdrdb
/usr/bin/mysql < $LOAD_LOC/asteriskcdr.sql

#create SQL table Asterisk RealTime
/usr/bin/mysqladmin create asteriskrealtime
/usr/bin/mysql < $LOAD_LOC/asteriskrealtime.sql

#create SQL table for Sugar CRM
/usr/bin/mysql < $LOAD_LOC/sugar_crm.sql


echo "-------------------------------------------"
echo "installing mpg123"
echo "-------------------------------------------"

cd /usr/src
tar zxf $LOAD_LOC/mpg123-0.59r.tar.gz
cd /usr/src/mpg123-0.59r
make linux
make install

echo "-------------------------------------------"
echo "installing scripts"
echo "-------------------------------------------"

cd /usr/local/sbin
tar xvfz $LOAD_LOC/scripts.tar.gz
cp $LOAD_LOC/sme/backup_asteriskathome.sh .

# ln -s /usr/local/sbin/backup_asteriskathome.sh /etc/cron.daily/backup

echo "-------------------------------------------"
echo "installing Perl Mods"
echo "-------------------------------------------"

#install Data-UUID
cd /usr/src
tar xzvf $LOAD_LOC/Data-UUID-0.11.tar.gz
cd /usr/src/Data-UUID-0.11
export PERL_MM_USE_DEFAULT=1
perl Makefile.PL
make install

# install mime-construct
cd /usr/src
tar xzvf $LOAD_LOC/mime-construct-1.8.tar.gz
cd /usr/src/mime-construct-1.8
perl Makefile.PL
make install


echo "*********************************************************"
echo "** install Asterisk *************************************"
echo "*********************************************************"

#install Asterisk and sub components

echo "-------------------------------------------"
echo "installing Asterisk and sub components"
echo "-------------------------------------------"
groupadd asterisk
useradd -c "Asterisk PBX" -d /var/lib/asterisk -u 5060 -g asterisk asterisk
usermod -Gasterisk www

chown asterisk /dev/dsp

cd /usr/src
tar xvfz $LOAD_LOC/asterisk_src.tar.gz

echo "-------------------------------------------"
echo "installing Zaptel Driver"
echo "-------------------------------------------"

cd /usr/src/zaptel
make install-udev
make linux26
make zttool
make install
make config

rm -f /etc/zaptel.conf
cp $LOAD_LOC/zaptel.conf /etc/
rm -f /etc/sysconfig/zaptel.conf
cp $LOAD_LOC/zaptel /etc/sysconfig/
ln -s /etc/rc.d/init.d/zaptel /etc/rc7.d/S41zaptel

echo "-------------------------------------------"
echo "installing libpri driver"
echo "-------------------------------------------"

cd /usr/src/libpri
make install

#########################################
# install Asterisk with FAX support

echo "-------------------------------------------"
echo "installing Asterisk with FAX support..."
echo "-------------------------------------------"

cd /usr/src/asterisk
# make clean

#Install extra apps
cp $LOAD_LOC/extra_apps/* /usr/src/asterisk/apps

# span DSP fax software
$LOAD_LOC/install_spandsp.sh

make install
make samples
# make config

chmod 777 /var/lib/asterisk/sounds

mkdir /var/spool/asterisk/fax
chown asterisk:asterisk /var/spool/asterisk/fax
chown asterisk:asterisk /usr/sbin/asterisk
chown -R asterisk:asterisk /usr/lib/asterisk
#mkdir /var/run/asterisk
#chown -R asterisk:asterisk /var/run/asterisk

chmod 775 /usr/sbin/safe_asterisk
touch /etc/fxotune.conf

#########################################

echo "-------------------------------------------"
echo "installing Asterisk Addons"
echo "-------------------------------------------"

cd /usr/src/asterisk-addons
sed -i.bak -e 's/CFLAGS.*D_GNU_SOURCE/CFLAGS+=-D_GNU_SOURCE\nCFLAGS+=-DMYSQL_LOGUNIQUEID/' Makefile
make install

echo "-------------------------------------------"
echo "installing Asterisk Addons"
echo "-------------------------------------------"

cd /usr/src/asterisk-sounds
make install

echo "-------------------------------------------"
echo "Loading Asterisk@Home config files"
echo "-------------------------------------------"

#mv /etc/asterisk* /etc/asterisk
mkdir /etc/asterisk/default
mv /etc/asterisk/* /etc/asterisk/default
cd /etc/asterisk
tar xvf $LOAD_LOC/asterisk_config.tar

chmod 777 /etc/asterisk/*
chown -R asterisk:asterisk /etc/asterisk/*

echo "-------------------------------------------"
echo "installing Asterisk extra sounds"
echo "-------------------------------------------"

#install extra sounds
cd /var/lib/asterisk/sounds
tar xvfz $LOAD_LOC/extra_sounds.tar.gz
bunzip2 $LOAD_LOC/asterisk-native-sounds.tar.bz2
cd ..
tar xvf $LOAD_LOC/asterisk-native-sounds.tar

chmod -R 775 /var/lib/asterisk/sounds
chown -R asterisk:asterisk /var/lib/asterisk/sounds

echo "-------------------------------------------"
echo "installing voicepulse pub cert"
echo "-------------------------------------------"

cp $LOAD_LOC/voicepulse01.pub /var/lib/asterisk/keys

echo "-------------------------------------------"
echo "installing AGI scripts"
echo "-------------------------------------------"

mv /usr/local/sbin/festival-weather-script.pl /var/lib/asterisk/agi-bin/
mv /usr/local/sbin/festival-script.pl /var/lib/asterisk/agi-bin/
mv /usr/local/sbin/weather.agi /var/lib/asterisk/agi-bin/

chown -R asterisk:asterisk /var/lib/asterisk/agi-bin/
chmod u+x /var/lib/asterisk/agi-bin/*.agi
chmod u+x /var/lib/asterisk/agi-bin/*.pl

mkdir /var/lib/asterisk/sounds/tts
chmod 777 /var/lib/asterisk/sounds/tts

echo "-------------------------------------------"
echo "installing Native Music on Hold files"
echo "-------------------------------------------"

mkdir /var/lib/asterisk/moh-native
cd /var/lib/asterisk/moh-native
unzip $LOAD_LOC/moh-native.zip

echo "-------------------------------------------"
echo "setup log rotation"
echo "-------------------------------------------"

cp $LOAD_LOC/asterisk.logrotate /etc/logrotate.d/asterisk

echo "-------------------------------------------"
echo "Asterisk install Done."
echo "-------------------------------------------"

export LD_LIBRARY_PATH=/usr/local/lib
/usr/sbin/safe_asterisk -U asterisk -G asterisk

echo "*********************************************************"
echo "** install addon 2***************************************"
echo "*********************************************************"

echo "-------------------------------------------"
echo "installing misc RPM"
echo "-------------------------------------------"

cd $LOAD_LOC

echo "-------------------------------------------"
echo "installing xPL stuff"
echo "-------------------------------------------"

#Install xPL hub
mkdir /usr/src/xplhub
cd /usr/src/xplhub
tar xvf $LOAD_LOC/xplhub.tar
./install.sh

#Install xPL Software
cd /usr/src/
tar xvfz $LOAD_LOC/xplast.tar.gz


echo "-------------------------------------------"
echo "installing Wakeup call"
echo "-------------------------------------------"

mkdir /var/spool/asterisk/wakeups
mv /usr/local/sbin/wakeup.php /var/lib/asterisk/agi-bin/
mv /usr/local/sbin/wakeconfirm.agi /var/lib/asterisk/agi-bin/
chmod +x /var/lib/asterisk/agi-bin/*
chown asterisk:asterisk /var/lib/asterisk/agi-bin/*

if ! grep run_wakeups /etc/crontab >/dev/null 2>&1; then
   mkdir -p /etc/e-smith/templates-custom/etc/crontab
   echo "* * * * * root /var/lib/asterisk/agi-bin/run_wakeups" >> /etc/e-smith/templates-custom/etc/crontab/70run_wakeups
   /sbin/e-smith/expand-template /etc/crontab
fi
echo "*********************************************************"
echo "** install FreePBX.org***********************************"
echo "*********************************************************"

echo ""
echo "*** Installing FreePBX.org dependencies"

#install IPC-Signal
cd /usr/src
tar xzvf $LOAD_LOC/IPC-Signal-1.00.tar.gz
cd /usr/src/IPC-Signal-1.00
perl Makefile.PL
make install

#install Net-Telnet
cd /usr/src
tar xzvf $LOAD_LOC/Net-Telnet-3.03.tar.gz
cd /usr/src/Net-Telnet-3.03
perl Makefile.PL
make install

#install Proc-WaitStat
cd /usr/src
tar xzvf $LOAD_LOC/Proc-WaitStat-1.00.tar.gz
cd /usr/src/Proc-WaitStat-1.00
perl Makefile.PL
make install

#untaring FreePBX.org
echo " *** untaring FreePBX.org"
cd /usr/src
tar xzvf $LOAD_LOC/freepbx.tar.gz
cd /usr/src/freepbx

#create SQL table for FreePBX.org
/usr/bin/mysqladmin create asterisk

#Setting Permissions

/usr/bin/mysql < $LOAD_LOC/permissions_amp.sql

#install asterisk db
echo " *** loading asterisk db in MySQL"
mysql asterisk < /usr/src/freepbx/SQL/newinstall.sql

echo " *** Installing FreePBX.org app"
echo " *** Installing AMP app"
mkdir -p /etc/e-smith/templates-custom/etc/amportal.conf
cp $LOAD_LOC/sme/amportal.conf /etc/e-smith/templates-custom/etc/amportal.conf/
/sbin/e-smith/expand-template /etc/amportal.conf

./install_amp


touch /var/www/html/panel/op_buttons_additional.cfg
touch /var/www/html/panel/op_buttons_custom.cfg

echo " *** setting permissions and default values"
sh apply_conf.sh

mkdir -p /var/lib/asterisk/sounds/custom

touch /var/log/asterisk/cdr-csv/Master.csv
chmod 777  /var/log/asterisk/cdr-csv/Master.csv

if ! grep amportal /etc/rc.d/rc.local >/dev/null 2>&1; then
   echo "/usr/sbin/amportal start" >> /etc/rc.d/rc.local
fi

chmod 775 /var/spool/asterisk/monitor
chmod +x /var/www/html/admin/modules/sysstatus/status.pl

echo "-----------------------------------------------------"
echo "FreePBX.org Installed."
echo "-----------------------------------------------------"


echo "*********************************************************"
echo "** Post Install *****************************************"
echo "*********************************************************"
echo ""

echo "-------------------------------------------"
echo "install e-smith specific files"
echo "-------------------------------------------"

cp $LOAD_LOC/sme/amp /etc/e-smith/web/functions/
cd /etc/e-smith/web/panels/manager/cgi-bin
ln -s ../../../functions/amp amp
cd /etc/e-smith/web/functions
chown root:admin amp
chmod 4750 amp

mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
cp $LOAD_LOC/sme/98amp /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
chown root:root *
chmod 644 *
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf

echo "-------------------------------------------"
echo "Clean up"
echo "-------------------------------------------"
/usr/local/sbin/backup_asteriskathome.sh

echo "-------------------------------------------"
echo "Set permissions"
echo "-------------------------------------------"

chmod 666 /etc/zaptel.conf
chmod 666 /etc/amportal.conf


chown -R asterisk:asterisk /var/www/html/
chown -R asterisk:asterisk /etc/asterisk

echo "-------------------------------------------"
echo "Auto-config Hardware"
echo "-------------------------------------------"
if ! grep fxotune /etc/rc.d/rc.local >/dev/null 2>&1; then
   echo "/usr/src/zaptel/fxotune -s" >> /etc/rc.d/rc.local
fi
echo "-------------------------------------------"
echo "Finish freepbx.org install"
echo "-------------------------------------------"

cd /usr/src/freepbx
echo a | ./install_amp

chown -R asterisk:asterisk /var/www/html/*

echo "-------------------------------------------"
echo "Auto-config Hardware"
echo "-------------------------------------------"

/usr/local/sbin/genzaptelconf


echo "** Cleanup done."
echo "-------------------------------------------"
echo "Installation done."
echo ""
/sbin/e-smith/db yum_repositories setprop ate status disabled
/sbin/e-smith/db yum_repositories setprop base status disabled
/sbin/e-smith/expand-template /etc/yum.conf
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot




/var/aah_load/sme

3. 98amp

###########################################################
# Asterisk Management Portal
###########################################################

Alias /amp /var/www/html
<Directory /var/www/html>
    AddType application/x-httpd-php .php .php3 .phtml
    AddType application/x-httpd-php-source .phps
    Options Indexes +Includes FollowSymLinks
    order deny,allow
    deny from all
    allow from { $localAccess." "./sbin/e-smith/db configuration getprop httpd-admin ValidFrom }
    php_flag magic_quotes_gpc off
    php_flag register_globals off
    AuthName "Server manager"
    AuthType Basic
    AuthExternal pwauth
    require user admin
    SetEnv IMGHDR_SRC "/server-common/server-manager.jpg"
    Satisfy all
</Directory>

Alias /admin /var/www/html/admin
<Directory /var/www/html/admin>
    order deny,allow
    deny from all
    allow from { $localAccess." "./sbin/e-smith/db configuration getprop httpd-admin ValidFrom }
    AddType application/x-httpd-php .php .php3 .phtml
    AddType application/x-httpd-php-source .phps
    php_flag  magic_quotes_gpc  on
    php_flag  track_vars        on
    AuthName "Server manager"
    AuthType Basic
    AuthExternal pwauth
    require user admin
    SetEnv IMGHDR_SRC "/server-common/server-manager.jpg"
    Satisfy all
</Directory>

Alias /maint /var/www/html/maint
<Directory /var/www/html/maint>
    order deny,allow
    deny from all
    allow from { $localAccess." "./sbin/e-smith/db configuration getprop httpd-admin ValidFrom }
    AddType application/x-httpd-php .php .php3 .phtml
    AddType application/x-httpd-php-source .phps
    php_flag  magic_quotes_gpc  on
    php_flag  track_vars        on
    AuthName "Server manager"
    AuthType Basic
    AuthExternal pwauth
    require user admin
    SetEnv IMGHDR_SRC "/server-common/server-manager.jpg"
    Satisfy all
</Directory>

Alias /panel /var/www/html/panel
<Directory /var/www/html/panel>
    order deny,allow
    deny from all
    allow from { $localAccess." "./sbin/e-smith/db configuration getprop httpd-admin ValidFrom }
    AddType application/x-httpd-php .php .php3 .phtml
    AddType application/x-httpd-php-source .phps
    php_flag  magic_quotes_gpc  on
    php_flag  track_vars        on
    AuthName "Server manager"
    AuthType Basic
    AuthExternal pwauth
    require user admin
    SetEnv IMGHDR_SRC "/server-common/server-manager.jpg"
    Satisfy all
</Directory>

# AMP cgi
Alias /cgi-bin /var/www/cgi-bin
<Directory /var/www/cgi-bin>
    Options ExecCGI
    AllowOverride None
    order deny,allow
    deny from all
    allow from { $localAccess." "./sbin/e-smith/db configuration getprop httpd-admin ValidFrom }
    AuthName "Server manager"
    AuthType Basic
    AuthExternal pwauth
    require user admin
    SetEnv IMGHDR_SRC "/server-common/server-manager.jpg"
    Satisfy all
</Directory>

Alias /meetme /var/www/html/meetme
<Directory /var/www/html/meetme>
    order deny,allow
    deny from all
    allow from { $localAccess." "./sbin/e-smith/db configuration getprop httpd-admin ValidFrom }
    AddType application/x-httpd-php .php .php3 .phtml
    AddType application/x-httpd-php-source .phps
    php_flag  magic_quotes_gpc  on
    php_flag  track_vars        on
    AuthName "Server manager"
    AuthType Basic
    AuthExternal pwauth
    require user admin
    SetEnv IMGHDR_SRC "/server-common/server-manager.jpg"
    Satisfy all
</Directory>

Alias /crm /var/www/html/crm
<Directory /var/www/html/crm>
    order deny,allow
    deny from all
    allow from { $localAccess." "./sbin/e-smith/db configuration getprop httpd-admin ValidFrom }
    AddType application/x-httpd-php .php .php3 .phtml
    AddType application/x-httpd-php-source .phps
    php_flag  magic_quotes_gpc  on
    php_flag  track_vars        on
    AuthName "Server manager"
    AuthType Basic
    AuthExternal pwauth
    require user admin
    SetEnv IMGHDR_SRC "/server-common/server-manager.jpg"
    Satisfy all
</Directory>




4. amportal.conf

# This file contains settings for components of the Asterisk Management Portal
# Spaces are not allowed!
# Run /usr/src/AMP/apply_conf.sh after making changes to this file

# AMPDBHOST: the host to connect to the database named 'asterisk'
#AMPDBHOST=localhost
# AMPDBUSER: the user to connect to the database named 'asterisk'
AMPDBUSER=asteriskuser
# AMPDBENGINE: the type of database to use
#AMPDBENGINE=mysql

# AMPDBPASS: the password for AMPDBUSER
AMPDBPASS=amp109

# AMPMGRUSER: the user to access the Asterisk manager interface
AMPMGRUSER=admin

# AMPMGRPASS: the password for AMPMGRUSER
AMPMGRPASS=amp111

# AMPBIN: where command line scripts live
#AMPBIN=/var/lib/asterisk/bin

#AMPSBIN: where (root) command line scripts live
#AMPSBIN=/usr/sbin
# AMPWEBROOT: the path to Apache's webroot (leave off trailing slash)
AMPWEBROOT=/var/www/html

# AMPCGIBIN: the path to Apache's cgi-bin dir (leave off trailing slash)
AMPCGIBIN=/var/www/cgi-bin

# AMPWEBADDRESS: the IP address or host name used to access the AMP web admin
#AMPWEBADDRESS=
{
   if (/sbin/e-smith/db configuration get LocalIP)
       {
      $OUT .= "AMPWEBADDRESS="./sbin/e-smith/db configuration get LocalIP;
   }
   fi   
}

# FOPWEBROOT:web root for the Flash Operator Panel
FOPWEBROOT=/var/www/html/panel
# FOPPASSWORD: the secret code for performing transfers and hangups in the Flash Operator Panel
FOPPASSWORD=passw0rd

# FOPSORT: FOP should sort extensions by Last Name [lastname] or by Extension [extension]
FOPSORT=extension

# AUTHTYPE: authentication type to use for web admin
# If type set to 'database', the primary AMP admin credentials will be the AMPDBUSER/AMPDBPASS above
# valid: none, database
AUTHTYPE=none

# AMPADMINLOGO: Defines the logo that is to be displayed at the TOP LEFT of the admin screen.
#           This enables you to customize the look of the administration screen.
# NOTE: images need to be saved in the ..../admin/images directory of your AMP install
# This image should be 55px in height
AMPADMINLOGO=freepbx.png

# AMPFOOTERLOGO: Defines the logo that is to be displayed at the BOTTOM RIGHT of the admin screen.
#           This enables you to customize the look of the administration screen.
# NOTE: images need to be saved in the ..../admin/images directory of your AMP install
# This image should be 40px in height
AMPFOOTERLOGO=blank.gif

# AMPADMINHREF: Defines the where a user is taken if they click on the footer logo
#           This enables you to customize the look of the administration screen.
AMPADMINHREF=amp.coalescentsystems.ca

# AMPEXTENSIONS: the type of view for extensions admin
# If set to 'deviceanduser' Devices and Users will be administered seperately, and Users will be able to "login" to devices.
# If set to 'extensions' Devices and Users will me administered in a single screen.
AMPEXTENSIONS=extensions
# POST_RELOAD: automatically execute a script after applying changes in the AMP admin
# Set POST_RELOAD to the script you wish to execute after applying changes
# If POST_RELOAD_DEBUG=true, you will see the output of the script in the web page
# POST_RELOAD=
# POST_RELOAD_DEBUG=false



jon

pop

Configuration of asterisk@home 2.8
« Reply #1 on: April 04, 2006, 03:22:33 PM »
Hi jazbokes,

I don't know why but i can't registred my iphone with this version of asterisk.
Do you manage to make internals communications with this installation?

I have this error:

 NOTICE[16356] chan_sip.c: Registration from '"100" <sip:100@192.168.191.1>' failed for '192.168.191.245' - Username/auth name mismatch

Do you  know that, because i 'm trying to find a solution but it's very difficult and long.... :pint:


Thanks, pop...

jazbokes

Installed Asteriskathome 2.8BETA1 on SME7RC1
« Reply #2 on: April 10, 2006, 06:05:43 AM »
Hi Pop,

I have not tested soft/IP phone connection yet.. That's the next step .. First I want  make sure that all components are installed ok..  All Modules appears to  have installed ok..

Offline RvLardin

  • ***
  • 82
  • +0/-0
    • http://sme.firewall-services.com
Install script for A@H on SME7
« Reply #3 on: April 11, 2006, 10:13:09 AM »
Hi to all,

First, thanks to you, jazbokes for your job on this script.

We have a little pb : at this moment there is (at least) 3 differents scripts to install A@H on SME7
- The initial one, made by Cyr, avalaible on sme.firewall-services.com,
with some hacks made by Arne, Raymondw and Tib and other contributors to the initial thread on this topic :
http://forums.contribs.org/index.php?topic=29275.0
- The A@H team's one, that I discovered lately. We have to thanks them for including a "sme_install.sh" script from their 2.6 version. It's really cool for all of us !
- The one that jazbokes as published aerlier in this thread, that seems to be based on the Cyr's one, with some adds/modifications.

I think that, first of all, we have to harmonized our different jobs.
I suggest that we work on the latest A@H version, including specifications for our SME7 favorite distro.

I'm going to take contact with the A@H team to try to find a coordination.
Some other volunteers ?

For us, at Firewall-Services, the A@H integration is a *main goal* :
- First of all it's a top feature, commercially speaking.
- And, in a second time, we are sure that a gateway including files sharing, mail management, fax & phone dispachting is the perfect place to install a web based CRM (as A@H does with SugarCRM). This will be a 'killer application", allowing the installation in almost every little Cies (SME in english ?).

That's why we are spending time and money on this "project inside the project", but with a limited coding capacities...
If anyone want to join the "team" :D , we have some capacities for supporting ($$$) such a contributor. This can also be turn into a "Student job" (sorry for horrible english) for a student who will come to France for a high degree  and need (little) incomes appart of his studies, working on an exciting project.

RV.
----
"Those who are willing to lose some of their essential liberties in favour of security deserve neither and will lose both."
- Thomas Jefferson .

pop

Installed Asteriskathome 2.8BETA1 on SME7RC1
« Reply #4 on: April 11, 2006, 10:13:50 AM »
deleted

Offline RvLardin

  • ***
  • 82
  • +0/-0
    • http://sme.firewall-services.com
Installed Asteriskathome 2.8BETA1 on SME7RC1
« Reply #5 on: April 11, 2006, 10:32:27 AM »
pop said :
Quote

I don't know why but i can't registred my iphone with this version of asterisk.
Do you manage to make internals communications with this installation?


This pb seems to be due to the facts that the www user doesn't have a shell on SME. This is a security issue ans it will be *dangerous* to make it avalaible on a prod server.
A quick and dirty workaround is to give a shell to this user, so that you can edit the config files.
It will be better to use an other solution, as we did in our initial script.

Some news ASAP.

RV.
----
"Those who are willing to lose some of their essential liberties in favour of security deserve neither and will lose both."
- Thomas Jefferson .