2014년 10월 16일 목요일

asterisk stress test by sipp with hp380

일단, 핵심은 시험하는 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

2014년 7월 18일 금요일

initialize oracle sequence

SELECT LAST_NUMBER FROM USER_SEQUENCES WHERE SEQUENCE_NAME = 'JUMIN_SEQ';

ALTER SEQUENCE JUMIN_SEQ INCREMENT BY -999998;

SELECT JUMIN_SEQ.NEXTVAL FROM DUAL;

ALTER SEQUENCE JUMIN_SEQ INCREMENT BY 1;

SELECT JUMIN_SEQ.NEXTVAL FROM DUAL;

2014년 6월 12일 목요일

batch command with RegAsm.exe

c# 으로 개발한 ActiveX dll 을 배포하기 위해 엄청난 삽질을 했다. 다른 삽질도 많았지만, 최고의 삽질이었다

inf 파일에 필요한 파일 복사와 RegAsm 에 등록하는 batch 명령을 수행할 파일을 지정하고, batch 파일에는 아래와 같은 명령을 수행하도록 해서 겨우 배포 했다

Start /d C:\Windows\Microsoft.NET\Framework\v2.0.50727\ /b RegAsm.exe /codebase /tlb c:\CTIClientX\CTIClientX.dll

2014년 6월 5일 목요일

sip response code

100 - Trying
180 - Ringing
181 - Call is being forwarded
183 - Session Progressing
200 - OK
202 - Accecptable
300 - Multiple Choices
301 - Moved Permanently
302 - Moved Temporarlly
401 - Unauthorized
406 - Not Acceptable
407 - Proxy Authentication Required
480 - Temporarily unavailable
486 - Busy Hear
487 - Request Terminated
488 - Not Acceptable Hear
502 - Bad Gateway
503 - Service Unavaliable
600 - Busy Eventwhere
603 - Decline

2014년 6월 4일 수요일

sip call pickup with asterisk

asterisk version : 11.6.1

1. sip.conf 에서 각각의 extension 에 아래와 같이 추가 설정 ( 묶고 싶은 내선번호 끼리 )
callgroup = 1
pickupgroup = 1

2. features.conf 파일에서 아래의 내용의 주석을 해제하고, 원하는 번호를 입력 한다 ( 변경하지 않으면 *8 이다. sip hardphone 에서는 *8# 을 발신하면 된다. 난 **# 이다
pickupexten = **

2014년 5월 20일 화요일

REMOTE HOST IDENTIFICATION HAS CHANGED

ssh-keygen -R 100.100.100.100

2014년 5월 13일 화요일

multi open for eclipse on the mac

/Users/pointermans/Documents/Work/adt-bundle-mac-x86_64-20140321/eclipse/Eclipse.app/Contents/MacOS/eclipse &