0% found this document useful (0 votes)
77 views7 pages

Asterisk Installation Guide

This document provides instructions for installing and configuring Asterisk on a Linux system. It outlines downloading and compiling Asterisk from source, installing dependencies like MySQL and PHP, and configuring files like sip.conf, extension.conf, cdr_mysql.conf, and voicemail.conf to set up SIP trunks, dial plans, call reporting, and voicemail.

Uploaded by

innovativekalu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views7 pages

Asterisk Installation Guide

This document provides instructions for installing and configuring Asterisk on a Linux system. It outlines downloading and compiling Asterisk from source, installing dependencies like MySQL and PHP, and configuring files like sip.conf, extension.conf, cdr_mysql.conf, and voicemail.conf to set up SIP trunks, dial plans, call reporting, and voicemail.

Uploaded by

innovativekalu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 7

Asterisk installation Guide

Step 1.
At firs install asterisk dependency
apt-get update
apt-get upgrade
apt-get install linux-headers- `uname -r`
apt-get install build-essential
apt-get install libssl-dev
apt-get install ncurses-dev
apt-get install libnewt-dev
apt-get install bison
apt-get install libxml2-dev
apt-get install libsqlite3-dev
apt-get install sqlite3
apt-get install wget
apt-get install subversion
apt-get install ntp
apt-get install zip
apt-get install sysv-rc-conf
apt-get install php-pear
pear install DB

#MYSQL INSTALL
apt-get install mysql-server
apt-get install libmysqlclient-dev
# ODBC CONNECTION

apt-get install unixODBC-dev


apt-get install libmyodbc
apt-get install unixODBC
apt-get install lame

#INSTALL PHP
apt-get install apache2
apt-get install php5
apt-get install php5-mysql
apt-get install phpmyadmin
Download Source
#cd /usr/src
#wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz
#tar -zxvf asterisk-11-current.tar.gz

"Compile asterisk"
#cd asterisk-11-current
#cd /contrib/scripts/
#./install_prereq install

#cd /usr/src/asterisk-11-current
#./configure
#make clean
#make menuselect
#make
#make install
#make samples

sip.conf
[general]
register => 111111:39652@119.40.X.X/111111
allowoverlap=yes

; Disable overlap dialing support. (Default is yes)

udpbindaddr=0.0.0.0

; IP address to bind UDP listen socket to (0.0.0.0 binds to all)

tcpenable=no
tcpbindaddr=0.0.0.0

; Enable server for incoming TCP connections (default is no)


; IP address for TCP server to bind to (0.0.0.0 binds to all interfaces)

transport=udp

; Set the default transports. The order determines the primary default transport.

srvlookup=yes

; Enable DNS SRV lookups on outbound calls

videosupport=yes
progressinband=yes
silencesuppression=no
;insecure=invite,port
allowtransfer=yes
alwaysauthreject=yes
allowguest=no

[1112]
type=friend
callerid=1112
username=1112
host= dynamic
secret=abc123123
dtmfmode=rfc2833

insecure=invite,port
canreinvite=yes
nat=force_rport
qualify=yes
context=incoming
allow=ulaw
allow=alaw
[1111]
type=friend
callerid=1111
username=1111
host= dynamic
secret=abc123123
dtmfmode=rfc2833
insecure=invite,port
canreinvite=yes
nat=force_rport
qualify=yes
context=incoming
allow=ulaw
allow=alaw
Dialplan Configure
extension.conf
[general]
static=yes
writeprotect=yes
;autofallthrough=no

clearglobalvars=no
;priorityjumping=yes
[incoming]
exten => 900,1,VoicemailMain(s${CALLERID(num)})
same => n,Hangup()
exten => _XXXX,1,Dial(SIP/${EXTEN},30)
same => n,Hangup()
;Local Mobile and PSTN..... Outgoing ....
exten => _XXXXXX,1,Dial(SIP/kotha-sip-account/${EXTEN},30)
same => n,Hangup()
exten => _0Z.,1,Dial(SIP/kotha-sip-account/${EXTEN},30)
same => n,Hangup()
exten => _+880Z.,1,Dial(SIP/kotha-sip-account/${EXTEN:3},30)
same => n,Hangup()

exten => _00.,1,Dial(SIP/kotha-sip-account/${EXTEN},30)


same => n,Hangup()
exten => 0,1,Answer()
same => n,Dial(SIP/101,30)
;same => n,Playback(vm-sorry)
;exten => 101,1,Answer()
;same => n,Playback(invalid)

[from-kotha]
exten => 111111,1,Answer()

same => n,Wait(1)


same => n,BackGround(/var/lib/asterisk/sounds/en/welcome,3,incoming)
same => n,Read(pn,,3)
same => n,GotoIf($[${ISNULL(${pn})}]?:continue)
same => n,Goto(3)
same => n(continue),Goto(incoming,${pn},1)
exten => _XXX,1,Goto(incoming,${EXTEN},1)

exten => 0,1,Goto(incoming,${EXTEN},1)


exten => i,1,NoOp(An invalid number ${INVALID_EXTEN} was dialed.)
exten => i,2,Answer()
exten => i,3,Playback(invalid)
exten => i,4,Hangup()

cdr_mysql.conf
[global]
hostname=localhost
dbname=asterisk
table=cdr
password=xyz
user=root
port=3306
sock= /var/run/mysqld/mysqld.sock
Voicemail configure
voicemail.conf

[general]
searchcontexts=yes
maxmessage=120

format=wav49|wav
serveremail=asterisk
attach=no
skipms=3000
maxsilence=10
silencethreshold=128
maxlogins=3

[default]
1111 => 1234,1112,root@xyz.com
1112 => 1234,1112,root@xyz.com

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy