Escolar Documentos
Profissional Documentos
Cultura Documentos
Install properly for ISO (burn to a CD) Configure correct hostname, username and IP Configure proper disk partitions
Use Use Use Use 1 GB for SWAP 10 GB at most for / just about enough for /home the rest of the space for /var
Use single or multiple network cards Each may have lots of virtual IPs Linux treats all IPs, virtual or physical, pretty much the same Configure proper IP, route and DNS
IP configurations in file /etc/network/interfaces DNS configurations in file /etc/resolv.conf
Pre-requisites for DAHDI Pre-requisites for Asterisk Asterisk installation from source codes Basic Asterisk administration
Get dahdi-linux-complete 2.4.1.2 from http://www.asterisk.org PRI device requires libpri (1.4.11.5), get it also from http://www.asterisk.org Extract, compile and install libpri first Extract, compile and install dahdi-linuxcomplete Installation process will download firmware files from Internet
Get latest asterisk 1.8.4.3 from http://www.asterisk.org Extract, compile and install asterisk
Sounds are downloaded from installation script Add-ons are configured from installation script Installation process will download sound files and some other libraries (iLBC and MP3 if selected) from Internet
LibPRI
# tar zxf libpri-1.4.11.5.tar.gz # cd libpri-1.4.11.5 # make && make install tar zxf dahdi-linux-complete.-2.4.1.2tar.gz cd dahdi-linux-complete-2.4.1.2 make make install make config
Asterisk
# # # # # # #
tar zxf asterisk-1.8.4.3.tar.gz cd asterisk-1.8.4.3 ./configure make menuconfig make make install make samples
Asterisk folders
/etc/asterisk /var/spool/asterisk /var/log/asterisk /var/lib/asterisk /usr/lib/asterisk
Configuration files
All configuration files are inside /etc/asterisk
Dialplans Accounts Voicemail : extensions.conf : sip.conf, iax.conf : voicemail.conf
Contexts are the heart of asterisk configurations Context is a grouping label for a set of options Context may have multiple interpretation, it is depend on where the context reside Context format:
[context] option=value option=value
SIP accounts are configured in sip.conf IAX2 accounts are configured in iax.conf Context format are used to define a peer, a user or a friend Account type peer are defining trunks, the other end is a gateway or not a user Account type user are defining the other end is a user agent (UA). UA will be registered to our asterisk Account type friend are defining both a peer and a user Example:
[voiprakyat] username=10001 secret=mypwd123 type=peer context=from-trunk
Example:
[from-trunk] exten = _9X.,1,Dial(DAHDI/g0/${EXTEN:1})
SIP commands:
sip sip sip sip sip
show peer <peer/ext. number> show user <user/ext. number> show peers show users set debug <options>
Thank you