Code Monkey home page Code Monkey logo

bbsdial's Introduction

bbsdial

A collection of perl scripts to map phone numbers to telnet connections on an asterisk dialup to telnet gateway

prerequisites

  • Asterisk (tested on 16)
  • MariaDB
  • perl 5.x
  • perl modules DBD::MariaDB and Asterisk::AGI from CPAN
  • modified mgetty -> autologin, no issue or prompt
  • modified telnet -> silent, no escape, default to binary

installation

  • change the SQL credentials to something unique
  • create the SQL database:
# mariadb < dbsetup.sql
  • place bbsdial.pl and releasemodem.pl in /usr/share/asterisk/agi-bin
  • place telnetshim.pl somewhere
  • add the following to /etc/mgetty/login.config:
/AutoTEL/ nobody nobody /path/to/telnetshim.pl
*       -       -       /bin/false

patching mgetty

By default mgetty is slightly noisy, and demands a login. The included patch against mgetty-1.2.1 silences mgetty and automatically logs in as /AutoTEL/

patching telnet

This is left as an exercise for you. Telnet is very noisy and may confuse some dialup clients. It is often desirable to use a telnet implementation without escape mode and zero feedback given.

configuring Asterisk

  • The included extensions.conf file is just the new bbslist context relevant to executing the AGI scripts and dialing. Insert those lines in your /etc/asterisk/extensions.conf somewhere appropriate (the bottom of the file is fine).
  • The _227XXXX pattern should be replaced in the bbslist context if you are using a different prefix.
  • add the following to your main dialplan context (typically named default or local):
include => bbslist

configuring your ATAs

  • Generic instructions you can follow from CRD's guide here
  • For Grandstream HT702 devices there is a template xml file included in this package. Be sure to replace the MACADDR, PHONE1, PHONE2, PASSWORD1, PASSWORD2 and SIPSERVER placeholders.

bbsdial's People

Contributors

dkgrizzly avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.