Skip to content

Jongsix/Telephony-Dev-Box

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

134 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telephony Dev Box

Installation

  1. Install virtualbox
  2. Install vagrant
  3. Clone this repository (git clone https://github.com/mojolingo/Telephony-Dev-Box.git) if you have git installed, or download an archive.
  4. Add the librarian-chef plugin to your Vagrant installation by doing vagrant plugin install vagrant-librarian-chef.
  5. Build the VMs: This project ships with configuration for each of the three supported telephony engines: Asterisk, FreeSWITCH and PRISM, along with a box with Lumenvox TTS & ASR deployed and a load test box (containing SIPp + Sippy Cup). If you simply type vagrant up then one VM will be created for each engine, as well as a VM containing a working Adhearsion environment. However, this will create five virtual machines! You can easily bring up just the instance(s) you want by typing any combination of the below commands:
  • vagrant up adhearsion
  • vagrant up asterisk
  • vagrant up freeswitch
  • vagrant up prism
  • vagrant up lumenvox
  • vagrant up loadtest

One thing to note is that the "adhearsion" VM is especially optional. Most of the Mojo Lingo developers simply run Adhearsion locally. We provided a VM for those users who had a difficult time getting a Ruby build running on their system. If you already have a functional Ruby environment (with RubyGems) then feel free to just gem install adhearsion and keep going.

Usage

Create an Adhearsion app

Configure it to connect to the platform of your choice using one of the following samples:

##
# Use with Rayo (eg FreeSWITCH or Voxeo PRISM)
#
config.punchblock.username = "usera@freeswitch.local-dev.mojolingo.com" # Your XMPP JID for use with Rayo (swap 'freeswitch' for 'prism' as appropriate)
config.punchblock.password = "1" # Your XMPP password
##
# Use with Asterisk
#
config.punchblock.platform = :asterisk # Use Asterisk
config.punchblock.username = "manager" # Your AMI username
config.punchblock.password = "password" # Your AMI password
config.punchblock.host = "asterisk.local-dev.mojolingo.com" # Your AMI host

Test

Boot your Adhearsion app and call in. You can dial usera@[asterisk/freeswitch/prism].local-dev.mojolingo.com, or any number from a registered endpoint.

Register your softphone (optional)

The Asterisk and FreeSWITCH VMs contain preconfigured "usera" and "userb" accounts for softphones. Use the following credentials to register:

  • Username: usera@[asterisk/freeswitch].local-dev.mojolingo.com / Password: usera
  • Username: userb@[asterisk/freeswitch].local-dev.mojolingo.com / Password: userb

About

Development environments for supported Adhearsion telephony engines using Vagrant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors