Asterisk

Fra SemarkIT
Skift til: Navigation, Søgning

Jensen HFC-PCI chips:

**** zaptel.conf ****
# hfc-s pci a span definition
# most of the values should be bogus because we are not really zaptel
loadzone=nl
defaultzone=nl
#
span=1,1,3,ccs,ami
bchan=1-2
dchan=3
**** zapata.conf ****
; Zapata telephony interface
;
; Configuration file
[channels]
;
; Default language
;
;language=en
 
; Default context
;
;
switchtype = euroisdn
; p2mp TE mode
signalling = bri_cpe_ptmp

; p2p TE mode
;signalling = bri_cpe
; p2mp NT mode
;signalling = bri_net_ptmp
; p2p NT mode
;signalling = bri_net

pridialplan = dynamic
prilocaldialplan = local
nationalprefix = 0
internationalprefix = 00

echocancel=yes
echotraining = 100
echocancelwhenbridged=yes

immediate=yes
group = 1
context=demo
channel => 1-2

Compile Zaptel

apt-get install zaptel-source
tar -jxf zaptel.tar.bz2
cd modules/zaptel/
m-a a-i zaptel

# if you have zaptel hardware:
genzaptelconf -sdvM
/etc/init.d/zaptel start

Generelt HUSK

localnet=192.168.0.0/255.255.255.0
externip=90.184.xxx.xxx
nat=yes

allowguest=no


Lydfiler

apt-get install libsox-fmt-gsm
sox from.wav to.wav rate -v 8000 remix -
sox from.wav to.gsm rate -v 8000 remix -
/usr/share/asterisk/sounds/custom/

UDP test

netcat -u -v -w 1 host port

Fax (still testing -- do not use yet)

get:
http://sf.net/projects/agx-ast-addons
(command: wget -c http://downloads.sourceforge.net/project/agx-ast-addons/precompiled-linux-spandsp-app-fax.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fagx-ast-addons%2F&ts=1332079313&use_mirror=kent)
tar -jxf precompiled-linux-spandsp-app-fax.tar.bz2
ldd *
sudo cp *.so /usr/lib/asterisk/modules/
Personlige værktøjer
Navnerum

Varianter
Handlinger
Navigation
Værktøjer