Digg this!  Add to del.icio.us

3.0 Install *starShop-OSS

 Download *starShop-OSS from sourceforge

cd /var/www
wget http://easynews.dl.sourceforge.net/sourceforge/starshop/starshop-oss-0.02.tar.gz
tar zxvf starshop-oss-0.02.tar.gz

3.1 Create *starShop-OSS's DB

mysqladmin create starshop -p
mysql --user=root --password=your_db_root_pwd starshop < /var/www/starshop-oss/scripts/sql_scripts/starshoposs.sql

a) Create the starshop DB user

mysql --user root -p

mysql> GRANT ALL PRIVILEGES ON starshop.* TO starshopuser@localhost IDENTIFIED BY 'starshop1!';
Query OK, 0 rows affected (0.00 sec)

mysql> quit

3.2 Install *starShop-OSS AGI and configuration file

cd /var/www/starshop-oss/scripts/agi_scripts
cp starshoposs.agi starshoposs-config.conf /usr/share/asterisk/agi-bin

a) edit /usr/share/asterisk/agi-bin/starshoposs.agi - on line 22, enter your configuration file path: /usr/share/asterisk/agi-bin/starshoposs-config.conf

b) edit /usr/share/asterisk/agi-bin/starshoposs-config.conf - enter your DB credentials

dbhost = localhost
dbuser = starshopuser
dbpass = starshop1!
dbname = starshop

c) create the log file :

touch /var/log/agi_stderr.log
chmod 766 /var/log/agi_stderr.log

3.3 Install *starShop-OSS's sound files

cd /var/www/starshop-oss/sounds
cp *.gsm /usr/share/asterisk/sounds

3.4 Edit Flash Operator Panel and Asterisk's manager.conf configuration files

cd /var/www/starshop-oss
pico op_server.cfg

on line 7, change the password to : starshop111
on line 37, change the flash dir to : /var/www/starshop-oss save and exit.

Open now Asterisk's manager.conf file:

cd /etc/asterisk
mkdir manager.d
cd manager.d
pico starshop.conf

enter the following:
[admin]
secret = starshop111
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
Change the permissions for the new folder created:

chown -R asterisk.asterisk manager.d

Reload Asterisk:

asterisk -rx reload

Start flash operator panel by doing :

cd /var/www/starshop-oss; /var/www/starshop-oss/safe_opserver &

Edit starshop's configuration file

cd /var/www/starshop-oss/includes
pico config.inc.php

line 20, edit your DB details:
$db_user = 'starshopuser';
$db_pass = 'starshop1!';
$db_host = 'localhost';
$db_name = 'starshop';
line 53, edit starshop's dir root:
$CFG->dirroot     = "/var/www/starshop-oss";
Edit your php.ini to set register_globals = on

pico p/etc/php4/apache2/php.ini

line 365, change register_globals = Off, to register_globals = On
save, exit and restart Apache:

/etc/init.d/apache2 restart

Edit now your Asterisk's SIP configuration

1. account 1001

cd /etc/asterisk/sip-phones.d
pico 1001.conf

Enter the following:
[1001]
callerid=1001
canreinvite=no
context=from-starshoposs
dtmfmode=rfc2833
host=dynamic
nat=1
port=5060
secret=1001
qualify=1000
type=friend
username=1001
2. account 1002

pico 1002.conf

Enter the following:
[1002]
callerid=1002
canreinvite=no
context=from-starshoposs
dtmfmode=rfc2833
host=dynamic
nat=1
port=5060
secret=1002
qualify=1000
type=friend
username=1002
3. account 1003

pico 1003.conf

Enter the following:
[1003]
callerid=1003
canreinvite=no
context=from-starshoposs
dtmfmode=rfc2833
host=dynamic
nat=1
port=5060
secret=1003
qualify=1000
type=friend
username=1003
4. account 1004

pico 1004.conf

Enter the following:
[1004]
callerid=1004
canreinvite=no
context=from-starshoposs
dtmfmode=rfc2833
host=dynamic
nat=1
port=5060
secret=1004
qualify=1000
type=friend
username=1004

Next »


How to setup VoIP calls in your Cybercafé with Xorcom Rapid, Asterisk PBX and *starShop-OSS - Page 1
How to setup VoIP calls in your Cybercafé with Xorcom Rapid, Asterisk PBX and *starShop-OSS - Page 2
How to setup VoIP calls in your Cybercafé with Xorcom Rapid, Asterisk PBX and *starShop-OSS - Page 4

Digg this story. | Bookmark this post on del.icio.us. | Submit this post on reddit.com. | Search Technorati for links to this post. | Submit this post on ma.gnolia.com. | Submit this post on blogmarks.net. | Submit this post on FURL.net. | Submit this post on Spurl.net. | Submit this post on Simpy.com. | Submit this post on Tailrank.com.