{{page>:menu}}
====== Asterisk ======
===== Info =====
*http://www.asterisk.org/downloads - [[https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions|verze a podpora]]
*http://astbook.asteriskdocs.org/
*http://www.astlinux.org/
*[[http://www.abclinuxu.cz/serialy/asterisk-voip-ustredna|Seriál na ABCLinuxu]]
*[[http://asterisk.hosting.lv/|Codec G729]]
===== YUM instalace =====
*nainstalovat **CentOS 5 32bit**
*[[https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages#AsteriskPackages-Prerequisites|CentOS instalace]]
*''wget -O /etc/yum.repos.d/centos-asterisk.repo http://packages.asterisk.org/centos/centos-asterisk.repo''
*''yum install asterisk18'' nebo\\ '' yum install asterisk18-core asterisk18-voicemail asterisk18-snmp asterisk18-sqlite3 astee asterisk18-ogg asterisk18-doc asterisk18-curl asterisk18-configs asterisk18-alsa asterisk18-addons-ooh323 asterisk18-addons-core''
===== Download =====
*''yum install gcc ncurses-devel libtermcap-devel kernel-devel kernel-smp-devel gcc-c++ openssl-devel newt-devel zlib-devel unixODBC-devel libtool make''
*cd /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 konfiguracemake 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]
# type: 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
====== Well provisioning ======
===== DSS key =====
==== BLF ====
[ memoryxx ]
path = /config/vpPhone/vpPhone.ini
Line = 0
type = blf
Value = cislo
KEY_MODE = Asterisk
HotNumber =
HotLineId = 1
Callpickup =
IntercomId = -1
IntercomNumber =
DKtype = 16
PickupValue = cislo
==== speed dial ====
[ memoryx ]
path = /config/vpPhone/vpPhone.ini
Line = 0
type =
Value = cislo
KEY_MODE = Asterisk
HotNumber =
HotLineId = 1
Callpickup =
IntercomId = -1
IntercomNumber =
DKtype = 13
PickupValue =