Sunday, March 1, 2009

asterisk & media wiki configuration notes

Asterisk

A. Installation

1. using an iso image 'AsteriskNOW' to install the whole package with linux OS
http://www.asterisknow.org/
We can find the documents and download the lastest version from their website. After installing AsteriskNOW step by step to a machine, we can configure it by any web browser, only need to remember the URL, ID, and password.

2. self install on linux machine (like Debian, Ubuntu, Fedora...etc)
we could reference to these documents
http://www.asteriskguru.com/tutorials/asterisk_gui.html
http://www.howtoforge.com/asterisk_pbx_linux

(1) create a working folder:
# mkdir /usr/src/asterisk

(2) download all needed packages
from website as below:
http://downloads.digium.com/pub/

(3) installing libpri

# wget http://downloads.digium.com/pub/libpri/libpri-1.4.2.tar.gz
# tar xzvf libpri-1.4.2.tar.gz
# cd libpri-1.4.2
# make clean
# make
# make install


(4) installing zaptel

# wget http://downloads.digium.com/pub/zaptel/zaptel-1.4.6.tar.gz
# tar xzvf zaptel-1.4.6.tar.gz
# make clean
# make
# make install

PS. if you met the problem like missing Linux kernel header file, you may download your Linux header

files:
# cat /proc/version
# apt-get install linux-headers-2.6.20-16-386

(5) installing asterisk

# wget http://downloads.digium.com/pub/asterisk/asterisk-1.4-current.tar.gz
# tar xzvf asterisk-1.4-current.tar.gz
# ./configure
# make clean
# make
# make install


(6) installing asterisk-addons

# wget http://downloads.digium.com/pub/asterisk/asterisk-addons-1.4.4.tar.gz
# tar xzvf asterisk-addons-1.4.4.tar.gz
# ./configure
# make clean
# make
# make install

(7) installing asterisk-gui

# svn checkout http://svn.digium.com/svn/asterisk-gui/trunk
# make clean
# make
# make install
# make checkconfig [it can detect all config file status ]

(8) modify 2 confiure files, then we can use astersik gui web interfaces
# vi /etc/asterisk/manager.conf

a. modifiy these two lines
enabled = yes
webenabled = yes

b. add a user
[administrator]
secret = 123456
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config

# vi /etc/asterisk/http.conf
a. modify these lines
enabled=yes
enablestatic=yes
bindaddr= 0.0.0.0

(9) use asterisk CPI prompt to execute shell commands
# asterisk -vvvvvr
erin-laptop*CLI> restart now (it will restart asterisk now)

(10) open a browser to verify asterisk
http://127.0.0.1:8088/asterisk/static/config/cfgbasic.html
http://127.0.0.1:8088/asterisk/static/config/cfgadvanced.html

B. Configuration

we can change the configuration from asterisk site, like adding the extension number, or change voicemail number....etc

C. Softphone

A softphone is a software program for making telephone calls over the Internet
http://en.wikipedia.org/wiki/Softphone

1. SJphone: http://www.sjlabs.com/sjp.html
download windows version
http://www.sjphone.org/softphone/SJphone-1.65.2637.exe
user guide for windows
http://www.sjphone.org/doc/SJphone_User_Guide.pdf

2. X-Lite: http://www.counterpath.com/xlite-overview.html
3. google talk: http://www.google.com/talk/intl/zh-TW/
4. Zoiper: http://www.zoiper.com/
it provides different OS version, including Linux, Windows, and Mac OS.

MediaWiki

A. Installation

the installations notes is from here:
http://lifehacker.com/software/wikipedia/geek-to-live-set-up-your-personal-wikipedia-163707.php

all download files are from SourceForge:

1. install WAMP:
WAMP is an all-in-one PHP/MySQL/Apache installation for Windows.
http://www.wampserver.com/en/download.php

2. Install MediaWiki, the software that powers Wikipedia.
http://prdownloads.sourceforge.net/wikipedia/mediawiki-1.5.8.tar.gz?download

Sysop account name: WikiSysop
passwd: erin

3. mysql database:
user ID: root
passwd: erin

B. Configuration
here is a very detailed configuration settings README
http://www.mediawiki.org/wiki/Manual:Configuration_settings

How to: Install Apache, PHP, PEAR, MySQL & phpMyAdmin for Windows XP
http://www.sematopia.com/?p=28

C. Sending email
Set email configuration for mediawiki & wamp:

1. modify settings in C:\wamp\www\mediawiki\LocalSettings.php
$wgEnableEmail = true;
$wgEnableUserEmail = true;

2. modify SMTP mode settings in C:\wamp\www\mediawiki\include\DefaultSettings.php

$wgSMTP = array(
"host" => ' gmail.google.com',
"IDHost" => ' gmail.google.com ',
"port" => "25",
"auth" => false,
#"username" => "my_user_name",
#"password" => "my_password"
);

3. add PEAR in C:\wamp\www\mediawiki\LocalSettings.php

$IP = "C:\\wamp\\www\\mediawiki";
$setPHPPEAR = "C:\\wamp\\php\\PEAR";
ini_set( "include_path", ".;$IP;$IP/includes;$IP/languages;$setPHPPEAR;" );

if you meet the problem like cannot find Mail.php or Net_SMTP.php, it's probably coz of PEAR modules.

4. check the pear folder first, it should be in C:\wamp\php\PEAR

5. run go-pear in windows command prompt
> cd c:\wamp\php
> go-pear.bat

6. install Mail and NET_SMTP modules in pear
> cd c:\wamp\php\
> pear install mail
> pear install NET_SMTP

7. restart all services in wamp

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.