Skip to content
andrew867Public

About

Server-hosted management plane for Millennium payphone fleets: provisioning, table distribution, call rating, cards, craft, firmware orchestration, DLOG/NCC diagnostics, and audit. .NET 9 + React + PostgreSQL.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

CoinLine

Manage Millennium payphones from a modern, self-hosted web console.

Backend tests Web tests Documentation License: MIT

CoinLine is an open-source server for maintaining and provisioning Nortel Millennium payphones. It provides the tools a fleet operator needs to configure phones, deliver their tables, manage rates, inspect alarms, and investigate failed downloads without keeping a legacy Windows workstation alive.

The project consists of an NCC host, a PostgreSQL database, a REST API and a browser-based management console. It can work with a terminal emulator over TCP, or with appropriately configured telephone and modem equipment. It runs on infrastructure you control.

Quick start | Operator guide | Documentation | Compatibility and evidence

CoinLine management console showing the fleet dashboard with fictional workshop records

CoinLine in a local demonstration with fictional data.

What you can do

Area In the console
Fleet management Register phones and their firmware, organize customers, sites and groups, review assignments and status.
Terminal configuration Create, edit, compare and publish versioned configuration sets. Review the firmware record lengths and dependencies before assigning a set.
Advertising Author text messages and graphical screens, preview bitmap artwork and rotation, and configure supported softkey links.
Downloads Queue full or selected table deliveries, schedule fleet rollouts, and follow individual acknowledgement and failure states.
Calling and rating Configure screening, speed dial, quick-access keys, terminal tariffs, host rating plans and carrier policy. Review quotes and uploaded call records separately.
Field operations Read terminal alarms and maintenance events, inspect NCC sessions, cashbox reports, decoded uploads and audit history. Associate reported Craft activity with technician profiles.
Accounts and firmware Manage operators, card account administration and firmware packages. Runtime payment approvals and live firmware programming have separate integration and validation requirements.

How it works

A phone contacts the NCC listener. CoinLine identifies it, responds to the supported dialogue, and records what happened. When the phone requests configuration, it receives the applicable records from its assigned or queued set. A successful download requires acknowledgement from the phone, not simply a successful server send.

flowchart LR
    Phone[Millennium payphone or emulator] -->|NCC transport| Server[CoinLine Server]
    Browser[Management console] <-->|REST API| Server
    Server <-->|Configuration and history| DB[(PostgreSQL)]
    Worker[Background worker] --> DB
Loading

The console and API are separate from the phone's firmware and from any telephone service provider. An emulator or compatible gateway is required to exercise terminal behavior; CoinLine does not ship firmware or telephone service credentials.

Get started

The shortest route to a local installation is Docker Compose. Install Docker with Compose support, clone this repository, and run:

git clone https://github.com/andrew867/CoinLine.git
cd CoinLine/docker
docker compose up -d --build

Open the console at http://localhost:8080. The evaluation stack creates a local operator account, as documented in the Docker lab guide. Database and table payload files remain in docker/data/ across normal container restarts.

Local service Address
Management console http://localhost:8080
API and Swagger http://localhost:5006/swagger
API health http://localhost:8080/health
Readiness http://localhost:8080/ready
NCC listener localhost:4000 (TCP)

To connect an emulator, start it independently and direct its NCC connection to TCP port 4000. Register the phone using its actual five-byte wire identity, select its firmware, and assign a compatible published set. Start with the emulator acceptance guide and table management guide.

The default Compose stack is for local evaluation. For a real deployment, use the production overlay, configure authentication, disable demo seeding, protect the NCC and telephone-facing ports, and configure TLS, database backups and service integrations. See Server deployment and Security.

From a new phone to a working configuration

For a demonstration installation, the demo starter guide explains how to initialize the separate earlier and later profile-specific data sets from a local bundle without assigning unreviewed records to a phone.

  1. Register the terminal, including its firmware profile and terminal type.
  2. Create a draft table set, or clone a known-good set for that firmware.
  3. Edit the phone's settings in the native table editors. Review the profile checks and any unconfigured optional families.
  4. Publish the draft and assign it to the phone or fleet. Queue the exact records that need to change.
  5. Let the phone call the host or use the appropriate supported maintenance workflow. Inspect the resulting download, acknowledgements and field events.
  6. Verify the intended behavior on the terminal. A table acknowledgement alone does not show that a rate, payment rule, advertisement or service behaves correctly.

Compatibility and project status

CoinLine implements many of the configuration and operational workflows familiar to Millennium fleet operators. Compatibility is tracked per firmware and terminal family, not as one blanket certification.

The project has exercised real NCC dialogues using emulated controller firmware. Observed results include a live rating request and on-screen charge, clock and maintenance exchanges, and terminal-rendered advertising.

Firmware family Observed in emulator tests
MTR 1.9 Multi-pay Installation and service, rated and free calls, and text advertising.
MTR 2.x standard Multi-pay Twelve acknowledged installation records, warm restart, and a connected local synthetic card call.
MTR 2.12-based graphical Multi-pay (type 40) Eighteen acknowledged installation and refresh records, including MT131/132/133, and all sixteen distinct bitmaps from the initial rotation rendered by the terminal.

These are emulator results, not physical terminal certification. The synthetic card call did not establish settlement; graphical menu service and the latest static advertisement dwell times remain to be verified.

The table catalogue and parity audit separates native editor coverage, encoding and byte preservation, receipt acknowledgements, and actual terminal behavior. It also identifies the remaining stock hardware, optional service, payment, code-download and reporting tests. The known limitations describe the broader deployment boundaries.

Develop and test

Component Stack
Server and NCC host .NET 9, ASP.NET Core
Storage PostgreSQL 16 and EF Core
Management console React, TypeScript, Vite
Automated checks xUnit, Vitest, Playwright
Documentation MkDocs Material

Install the .NET 9 SDK, Node.js 20 or newer and a local PostgreSQL server, or use the Compose database. The developer quickstart documents the required setup and database migrations.

cd backend
dotnet tool restore
dotnet build
dotnet test
cd web
npm ci
npm run build
npm run test
npx playwright install --with-deps chromium
npm run e2e -- e2e/failed-download.spec.ts

The browser workflow uses local deterministic fixtures; no emulator, licensed firmware, payment processor or external telephone call is required in CI.

Documentation

I want to... Start here
Install or operate CoinLine Quickstart, Docker lab, Server deployment
Manage phones and settings Operator guide, Table management, Downloads
Integrate with the API Live API and OpenAPI reference, Committed OpenAPI JSON
Learn what each record does Table catalogue and parity audit, Protocols
Follow the project Changelog, Roadmap, Known limitations

To browse the documentation locally:

cd docs-site
pip install -r requirements.txt
mkdocs serve -f mkdocs.yml

Before publishing documentation changes, run mkdocs build -f mkdocs.yml --strict from docs-site/, and run bash tools/public-docs-sanitize-check.sh from the repository root. Regenerate the committed OpenAPI artifacts after API contracts change using the scripts under docs-site/scripts/.

Contributing

Bug reports, test results, documentation improvements and focused pull requests are welcome. When reporting terminal behavior, include the firmware profile, terminal type, record number, acknowledgement status and observed behavior. Keep private phone numbers, card data, credentials, firmware images and raw captures out of public issues and commits. Use the redacted NCC export where applicable.

CoinLine is released under the MIT License. It is independent software, not a certified payment processor, billing switch or firmware distribution service. The separate protocol, physical hardware and production integration requirements remain documented rather than implied by UI coverage.

About

Server-hosted management plane for Millennium payphone fleets: provisioning, table distribution, call rating, cards, craft, firmware orchestration, DLOG/NCC diagnostics, and audit. .NET 9 + React + PostgreSQL.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages