CRT Project Page Messenger Main | Mailing list | CRT project pages | Realtor.org | CRT at Realtor.org |





CRT Files

File Diagram

CRT Blog

Messenger Install Document


This document outlines the steps involved in the installation of the Messenger service. CRT file downloads available on the "CRT Files" link on the left link bar. Questions, comments and ideas are welcome. Please sign-up for the messenger mailing list here mailing list


Hardware used for this installation:

Computer- shuttle SB51G2

Modem- X100 FXO Card from Digium


STEP 1.

Required software and installation instructions-

Linux version: 2.6.11-1.1369_FC4 -full install

download here- http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/iso/

installation instructions- http://fedora.redhat.com/docs/

Asterisk version plus dependencies:

asterisk-1.2.9.1.tar.gz

asterisk-addons-1.2.3.tar.gz

asterisk-sounds-1.2.1.tar.gz

libpri-1.2.3.tar.gz

zaptel-1.2.6.tar.gz

download here- http://www.asterisk.org/download

installation instructions below- commands are italicized


STEP 2.

untar and unzip files in the directory of your choice.

ex.

[root@localhost asterisk]# tar -xzvf asterisk-1.2.9.1.tar.gz

this will result in a new install directory

[root@localhost asterisk]# ls -la

total 10368

drwxr-xr-x 3 root root 4096 Jul 14 15:51 .

drwxr-xr-x 4 root root 4096 Jul 14 14:30 ..

drwxr-xr-x 25 1000 1000 4096 Jun 6 11:19 asterisk-1.2.9.1 <- install directory

-rw-r--r-- 1 root root 10568287 Jul 14 14:33 asterisk-1.2.9.1.tar.gz

Remove tar file from directory- remember to keep copies in a backup directory

[root@localhost asterisk]# rm asterisk-1.2.9.1.tar.gz

rm: remove regular file `asterisk-1.2.9.1.tar.gz'? Y

Repeat these steps for each tar file.


STEP 3.

install dependencies

libpri-1.2.3 installation steps:

[root@localhost downloads]# cd libpri-1.2.3/

[root@localhost libpri-1.2.3]# make clean

[root@localhost libpri-1.2.3]# make install

zaptel-1.2.6 installation steps:

[root@localhost downloads]# cd zaptel-1.2.6/

[root@localhost zaptel-1.2.6]# make clean

[root@localhost zaptel-1.2.6]# make install


STEP 4.

install asterisk

[root@localhost /]# cd pbx/asterisk/asterisk-1.2.9.1/

[root@localhost asterisk-1.2.9.1]# make clean

[root@localhost asterisk-1.2.9.1]# make install

[root@localhost asterisk-1.2.9.1]# make samples *this will create sample config files


STEP 5.

test asterisk installation

Load wildcard modules (if you’re using a phone card)

[root@localhost asterisk-1.2.9.1]# modprobe wcfxo

[root@localhost asterisk-1.2.9.1]# modprobe wcfxs

[root@localhost asterisk-1.2.9.1]# modprobe zaptel

Check channel configuration (if you’re using a phone card)

[root@localhost asterisk-1.2.9.1]# zaptel -vv

Start Asterisk

[root@localhost asterisk-1.2.9.1]# ./asterisk -vvvvc

this command should return:

Asterisk Ready.

*CLI>

this is the asterisk command console type help and press return for list of commands


STEP 6. * Click "File Diagram" on the sidebar links to see a graphic of file relationships

download and modify configuration files for Asterisk and Messenger.

webroot: web page file

ttspeech.html

Make sure the path to insert.php is correct

<form action="php/insert.php" method="get">

../webroot/php/: messenger config files

insert.php

Make sure the paths in these variables are correct

$text = "...path/festival.txt";

$callfile = file_get_contents("...path/php/ttspeech.call");

$from = "...path/php/initiate.call";

$to = "/var/spool/asterisk/outgoing/ttspeech3.call";

ttspeech.call

Make sure Context and Extension are correct

Context: from-sip

Extension: 2003

/etc/asterisk/: asterisk config files

These files should work in their current configuration

extensions.conf

sip.conf

festival.conf

zaptel.conf

zapata.conf