Skip to main content

Acme Packet sipmsg.log to packet capture converter.

Project description

https://img.shields.io/github/actions/workflow/status/amateja/acmepcap/python-test.yml https://img.shields.io/coveralls/amateja/acmepcap.svg https://img.shields.io/pypi/v/acmepcap https://img.shields.io/pypi/format/acmepcap https://img.shields.io/pypi/pyversions/acmepcap https://img.shields.io/pypi/status/acmepcap https://img.shields.io/pypi/l/acmepcap

acmepcap

Acme Packet sipmsg.log to packet capture converter.

This project is intended for users and administrators of Oracle (formerly Acme Packet) Communications Session Border Controller (SBC) software. It converts an Acme Packet sipmsg.log file into a packet capture (PCAP) file. Originally inspired by apktlog2pcap.

installation

pip install acmepcap

usage

Command-line help:

acmepcap --help

usage: main.py [-h] -f FILE [-c] -o OUTPUT [-t TIMEZONE]

options:

-h, --help            show this help message and exit
-f FILE, --file FILE  sipmsg.log file
-c, --compress        compress the output packet capture file
-o OUTPUT, --output OUTPUT
                      output packet capture file
-t TIMEZONE, --timezone TIMEZONE
                      SBC timezone as a tz database identifier (default: UTC)
--summary             print conversion summary to stderr

Minimal set of parameters (UTC assumed):

acmepcap -f sipmsg.log -o my.pcap

All parameters in use:

acmepcap -f sipmsg.log -o my.pcap.gz -c -t Europe/Warsaw --summary

Questions & Answers

  1. Why convert sipmsg.log to a packet capture format?

    Although SIP was designed to be human-readable, working through a file with hundreds of SIP messages often belonging to different sessions is not easy. Converting to PCAP enables powerful filtering and analysis with standard tools. Additionally, when a call is encrypted, capturing traffic on the wire may not help, while sipmsg.log still provides the signaling you can analyze.

  2. How can I obtain the sipmsg.log file?

    The sipmsg.log file is created on Acme Packet software when one of the following is enabled:

    1. Debug mode: notify sipd debug (disable with notify sipd nodebug)

    2. Advanced Logging (see the Oracle Communications SBC Maintenance and Troubleshooting Guide)

    3. Explicit SIP logging: notify sipd siplog (stop with notify sipd nosiplog)

    You can download it directly from the device or as part of a log bundle created with package-logfiles or package-crashfiles.

  3. What should I set for the timezone parameter? Use the tz database identifier that matches the SBC timezone configured via timezone-set. You can verify the current setting with show clock (note: it may not be an exact match). If omitted or incorrect, nothing bad will happen, but PCAP timestamps may be inaccurate.

Assumptions

  1. self-sufficient

    Aim to be as independent as possible and require only standard Python. While there are excellent libraries like scapy, this tool strives to work with pure Python.

  2. install or download

    Users can either install a release or download the single-file source and run it directly.

  3. wide support

    Support as many environments as practical, without targeting exotic or unsupported versions.

  4. simple

    Provide a command-line interface only. Implement only the essential protocol features needed for this conversion; do not attempt to implement a full protocol stack.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

acmepcap-0.3.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file acmepcap-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: acmepcap-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for acmepcap-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0b26d5f7fdb5067aaa45c4d99d250e66f8c699f6aa8b109616a5f7d0f962983
MD5 5f73281e4cd5efddf74db4c99132025a
BLAKE2b-256 4dffbbd2ee9a02efb61da3c68fab3944cdfbd24d9c44f490a0d267de355567e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page