安装SIPp(Linux & Windows)

简介

SIPp是一个测试SIP协议性能的开源工具软件,目前业界在IMSNGN以及VOIP语音性能测试上应用广泛。

特点

  • 高效的运行性能
  • 灵活的自定义脚本
  • 丰富的消息处理能力

SIPp主要功能包括脚本模拟、运行控制、消息构造、程序设计,除了以上主要功能外,SIPp还提供了包括TLS、鉴权、 密码认证、RTP媒体流收发等其他的特性支持。

安装说明

首先下载SIPp 3.6版本(目前稳定版本-2019),下载地址,下载解压后,进入项目目录查看build.sh文件。

需要依赖gslopensllpcap等包文件

#!/bin/sh
set -e  # abort on error

MAKE=`which gmake make 2>/dev/null | head -n1`  # prefer GNU make
test -z "$MAKE" && echo "No (g)make found" >&2 && exit 1
CPUCOUNT=$(nproc --all 2>/dev/null || echo 1)
MAKEFLAGS="-j$CPUCOUNT"

if test -z "$*"; then
    echo "build.sh: Please specify configure options," \
        "--none for defaults, or --full for all" >&2
    exit 1
elif test "$*" = "--help" || test "$*" = "-h"; then
    ./configure --help
    exit 1
fi

./autogen.sh

if test "$*" = "--none"; then
    ./configure
elif test "$*" = "--full"; then
    ./configure \
        --with-gsl \
        --with-openssl \
        --with-pcap \
        --with-rtpstream \
        --with-sctp
else
    ./configure "$@"
fi

# For git checkout, run unit tests.
if test -e gtest/.git; then
        "$MAKE" $MAKEFLAGS sipp_unittest
        ./sipp_unittest
fi

"$MAKE" $MAKEFLAGS

Centos的依赖包

# gsl 
yum install gcc-c++ gcc
# automake .etc
yum install automake autoconf libtool make
yum install ncurses ncurses-devel
# TLS support
yum install openssl openssl-devel
# SCTP support
yum install lksctp-tools lksctp-tools-devel
# PCAP play support
yum install libpcap libpcap-devel libnet libnet-devel
# distributed pauses
yum install gsl gsl-devel

Ubuntu所需依赖包

# gsl 
apt-get install g++ gcc
# automake .etc
apt-get install automake autoconf libtool make
apt-get install libncurses5 libncurses5-dev
# TLS support
apt-get install openssl libssl-dev
# SCTP support
apt-get install libsctp1 lksctp-tools libsctp-dev
# PCAP play support
apt-get install libpcap-dev libnet1 libnet1-dev
# distributed pauses
apt-get install gsl-bin libgsl0-dev libgsl0ldbl

Windows

  1. Cywin下载地址,镜像地址选择http://mirrors.163.com, 或http://mirrors.ustc.edu.cn

    支持包界面需要选择如下几个包

    # 除此之外,按照上面linux系统的依赖包选择安装  
    gcc-core  
    gcc-g++  
    libncurses-devel  
    Libncurses  
    openssl-devel  
    make
  2. WinPcap及其开发包
  3. SIPp源码包

    cd sipp-3.6.0  
    # 需要有相应的依赖包  
    ./configure --with-gsl --with-openssl --with-pcap --with-rtpstream --with-sctp  
    make

Willem97
36 声望1 粉丝

不断进步,充实自己


引用和评论

0 条评论