Links
Recent blog posts
Links
MODULE ONE - Asterisk Installation
Get the source code from the Subversion repository:
http://svn.digium.com/svn/libpri/
http://svn.digium.com/svn/zaptel/
http://svn.digium.com/svn/asterisk/
http://svn.digium.com/svn/asterisk-addon/
The asterisk has to be compiled on the following order.
1) libpri and/or
2) zaptel
3) asterisk
Once everything is downloaded to the PC, to be more profession copy the tar.gz files to /usr/src and extract using command tar -zxvf .This will extract the files on the specified folder. According to the order specified above change directory and follow these steps
FOR LIBPRI
cd /usr/src/libpri-X.X.X
make && make install
FOR ZAPTEL
cd /usr/src/zaptel-X.X.X
./configure => to have the Autoconf system check your system for the required system libraries
make menuselect => this will give a menu of which module to compile
make => to compile zaptel
make install => to install the zaptel modules
make config => to install the set of init scripts
Note : In the past, linx 2.4 we needed a symbolic link for the kernel source i.e ln -l /usr/src/'uname -r' /usr/src/linux-2.4
FOR ASTERISK
cd /usr/src/asterisk-X.X.X
./configure => to have the Autoconf system check your system for the required system libraries
make menuselect => this will give a menu of which module to compile
Note: Make any required changes e.g remove pbx_ael and add extra sounds
make => to compile asterisk
make install => to install asterisk and compiled modules
make samples => to insall sample config files
make config => to install the set of init scripts
Now you can have your system with the asterisk system installed. The directories used by asterisk
/usr/bin/asterisk
/etc/asterisk => asterisk configuration files
/usr/lib/asterisk/modules/ => contains loadable modules
/var/lib/asterisk/sounds/ =>has a set of sound prompts recorded by Allison.
/var/lib/asterisk/moh => contains music on hold files
/var/lib/asterisk/ => Asterisk "Registry" information
/var/spool/asterisk/ => call informations, voicemail and user greetings
/var/log/asterisk => logs
/var/log/asterisk/cdr-csv/ => CDRs in CSV format.
commands to start and stop asterisk and zaptel
service zaptel start|stop|restart|status
service asterisk start|stop|restart|status
Note : always start zaptel before asterisk and always stop asterisk before zaptel.
Asterisk starts as a daemon except when started with the special command.
#asterisk -c (for startup debugging problem)
#/etc/rc.d/init.d/asterisk (linux startup script)
#/usr/sbin/asterisk (start daemon directly)
#safe_asterisk (restart automatically if fails)
NOTE: the normal startup scripts run asterisk from the "safe_asterisk" script so that asterisk automatically restart on most error conditions.
#/usr/sbin/asterisk -vvvr (connects to the asterisk CLI with verbosity level 3).
some asterisk starting options
-r (reconnect to the running daemon)
-v (set the verbosity level)
-c (start in console mode instead of daemon)
-d (set the debug level)
-rx "restart now " (Execute asterisk CLI command)
for more try #/usr/sbin/asterisk -h
some asterisk CLI> commands
quit
stop now
core set verbose 3
help stop
core show applications
core show application dial
core show functions
core show function LEN
!ls ...etc..etc.....
for more try help
- CcR's blog
- Login or register to post comments