Giter Site home page Giter Site logo

asterisk-configs's Introduction

asterisk-configs

Configurations I use for testing Asterisk. Currently, the configuration supports Asterisk 13.

Since I use Linux Mint, the install script has been set up for that distribution. If you are using something else, you will need to modify the install script accordingly (in particular, the system library installation).

NOTE: THE ACCOUNTS USED HEREIN ARE EXTREMELY INSECURE. DO NOT USE.

Install Script

This script can:

  • Install system libraries needed for Asterisk and PJPROJECT
  • Download, configure, and install Asterisk and PJPROJECT
  • Install a set of configuration files that are useful for testing/hacking

You should invoke this script such that it can install Asterisk and PJPROJECT. This generally, means installing using sudo; however, your mileage may vary. By default, this script will only install the Asterisk configuration files.

Note that if you install Asterisk using some other mechanism, you may not be able to install the configuration files using this script.

  • -u: User that will own Asterisk and its configuration files
  • -g: Group for the user that will own Asterisk and its configuration files
  • -i: Pull down Asterisk/PJPROJECT and install it
  • -w: Wipe the existing configuration before installing the new configuration files

Currently, you have to modify the install script if you'd like to install a different version of Asterisk.

Asterisk Configuration

Most of the configuration is 'blank', in that it disables most services that aren't necessary and provides only a few basic items. These include:

  • Two PJSIP endpoints, Alice and Bob
  • Some basic dialplan to dial the endpoints and a Stasis application
  • A single ARI user

These are described in more detail below.

Modules

Modules are explicitly loaded. Most modules non-essential modules are not loaded, as the configuration focuses on PJSIP and ARI. If additional modules are needed, you'll need to manually load them or update the modules.conf.

Note that not all PJSIP modules are loaded, in particular, res_pjsip_t38, because fax should die.

PJSIP Configuration

Two endpoints are defined, Alice and Bob. Both are assumed to register to Asterisk with a single contact. The settings for Alice and Bob are set up 'defensively', in that many of the settings that assist with NAT are enabled. Your mileage may vary, depending on where your phones are located.

If you do have a NAT, make sure you uncomment the localnet settings in the [transport] sections.

Dialplan

While some handy subroutines have been set up to do the basic dialling, the following is a cheat sheet:

  • 1000: Dial Alice
  • 2000: Dial Bob
  • 10000: Place the channel into Stasis

Modify the STASIS_APP and STASIS_ARGS global variables for the Stasis application at extension 10000.

ARI Configuration

A single ARI user has been configured with username/password of asterisk/asterisk.

ARI Applications

The following applications are in the ari-apps folder:

  • conference.py: Registers as the 'conference' ARI application. Acts as a very, very basic conferencing application.

asterisk-configs's People

Contributors

matt-jordan avatar

Watchers

 avatar  avatar  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.