TrixBox的用户(user)与设备(device)

Posted November 18, 2006 by dynaguy
Categories: VoIP

快速安装TrixBox 1.2.2

Posted October 18, 2006 by dynaguy
Categories: VoIP

TrixBox 1.2.2发布了。只是从TrixBox诞生以来(不包括 Asterisk@ Home) ,安装最顺利的一个版本!

这是我的安装过程:

1。下载TrixBox 1.2.2,刻盘,安装。

2。重启系统后,以root登录,用netconfig设置IP地址。

IP:192.168.1.12

SM: 255.255.255.0

GW: 192.168.1.1

3。更改相关的密码:

psswd-maint

psswd admin

psswd-amp

psswd-meetme

reboot

4。重启系统后(如果最近安装,可以略过此步)

trixbox-update.sh

trixbox-update.sh update

屏幕显示不需要升级

5。X100P 配置

ztcfg -vv

咦? 我的X100P Clone卡呢?

genzaptelconf

哈哈,好了!

6。这时,系统安装的是FreePBX 2.1.1, 需要升级到 2.1.3

cd /usr/src

rm -rf freepbx

svn co https://svn.sourceforge.net/svnroot/amportal/freepbx/tags/2.1.3 freepbx-2.1.3

mv freepbx-2.1.3 freepbx

cd  freepbx

./install_amp

7。在另一台电脑,用浏览器进入 http://192.168.1.12, 可以进行配置了!

OpenVPN on XP

Posted October 15, 2006 by dynaguy
Categories: VPN

1. Local Network setup:

Office LAN: 192.168.1.0 /255.255.255.0

VPN Server: Name: pc2000

                        IP: 192.168.1.127 /255.255.255.0

 2. On Router (192.168.1.1)

      Port forward: 1194(UDP) to 192.168.1.127(pc2004, the VPN server)

      Add route:

              Enter Route Name: openVPN
             Destination LAN IP: 10.8.0.1            
              Subnet Mask: 255.255.255.o
             Default Gateway: 192.168.1.127

3. On pc2004, download the install file from http://openvpn.se/download.html

file needed: openvpn-2.0.7-gui-1.0.3-install.exe

install with all the default setting.

Reboot

4. Creating certificates:

at command prompt:

cd C:\Program Files\OpenVPN\easy-rsa

init-config

5. Edit C:\Program Files\OpenVPN\easy-rsa\vars.bat

@echo off
set HOME=%ProgramFiles%\OpenVPN\easy-rsa
set KEY_CONFIG=openssl.cnf

set KEY_DIR=keys

set KEY_SIZE=1024set KEY_COUNTRY=CA
set KEY_PROVINCE=BC
set KEY_CITY=Richmond
set KEY_ORG=UTL
set
KEY_EMAIL=admin@domain.com

 6. Build CA

at command prompt:

vars
clean-all
build-ca

Note: The only parameter that must be explicitly entered is the Common Name. Enter the name of your VPN for this entry. An example would be MyVPN.

7. generate a certificate and private key for the server

build-key-server server

8. Build client key:

build-key client1
build-key client2
build-key client3

Note: Make sure if you typed the command build-key client1 that you enter client1 for the Common Name. These entries much match up. If you would like to password-protect your client keys, substitute build-key-pass for build-key

9. generate Diffie Hellman parameters

build-dh

10. create configuration files for the server and clients

Server config file:
       server.ovpn

Clients config file:
      client1.ovpn
      client2.ovpn
      client3.ovpn

11. On server:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
IPEnableRouter = dword:00000001

12. Files copy

On Server:

\OpenVPN\config\server.ovpn

 

\OpenVPN\easy-rsa\keys\ca.crt

\OpenVPN\easy-rsa\keys\server.crt

\OpenVPN\easy-rsa\keys\client1.crt

\OpenVPN\easy-rsa\keys\client1.key

13. On Client1

\OpenVPN\config\client1.ovpn

\OpenVPN\easy-rsa\keys\ca.crt

\OpenVPN\easy-rsa\keys\client1.crt

\OpenVPN\easy-rsa\keys\client1.key

Kernel Panic when shutdown TrixBox 1.2 with X100P

Posted October 11, 2006 by dynaguy
Categories: VoIP

edit /etc/rc6.d/K92zaptel
make changes on lines 115 – 123 so it look like:

# Unload drivers
# echo “Unloading zaptel hardware drivers:”
# for x in $RMODULES; do
# action “Unloading ${x}:” rmmod ${x}
# done
# action “Removing zaptel module:” rmmod zaptel
# RETVAL=$?
# [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/zaptel

Save it and reoot.

Trixbox v1.2.1 Quickie HOW-TO!

Posted October 11, 2006 by dynaguy
Categories: VoIP

from: http://www.kennonsoft.org/ 

A Working How-To – Updated 10/10/2006!
Current for trixbox-update v1.0.0.11

This short guide is simply a “how to” to side-step a couple of basic landmines in TrixBox v1.2.1 installation and FreePBX v2.1.1 (included in TrixBox) or FreePBX v2.1.3 to get the base system operational with a Digium card as we have become accustomed to with previous release of the old Asterisk@Home v2.x series.

Let’s Get to It!

1) If upgrading from an older Asterisk@Home installation, run backups from AMP and manually download the compression, as well as backing up “/tftpboot” for you Cisco handset users, get your custom voice prompts, hold music, etc.

2) Install TrixBox v1.1 or v1.2 from the ISO/CD

3) Login to the command prompt

Continue a usual installation…

4) Type, “netconfig” and change your IP as needed

5) Type, “help-trixbox” to get a list of commands you can use

6) Run the commands listed to change your passwords as desired

Update TrixBox!

7) Type, “trixbox-update.sh update” (it will download a newer version of itself)

8) Type, “trixbox-update.sh update” (again, to run the newly downloaded version)

9) Type, “Reboot” (when it is done it will prompt you to do this)

The Trixbox update as of v1.0.0.11 has an error that fails to properly download & compile the Zaptel drivers.

10) yum -y install kernel-devel (many users have reported not needing this, but with it the following steps will work no matter what — if you skip it as we often do and get errors in any of the “make …” steps, just come back and redo these steps … no problem!)

11) cd /usr/src

12) wget http://ftp.digium.com/pub/zaptel/releases/zaptel-1.2.9.1.tar.gz

13) tar -xzvf zaptel-1.2.9.1.tar.gz

14) mv zaptel-1.2.9.1 zaptel

15) cd zaptel

16) make clean

17) make linux26

18) make install

19) reboot (this will restart your machine, you will need to login again after)

20) genzaptelconf (if you have Digium cards, etc. you’ll need to do this)

OPTION: Simplify & Secure your email support for voicemail & fax deliveries. We remove “sendmail” and replace it with “postfix” essentially for a better TrixBox experience!

21) service sendmail stop

22) rpm -e –nodeps sendmail

23) yum -y install postfix

24) service postfix start

25) nano /etc/postfix/main.cf

26) Find the lines that begin “#relayhost = ….”, and add a line there that says (without the first “#” character): relayhost = your.smtp.server.dns.or.ip.address (replace the silly text with your actual mail server DNS or IP address!)

27) ctrl-x, Y, (to save & exit)

28) service postfix reload

29) nano /etc/hosts

30) Find the following lines and insert your FQDN or DNS for your system where indicated by “my.asterisk.com” …

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
127.0.0.1 my.asterisk.com asterisk1.local

31) ctrl-x, Y, (to save & exit)

OPTION: Add HTTPS support if you think you may be accessing the web interface from the outside Internet…

32) Type, “yum -y install mod_ssl”

33) Type, “reboot”

Test the online web interface …

34) With a browser go to your TrixBox IP address, then navigate to System Administration and eventually FreePBX

35) Click on the Tools section and Module Admin

36) Click on the “Connect to online repository…”

37) If it works, great! If it doesn’t consider the following steps (37-40) …

If you can’t connect to the online module repository, then there is an issue with your firewall more than likely (since FreePBX moved their module repository to a more reliable server recently). In the case of *** SonicWall *** firewalls with more recent firmware, the following will solve your problem!!

38) Login to your SonicWall via web browser

39) Navigate your browser to, http://xxx.xxx.xxx.xxx/diag.html (insert your firewall IP address or DNS name in the xxx.xxx.xxx.xxx)

40) Scroll down & uncheck “Enforce Host Tag Search with for CFS”

41) Click “Apply” at the top of the page, and voila!

OPTION: FreePBX v2.1.1 or v2.1.3? FreePBX’s best stable version at the moment seem to be v2.1.1 that is already installed or v2.1.3 which the following steps will help you upgrade to. Everyone has a favorite, I’ll leave it to you to pick yours based on experience!

42) cd /usr/src

43) svn co https://svn.sourceforge.net/svnroot/amportal/freepbx/tags/2.1.3 freepbx-2.1.3

44) cd freepbx-2.1.3

45) ./install_amp

Workaround for FreePBX v2.1.1 and v2.1.3 “direct to voicemail” flakey bug — if you experience it! Examples include direct to voicemail dialing gives you a message saying that your extension is busy (not the destination), or an inability to direct dial to voicemail from the IVR or internal extension, etc.

46) With a browser go to your TrixBox IP address, then navigate to System Administration and eventually FreePBX

47) Click on the Setup section and General Settings

48) Change the “Extension prefix for dialing direct to voicemail:” from an “*” to anything else (we have found “9″ very effective)!

Voila! Essentially you are done. For the uninitiated, I’d recommend following steps beginning with #42 in our earlier How-To for the quickest setup of FreePBX and your phone system (How-To Quick Link).

Of course you will still have to handle your handset configurations as needed. However, if you are migrating from an old AAH install to TrixBox and you backed up your handset configuration files (e.g. Cisco users need only copy/paste the “/tftpboot” directory between installations) you won’t even have to touch that except to maybe reboot the handsets to ensure they properly register with the new Asterisk/TrixBox machine.

Install Asterisk 1.4 Beta2 and Freepbx

Posted September 26, 2006 by dynaguy
Categories: VoIP

from: http://pbx.mississippi.com/ast1.4.beta.html 

how I installed Asterisk 1.4 Beta2 and Freepbx
Install a min Centos 4.4 to the hardrive
Hint: use the Trixbox iso and type linux askmethod
and choose custom / min install

yum -y install httpd gcc gcc-c++ libxml2-devel libtiff-devel mysql-server php-gd php-mysql kernel-devel bison ncurses-devel audiofile-devel subversion libogg-devel openssl-devel
cd /usr/src

#zaptel 1.4.0
cd /usr/src
rm -rf zaptel
wget http://ftp.digium.com/pub/zaptel/releases/zaptel-1.4.0-beta1.tar.gz
tar -zxvf zaptel-1.4.0-beta1.tar.gz
mv zaptel-1.4.0-beta1 zaptel

#asterisk 1.4.0
cd /usr/src
rm -rf asterisk
wget http://ftp.digium.com/pub/asterisk/releases/asterisk-1.4.0-beta2.tar.gz
tar -zxvf asterisk-1.4.0-beta2.tar.gz
mv asterisk-1.4.0-beta2 asterisk
#libpri
cd /usr/src
rm -rf libpri
wget http://ftp.digium.com/pub/libpri/releases/libpri-1.4.0-beta1.tar.gz
tar -zxvf libpri-1.4.0-beta1.tar.gz
mv libpri-1.4.0-beta1 libpri
#addons 1.2.4
cd /usr/src
rm -rf asterisk-addons
wget http://ftp.digium.com/pub/asterisk/releases/asterisk-addons-1.4.0-beta1.tar.gz
tar -zxvf asterisk-addons-1.4.0-beta1.tar.gz
mv asterisk-addons-1.4.0 asterisk-addons
 
#sounds 1.2.1
cd /usr/src
rm -rf asterisk-sounds
wget http://ftp.digium.com/pub/asterisk/releases/asterisk-sounds-1.2.1.tar.gz
tar -zxvf asterisk-sounds-1.2.1.tar.gz
mv asterisk-sounds-1.2.1 asterisk-sounds
mkdir /var/run/asterisk
cd asterisk
./configure
make
make install
#libpri
cd libpri
make clean
make install
cd ..
#Zaptel
cd zaptel
make linux26
make install
make config
cd ..

cd asterisk-addons
make clean
make
make install
cd ..

cd asterisk-sounds
make clean
make install
mkdir /var/lib/asterisk/sounds/custom/
cd ..

chkconfig httpd on

chkconfig mysqld on
useradd -c “Asterisk PBX” -d /var/lib/asterisk asterisk

chown asterisk /var/lib/php/session/

sed -i “s/User apache/User asterisk/” /etc/httpd/conf/httpd.conf

sed -i “s/Group apache/Group asterisk/” /etc/httpd/conf/httpd.conf

sed -i “s/AllowOverride None/AllowOverride All/” /etc/httpd/conf/httpd.conf

/etc/init.d/mysqld start
cd /usr/src/freepbx

mysqladmin create asterisk

mysqladmin create asteriskcdrdb

mysql asterisk < SQL/newinstall.sql

mysql asteriskcdrdb < SQL/cdr_mysql_table.sql

mysql

GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY ‘amp109′;

GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY ‘amp109′;

\q
echo /usr/sbin/amportal start >> /etc/rc.local

#now for Freepbx
cd /usr/src
rm -rf freepbx
wget http://easynews.dl.sourceforge.net/sourceforge/amportal/freepbx-2.1.2.tar.gz
tar -zxvf freepbx-2.1.2.tar.gz
mv freepbx-2.1.2 freepbx
./install_amp –force-version=2.1.1

#now for Webmin
cd /usr/src
  wget http://pbx.mississippi.com/webmin-1.29.rpm
  rpm -Uvh webmin*

My New WordPress Blog (博客)

Posted September 26, 2006 by dynaguy
Categories: Misc

I am testing this blog.

支持简体中文。