Search This Blog

Wednesday 25 December 2013

Installing SIPp on Windows

SIPp on Windows:


Pre-Requisite Downloads:-

Download the following Installation files from the following links:

1)  https://cygwin.com/install.html  - Cygwin
2) https://sourceforge.net/projects/sipp/files/sipp/3.2/sipp-win32-3.2-setup.exe  -   Sipp-win-XXX.exe  

Procedure:

1)   First start installing Cygwin

2)  Select the root install directory (by default, C:/cygwin) and then click the button “Next”.Select local package directory and then click the button “Next”.

3)  Choose the connection method. In this example, “Direct Connection” is selected and then the button “Next”.

4) Choose a mirror site and the click the button “Next”. (chose http://ftp.daum.net).

5)  Enter the below packages in search box, default 3 to 4 list are displayed with Skip, select them and check the box under "bin" for all packages below:-

 Select packages to install .
 vim
 gcc-core
 gcc-g++
gcc
libncurses


6) Cygwin setup is done.

7)  After installation the folder structure is created     C://cygwin

8)  Run the sipp installation  file, during  installation select  the  location as   C://cygwin/Sipp

9)  After installation go to  C://cygwin/ and open the "terminal.bat"  file.
 
10)  gcc --version

11)  make --version

12) Browse http://www.openssl.org/         , Click the button “Source ”

13)  Download the latest version of OpenSSL.  Copy the downloaded OpenSSL source into “home” subfolder of the folder where “cygwin” is installed (eg, C:/cygwin/)

14 )  Run “cygwin” and then do the followings:
               $ cd /home $ tar zxvf openssl-x.x.x.tar.gz

15)         $ cd /home/openssl-x.x.x $  ./config

16)         $ cd /home/openssl-x.x.x $  make

17)       $ cd /home/openssl-x.x.x $ make test

18)      $ cd /home/openssl-x.x.x $ make install

19)     Check if the following three files show up  inside Openssl-XXX.X folder : –
               Execution file: openssl – Library files: libssl.a, libcrypto.a 32

20)  To compile SIPp on Windows with pcap (media support), you must:
  • Copy the WinPcap developer package to "C:\cygwin\lib\WpdPack"
  • Remove or rename "pthread.h" in "C:\cygwin\lib\WpdPack\Include", as it interfers with pthread.h from cygwin
21)  SIPp compiles under CYGWIN on Windows.

22) Goto   C://cygwin  and click   terminal.bat  file

23)   Compile
            # cd sipp
            # ./configure --with-pcap
            #  make pcapplay_ossl or make pcap

24) ./sipp XXX.XX.XX.XXX -sf REGISTER_client.xml -inf Register_client.csv -m 1



Installing SIPp on linux (Ubuntu)

SIPp:


SIPp is a  stress or performance test tool / traffic generator for the SIP protocol. It can work in both Scenarios (UAC /UAS) and establishes and releases multiple calls with the INVITE and BYE methods.It can also reads Custom XML scenario files describing from very simple to complex call flows. It features the dynamic display of statistics about running tests (call rate, round trip delay, and message statistics), periodic CSV statistics dumps, TCP and UDP over multiple sockets or multiplexed with retransmission management and dynamically adjustable call rates.

SIPp can also send media (RTP) traffic through RTP echo and RTP /pcap replay. Media can be audio or video.

SIPp can be used to test various real SIP equipment like SIP proxies, B2BUAs, SIP media servers, SIP/x gateways, SIP PBX, ... It is also very useful to emulate thousands of user agents calling your SIP system.


Installing SIPp on linux(Ubuntu):




Installing SIPP on Ubuntu 12.4 linux

 
  1. Run Terminal on Ubuntu
  1. Goto root  using su - and Pwd
  1. wget  http://sourceforge.net/projects/sipp/files/sipp/3.3/sipp-3.3.tar.gz/
  1. apt-get or Yum  intsall sipp-XXX-tar.gz
  1. cd Sipp-XX
  1. ls -l
  1.  apt-get install  openssl
  1. apt-get install  libssl-dev
  1. apt-get install  libssl1.0.0
  1. apt-get install  libssl0.9.8
  1. apt-get install  pcaputils
  1. apt-get install  libssl-dev
  1. apt-get install  libncursesw5-dev
  1. apt-get install  libncurses5-dev
  1. apt-get install  libcap-dev
  2. make pcapplay_ossl or make pcap
  1. ./sipp XXX.XX.XX.XXX -sf REGISTER_client.xml -inf Register_client.csv -m 1

If you get any error as below


tring to install sipp on ubuntu I get this error
qwerty at qwerty-desktop:~/sipp.2007-02-08$ sudo make
make OSNAME=`uname|sed -e "s/CYGWIN.*/CYGWIN/"` MODELNAME=`uname -m|sed "s/Power Macintosh/ppc/"` sipp
make[1]: Entering directory `/home/qwerty/sipp.2007-02-08'
gcc   -D__LINUX -pthread -D__3PCC__       -I. -I/opt/openssl/include  -c -o scenario.o scenario.cpp
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
make[1]: *** [message.o] Error 127
make[1]: Leaving directory `/home/qwerty/sipp.2007-02-08'
make: *** [all] Error 2




use these commands

sudo apt-get install -f 
sudo apt-get remove libncurses5-dev libncurses5 libtinfo5 ncurses-bin 
sudo apt-get update 
sudo apt-get upgrade 
sudo apt-get install build-essential linux-image linux-image-generic libncurses5-dev libncurses5







REST API

  API  is an application programming interface. It is a set of rules that allow programs to talk to each other. The developer creates the AP...