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



2 comments:

  1. cannot compile under windows cause of winpcap error:

    when trying to ./configure

    checking pcap.h usability... yes
    checking pcap.h presence... yes
    checking for pcap.h... yes
    checking for library containing pcap_open_offline... no
    configure: error: pcap library missing


    ReplyDelete
  2. Thank you for good article. I would like to notify that
    "make" package wasn't listed in the point 5. So it should be installed too.

    ReplyDelete

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...