Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Example code to control Corelatus GTH E1/T1 hardware in various languages
C Erlang Java Perl Python Shell JavaScript
branch: master
Failed to load latest commit information.
c C: Add support for MTP-2 Nx64 channels
erlang Erlang: replace lists:min/1 and lists:max/1 with erlang:min/2
java
perl Perl: fix PCap file creation on Windows machines
python Python: fix usage/documentation bug (argument order reversed)
.gitignore hide .beam files
README C: Add a makefile-based build project for Visual Studio

README

Title: Example code for the GTH API
Author: Matthias (matthias@corelatus.com)
----------------------------------------------------------------------

A Corelatus GTH is a standalone piece of hardware which connects to
the telephone network through the E1/T1 interface. People build voicemail
systems, billing systems and network monitoring systems on top of GTHs.

This code is only really of interest to people using GTHs to build something.

The examples are broken up by language, and each language is
independent of the rest, i.e. the C examples don't use any code
from the Perl examples. The quality varies:

  erlang: A full parser for responses from the GTH
          A feature-complete Erlang API
          Both the parser and API are in fairly widespread use.

  Perl: A partial Perl API for the GTH.
        Good enough to get you started, but doesn't support all GTH features.
        We're not Perl experts, so the Perl may be a bit odd in places.
        Some customers use this code for ad-hoc O&M.

  Python: A partial Python API for the GTH.
          Good enough to get you started, but doesn't support all GTH features.
          We're not Python experts.
          We're not aware of any customers using this code.

  C: A complete parser for GTH responses
     Several examples to get you started.
     Support for compiling on either *nix systems or win32.
     Multiple customers use some of this code in production.

  Java: Basic example code. We're not proud of it, we're no good at Java.

More information about GTH hardware:

  http://www.corelatus.com/duplex.html
  http://www.corelatus.com/index.html

More information about the GTH API:

  http://www.corelatus.com/gth/api/

Git repo of this code, with commit history:

  https://github.com/matthiasl/Corelatus-GTH-example-code/

The examples mostly have BSD licences. Feel free to fork the repository and
please consider submitting changes back.

--eof--
Something went wrong with that request. Please try again.