Www.itexpo.com October 10-13, 2006 San Diego Convention Center, San Diego California Installing Asterisk Carl Davis.

Slides:



Advertisements
Similar presentations
© 2004 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Installation & management of SUSE.
Advertisements

October 10-13, 2006 San Diego Convention Center, San Diego California The Business Case for Open Source/Asterisk Carl Davis.
October 10-13, 2006 San Diego Convention Center, San Diego California Asterisk: Thinking Out of the Box Carl Davis.
1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 2 Getting Started.
1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 1 Introduction to Perl and CGI.
1 NS-2 Tutorial COMP R2 University of Manitoba March 4, 2009.
What is GNU/Linux (Not Linux!)? David Sudjiman davidsudjiman (at) yahoo (dot) com The latest version of this document can.
Hp education services education.hp.com 85 System Crash Dump Version C.00 H4264S Module 9 Slides.
Introduction to the Omega Server CSE Overview Intro to Omega Basic Unix Command Files Directories Printing C and C++ compilers GNU Debugger.
DHCP -Ameeta and Haripriya -cmsc 691x. DHCP ► Dynamic Host Configuration Protocol ► It controls vital networking parameters of hosts with the help of.
Linux can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
Arcturus empower embedded. How To Setup Asterisk On the MCF54451 DRAFT – VERSION 0.5 January 6/08.
NDT Tools Tutorial: How-To setup your own NDT server Rich Carlson Summer 04 Joint Tech July 19, 2004.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
Linux Operations and Administration
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
1 Intro to Linux - getting around HPC systems Himanshu Chhetri.
1 Guide to Novell NetWare 6.0 Network Administration Chapter 11.
Potential Unix/Linux Questions March 25, 2014 Dr. Bob Mathis.
CENT 305 Information Systems Security Linux Introduction.
Apache Web Server v. 2.2 Reference Manual Chapter 1 Compiling and Installing.
1 Introduce Linux Speaker: Yi-Ji Jheng Date:
Introduction to Unix – CS 21
Introduction to Linux ( I ) Sidney Fong 4 th Feb 2006.
Linux Installation and Administration Lesson 3 Tutor: George Papamarkos.
Installing Asterisk Carl Davis Chief Architect, Stellar System Technologies Alex Vishnev Chief Technical Officer, ACN.
Booting Ubuntu Linux Live CSCI 130 – Fall 2008 Action Lab Dr. W. Jones.
AE6382 Secure Shell Usually referred to as ssh, the name refers to both a program and a protocol. The program ssh is one of the most useful networking.
Active-HDL Interfaces Debugging C Code Course 10.
Linux Administration. Pre-Install Different distributions –Redhat, Caldera, mandrake, SuSE, FreeBSD Redhat Server Install –Check HCL –Significant issues.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
Linux Introduction What is Linux? How do you use it?
Asterisk’s Installation Requirements Kernel source bison bison-devel ncurses ncurses-devel zlib zlib-devel openssl openssl-devel gnutls-devel gcc gcc-c++
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 13 FTP and Telnet.
MIPS Project -- Simics Yang Diyi Outline Introduction to Simics Simics Installation – Linux – Windows Guide to Labs – General idea Score Policy.
IT320 OPERATING SYSTEM CONCEPTS Unit 3: Welcome to Linux September 2012 Kaplan University 1.
Copyright © 2006, Zend Technologies Inc. John’s Top PECL Picks John Coggeshall.
PostgreSQL Installation By: Keerthi Nelaturu Previous version by Ahmed Jeddah & Miguel Garzon.
SKYPIAX, how to add Skype capabilities to FreeSWITCH (and Asterisk) CHICAGO, USA, September 2009.
Apache, MySQL and PHP Installation and Configuration Chapter 2 MySQL Installation and Configuration.
Debugging 1/6/2016. Debugging 1/6/2016 Debugging  Debugging is a methodical process of finding and reducing the number of bugs, or defects, in a program.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop I Introduction to Linux Professional Training Academy.
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
Installing Applications in FreeBSD lctseng. Computer Center, CS, NCTU 2 Before we start  Permission issue root: the super user Like administrator in.
Chapter Linux Basics. Acknowledgements This presentation was prepared by – Banyat Settapanich – Bahran Madaen This presentation will be updated later.
Gorman, Stubbs, & CEP Inc. 1 Introduction to Operating Systems Lesson 8 Linux.
Software Management Linux Software Package File Extensions Extension File.rpm Software package created with the Red Hat Software Package Manager, used.
Embedded Software Design Week II Linux Intro Linux Kernel.
Planning Server Deployments Chapter 1. Server Deployment When planning a server deployment for a large enterprise network, the operating system edition.
LINUX Zhengli Zhu, School of Life Sciences. Outline 1. ABC of Linux 2. Basic orers of Linux 3. Bash Programming.
Linux and Coldfusion MX Mid-Michigan Coldfusion User’s Group, Nov
C Copyright © 2006, Oracle. All rights reserved. Oracle Secure Backup Additional Installation Topics.
Chapter 7: Using Network Clients The Complete Guide To Linux System Administration.
Asterisk PBX. What is Asterisk ? A Full-featured open source (GPL) PBX for  Home users  Small to Medium Business  Enterprise  VoIP Service Providers.
Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree.
Installing Applications in FreeBSD
Development Environment Basics
Installation of MySQL Objectives Contents Practical Summary
How To Setup Asterisk On the MCF54451
Welcome to Linux Chap#1 Hanin Abdulrahman.
Andy Wang Object Oriented Programming in C++ COP 3330
The Linux Operating System
Introduction to Programming the WWW I
COP 4343 Unix System Administration
Andy Wang Object Oriented Programming in C++ COP 3330
Welcome to Linux Chap#1 Hanin Abdulrahman.
Video Notes.
Welcome to Linux Chap#1.
Presentation transcript:

October 10-13, 2006 San Diego Convention Center, San Diego California Installing Asterisk Carl Davis

October 10-13, 2006 San Diego Convention Center, San Diego California PREREQUISITES Asterisk distribution – asterisk tar provides SIP based VoIP Zaptel library – zaptel tar Digium hardware support PRI library – libpri tar supports ISDN PRI interfaces Asterisk Sounds distribution – asterisk sounds tar provides professionally recorded prompts for use in your asterisk system.

October 10-13, 2006 San Diego Convention Center, San Diego California More PREREQUISITES Linux distribution –RedHat Fedora Core (used in this presentation) –Debian –SuSE –Gentoo –Slackware –FreeBSD –And many more…

October 10-13, 2006 San Diego Convention Center, San Diego California And More PREREQUISITES GNU Compiler Collection (GCC), v3.0 or higher Make and bison – comes with most systems C library headers – glibc-devel package Curses graphics library – ncurses-devel package Secure Socket library – openssl-devel Zlib Compression library – zlib-devel Newt Windowing Toolkit – libnewt-devel for use with zttool and ztcfg, very useful utilities Doxygen documentation tool - doxygen

October 10-13, 2006 San Diego Convention Center, San Diego California Even More PREREQUISITES! Root login permissions Local or remote terminal console – telnet sessions work fine as long as the server allows root login from a telnet session. General knowledge of Linux commands –tar, ftp, cd and other administrative commands –Editor dujour (i.e.: vi, emacs, pico)

October 10-13, 2006 San Diego Convention Center, San Diego California And with All That Said… Now, with all that said, you really dont need this knowledge. Get the book Asterisk: The Future of Telephony from asteriskdocs.org, go to chapter 3 and type in each thing they have written. When you get into trouble, go to the Asterisk wiki at voip-info.org. You havent done anything that someone else hasnt already done. If you have, try for a prize. Ready to Start?

October 10-13, 2006 San Diego Convention Center, San Diego California Obtaining the Source Code FTP from asterisk.org These generally resolve to ftp.digium.com Mirror sites are available Current stable version of Asterisk is (10/2006) Asterisk 1.4 is in beta The transfer supplies tarballs, tar.gz compressed archives containing the necessary source Refer to asterisk.org for source code access via the Subversion source control system

October 10-13, 2006 San Diego Convention Center, San Diego California Extracting Source Code Copy the tar.gz archives into /usr/src Change directory, cd, to /usr/src Extract the source code from the archives –tar zxvf zaptel-*.tar.gz –tar zxvf libpri-*.tar.gz –tar zxvf asterisk-*.tar.gz The files will be extracted into their respective directories.

October 10-13, 2006 San Diego Convention Center, San Diego California Building Zaptel cd /usr/src/zaptel-* make clean zaptel-1.2.2]# make clean –rm -f torisatool makefw tor2fw.h radfw.h –rm -f ztcfg torisatool makefw ztmonitor ztspeed zttool zttest fxotune –rm -f *.o ztcfg tzdriver sethdlc sethdlc-new –… make zaptel-1.2.2]# make –cc -I. -O4 -g -Wall -DBUILDING_TONEZONE - DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o gendigits.o gendigits.c –cc -o gendigits gendigits.o -lm –./gendigits –ZAPTELVERSION="" build_tools/make_version_h > version.h.tmp –… make install

October 10-13, 2006 San Diego Convention Center, San Diego California Building libpri cd /usr/src/libpri-* make clean libpri-1.2.2]# make clean –rm -f *.o *.so *.lo *.so.1 *.so.1.0 –rm -f testpri testprilib libpri.a libpri.so.1.0 –rm -f pritest pridump –… make –CC=gcc./mkdep -Wall -Werror -Wstrict-prototypes -Wmissing- prototypes -g `ls *.c` –gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o copy_string.o copy_string.c –gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o pri.o pri.c –gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o q921.o q921.c –… make install

October 10-13, 2006 San Diego Convention Center, San Diego California Building Asterisk cd /usr/src/asterisk-* make clean make make install

October 10-13, 2006 San Diego Convention Center, San Diego California Installing Asterisk Asterisk Installation Complete YOU MUST READ THE SECURITY DOCUMENT Asterisk has successfully been installed. + + If you would like to install the sample + + configuration files (overwriting any + + existing config files), run: make samples + + +

October 10-13, 2006 San Diego Convention Center, San Diego California Installing Asterisk or You can go ahead and install the asterisk + + program documentation now or later run: make progdocs **Note** This requires that you have + + doxygen installed on your local system

October 10-13, 2006 San Diego Convention Center, San Diego California Installing Asterisk make samples –Installs the sample configuration files in the /etc/asterisk directory make progdocs –Installs the Asterisk program documentation. This uses doxygen to generate the documentation from the source and some areas are documented better than others make config –Configures the Linux system to execute Asterisk automatically on system startup

October 10-13, 2006 San Diego Convention Center, San Diego California Commonly Used CLI Options -c –Console. This allows you to connect to the Asterisk CLI. Example: asterisk -c -v –Verbosity. This is used to set the amount of output for CLI debugging. Example: asterisk –vc or asterisk -vvvvvvc -r –Remote. This is used to reconnect remotely to an already running Asterisk process. Example: asterisk -vr

October 10-13, 2006 San Diego Convention Center, San Diego California Starting Asterisk asterisk-1.2.2]# asterisk –vvvc == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Asterisk 1.2.2, Copyright (C) Digium, Inc. and others Created by Mark Spencer Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'show license' for details. ======================================================== == Parsing '/etc/asterisk/logger.conf': Found Asterisk Event Logger Started /var/log/asterisk/event_log == Parsing '/etc/asterisk/dnsmgr.conf': Found Asterisk Dynamic Loader loading preload modules: == Parsing '/etc/asterisk/modules.conf': Found == Manager registered action Ping == Manager registered action Hangup Asterisk Ready.

October 10-13, 2006 San Diego Convention Center, San Diego California Getting Help *CLI> help ! Execute a shell command abort halt Cancel a running halt add extension Add new extension into context add ignorepat Add new ignore pattern add queue member Add a channel to a specified queue ael debug contexts Enable AEL contexts debug ael debug macros Enable AEL macros debug …

October 10-13, 2006 San Diego Convention Center, San Diego California Starting Asterisk Service Re-Attaching to Asterisk Console If you ran the make config command earlier or manually copied the initialization scripts, use them to start Asterisk. Otherwise, run the executable from /usr/sbin. asterisk-1.2.2]# /etc/rc.d/init.d/asterisk start Starting asterisk: [ OK ] asterisk-1.2.2]# asterisk -vvvr == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Asterisk 1.2.2, Copyright (C) Digium, Inc. and others. Created by Mark Spencer Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'show license' for details. ========================================================= Connected to Asterisk currently running on stellar (pid = 20077) remote UNIX connection Verbosity is at least 3 stellar*CLI>

October 10-13, 2006 San Diego Convention Center, San Diego California Q&A Carl Davis President & Chief Architect Stellar System Technologies Executive Director High Tech Business Council of Rochester