Sunday, March 1, 2009

asterisk & media wiki configuration notes


A. Installation

1. using an iso image 'AsteriskNOW' to install the whole package with linux OS
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

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

(2) download all needed packages
from website as below:

(3) installing libpri

# wget
# tar xzvf libpri-1.4.2.tar.gz
# cd libpri-1.4.2
# make clean
# make
# make install

(4) installing zaptel

# wget
# 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

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

(5) installing asterisk

# wget
# tar xzvf asterisk-1.4-current.tar.gz
# ./configure
# make clean
# make
# make install

(6) installing asterisk-addons

# wget
# tar xzvf asterisk-addons-1.4.4.tar.gz
# ./configure
# make clean
# make
# make install

(7) installing asterisk-gui

# svn checkout
# 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
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

(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

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

1. SJphone:
download windows version
user guide for windows

2. X-Lite:
3. google talk:
4. Zoiper:
it provides different OS version, including Linux, Windows, and Mac OS.


A. Installation

the installations notes is from here:

all download files are from SourceForge:

1. install WAMP:
WAMP is an all-in-one PHP/MySQL/Apache installation for Windows.

2. Install MediaWiki, the software that powers Wikipedia.

Sysop account name: WikiSysop
passwd: erin

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

B. Configuration
here is a very detailed configuration settings README

How to: Install Apache, PHP, PEAR, MySQL & phpMyAdmin for Windows XP

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" => '',
"IDHost" => ' ',
"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.