Skip to content

shahnawaz-shrepos/Cisco-isdn-log-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ISDN Parser

Overview

The ISDN Parser is a Python-based tool designed to parse ISDN messages. It reads configuration from a config.ini file and processes ISDN messages, dial peers, and call information from a text file. The parsed data is then outputted in a structured format.

Features

  • Parses ISDN messages, dial peers, and call information.
  • Configurable logging through config.ini.
  • Command-line interface for parsing files and searching specific call details.

Requirements

  • Python 3.9 or higher
  • Pydantic
  • TextFSM

Installation

  1. Clone the repository:

    git clone https://github.com/shahnawaz-lang/voice-over-ip/isdn_parser.git
    cd isdn_parser
  2. Create a virtual environment and activate it:

    python -m venv .venv
    source .venv/bin/activate
  3. Install the required packages:

    pip install -r requirements.txt

Usage

To parse an ISDN message file, use the following command:

python -m isdn_parser.cli -f path/to/your/file.txt

Options

-f, --file: Path to the text file containing ISDN messages.
-s, --search: Enable the search flag.
-cgn, --calling: Specify the calling number.
-cdn, --called: Specify the called number.
-ca, --cause: Specify the cause code.

Example

python -m isdn_parser.cli -f path/to/your/file.txt -s -cgn 1234567890 -cdn 0987654321 -ca 16

About

A small parser for parsing Cisco ISDN logs from the their VoIP routers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages