일단, 핵심은 시험하는 BOX 의 File Descriptor 제한을 풀어주는 것이다
[ limits.conf add ]
vi /etc/init.d/asterisk
start() {
ulimit -n 20000
# Check if Asterisk is already running. If it is, then bug out, because
[ limits.conf add ]
vi /etc/security/limits.conf
root soft nofile 20000
root hard nofile 25000
[ sip.conf in asterisk ]
[sipp]
type=friend
context=test11
host=dynamic
port=5060
user=sipp
canreinvite=no
disallow=all
allow=ulaw
[ extensions.ael in asterisk ]
context test11
{
s => {
Answer();
while (1) {
Background(demo-instruct);
}
Hangup();
}
_X. => {
Answer();
while (1) {
Background(demo-instruct);
}
Hangup();
}
}
[ sipp command ]
./sipp -sn uac asteriskipaddr -s 12 -d 1000000 -l 5000
[ etc ]
dmidecode -t 4
[ sipp install ]
tar -zxvf sipp-3.3.tar.gz
cd sipp-3.3
make
[ asterisk installl ]
yum install –y gcc
yum install –y ncurses-devel
yum install –y libtermcap-devel
yum install –y ernel kernel-devel kernel-headers
yum install –y kernel-smp-devel
yum install –y gcc-c++
yum install –y openssl-devel
yum install –y zlib-devel
yum install –y unixODBC-devel
yum install –y libtool
yum install –y libxml2-devel
yum install sqlite-devel
yum install –y make
./configure ( only 32bit )
./configure --libdir=/usr/lib64 ( only 64bit )
make
make install
make config
chkconfig asterisk on
댓글 없음:
댓글 쓰기