gui or command line - you can get the best of both worlds

29
GUI or command line? You can get the best of both worlds! David Duffett, Digium Working with the Worldwide Asterisk Community

Upload: elastix

Post on 27-May-2015

2.441 views

Category:

Technology


1 download

DESCRIPTION

David Duffett Telespeak VoIP2Day + ElastixWorld

TRANSCRIPT

Page 1: GUI or command line - you can get the best of both worlds

GUI or command line? You can get the best of both worlds!

David Duffett, Digium Working with the Worldwide Asterisk Community

Page 2: GUI or command line - you can get the best of both worlds

2 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

Agenda

§  Explaining the relationship between Elastix and Asterisk

§  A brief history of the Asterisk-based distro

§  Elastix: A comprehensive telephony solution, but with access to the command line

§  Requirement scenarios – which is best?

§  The work that a GUI saves you

Page 3: GUI or command line - you can get the best of both worlds

3 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

Agenda (continued)

§  The mechanics of Elastix

§  Files that you should not edit

§  Files that you can edit

§  GUI advantages

§  GUI disadvantages

§  Some things require that you edit at command line level

Page 4: GUI or command line - you can get the best of both worlds

4 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

Agenda (continued)

§  Hardware configuration

§  Troubleshooting

Page 5: GUI or command line - you can get the best of both worlds

5 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

ElastixWorld 2011 - Moustaches

Page 6: GUI or command line - you can get the best of both worlds

6 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

ElastixWorld 2012 - Glasses

§  Glasses will help you learn

Page 7: GUI or command line - you can get the best of both worlds

7 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

The relationship between Elastix and Asterisk

Operating System

Kernel Driver

Channel Driver

Communications Engine

GUI

Distro/Framework

Page 8: GUI or command line - you can get the best of both worlds

8 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

A brief history of the Asterisk-based distro

§  Asterisk arrives in 1999

§  Asterisk Management Portal

§  Asterisk at Home is the first distro

§  AMP becomes FreePBX

§  Other distros arrive, not all survive – Elastix is the best/most popular – PBX in a Flash

Page 9: GUI or command line - you can get the best of both worlds

9 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

The Great thing about ELASTIX

§  A world-class Open Source PBX (or completed Unified Communications solution)…

§  GUI driven…

§  BUT

§ …with access to the Command Line!!!!!!

Page 10: GUI or command line - you can get the best of both worlds

10 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

There are actually TWO command lines

§  The Linux command line

§  Looks like this…

§  root@localhost ~]#

Page 11: GUI or command line - you can get the best of both worlds

11 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

There are actually TWO command lines

§  The Asterisk command line – Accessed by using ‘asterisk –r’

§  Looks like this…

§  localhost*CLI>

§  Common for newbies to get confused between the two command lines

Page 12: GUI or command line - you can get the best of both worlds

The work that the GUI saves you

Page 13: GUI or command line - you can get the best of both worlds

13 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

Setting up an extension

§  A simple task in Elastix

Page 14: GUI or command line - you can get the best of both worlds

14 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

Setting up an extension

§  To do the same in Asterisk, the following files must be edited:

§  /etc/asterisk/sip.conf – to configure a profile for the device to link to

§  /etc/asterisk/voicemail.conf – to create a mailbox for the extension

§  /etc/asterisk/extensions.conf – to create a dialplan entry so that the extension can be called

§  THREE files, several lines of configuration…

Page 15: GUI or command line - you can get the best of both worlds

15 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

Asterisk configuration files

§  /etc/asterisk/sip.conf –  [david2001]

type=friend host=dynamic secret=c0mpl1cat3d context=from-internal

§  /etc/asterisk/voicemail.conf –  [default]

2001 => 9999,david duffett,[email protected]

§  /etc/asterisk/extensions.conf [from-internal] exten => 2001,1,Dial(SIP/david2001,30,tT)

Page 16: GUI or command line - you can get the best of both worlds

16 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

Setting up a trunk

§  Settings are explained…

Page 17: GUI or command line - you can get the best of both worlds

17 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

Elastix System Diagram

Page 18: GUI or command line - you can get the best of both worlds

18 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

Files that you should not edit

§  ALL OF THEM!!!!!

§  Well, nearly all of them

Page 19: GUI or command line - you can get the best of both worlds

19 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

Files that you can edit

§  They all have ‘custom’ in the name – these will not be changed by the GUI

§  Eg: –  /etc/asterisk/sip_custom.conf –  /etc/asterisk/extensions_custom.conf

Page 20: GUI or command line - you can get the best of both worlds

20 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

The purpose of the GUI

§  To make life easy

§  Handle the jobs that we need to do regularly

§  Cover the most popular functionality

§  The 80/20 rule – We spend 80% of our time using 20% of the

functionality of our communications system

Page 21: GUI or command line - you can get the best of both worlds

21 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

The reality of using a GUI over Asterisk

§  Abstracts the administrator away from the complexity of manual configuration – and that is a GOOD thing

§  Restricts the administration in terms of the level of control they have in configuration – and that can be a BAD thing

Page 22: GUI or command line - you can get the best of both worlds

22 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

When only the command line will do…

§  Protocol level debugging – SIP –  IAX2 – DAHDI (PRI/BRI/FXO/FXS)

§  AGI work

§  Checking whether an e-mail has been sent

Page 23: GUI or command line - you can get the best of both worlds

23 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

Hardware

§  The Hardware Detector in Elastix is a wonderful thing…

§  It generates two files: –  /etc/dahdi/system.conf –  /etc/asterisk/dahdi-channels.conf**

§  **dahdi-channels.conf is #included in chan_dahdi.conf

Page 24: GUI or command line - you can get the best of both worlds

24 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

The Hardware Detector

Page 25: GUI or command line - you can get the best of both worlds

25 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

The Hardware Detector

§  Actually based on dahdi_genconf – which was contributed to the Open Source project by Xorcom in 2006

Page 26: GUI or command line - you can get the best of both worlds

26 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

Digium hardware is a natural choice

Operating System

Kernel Driver

Channel Driver

Communications Engine

GUI

Distro/Framework

Page 27: GUI or command line - you can get the best of both worlds

27 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

Any questions before I summarise?

Page 28: GUI or command line - you can get the best of both worlds

28 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

In Summary

§  Elastix gives an amazing GUI-driven communications system…

§ …But gives you command line access when you want it!

Page 29: GUI or command line - you can get the best of both worlds

29 Creative Innovation – Customer Satisfaction – Continual Quality Improvement

Thanks! [email protected]