Podrška #14138
ZatvorenRMLH, voip server, asterisk.rmlh.ba
Dodano od Jasmin Beganović prije više od 16 godina. Izmjenjeno prije oko 16 godina.
100%
Opis
instalacija i podešenje
Povezani tiketi 2 (0 otvoreno — 2 zatvorenih)
Izmjenjeno od Jasmin Beganović prije više od 16 godina
root@rmlh-1:~# vzctl create 202 --ostemplate ubuntu-8.04-webmin-i386 --hostname asterisk.rmlh.ba --ipadd 192.168.45.158 Creating VE private area (ubuntu-8.04-webmin-i386) Performing postcreate actions VE private area was created root@rmlh-1:~#
Izmjenjeno od Jasmin Beganović prije više od 16 godina
pokrenuta sesija
root@rmlh-1:~# vzctl start 202 Starting VE ... VE is mounted Adding IP address(es): 192.168.45.158 Setting CPU units: 1000 Configure meminfo: 65536 Set hostname: asterisk.rmlh.ba VE start in progress...
Izmjenjeno od Jasmin Beganović prije više od 16 godina
nakon poodešenja ns.rmlh.ba setovao asterisk sesiji taj ns
root@rmlh-1:~# vzctl set 202 --nameserver 192.168.45.157 --save File resolv.conf was modified Saved parameters for VE 202 root@rmlh-1:~#
Izmjenjeno od Jasmin Beganović prije više od 16 godina
Izmjenjeno od Jasmin Beganović prije više od 16 godina
root@asterisk:/etc/default# vi /etc/default/asterisk
RUNASTERISK=yes AST_REALTIME=no
Izmjenjeno od Jasmin Beganović prije više od 16 godina
provjerio na hostu rmlh-1 dali imaju potrebni capi fajlovi u dev-u
root@rmlh-1:~# ls -al /dev/capi*
crw-rw---- 1 root dialout 68, 0 2008-05-07 13:47 /dev/capi20
dodao
root@rmlh-1:~# mknod -m 666 /dev/capi20.00 c 68 1 root@rmlh-1:~# mknod -m 666 /dev/capi20.01 c 68 2 root@rmlh-1:~# mknod -m 666 /dev/capi20.02 c 68 3
ownership !OK kod novih fajlova
root@rmlh-1:~# ls -al /dev/capi*
crw-rw---- 1 root dialout 68, 0 2008-05-07 13:47 /dev/capi20 crw-rw-rw- 1 root root 68, 1 2008-05-07 13:51 /dev/capi20.00 crw-rw-rw- 1 root root 68, 2 2008-05-07 13:51 /dev/capi20.01 crw-rw-rw- 1 root root 68, 3 2008-05-07 13:51 /dev/capi20.02
sredio ownership
root@rmlh-1:~# chown root:dialout /dev/capi20*
provjerio
root@rmlh-1:~# ls -al /dev/capi*
crw-rw---- 1 root dialout 68, 0 2008-05-07 13:47 /dev/capi20 crw-rw-rw- 1 root dialout 68, 1 2008-05-07 14:27 /dev/capi20.00 crw-rw-rw- 1 root dialout 68, 2 2008-05-07 14:27 /dev/capi20.01 crw-rw-rw- 1 root dialout 68, 3 2008-05-07 14:27 /dev/capi20.02
sada to isto treba i na vz sesiji asteriska
Izmjenjeno od Jasmin Beganović prije više od 16 godina
root@asterisk:/etc/default# ls -l /dev/capi*
crw-rw---- 1 root dialout 68, 0 May 7 13:56 /dev/capi20 crw-rw---- 1 root dialout 68, 1 May 7 13:56 /dev/capi20.00 crw-rw---- 1 root dialout 68, 2 May 7 13:56 /dev/capi20.01 crw-rw---- 1 root dialout 68, 3 May 7 13:56 /dev/capi20.02
Izmjenjeno od Jasmin Beganović prije više od 16 godina
sada treba u config vz sesije ubaciti
DEVICES="c:68:0:rw, c:68:1:rw, c:68:2:rw"
Izmjenjeno od Jasmin Beganović prije više od 16 godina
dodao
root@rmlh-1:/etc/vz/conf# vi 202.conf
DEVICES="c:68:0:rw, c:68:1:rw, c:68:2:rw"
provjerio
root@rmlh-1:/etc/vz/conf# cat 202.conf | grep DEVICES
DEVICES="c:68:0:rw, c:68:1:rw, c:68:2:rw" startam sesiju
root@rmlh-1:/etc/vz/conf# vzctl start 202
Starting VE ...
VE is mounted
Izmjenjeno od Jasmin Beganović prije više od 16 godina
malo mi je misterija šta dalje . kako provjeriti
Izmjenjeno od Jasmin Beganović prije više od 16 godina
ovom ću se posvetiti nakon doručka
Izmjenjeno od Jasmin Beganović prije više od 16 godina
iskopirao zadnji bristuff na asterisk
bjasko@n-book-bjasko-1:~/Desktop$ scp bristuff-0.4.0-test6.tar.gz root@192.168.45.156:/usr/src root@192.168.45.158's password: bristuff-0.4.0-test6.tar.gz 100% 292KB 291.7KB/s 00:00 bjasko@n-book-bjasko-1:~/Desktop$
Izmjenjeno od Jasmin Beganović prije više od 16 godina
otpakovao
/usr/src# tar xvzf bristuff-0.4.0-test6.tar.gz
Izmjenjeno od Jasmin Beganović prije više od 16 godina
pokušao make clean
make: *** No rule to make target `clean'. Stop.
pokušaću instalirati build essentials
sudo apt-get install build-essential
Izmjenjeno od Jasmin Beganović prije više od 16 godina
i dalje make: *** No rule to make target `clean'. Stop.
Izmjenjeno od Jasmin Beganović prije više od 16 godina
pročitaću da vidim šta su prerequirements
Izmjenjeno od Jasmin Beganović prije više od 16 godina
http://updates.xorcom.com/astribank/bristuff/INSTALL.html
1. Compiling/installing 1.1. Short Version wget http://updates.xorcom.com/astribank/bristuff/1.4/bristuff-current.tgz tar xvzf bristuff-current.tgz # change into the directory. May vary by between versions: cd bristuff-0.4.0-test4 # Install prerequirements. At the moment only works on Debian and # CentOS: ./prereq.sh install # downloads, builds and installs everything: ./install.sh # Alternatively, use ./compile.sh to just repeat build phase. # Two optional steps: # 1. If you have not installed asterisk and Zaptel on that system yet # set it up: ./config.sh # 2. Generate Zaptel configuration to match your system. If you have # an Astribank, connect it to your system first: genzaptelconf -svdM
root@rmlh-1:/usr/src/bristuff-0.4.0-test6# ./prereq.sh install
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: daemon Use 'apt-get autoremove' to remove them. The following extra packages will be installed: m4 Suggested packages: bison-doc The following NEW packages will be installed: bison m4 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 620kB of archives. After this operation, 2040kB of additional disk space will be used. Get:1 http://archive.sigma-com.net hardy/main m4 1.4.10-1 [250kB] Get:2 http://archive.sigma-com.net hardy/main bison 1:2.3.dfsg-5 [370kB] Fetched 620kB in 0s (860kB/s) Selecting previously deselected package m4. (Reading database ... 55958 files and directories currently installed.) Unpacking m4 (from .../archives/m4_1.4.10-1_amd64.deb) ... Selecting previously deselected package bison. Unpacking bison (from .../bison_1%3a2.3.dfsg-5_amd64.deb) ... Setting up m4 (1.4.10-1) ... Setting up bison (1:2.3.dfsg-5) ... ############################################# ## install completed successfully ############################################# root@rmlh-1:/usr/src/bristuff-0.4.0-test6#
Izmjenjeno od Jasmin Beganović prije više od 16 godina
root@rmlh-1:/usr/src/bristuff-0.4.0-test6# ./install.sh
Izmjenjeno od Jasmin Beganović prije više od 16 godina
još dependency-a
apt-get install build-essential bison libncurses-dev libusb-dev usbutils fxload
Izmjenjeno od Jasmin Beganović prije više od 16 godina
pri pokretanju configa vidio da je kartica prepoznata
I think that the zaptel hardware you have on your system is: pci:0000:11:00.0 qozap- 1397:08b4 Junghanns QuadBRI ISDN card
Izmjenjeno od Jasmin Beganović prije više od 16 godina
pokušao konfigurisati ali izbaci grešku
root@rmlh-1:/usr/src/bristuff-0.4.0-test6# ./config.sh install -D zaptel.init /etc/init.d/zaptel /usr/sbin/update-rc.d zaptel defaults 15 30 System startup links for /etc/init.d/zaptel already exist. Zaptel has been configured. If you have any zaptel hardware it is now recommended to edit /etc/default/zaptel or /etc/sysconfig/zaptel and set there an optimal value for the variable MODULES . I think that the zaptel hardware you have on your system is: pci:0000:11:00.0 qozap- 1397:08b4 Junghanns QuadBRI ISDN card make: -F.: Command not found mkdir -p /asterisk for x in configs/*.adsi; do \ if [ ! -f /asterisk/$x ]; then \ -m 644 $x /asterisk/` $x` ; \ fi ; \ done /bin/sh: configs/asterisk.adsi: Permission denied /bin/sh: -m: not found /bin/sh: configs/telcordia-1.adsi: Permission denied /bin/sh: -m: not found make: *** [adsi] Error 127 make: -F.: Command not found We could not install init scripts for your operating system. pci:0000:11:00.0 qozap- 1397:08b4 Junghanns QuadBRI ISDN card root@rmlh-1:/usr/src/bristuff-0.4.0-test6#
Izmjenjeno od Jasmin Beganović prije više od 16 godina
vidim da je install uredno loadirao module
root@rmlh-1:/usr/src/bristuff-0.4.0-test6# lsmod | grep zap
qozap 57512 0 zaptel 228856 2 xpp,qozap crc_ccitt 35200 1 zaptel root@rmlh-1:/usr/src/bristuff-0.4.0-test6#
Izmjenjeno od Jasmin Beganović prije više od 16 godina
autoamtska detekcija hardwera
genzaptelconf -sdMv
Zaptel Version: 1.4.7.1 Echo Canceller: MG2 Configuration ====================== SPAN 1: CCS/ AMI Build-out: 133-266 feet (DSX-1) SPAN 2: CCS/ AMI Build-out: 133-266 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 03: D-channel (Default) (Slaves: 03) Channel 04: Clear channel (Default) (Slaves: 04) Channel 05: Clear channel (Default) (Slaves: 05) Channel 06: D-channel (Default) (Slaves: 06) 6 channels to configure. Changing signalling on channel 1 from Unused to Clear channel Changing signalling on channel 2 from Unused to Clear channel Changing signalling on channel 3 from Unused to HDLC with FCS check Changing signalling on channel 4 from Unused to Clear channel Changing signalling on channel 5 from Unused to Clear channel Changing signalling on channel 6 from Unused to HDLC with FCS check Asterisk PBX is already running. Use restart. Checking channels configured in Asterisk: Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
Izmjenjeno od Jasmin Beganović prije više od 16 godina
lampice na ISDN kartici su zasvijetlile
Izmjenjeno od Jasmin Beganović prije više od 16 godina
Hernad je provjerio i kartica izgleda OK, sada trebamo dobivene uređaje mapirati na vz sesiju
root@rmlh-1:~# ls /dev/zap/* -l crw-rw---- 1 root dialout 196, 1 2008-05-08 14:49 /dev/zap/1 crw-rw---- 1 root dialout 196, 2 2008-05-08 14:49 /dev/zap/2 crw-rw---- 1 root dialout 196, 3 2008-05-08 14:49 /dev/zap/3 crw-rw---- 1 root dialout 196, 4 2008-05-08 14:49 /dev/zap/4 crw-rw---- 1 root dialout 196, 5 2008-05-08 14:49 /dev/zap/5 crw-rw---- 1 root dialout 196, 6 2008-05-08 14:49 /dev/zap/6 crw-rw---- 1 root dialout 196, 254 2008-05-08 14:49 /dev/zap/channel crw-rw---- 1 root dialout 196, 0 2008-05-08 14:49 /dev/zap/ctl crw-rw---- 1 root dialout 196, 255 2008-05-08 14:49 /dev/zap/pseudo crw-rw---- 1 root dialout 196, 253 2008-05-08 14:49 /dev/zap/timer crw-rw---- 1 asterisk asterisk 196, 250 2008-05-08 14:49 /dev/zap/transcode
Izmjenjeno od Jasmin Beganović prije više od 16 godina
kreiram na vz sesiji uređaje
root@asterisk:/# mkdir /dev/zap root@asterisk:/# mknod -m 666 /dev/zap/1 c 196 1 root@asterisk:/# mknod -m 666 /dev/zap/2 c 196 2 root@asterisk:/# mknod -m 666 /dev/zap/3 c 196 3 root@asterisk:/# mknod -m 666 /dev/zap/4 c 196 4 root@asterisk:/# mknod -m 666 /dev/zap/5 c 196 5 root@asterisk:/# mknod -m 666 /dev/zap/6 c 196 6 root@asterisk:/# mknod -m 666 /dev/zap/channel c 196 254 root@asterisk:/# mknod -m 666 /dev/zap/ctl c 196 0 root@asterisk:/# mknod -m 666 /dev/zap/pseudo c 196 255 root@asterisk:/# mknod -m 666 /dev/zap/timer c 196 253 root@asterisk:/# mknod -m 666 /dev/zap/transcode c 196 250
podesio privilegije i provjerio
root@asterisk:/# chown root:dialout /dev/zap/* root@asterisk:/# ls /dev/zap/* -l crw-rw-rw- 1 root dialout 196, 1 May 8 16:12 /dev/zap/1 crw-rw-rw- 1 root dialout 196, 2 May 8 16:12 /dev/zap/2 crw-rw-rw- 1 root dialout 196, 3 May 8 16:12 /dev/zap/3 crw-rw-rw- 1 root dialout 196, 4 May 8 16:12 /dev/zap/4 crw-rw-rw- 1 root dialout 196, 5 May 8 16:12 /dev/zap/5 crw-rw-rw- 1 root dialout 196, 6 May 8 16:12 /dev/zap/6 crw-rw-rw- 1 root dialout 196, 254 May 8 16:13 /dev/zap/channel crw-rw-rw- 1 root dialout 196, 0 May 8 16:13 /dev/zap/ctl crw-rw-rw- 1 root dialout 196, 255 May 8 16:13 /dev/zap/pseudo crw-rw-rw- 1 root dialout 196, 253 May 8 16:14 /dev/zap/timer crw-rw-rw- 1 root dialout 196, 250 May 8 16:14 /dev/zap/transcode root@asterisk:/#
Izmjenjeno od Jasmin Beganović prije više od 16 godina
asterisk je vlasnik transcode-a
root@asterisk:/# chown asterisk:asterisk /dev/zap/transcode root@asterisk:/# ls /dev/zap/transcode -l crw-rw-rw- 1 asterisk asterisk 196, 250 May 8 16:14 /dev/zap/transcode root@asterisk:/#
Izmjenjeno od Jasmin Beganović prije više od 16 godina
sada to treba povezati u conf-u
Izmjenjeno od Jasmin Beganović prije više od 16 godina
root@rmlh-1:~# vi /etc/vz/conf/202.conf
DEVICES="c:196:1:rw, c:196:2:rw, c:196:3:rw, c:196:4:rw, c:196:5:rw, c:196:6:rw, c:196:254:rw, c:196:0:rw, c:196:255:rw, c:196:253:rw, c:196:250:rw"
root@rmlh-1:~# vzctl restart 202
Izmjenjeno od Jasmin Beganović prije više od 16 godina
sada treba terstirati asterisk, hernad mi reče da sa ifolda pokupim confove ali je ifold down vidjeću ima li u reposu
Izmjenjeno od Jasmin Beganović prije više od 16 godina
za test u sip.conf dodao
[33] type=friend host=dynamic dtmfmode=inband context=entry secret=sarabon
nakon restarta asteriska sale se zakačio
Izmjenjeno od Jasmin Beganović prije više od 16 godina
dodao i sip 31 i 32 da možemo testirati
Izmjenjeno od Ernad Husremović prije oko 16 godina
- Status promijenjeno iz Novo u Zatvoreno
- % završeno promijenjeno iz 0 u 100