Toto je starší verze dokumentu!
Asterisk
Info
YUM install
[atrpms] name=Centos $releasever - $basearch - ATrpms baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms gpgcheck=1
yum install asterisk-moh* asterisk-*sounds* asterisk asterisk-addons*
Download
yum install gcc ncurses-devel libtermcap-devel kernel-devel kernel-smp-devel gcc-c++ openssl-devel newt-devel zlib-devel unixODBC-devel libtool makecd /usr/src/ wget http://downloads.digium.com/pub/asterisk/asterisk-1.6.1-current.tar.gz wget http://downloads.digium.com/pub/libpri/libpri-1.6.1-current.tar.gz wget http://downloads.digium.com/pub/zaptel/zaptel-1.6.1-current.tar.gz
configure
- spustit konfigurace
make clean ./configure --prefix=/usr/local/asterisk/1.6.x --with-sqlite --with-postgresql make menuselect make make install make samples make progdocs make config
/etc/asterisk
sip.conf
[general]
port = 5060 ; Port to bind to
context = svarov ; Default context for incoming calls
disallow=all ; need to disallow=all before we can use allow=
allow=gsm ; Note: In user sections the order of codecs
allow=ulaw
tos=lowdelay
dtmfmode=auto ; Set default dtmfmode for sending DTMF. Default: rfc2833
bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes ; Enable DNS SRV lookups on outbound calls
; Note: Asterisk only uses the first host
; in SRV records
; Disabling DNS SRV lookups disables the
; ability to place SIP calls based on domain
; names to some other SIP users on the Internet
register => 245001001:h45bb1j25l@test.ha-loo.cz/245001001
[1000]
# peer: pro použití ve funkci Dial()
# user:
# friend: peer a user
type=friend
context=phones
# IP adresa klienta nebo dynamic
host=dynamic
secret=heslo_pro_prihlaseni
[havel]
type=peer
host=test.ha-loo.cz
username=245001001
secret=h45bb1j25l
fromuser=245001001
fromdomain=test.ha-loo.cz
canrenvite=no
insecure=invite
qualify=30000
nat=yes
dtmfmode=rfc2833
context=svarov ; this section will be defined in extensions.conf
disallow=all
allow=gsm
allow=ulaw
