Skip to content

superfast1979/pcap2sipp

Repository files navigation

Build status Python version support codecov.io License: GPL v3

pcap2sipp

Simple purpose: translate pcap sip session to sipp call flow.

Read from a pcap file all sip messages included in a sip session, identified by callid, and then it generates two sipp xml files, named client_scenario.xml and server_scenario.xml. The content of those files is the replica of all messages sent and received by the client or the server, as CDATA content.

Every send message in sipp scenarios is always delayed by a pause of 50 milliseconds, you can decide to remove the pause or change the value.

For the server scenario, the following sip headers are completely replaced by sipp well known keywords:

via is replaced by [last_Via:]

call-id is replaced by [last_Call-ID:]

from is replaced by [last_From:]

cseq is replaced by [last_CSeq:]

to is replaced by [last_To:];tag=[call_number]

record-route is replaced by [last_Record-route:]

contact is replaced by Contact: sip:[local_ip]:[local_port];transport=[transport]

Table of Contents

Requirements

pcap2sipp:

Usage

python /path/to/pcap2sipp/pcap2sipp.py /path/to/pcap_file.pcap /dir/to/sipp_files/ g000000q5m2003tedhjqk9l5i1-jbe0000@10.252.47.186

License

pcap2sipp is licensed under the GPL license. Copyright © 2020, Augello Marco

License: GPL v3

Contributing

To contribute to pcap2sipp, clone this repo locally and commit your code on a separate branch. Please write unit tests for your code before opening a pull-request:

make test  # run all unit tests

About

Simple purpose: pcap sip messages to sipp call flow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published