-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gateway RTP/SRTP bit pattern testing support (SIPP-RTPCHECK-3.6)
[Detailed feature documentation available upon request]
- Loading branch information
1 parent
5e4d725
commit b2f7d2a
Showing
132 changed files
with
29,238 additions
and
529 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,192 @@ | ||
@AM_GIT_VERSION@ | ||
|
||
bin_PROGRAMS = sipp | ||
|
||
TESTS = sipp_unittest | ||
|
||
check_PROGRAMS = $(TESTS) | ||
|
||
AM_CFLAGS=-I$(srcdir)/include -Wall -pedantic | ||
AM_CXXFLAGS=-I$(srcdir)/include -Wall -pedantic | ||
|
||
# For BSD-style elements in udphdr struct (uh_dport instead of dest) | ||
# among others. | ||
AM_CPPFLAGS=-D_BSD_SOURCE -D_DEFAULT_SOURCE | ||
|
||
CLEANFILES = | ||
EXTRA_DIST = \ | ||
$(srcdir)/example/fortune.cpp \ | ||
$(srcdir)/LICENSE.txt \ | ||
$(srcdir)/README.md \ | ||
$(srcdir)/THANKS \ | ||
$(srcdir)/sipp.dtd \ | ||
$(srcdir)/cpplint.py | ||
|
||
if HAVE_OPENSSL | ||
DEFS += -DUSE_TLS -DUSE_OPENSSL | ||
ssl_incl = \ | ||
include/sslsocket.hpp | ||
ssl_SOURCES = \ | ||
$(ssl_incl) \ | ||
src/sslsocket.cpp | ||
endif | ||
|
||
if HAVE_PCAP | ||
DEFS += -DPCAPPLAY | ||
pcap_incl = \ | ||
include/prepare_pcap.h \ | ||
include/send_packets.h | ||
pcap_SOURCES = \ | ||
$(pcap_incl) \ | ||
src/prepare_pcap.c \ | ||
src/send_packets.c | ||
endif | ||
|
||
if HAVE_RTP | ||
DEFS += -DRTP_STREAM | ||
rtp_SOURCES = \ | ||
src/rtpstream.cpp \ | ||
include/rtpstream.hpp | ||
endif | ||
|
||
if HAVE_SCTP | ||
DEFS += -DUSE_SCTP | ||
endif | ||
|
||
if HAVE_GSL | ||
DEFS += -DHAVE_GSL | ||
endif | ||
|
||
if HAVE_EPOLL | ||
DEFS += -DHAVE_EPOLL | ||
endif | ||
|
||
common_incl = \ | ||
include/comp.h \ | ||
include/infile.hpp \ | ||
include/listener.hpp \ | ||
include/logger.hpp \ | ||
include/md5.h \ | ||
include/message.hpp \ | ||
include/milenage.h \ | ||
include/call_generation_task.hpp \ | ||
include/ratetask.hpp \ | ||
include/reporttask.hpp \ | ||
include/rijndael.h \ | ||
include/scenario.hpp \ | ||
include/sip_parser.hpp \ | ||
include/screen.hpp \ | ||
include/socket.hpp \ | ||
include/socketowner.hpp \ | ||
include/stat.hpp \ | ||
include/strings.hpp \ | ||
include/task.hpp \ | ||
include/time.hpp \ | ||
include/variables.hpp \ | ||
include/watchdog.hpp \ | ||
include/xp_parser.h \ | ||
include/actions.hpp \ | ||
include/call.hpp \ | ||
include/auth.hpp \ | ||
include/deadcall.hpp \ | ||
include/jlsrtp.hpp | ||
|
||
common_SOURCES = \ | ||
src/actions.cpp \ | ||
src/auth.cpp \ | ||
src/comp.c \ | ||
src/call.cpp \ | ||
src/deadcall.cpp \ | ||
src/infile.cpp \ | ||
src/listener.cpp \ | ||
src/logger.cpp \ | ||
src/md5.c \ | ||
src/message.cpp \ | ||
src/milenage.c \ | ||
src/call_generation_task.cpp \ | ||
src/ratetask.cpp \ | ||
src/reporttask.cpp \ | ||
src/rijndael.c \ | ||
src/scenario.cpp \ | ||
src/sip_parser.cpp \ | ||
src/screen.cpp \ | ||
src/socket.cpp \ | ||
src/socketowner.cpp \ | ||
src/stat.cpp \ | ||
src/strings.cpp \ | ||
src/task.cpp \ | ||
src/time.cpp \ | ||
src/variables.cpp \ | ||
src/watchdog.cpp \ | ||
src/xp_parser.c \ | ||
$(common_incl) \ | ||
$(ssl_SOURCES) \ | ||
$(pcap_SOURCES) \ | ||
$(rtp_SOURCES) \ | ||
src/jlsrtp.cpp | ||
|
||
sipp_SOURCES = \ | ||
$(common_SOURCES) \ | ||
src/sipp.cpp \ | ||
include/sipp.hpp | ||
|
||
sipp_CFLAGS = $(AM_CFLAGS) @GSL_CFLAGS@ | ||
sipp_CXXFLAGS = $(AM_CXXFLAGS) @GSL_CXXFLAGS@ | ||
sipp_LDADD = @LIBOBJS@ @GSL_LIBS@ | ||
|
||
# call.cpp and sipp.cpp use version.h; see AM_GIT_VERSION. | ||
src/call.cpp: include/version.h | ||
src/sipp.cpp: include/version.h | ||
|
||
gtest_SOURCES = \ | ||
gtest/src/gtest-death-test.cc \ | ||
gtest/src/gtest-filepath.cc \ | ||
gtest/src/gtest-internal-inl.h \ | ||
gtest/src/gtest-port.cc \ | ||
gtest/src/gtest-printers.cc \ | ||
gtest/src/gtest-test-part.cc \ | ||
gtest/src/gtest-typed-test.cc \ | ||
gtest/src/gtest.cc \ | ||
gmock/src/gmock-internal-utils.cc \ | ||
gmock/src/gmock-matchers.cc | ||
|
||
sipp_unittest_SOURCES = \ | ||
$(common_SOURCES) \ | ||
src/sipp_unittest.cpp \ | ||
src/xp_parser_ut.cpp \ | ||
$(gtest_SOURCES) | ||
|
||
sipp_unittest_CFLAGS = $(AM_CFLAGS) -DGTEST=1 \ | ||
-I$(srcdir)/gtest/include \ | ||
-I$(srcdir)/gmock/include \ | ||
-I$(srcdir)/gtest \ | ||
-I$(srcdir)/gmock \ | ||
@GSL_CFLAGS@ | ||
|
||
sipp_unittest_CXXFLAGS = $(AM_CXXFLAGS) -DGTEST=1 \ | ||
-I$(srcdir)/gtest/include \ | ||
-I$(srcdir)/gmock/include \ | ||
-I$(srcdir)/gtest \ | ||
-I$(srcdir)/gmock \ | ||
@GSL_CXXFLAGS@ | ||
|
||
sipp_unittest_LDADD = @LIBOBJS@ @GSL_LIBS@ | ||
|
||
# Ensure that after a reconfigure the source is cleaned. | ||
.autoclean: Makefile | ||
make clean | ||
echo > .autoclean | ||
BUILT_SOURCES = .autoclean | ||
|
||
if HAVE_HELP2MAN | ||
man_MANS = sipp.1 | ||
CLEANFILES += $(man_MANS) | ||
|
||
sipp.1: ./sipp $(sipp_SOURCES) | ||
$(HELP2MAN) --output=$@ -v "-v" --no-info \ | ||
--name='SIP testing tool and traffic generator' \ | ||
./sipp | ||
else | ||
sipp.1: | ||
@echo "Warning: help2man not available, no man page is created." | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SET-SIDE command line: | ||
./sipp 192.168.1.250:5060 -sf sipp_scenarios/pfca_uac_pattern.xml -i 192.168.1.147 -t u1 -p 5060 -mp 4000 -m 1 -s 16002 | ||
|
||
ICP-SIDE command line: | ||
./sipp -sf sipp_scenarios/pfca_uas.xml -i 192.168.1.250 -t u1 -p 5060 -mp 5000 -m 1 -s 16001 -rtp_echo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SET-SIDE command line: | ||
./sipp 192.168.1.250:5060 -sf sipp_scenarios/pfca_uac_bpattern_crypto_simple.xml -i 192.168.1.147 -t u1 -p 5060 -mp 4000 -m 1 -s 16002 -rtpcheck_debug -srtpcheck_debug | ||
|
||
ICP-SIDE command line: | ||
./sipp -sf sipp_scenarios/pfca_uas_both_crypto_simple.xml -i 192.168.1.250 -t u1 -p 5060 -mp 5000 -m 1 -s 16001 -srtpcheck_debug | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.