Installing Asterisk on Mac OS X - step by step please

Dear friends - I spent the last 48 hours googling for a tutorial to install Asterisk (www.asterisk.org) on Mac OS X without much success.

What I need, given my limited knowledge and skills, is a set-by-step (literally) tutorial for doing the installation, configuring and then using Asterisk.

If anyone has the knowledge and the patience to explain this to me, no doubt it will be immensely beneficial to many users out there and should be the number 1 result to a Google search about this, in no time.

I love this community. Thank you very much.

Glossy 15'' MBP C2D 2.6GHz 4GB RAM 160GB 5400 rpm HD, Mac OS X (10.5.4), Apple Mighty Mouse, Apple Wireless Keyboard, 8GB iPhone, Nikon D80, TomTom One

Posted on Aug 6, 2008 11:01 AM

Reply
10 replies

Aug 6, 2008 12:48 PM in response to orangekay

Thank you for your note. Well, I downloaded Asterisk 1.6.0-beta9, uncompressed it and now I have this folder in my Downloads folder. In there I found a README file which reads:




1) Read this README file.

There are more documents than this one in the doc/ directory. You may also
want to check the configuration files that contain examples and reference
guides. They are all in the configs/ directory.

2) Run "./configure"

Execute the configure script to guess values for system-dependent
variables used during compilation.

3) Run "make menuselect" [optional]

This is needed if you want to select the modules that will be compiled and to
check dependencies for various optional modules.

4) Run "make"

Assuming the build completes successfully:

5) Run "make install"

If this is your first time working with Asterisk, you may wish to install
the sample PBX, with demonstration extensions, etc. If so, run:

6) "make samples"

Doing so will overwrite any existing configuration files you have installed.

Finally, you can launch Asterisk in the foreground mode (not a daemon) with:

# asterisk -vvvc

You'll see a bunch of verbose messages fly by your screen as Asterisk
initializes (that's the "very very verbose" mode). When it's ready, if
you specified the "c" then you'll get a command line console, that looks
like this:

*CLI>

You can type "help" at any time to get help with the system. For help
with a specific command, type "help <command>". To start the PBX using
your sound card, you can type "console dial" to dial the PBX. Then you can use
"console answer", "console hangup", and "console dial" to simulate the actions
of a telephone. Remember that if you don't have a full duplex sound card
(and Asterisk will tell you somewhere in its verbose messages if you do/don't)
then it won't work right (not yet).

"man asterisk" at the Unix/Linux command prompt will give you detailed
information on how to start and stop Asterisk, as well as all the command
line options for starting Asterisk.

Feel free to look over the configuration files in /etc/asterisk, where you
will find a lot of information about what you can do with Asterisk.








I ran ./configure in Terminal and I get this in return:

MBP:~ HK$ cd /Users/HK/Downloads/asterisk-1.6.0-beta9
MBP:asterisk-1.6.0-beta9 HK$ ./configure
checking build system type... i386-apple-darwin9.4.0
checking host system type... i386-apple-darwin9.4.0
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.



I have X11 and Fink installed (thinking that's the C compiler the program would need) but it doesn't help.

I found this computer about C compiler:
http://developer.apple.com/tools/gcc_overview.html

Aug 6, 2008 12:52 PM in response to orangekay

Absolutely agreed. 🙂

The log says:


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by asterisk configure 1.6, which was
generated by GNU Autoconf 2.61. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = MBP.local
uname -m = i386
uname -r = 9.4.0
uname -s = Darwin
uname -v = Darwin Kernel Version 9.4.0: Mon Jun 9 19:30:53 PDT 2008; root:xnu-1228.5.20~1/RELEASE_I386

/usr/bin/uname -p = i386
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 9.4.0: Mon Jun 9 19:30:53 PDT 2008; root:xnu-1228.5.20~1/RELEASE_I386
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 4.00 gigabytes
Default processor set: 78 tasks, 378 threads, 2 processors
Load average: 1.23, Mach factor: 1.00
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/X11/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2120: checking build system type
configure:2138: result: i386-apple-darwin9.4.0
configure:2160: checking host system type
configure:2175: result: i386-apple-darwin9.4.0
configure:2262: checking for gcc
configure:2292: result: no
configure:2359: checking for cc
configure:2406: result: no
configure:2462: checking for cl.exe
configure:2492: result: no
configure:2521: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac cvbuild=i386-apple-darwin9.4.0
ac cv_env_CCCset=
ac cv_env_CCCvalue=
ac cv_env_CCset=
ac cv_env_CCvalue=
ac cv_env_CFLAGSset=
ac cv_env_CFLAGSvalue=
ac cv_env_CPPFLAGSset=
ac cv_env_CPPFLAGSvalue=
ac cv_env_CPPset=
ac cv_env_CPPvalue=
ac cv_env_CXXCPPset=
ac cv_env_CXXCPPvalue=
ac cv_env_CXXFLAGSset=
ac cv_env_CXXFLAGSvalue=
ac cv_env_CXXset=
ac cv_env_CXXvalue=
ac cv_env_LDFLAGSset=
ac cv_env_LDFLAGSvalue=
ac cv_env_LIBSset=
ac cv_env_LIBSvalue=
ac cv_env_build_aliasset=
ac cv_env_build_aliasvalue=
ac cv_env_host_aliasset=
ac cv_env_host_aliasvalue=
ac cv_env_target_aliasset=
ac cv_env_target_aliasvalue=
ac cvhost=i386-apple-darwin9.4.0

## ----------------- ##
## Output variables. ##
## ----------------- ##

ALLOCA=''
ALSA_DIR=''
ALSA_INCLUDE=''
ALSA_LIB=''
AR=''
AST DECLARATION_AFTERSTATEMENT=''
AST_DEVMODE=''
AST NO_STRICTOVERFLOW=''
AWK=''
BASENAME=''
BKTR_DIR=''
BKTR_INCLUDE=''
BKTR_LIB=''
BUILD_CPU=''
BUILD_OS=''
BUILD_PLATFORM=''
BUILD_VENDOR=''
CAP_DIR=''
CAP_INCLUDE=''
CAP_LIB=''
CC=''
CFLAGS=''
COMPRESS=''
CONFIG_GMIME=''
CONFIG_GTK=''
CONFIG_NETSNMP=''
CONFIG_SDL=''
CPP=''
CPPFLAGS=''
CRYPTO_DIR=''
CRYPTO_INCLUDE=''
CRYPTO_LIB=''
CURL_CONFIG=''
CURL_DIR=''
CURL_INCLUDE=''
CURL_LIB=''
CURSES_DIR=''
CURSES_INCLUDE=''
CURSES_LIB=''
CXX=''
CXXCPP=''
CXXFLAGS=''
DEFS=''
DIRNAME=''
DOT=''
DOWNLOAD=''
ECHO C='ECHON=''
ECHO_T=''
EDITLINE_LIB=''
EGREP=''
EXEEXT=''
FETCH=''
FFMPEG_DIR=''
FFMPEG_INCLUDE=''
FFMPEG_LIB=''
FIND=''
FREETDS_DIR=''
FREETDS_INCLUDE=''
FREETDS_LIB=''
GC_CFLAGS=''
GC_LDFLAGS=''
GMIME_DIR=''
GMIME_INCLUDE=''
GMIME_LIB=''
GNU_LD=''
GNU_MAKE=''
GREP=''
GSM_DIR=''
GSM_INCLUDE=''
GSM_INTERNAL=''
GSM_LIB=''
GTK2_DIR=''
GTK2_INCLUDE=''
GTK2_LIB=''
GTK_DIR=''
GTK_INCLUDE=''
GTK_LIB=''
HAS_POLL=''
HOST_CPU=''
HOST_OS=''
HOST_PLATFORM=''
HOST_VENDOR=''
ICONV_DIR=''
ICONV_INCLUDE=''
ICONV_LIB=''
ID=''
IKSEMEL_DIR=''
IKSEMEL_INCLUDE=''
IKSEMEL_LIB=''
IMAP TKDIR=''
IMAP TKINCLUDE=''
IMAP TKLIB=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
ISDNNET_DIR=''
ISDNNET_INCLUDE=''
ISDNNET_LIB=''
JACK_DIR=''
JACK_INCLUDE=''
JACK_LIB=''
KPATHSEA=''
LD=''
LDAP_DIR=''
LDAP_INCLUDE=''
LDAP_LIB=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LN=''
LN_S=''
LTDL_DIR=''
LTDL_INCLUDE=''
LTDL_LIB=''
LTLIBOBJS=''
LUA_DIR=''
LUA_INCLUDE=''
LUA_LIB=''
MISDN_DIR=''
MISDN_INCLUDE=''
MISDN_LIB=''
NBS_DIR=''
NBS_INCLUDE=''
NBS_LIB=''
NCURSES_DIR=''
NCURSES_INCLUDE=''
NCURSES_LIB=''
NETSNMP_DIR=''
NETSNMP_INCLUDE=''
NETSNMP_LIB=''
NEWT_DIR=''
NEWT_INCLUDE=''
NEWT_LIB=''
OBJEXT=''
OGG_DIR=''
OGG_INCLUDE=''
OGG_LIB=''
OPENH323DIR=''
OPENH323_BUILD=''
OPENH323_DIR=''
OPENH323_INCDIR=''
OPENH323_INCLUDE=''
OPENH323_LIB=''
OPENH323_LIBDIR=''
OPENH323_SUFFIX=''
OPENSSL_DIR=''
OPENSSL_INCLUDE=''
OPENSSL_LIB=''
OSARCH=''
OSPTK_DIR=''
OSPTK_INCLUDE=''
OSPTK_LIB=''
OSS_DIR=''
OSS_INCLUDE=''
OSS_LIB=''
PACKAGE_BUGREPORT='www.asterisk.org'
PACKAGE_NAME='asterisk'
PACKAGE_STRING='asterisk 1.6'
PACKAGE_TARNAME='asterisk'
PACKAGE_VERSION='1.6'
PATH_SEPARATOR=':'
PBX_ALSA=''
PBX_BKTR=''
PBX_CAP=''
PBX_CRYPTO=''
PBX_CURL=''
PBX_CURSES=''
PBX_FFMPEG=''
PBX_FREETDS=''
PBX_GMIME=''
PBX_GSM=''
PBX_GTK2=''
PBX_GTK=''
PBX_H323=''
PBX_ICONV=''
PBX_IKSEMEL=''
PBX IMAPTK=''
PBX IP_MTUDISCOVER=''
PBX_ISDNNET=''
PBX_IXJUSER=''
PBX_JACK=''
PBX_LDAP=''
PBX_LTDL=''
PBX_LUA=''
PBX_MISDN=''
PBX MISDN_FACERROR=''
PBX MISDN_FACRESULT=''
PBX_NBS=''
PBX_NCURSES=''
PBX_NETSNMP=''
PBX_NEWT=''
PBX_OGG=''
PBX_OPENH323=''
PBX_OPENSSL=''
PBX_OSPTK=''
PBX_OSREV=''
PBX_OSS=''
PBX_PGSQL=''
PBX_POPT=''
PBX_PORTAUDIO=''
PBX_PRI=''
PBX PTHREAD_RECURSIVE_MUTEX_INITIALIZERNP=''
PBX PTHREAD_RWLOCKINITIALIZER=''
PBX_PWLIB=''
PBX_RADIUS=''
PBX RTLDNOLOAD=''
PBX_SDL=''
PBX SDLIMAGE=''
PBX_SPEEX=''
PBX_SPEEXDSP=''
PBX SPEEXPREPROCESS=''
PBX_SQLITE3=''
PBX_SQLITE=''
PBX_SS7=''
PBX_SUPPSERV=''
PBX_TERMCAP=''
PBX_TINFO=''
PBX_TONEZONE=''
PBX_UNIXODBC=''
PBX_USB=''
PBX_VORBIS=''
PBX_VPB=''
PBX_X11=''
PBX_ZAPTEL=''
PBX ZAPTELECHOCANPARAMS=''
PBX ZAPTELHWGAIN=''
PBX ZAPTELNEONMWI=''
PBX ZAPTEL_SIGMTP2=''
PBX ZAPTELTRANSCODE=''
PBX ZAPTELVLDTMF=''
PBX_ZLIB=''
PGSQL_DIR=''
PGSQL_INCLUDE=''
PGSQL_LIB=''
PG_CONFIG=''
PKGCONFIG=''
POPT_DIR=''
POPT_INCLUDE=''
POPT_LIB=''
PORTAUDIO_DIR=''
PORTAUDIO_INCLUDE=''
PORTAUDIO_LIB=''
POW_LIB=''
PRI_DIR=''
PRI_INCLUDE=''
PRI_LIB=''
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
PTLIB_CONFIG=''
PWLIBDIR=''
PWLIB_DIR=''
PWLIB_INCDIR=''
PWLIB_INCLUDE=''
PWLIB_LIB=''
PWLIB_LIBDIR=''
PWLIB_PLATFORM=''
RADIUS_DIR=''
RADIUS_INCLUDE=''
RADIUS_LIB=''
RANLIB=''
RUBBER=''
SDL_DIR=''
SDL IMAGEDIR=''
SDL IMAGEINCLUDE=''
SDL IMAGELIB=''
SDL_INCLUDE=''
SDL_LIB=''
SED=''
SHELL='/bin/sh'
SOXMIX=''
SPEEXDSP_DIR=''
SPEEXDSP_INCLUDE=''
SPEEXDSP_LIB=''
SPEEX_DIR=''
SPEEX_INCLUDE=''
SPEEX_LIB=''
SQLITE3_DIR=''
SQLITE3_INCLUDE=''
SQLITE3_LIB=''
SQLITE_DIR=''
SQLITE_INCLUDE=''
SQLITE_LIB=''
SS7_DIR=''
SS7_INCLUDE=''
SS7_LIB=''
STRIP=''
SUPPSERV_DIR=''
SUPPSERV_INCLUDE=''
SUPPSERV_LIB=''
TERMCAP_DIR=''
TERMCAP_INCLUDE=''
TERMCAP_LIB=''
TINFO_DIR=''
TINFO_INCLUDE=''
TINFO_LIB=''
TONEZONE_DIR=''
TONEZONE_INCLUDE=''
TONEZONE_LIB=''
UNAME=''
UNIXODBC_DIR=''
UNIXODBC_INCLUDE=''
UNIXODBC_LIB=''
USB_DIR=''
USB_INCLUDE=''
USB_LIB=''
VORBIS_DIR=''
VORBIS_INCLUDE=''
VORBIS_LIB=''
VPB_DIR=''
VPB_INCLUDE=''
VPB_LIB=''
WGET=''
WINARCH=''
X11_DIR=''
X11_INCLUDE=''
X11_LIB=''
ZAPTEL_DIR=''
ZAPTEL_INCLUDE=''
ZAPTEL_LIB=''
ZLIB_DIR=''
ZLIB_INCLUDE=''
ZLIB_LIB=''
ac ctCC=''
ac ctCXX=''
acx pthreadconfig=''
bindir='${exec_prefix}/bin'
build='i386-apple-darwin9.4.0'
build_alias=''
build_cpu='i386'
build_os='darwin9.4.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i386-apple-darwin9.4.0'
host_alias=''
host_cpu='i386'
host_os='darwin9.4.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program transformname='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "asterisk"
#define PACKAGE_TARNAME "asterisk"
#define PACKAGE_VERSION "1.6"
#define PACKAGE_STRING "asterisk 1.6"
#define PACKAGE_BUGREPORT "www.asterisk.org"
#define GNUSOURCE 1

configure: exit 1

Sep 11, 2008 7:10 AM in response to HK

Really, far and away the simplest way is to install it from macports:

1. go to http://www.macports.org/install.php, download the disk image file for your OS version, mount and install macports base software from the disk image.

2. open Terminal, type "sudo port selfupdate" to bring macports up to the minute.

3. type "sudo port install asterisk".

At this point, asterisk is installed in /opt/local/...

4. open your favorite text editor and create a file called "/opt/local/etc/asterisk.conf" (to set startup pointers to the rest of asterisk's files).

5. type (or copy and paste 😉 the following into the file:

\[directories\]
astetcdir => /opt/local/etc/asterisk
astspooldir => /opt/local/var/spool/asterisk
astvarlibdir => /opt/local/var/lib/asterisk
astdatadir => /opt/local/var/lib/asterisk
astlogdir => /opt/local/var/log/asterisk
astagidir => /opt/local/var/lib/asterisk/agi-bin
astrundir => /opt/local/var/run
astmoddir => /opt/local/lib/asterisk/modules

6. (optional) edit your shell profile file (~/.profile) to include the path to the /opt/local/bin directory: add a line at the end:

export $PATH=$PATH:/opt/local/bin

This lets you find binary files in /opt/local in addition to the other standard Unix directories.

7. now launch asterisk: "sudo asterisk -c -C /opt/local/etc/asterisk.conf"

8. To actually make asterisk do things, you need to edit files in /opt/local/etc/asterisk. There are sample versions of all the necessary files there. In addition you can get reams of information from:

(book) http://cachefly.oreilly.com/books/9780596510480.pdf

(website) http://www.voip-info.org/

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Installing Asterisk on Mac OS X - step by step please

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.