refer: http://www.pc-links.com/blog/hikari-denwa/asterisk/
wget dahdi-linux-complete-2.6.1+2.6.1.tar.gz
tar zxvf dahdi-linux-complete-2.6.1+2.6.1.tar.gz
cd dahdi-linux-complete-2.6.1+2.6.1
make
make config
groupadd -g 5060 asterisk
useradd -g 5060 -u 5060 -d /var/lib/asterisk -s /sbin/nologin asterisk
cd /etc/udev/rules.d/
mv dahdi.rules 99-dahdi.rules
/etc/init.d/dahdi start
cd
wget asterisk-1.8.20.1.tar.gz
tar zxvf asterisk-1.8.20.1.tar.gz
apt-get install libxml2-dev g++ libncurses5-dev
cd asterisk-1.8.20.1
wget http://ftp.voip-info.jp/asterisk/patch/local/1.8/channels/chan_sip.rt200ne.110205-01.patch
patch -p0 < chan_sip.rt200ne.110205-01.patch
wget ftp://ftp.voip-info.jp/asterisk/patch/1.8.18.0/app_voicemail.c.101025-01.patch
wget ftp://ftp.voip-info.jp/asterisk/patch/1.8.18.0/say.c.101025-01.patch
patch -p0 < app_voicemail.c.101025-01.patch
patch -p0 < say.c.101025-01.patch
./configure
make
make install
make config
make samples
cd /var/lib/asterisk/sounds
wget ftp://ftp.voip-info.jp/asterisk/sounds/1_8/asterisk-sounds-1.8-ja.tar.gz
tar zxvf asterisk-sounds-1.8-ja.tar.gz
cd /etc
cp -r asterisk asterisk.bak
cd asterisk
wget http://ftp.voip-info.jp/asterisk/conf/conf-sample-1.6_01.tar.gz
tar zxvf conf-sample-1.6_01.tar.gz
cd
chown -R asterisk. /var/lib/asterisk
chown -R asterisk. /var/log/asterisk
chown -R asterisk. /var/spool/asterisk
chown -R asterisk. /var/run/asterisk
chown -R asterisk. /etc/asterisk
chmod -R u=rwX,g=rX,o= /var/lib/asterisk
chmod -R u=rwX,g=rX,o= /var/log/asterisk
chmod -R u=rwX,g=rX,o= /var/spool/asterisk
chmod -R u=rwX,g=rX,o= /etc/asterisk
chmod -R u=rwX,g=rX,o= /var/run/asterisk
vi /etc/asterisk/asterisk.conf
[options]
languageprefix=yes
runuser = asterisk
rungroup = asterisk
/etc/init.d/asterisk start
asterisk -rv
sip show regist
sip show rt200ne