Nove funkcije #14238
Zatvorenbristuff: RMLH-1 server: instalacija rmlh ISDN duoBRI card, BRIstuffed-0.4.0-RC1
Dodano od Ernad Husremović prije više od 16 godina. Izmjenjeno prije više od 16 godina.
100%
Opis
- instalacija bristuff 1.4 asterisk-a na rmlh server
- testirati karticu u NT modu priključkom siemens gigaset ISDN PBX-a
- na hostu testirai karticu u NT režimu i radi
- nisam uspio podesiti rad zap kartice pod sesijom
Povezani tiketi 4 (0 otvoreno — 4 zatvorenih)
Izmjenjeno od Ernad Husremović prije više od 16 godina
bristuff asterisk je patchirani asterisk koji radi http://www.junghanns.net/en/home.html za svoje kartice
bristuff 0.3 patchira asterisk 1.2
bristuff 0.4 patchira asterisk 1.4
Izmjenjeno od Ernad Husremović prije više od 16 godina
preciznije patchira se chan_zap.so za potrebe *BRI kartica
root@rmlh-1:/usr/src/bristuff-0.4.0-RC1# ls
apply-patches.sh config old asterisk config.sh pack.sh asterisk-1.4.19.1 cwain patches asterisk-1.4.19.1.tar.gz download.sh prereq.sh asterisk-addons INSTALL qozap asterisk-addons-1.4.6 INSTALL.html quilt.sh asterisk-addons-1.4.6.tar.gz install.sh SAMPLES backup_cwain ISDNguard TESTING backup_qozap libgsmat zaphfc backup_zaphfc libgsmat-0.0.3 zaptel backup_ztgsm libpri zaptel-1.4.10 CHANGES libpri-1.4.3 zaptel-1.4.10.tar.gz compile.sh libpri-1.4.3.tar.gz ztgsm
satima smo se mučili dok nisam skontao kako to sve fercera ... te smo testove čitavo vrijeme radili a da build nije bio do kraja završen
Izmjenjeno od Ernad Husremović prije više od 16 godina
prema uputstvu stvar se instalira
sa ./install.sh koji poziva ./prereq.sh pa ./downloads.sh pa ./compile.sh ...
kvaka je bilda da u ./compile.sh umjesto /bin/sh stavimo /bin/bash nakon toga sam uspješno build-ao zaptel driver-e kao i asterisk 1.4.19
napomena: skripte su baš sirove i slabo handliraju greške i standardne situacije kao što je recimo uzastopno pozivanje ./install.sh skripte - svaki put se nanovo vršio download asterisk-a, i libraria: zaptel libgsm libpri ...
na kraju sam skontao da mogu ručno pozvati ./compile.sh ... i tada sam utvrdio da /bin/bash rješava problem punog compile-a
Izmjenjeno od Ernad Husremović prije više od 16 godina
nakon uspješnog build-a dobijam
*CLI> core show version
Asterisk 1.4.19.1-BRIstuffed-0.4.0-RC1 built by root @ rmlh-1 on a x86_64 running Linux on 2008-05-09 18:51:51 UTC
Izmjenjeno od Ernad Husremović prije više od 16 godina
da bi testirali prključenje na te uređaj - ISDN gigaset centralu, podesili smo port-2 u NT režimu
nakon toga smo uradili skeniranje kartice i konfiguracija zaptel kartice
genzaptelconf -svdM
=> /etc/zaptel.conf
# Autogenerated by /usr/sbin/genzaptelconf -- do not hand edit # Zaptel Configuration File # # This file is parsed by the Zaptel Configurator, ztcfg # # It must be in the module loading order # Span 1: ztqoz/1/1 "duoBRI PCI ISDN Card 1 Span 1 [TE]" (MASTER) span=1,1,0,ccs,ami # termtype: te bchan=1-2 dchan=3 # Span 2: ztqoz/1/2 "duoBRI PCI ISDN Card 1 Span 2 [NT]" span=2,2,0,ccs,ami # termtype: te bchan=4-5 dchan=6 # Global data loadzone = us defaultzone = us
Izmjenjeno od Ernad Husremović prije više od 16 godina
zatim podešenja asterisk-a chan_zap kanala
/etc/asterisk/zaptel.conf
[channels] switchtype = euroisdn pridialplan = dynamic prilocaldialplan = local ;nationalprefix = 0 ;internationalprefix = 00 usecallingpres=yes echocancel = yes echocancelwhenbridged = yes echotraining = 100 ;------------------------------------------------------------------- ; p2p TE mode (for connecting ISDN lines in point-to-point mode) ;signalling = bri_cpe ;context=demo ;group = 1 ;channel => 1-2 ;------------------------------------------------------------------- ; p2p NT mode (for connecting an ISDN PBX in point-to-point mode) ;signalling = bri_net ; p2mp TE mode ;signalling = bri_cpe_ptmp ; p2p TE mode ;signalling = bri_cpe ; p2mp NT mode ; p2p NT mode ;signalling = bri_net signalling = bri_net_ptmp <<<<<<<<<<<<<<<<<< context=demo group = 1 channel => 4-5 <<<<<<<<<<<<<<<<<<<<
bitno je uočito da je podešenje bri_net_ptmp (point to multipoint) ispravno, a ne kako uputstvo za karticu kaže (bri_net)
Izmjenjeno od Ernad Husremović prije više od 16 godina
radi testiranja sam u extensions.ael dodao lokal koji je prozivao isdn gigaset pbx
41 => { Dial(ZAP/g1/269290, 400); };
ovo 269290 sam stavio zato što bez toga centrala neće da se javi (na njoj je naštimano da se javlja samo na MSN = 269290
pored ZAP/g1 mogao sam takođe staviti i ZAP/5-6 što bi reklo ZAP kanal 5 i 6 - istu stvar označava i g1 - grupa 1, što se vidi u zaptel.conf
Izmjenjeno od Ernad Husremović prije više od 16 godina
nakon toga sam testirao 31 => 41, radi, 41 => 31 radi, zvuk je kvalitetan.
Izmjenjeno od Ernad Husremović prije više od 16 godina
- Naslov promijenjeno iz bristuff: instalacija rmlh ISDN duoBRI card u bristuff: RMLH-1 server: instalacija rmlh ISDN duoBRI card
Izmjenjeno od Ernad Husremović prije više od 16 godina
da bih se lakše snašao sve ovo stavio u hg repos
root@rmlh-1:~/devel/hg/bristuff# hg log -l3
changeset: 2:c16018214970 branch: bring.out.ba tag: tip user: root@rmlh-1.bring.out.ba date: Sun May 11 18:53:49 2008 +0200 summary: zaptel 1.4.10, libpri 1.4.3 changeset: 1:7db37e076127 user: root@rmlh-1.bring.out.ba date: Sun May 11 18:39:51 2008 +0200 summary: Added tag 0.4.0-RC1 for changeset afe0de0c6206 changeset: 0:afe0de0c6206 tag: 0.4.0-RC1 user: root@rmlh-1.bring.out.ba date: Sun May 11 18:39:47 2008 +0200 summary: 0.4.0-RC1
Izmjenjeno od Ernad Husremović prije više od 16 godina
asterisk i asterisk-addons već su u repozitorij-u, treba samo staviti patch-eve za bristuff
root@rmlh-1:~/devel/hg/bristuff# ls -l asterisk lrwxrwxrwx 1 root root 11 2008-05-11 18:44 asterisk -> ../asterisk root@rmlh-1:~/devel/hg/bristuff# ls -l asterisk-addons lrwxrwxrwx 1 root root 10 2008-05-11 18:45 asterisk-addons -> ../addons/
Izmjenjeno od Ernad Husremović prije više od 16 godina
root@rmlh-1:~/devel/hg/asterisk# hg tags
tip 9:e6e8efb8275f 1.4.19.1-bristuff 8:aaf9d4820bc9 1.4.19.1 5:648838cbdd2a
Izmjenjeno od Ernad Husremović prije više od 16 godina
root@rmlh-1:~/devel/hg/bristuff# ./all_patches.sh
root@rmlh-1:~/devel/hg/bristuff# ./compile.sh
Izmjenjeno od Ernad Husremović prije više od 16 godina
root@rmlh-1:~/devel/hg/bristuff# hg tags
tip 5:81f35f98c9e4 0.4.0-RC1 4:af87b5f296c1
root@rmlh-1:~/devel/hg/asterisk# hg tags
tip 29:33fd092e94dc 1.4.19.1-bristuff 28:73dbb96c076c 1.4.19.1 23:469c1f3a4169
root@rmlh-1:~/devel/hg/addons# hg tags
tip 4:6b8580e2f778 1.4.6 3:18438cb9065c
Izmjenjeno od Ernad Husremović prije više od 16 godina
build asterisk-a na sesiji
root@asterisk:~/devel/hg/asterisk# hg update 1.4.19.1-bristuff
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
root@asterisk:~/devel/hg/bristuff# ln -s ../asterisk root@asterisk:~/devel/hg/bristuff# ln -s ../addons asterisk-addons
Izmjenjeno od Ernad Husremović prije više od 16 godina
root@asterisk:~/devel/hg/bristuff# sudo apt-get install build-essential
root@asterisk:~/devel/hg/bristuff# sudo apt-get build-dep asterisk
root@asterisk:~/devel/hg/bristuff/asterisk# echo "" > .cleancount
root@asterisk:~# dpkg -i --force-all linux-headers-2.6.18-053.10hernad3-openvz_2.6.18-053.10hernad3-openvz-10.00.Custom_amd64.deb
Izmjenjeno od Ernad Husremović prije više od 16 godina
... make[1]: Entering directory `/root/devel/hg/bristuff/zaptel-1.4.10' echo "You do not appear to have the sources for the 2.6.18-053.10hernad3-openvz kernel installed." You do not appear to have the sources for the 2.6.18-053.10hernad3-openvz kernel installed.
hmm ali ja u sesiji ne trebam zaptel
Izmjenjeno od Ernad Husremović prije više od 16 godina
openvz
zaptel/Makefile
#_all: $(if $(BUILD_MODULES),modules) programs _all: programs #install: all devices install-modules install-programs install-firmware install: all install-programs
Izmjenjeno od Ernad Husremović prije više od 16 godina
root@asterisk:~/devel/hg/bristuff/asterisk# sudo apt-get install psmisc (killall)
Izmjenjeno od Ernad Husremović prije više od 16 godina
evo sada imamo i u openvz sesiji bristuff-ed asterisk
*CLI> core show version
Asterisk 1.4.19.1-BRIstuffed-0.4.0-RC1 built by root @ asterisk.rmlh.ba on a i686 running Linux on 2008-05-11 19:41:32 UTC
Izmjenjeno od Ernad Husremović prije više od 16 godina
vratimo se na openvz host-a:
*CLI> zap show channels Chan Extension Context Language MOH Interpret pseudo demo default 4 demo default 5 demo default *CLI> zap show channel 5 Channel: 5 File Descriptor: 17 Span: 2 Extension: Dialing: no Context: demo Caller ID: Calling TON: 0 Caller ID name: Destroy: 0 InAlarm: 0 Signalling Type: ISDN PRI Radio: 0 Owner: <None> Real: <None> Callwait: <None> Threeway: <None> Confno: -1 Propagated Conference: -1 Real in conference: 0 DSP: no Relax DTMF: no Dialing/CallwaitCAS: 0/0 Default law: alaw Fax Handled: no Pulse phone: no Echo Cancellation: 128 taps, currently OFF PRI Flags: PRI Logical Span: Implicit Hookstate (FXS only): Onhook ..... isto i za channel 6 *CLI> zap show status Description Alarms IRQ bpviol CRC4 duoBRI PCI ISDN Card 1 Span 1 [TE] (car OK 0 0 0 duoBRI PCI ISDN Card 1 Span 2 [NT] (car OK 0 0 0
imamo ovaj warning, ali koliko vidim stvar radi:
*CLI> [May 11 12:22:44] WARNING[2682]: chan_zap.c:2514 pri_find_dchan: No D-channels available! Using Primary channel 6 as D-channel anyway!
Izmjenjeno od Ernad Husremović prije više od 16 godina
root@rmlh-1:~/devel# cat /proc/zaptel/1
Span 1: ztqoz/1/1 "duoBRI PCI ISDN Card 1 Span 1 [TE] (cardID 0) Layer 1 DEACTIVATED (F3)" (MASTER) AMI/CCS 1 ztqoz1/1/1 Clear 2 ztqoz1/1/2 Clear 3 ztqoz1/1/3 HDLCFCS
root@rmlh-1:~/devel# cat /proc/zaptel/2
Span 2: ztqoz/1/2 "duoBRI PCI ISDN Card 1 Span 2 [NT] (cardID 0) Layer 1 ACTIVATED (G3)" AMI/CCS 4 ztqoz1/2/1 Clear 5 ztqoz1/2/2 Clear 6 ztqoz1/2/3 HDLCFCS
Izmjenjeno od Ernad Husremović prije više od 16 godina
prebaciti zaptel.conf u sesiju
root@asterisk:/etc# scp root@192.168.45.156:/etc/zaptel.conf .
zaptel.conf 100% 472 0.5KB/s 00:00
Izmjenjeno od Ernad Husremović prije više od 16 godina
root@asterisk:/etc/asterisk# scp root@192.168.45.156:/etc/asterisk/zapata.conf .
zapata.conf 100% 832 0.8KB/s 00:00
Izmjenjeno od Ernad Husremović prije više od 16 godina
zaptel u openvz sesiji ipak ne može da henlidra zaptel karticu
root@asterisk:~# genzaptelconf -svdM
Stopping Asterisk PBX: asterisk. Unloading zaptel modules: Temporarily moving zaptel.conf aside to work around broken modprobe.conf Test Loading modules: - wct4xxp - wcte12xp - wcte11xp - wct1xxp - wanpipe - tor2 - torisa - qozap - vzaphfc - zaphfc - ztgsm - wctdm24xxp - wctdm - opvxa1200 - wcfxo - pciradio - wcusb - xpp_usb Updating Debian modules list /etc/modules. Generating '/etc/zaptel.conf and /etc/asterisk/zapata-channels.conf' Note: generated /etc/asterisk/zapata-channels.conf not included in zapata.conf To fix: echo '#include zapata-channels.conf' >>/etc/asterisk/zapata.conf Reconfiguring identified channels Notice: Configuration file is /etc/zaptel.conf line 13: Unable to read Zaptel version information. Zaptel Version: Unknown Echo Canceller: Unknown Configuration ====================== Channel map: 0 channels to configure. ioctl(ZT_FREEZONE) failed: Invalid argument line 13: Unable to register tone zone 'us' ZT_DEFAULTZONE failed: Invalid argument (22)
Izmjenjeno od Ernad Husremović prije više od 16 godina
pokušao na hostu oboriti zaptel module
root@rmlh-1:~/devel# /etc/init.d/zaptel stop
pa onda pokušao da konfigurišem karticu iz sesije
root@asterisk:~# genzaptelconf -svdM
Stopping Asterisk PBX: asterisk. Unloading zaptel modules: Temporarily moving zaptel.conf aside to work around broken modprobe.conf Test Loading modules: - wct4xxp - wcte12xp - wcte11xp - wct1xxp - wanpipe - tor2 - torisa - qozap - vzaphfc - zaphfc - ztgsm - wctdm24xxp - wctdm - opvxa1200 - wcfxo - pciradio - wcusb - xpp_usb Updating Debian modules list /etc/modules. Generating '/etc/zaptel.conf and /etc/asterisk/zapata-channels.conf' Note: generated /etc/asterisk/zapata-channels.conf not included in zapata.conf To fix: echo '#include zapata-channels.conf' >>/etc/asterisk/zapata.conf Reconfiguring identified channels Notice: Configuration file is /etc/zaptel.conf line 0: Unable to open master device '/dev/zap/ctl' <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 1 error(s) detected Starting Asterisk PBX: Unable to install capabilities. Unable to open pid file '/var/run/asterisk.pid': Permission denied asterisk. Checking channels configured in Asterisk: Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
Izmjenjeno od Ernad Husremović prije više od 16 godina
kvaka je što obaranjem zaptel-a na hostu više i nemam /dev/zap-a uopšte
Izmjenjeno od Ernad Husremović prije više od 16 godina
root@rmlh-1:~# ls /dev/zap
1 2 3 4 5 6 channel ctl pseudo timer
root@rmlh-1:~# vzctl set 202 --devnodes zap/pseudo:rw --save
Setting devices Saved parameters for VE 202 root@rmlh-1:~# vzctl set 202 --devnodes zap/ctl:rw --save Setting devices Saved parameters for VE 202 root@rmlh-1:~# vzctl set 202 --devnodes zap/1:rw --save Setting devices Saved parameters for VE 202 root@rmlh-1:~# vzctl set 202 --devnodes zap/2:rw --save Setting devices Saved parameters for VE 202 root@rmlh-1:~# vzctl set 202 --devnodes zap/3:rw --save Setting devices Saved parameters for VE 202 root@rmlh-1:~# vzctl set 202 --devnodes zap/4:rw --save Setting devices Saved parameters for VE 202 root@rmlh-1:~# vzctl set 202 --devnodes zap/5:rw --save Setting devices Saved parameters for VE 202 root@rmlh-1:~# vzctl set 202 --devnodes zap/6:rw --save Setting devices Saved parameters for VE 202 root@rmlh-1:~# vzctl set 202 --devnodes zap/channel:rw --save Setting devices Saved parameters for VE 202 root@rmlh-1:~# vzctl set 202 --devnodes zap/timer:rw --save Setting devices Saved parameters for VE 202
Izmjenjeno od Ernad Husremović prije više od 16 godina
džabe, ovo ne ide ... ne vrijedi se zezati sa sesijom
Izmjenjeno od Ernad Husremović prije više od 16 godina
- Naslov promijenjeno iz bristuff: RMLH-1 server: instalacija rmlh ISDN duoBRI card u bristuff: RMLH-1 server: instalacija rmlh ISDN duoBRI card, openvz - host sesija
- Status promijenjeno iz Dodijeljeno u Zatvoreno
- % završeno promijenjeno iz 0 u 100
Izmjenjeno od Ernad Husremović prije više od 16 godina
Izmjenjeno od Ernad Husremović prije više od 16 godina
u njima se pominje ztdummy, šta je ztdummy module:
How to compile ztdummy
ztdummy is a Linux kernel module that will provide your Asterisk with a Zaptel timer even if you don't have any Digium hardware installed in your Linux server. For Linux kernel version 2.4 the ztdummy module takes timing from the usb-uhci kernel module, which should be loaded before ztdummy. Note that usb-uhci must not be compiled into the kernel, it'll only work with ztdummy if loaded as a module! On kernel version 2.6 ztdummy uses internal high-resolution kernel timer and does not require any USB. Using the internal kernel timer is recommended.
Izmjenjeno od Saša Vranić prije više od 16 godina
- Naslov promijenjeno iz bristuff: RMLH-1 server: instalacija rmlh ISDN duoBRI card, openvz - host sesija u bristuff: RMLH-1 server: instalacija rmlh ISDN duoBRI card
Izmjenjeno od Saša Vranić prije više od 16 godina
kada sam jutros pokazivao saši podešavanje zaptel kanala, ispostavilo se da Zap/g1 ne radi sa gornjim podešenjima
ispostavilo se da se gleda zapata-channels.conf, koji sam ja ručno ispravio iako se sugeriše da se to ne radi:
; Autogenerated by /usr/sbin/genzaptelconf -- do not hand edit ; Zaptel Channels Configurations (zapata.conf) ; ; This is not intended to be a complete zapata.conf. Rather, it is intended ; to be #include-d by /etc/zapata.conf that will include the global settings ; ; Span 1: ztqoz/1/1 "duoBRI PCI ISDN Card 1 Span 1 [TE]" (MASTER) group=0,11 context=from-pstn switchtype = euroisdn signalling = bri_cpe_ptmp channel => 1-2 group=0 context=default ; Span 2: ztqoz/1/2 "duoBRI PCI ISDN Card 1 Span 2 [NT]" group=0,12 ;context=from-pstn switchtype = euroisdn signalling = bri_cpe_ptmp channel => 4-5 group=1 context=demo
Izmjenjeno od Ernad Husremović prije više od 16 godina
- Naslov promijenjeno iz bristuff: RMLH-1 server: instalacija rmlh ISDN duoBRI card u bristuff: RMLH-1 server: instalacija rmlh ISDN duoBRI card, BRIstuffed-0.4.0-RC1