Nove funkcije #17007
Zatvorenifold hardy: backport asterisk 1.4.21, libpri, libgsm iz jaunty-ja
0%
Fajlovi
Povezani tiketi 1 (0 otvoreno — 1 zatvoren)
Izmjenjeno od Ernad Husremović prije oko 16 godina
hajmo napravit prvo i386 build
root@vz-test-5501:~/ubuntu# apt-get source asterisk libpri1.0 libgsm
Izmjenjeno od Ernad Husremović prije oko 16 godina
development:
#apt-get install dpatch devscripts debhelper module-assistant cdbs
Izmjenjeno od Ernad Husremović prije oko 16 godina
dpkg-buildpackage-u smeta .git
root@vz-test-5501:~/ubuntu/libpri-1.4.3# mv .git ../_git_libpri
Izmjenjeno od Ernad Husremović prije oko 16 godina
oot@vz-test-5501:~/ubuntu/asterisk-1.4.21.2~dfsg# apt-get install
debhelper quilt libreadline5-dev libssl-dev libtonezone-dev libasound2-devlibpq-dev unixodbc-dev libvpb-dev autotools-dev libnewt-dev libsqlite0-dev libspeex-dev graphviz libcurl4-openssl-dev doxygen gsfonts libpopt-dev libopenh323-dev libiksemel-dev libradiusclient-ng-dev freetds-dev libvorbis-dev libsnmp-dev
Izmjenjeno od Ernad Husremović prije oko 16 godina
root@vz-test-5501:~/ubuntu/zaptel-1.4.11~dfsg# apt-get install libusb-dev asciidoc
Izmjenjeno od Ernad Husremović prije oko 16 godina
root@vz-test-5501:~/ubuntu/asterisk-1.4.21.2~dfsg# dpkg-buildpackage
... dpkg-checkbuilddeps: Unmet build dependencies: zaptel-source (>= 1:1.4.1~0) libspeexdsp-dev libc-client2007b-dev libcap2-dev
root@vz-test-5501:~/ubuntu/asterisk-1.4.21.2~dfsg# apt-get install libc-client2007-dev libcap-dev
Izmjenjeno od Ernad Husremović prije oko 16 godina
ostale su nerješene ove dependencies
dpkg-checkbuilddeps: Unmet build dependencies: libspeexdsp-dev libc-client2007b-dev libcap2-dev
međutim pokušaću build ignorišući to
root@vz-test-5501:~/ubuntu/asterisk-1.4.21.2~dfsg# dpkg-buildpackage -d
Izmjenjeno od Ernad Husremović prije oko 16 godina
- asterisk_1.4.21.2~dfsg-3ubuntu2
- asterisk-sounds-extra_1.4.7-1ubuntu1
- libgsm_1.0.12-1ubuntu1
- libpri_1.4.3-3ubuntu2
- zaptel_1.4.11~dfsg-3ubuntu2
Izmjenjeno od Ernad Husremović prije oko 16 godina
dobro, da vidimo sada kakvo je stanje verzija na ifold-u
root@ifold:~# aptitude show libgsm1
Paket: libgsm1 State: installed Automatically installed: no Verzija: 1.0.12-1 Prioritet: opcionalno Sekcija: libs Održavatelj: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com> Dekompresovana veličina: 119k Zavisi: libc6 (>= 2.6.1-1) Sukobljava se sa: libgsm-dev Description: Shared libraries for GSM speech compressor Contains runtime shared libraries for libgsm, an implementation of the European GSM 06.10 provisional standard for full-rate speech transcoding, prI-ETS 300 036, which uses RPE/LTP (residual pulse excitation/long term prediction) coding at 13 kbit/s. GSM 06.10 compresses frames of 160 13-bit samples (8 kHz sampling rate, i.e. a frame rate of 50 Hz) into 260 bits; for compatibility with typical UNIX applications, our implementation turns frames of 160 16-bit linear samples into 33-byte frames (1650 Bytes/s). The quality of the algorithm is good enough for reliable speaker recognition; even music often survives transcoding in recognizable form (given the bandwidth limitations of 8 kHz sampling rate). The interfaces offered are a front end modelled after compress(1), and a library API. Compression and decompression run faster than realtime on most SPARCstations. The implementation has been verified against the ETSI standard test patterns.
root@ifold:~# aptitude show libpri1.0
Paket: libpri1.0 New: yes State: installed Automatically installed: no Verzija: 1.4.2-1ubuntu2 Prioritet: opcionalno Sekcija: universe/libs Održavatelj: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com> Dekompresovana veličina: 348k Zavisi: libc6 (>= 2.4) Sukobljava se sa: libpri1.2 (< 1.4.0-3) Zamjenjuje: libpri1.2 (< 1.4.0-3) Description: Primary Rate ISDN specification library C implementation of the Primary Rate ISDN specification. It was based on the Bellcore specification SR-NWT-002343 for National ISDN. As of May 12, 2001, it has been tested work with NI-2, Nortel DMS-100, and Lucent 5E Custom protocols on switches from Nortel and Lucent Homepage: http://www.asterisk.org/
root@ifold:~# aptitude show asterisk
Paket: asterisk State: installed Automatically installed: yes Verzija: 1:1.4.17~dfsg-2ubuntu1 Prioritet: opcionalno Sekcija: universe/comm Održavatelj: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com> Dekompresovana veličina: 6029k Zavisi: adduser, asterisk-config (= 1:1.4.17~dfsg-2ubuntu1) | asterisk-config-custom, asterisk-sounds-main, libasound2 (> 1.0.14), libc-client2007, libc6 (>= 2.4), libcap1, libct3 (>= 0.63-1), libcurl3 (>= 7.16.2-1), libgcc1 (>= 1:4.1.1-21), libgsm1 (>= 1.0.12), libiksemel3, libkrb53 (>= 1.6.dfsg.2), libncurses5 (>= 5.6+20071006-3), libnewt0.52, libogg0 (>= 1.0rc3), libpopt0 (>= 1.10), libpq5 (>= 8.3~beta1), libpri1.0 (>= 1.4), libradiusclient-ng2, libsnmp15 (>= 5.4.1~dfsg), libspeex1 (>= 1.1.8), libsqlite0 (>= 2.8.17), libssl0.9.8 (>= 0.9.8f-1), libstdc++6 (>= 4.1.1-21), libtonezone1 (>= 1:1.4.8~dfsg), libvorbis0a (>= 1.2.0), libvorbisenc2 (>= 1.1.2), libvpb0 (>= 4.2.23), unixodbc (>= 2.2.11-1), zlib1g (>= 1:1.2.3.3.dfsg-1) Predlaže: asterisk-dev, asterisk-doc, asterisk-h323, ekiga, kphone, ohphone, twinkle Sukobljava se sa: asterisk-bristuff, asterisk-classic Zamjenjuje: asterisk-bristuff, asterisk-classic Provides: asterisk-bristuff, asterisk-classic Description: Open Source Private Branch Exchange (PBX) Asterisk is an Open Source PBX and telephony toolkit. It is, in a sense, middleware between Internet and telephony channels on the bottom, and Internet and telephony applications at the top. Asterisk can be used with Voice over IP (SIP, H.323, IAX and more) standards, or the Public Switched Telephone Network (PSTN) through supported hardware. Supported hardware: * All Wildcard (tm) ISDN PRI cards from Digium (http://www.digium.com) * HFC-S/HFC-4S-based ISDN BRI cards (Junghanns.NET, beroNet, Digium etc.) * All TDM (FXO/FXS) cards from Digium * Various clones of Digium cards such as those by OpenVox * Xorcom Astribank USB telephony adapter (http://www.xorcom.com) * Voicetronix OpenPCI, OpenLine and OpenSwitch cards * CAPI-compatible ISDN cards (using the add-on package chan-capi) * Full Duplex Sound Card (ALSA or OSS) supported by Linux * Tormenta T1/E1 card (http://www.zapatatelephony.org) * QuickNet Internet PhoneJack and LineJack (http://www.quicknet.net) This is the main package that includes the Asterisk daemon and most channel drivers and applications. Homepage: http://www.asterisk.org/
root@ifold:~# aptitude show zaptel
Paket: zaptel State: installed Automatically installed: yes Verzija: 1:1.4.10~dfsg-1 Prioritet: opcionalno Sekcija: universe/sound Održavatelj: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com> Dekompresovana veličina: 1061k Zavisi: fxload, libc6 (>= 2.7), libnewt0.52, libtonezone1 (>= 1:1.4.10~dfsg), libusb-0.1-4 (>= 2:0.1.12), procps Description: zapata telephony utilities Userspace utilities for configuring the Zapata telephony kernel driver, which supports various telephony hardware, such as Wildcard series of interface cards (X100P, T400P, E400P, S100P, S100U). Includes ztcfg and zttool utils. Homepage: http://www.asterisk.org/
Izmjenjeno od Ernad Husremović prije oko 16 godina
šta smo sve build-ali
root@vz-test-5501:~/ubuntu# ls *deb -1 -l
-rw-r--r-- 1 root root 2422134 2009-04-10 07:59 asterisk_1.4.21.2~dfsg-3ubuntu2_i386.deb -rw-r--r-- 1 root root 483860 2009-04-10 07:56 asterisk-config_1.4.21.2~dfsg-3ubuntu2_all.deb -rw-r--r-- 1 root root 12952288 2009-04-10 08:00 asterisk-dbg_1.4.21.2~dfsg-3ubuntu2_i386.deb -rw-r--r-- 1 root root 429706 2009-04-10 07:56 asterisk-dev_1.4.21.2~dfsg-3ubuntu2_all.deb -rw-r--r-- 1 root root 33044064 2009-04-10 07:56 asterisk-doc_1.4.21.2~dfsg-3ubuntu2_all.deb -rw-r--r-- 1 root root 385432 2009-04-10 07:59 asterisk-h323_1.4.21.2~dfsg-3ubuntu2_i386.deb -rw-r--r-- 1 root root 3225478 2009-04-10 08:06 asterisk-sounds-extra_1.4.7-1ubuntu1_all.deb -rw-r--r-- 1 root root 1900210 2009-04-10 07:56 asterisk-sounds-main_1.4.21.2~dfsg-3ubuntu2_all.deb -rw-r--r-- 1 root root 546954 2009-04-10 06:12 debhelper_7.0.17ubuntu5_all.deb -rw-r--r-- 1 root root 27440 2009-04-10 05:55 libgsm1_1.0.12-1ubuntu1_i386.deb -rw-r--r-- 1 root root 33906 2009-04-10 05:55 libgsm1-dev_1.0.12-1ubuntu1_i386.deb -rw-r--r-- 1 root root 19708 2009-04-10 05:55 libgsm-tools_1.0.12-1ubuntu1_i386.deb -rw-r--r-- 1 root root 122622 2009-04-10 05:53 libpri1.0_1.4.3-3ubuntu2_i386.deb -rw-r--r-- 1 root root 158636 2009-04-10 05:53 libpri-dev_1.4.3-3ubuntu2_i386.deb -rw-r--r-- 1 root root 73168 2009-04-10 06:27 libtonezone1_1.4.11~dfsg-3ubuntu2_i386.deb -rw-r--r-- 1 root root 74328 2009-04-10 06:27 libtonezone-dev_1.4.11~dfsg-3ubuntu2_i386.deb -rw-r--r-- 1 root root 293234 2009-04-10 06:27 zaptel_1.4.11~dfsg-3ubuntu2_i386.deb -rw-r--r-- 1 root root 1153388 2009-04-10 06:27 zaptel-source_1.4.11~dfsg-3ubuntu2_all.deb
Izmjenjeno od Ernad Husremović prije oko 16 godina
- Fajl bristuff-0.4.0-RC3d.tar.gz bristuff-0.4.0-RC3d.tar.gz dodano
vidim sada da je bristuff izdao RC3d i da radi preimenovanje zaptel-a u dahdi radi trademark problema
0.4.0-RC3d - updated to zaptel 1.4.12.1 - updated to asterisk 1.4.22 (please note that everything that used to be "ZAP" is now called "DAHDI", check your dialplan!) 0.4.0-RC3c - fixed segmentation fault in chan_zap when calling ast_moh_start/ast_moh_stop (ported from 0.3.0-PRE-1y-s to asterisk 1.4.21.1) - updated to asterisk 1.4.21.2, zaptel 1.4.12 0.4.0-RC3b - sometimes after loading ztgsm and starting asterisk the SIM pin entry did not work properly, fixed by libgsmat-0.0.4 - merged "When getting a SABME/UA after sending one, don't reset state" patch - upgraded to asterisk 1.4.21.1, fixed deadlock issues (this time it really wasnt me!) 0.4.0-RC3a - 0.4.0-RC3 introduced a bug into zaptel that would repeat received D-channel messages over and over again. fixed. 0.4.0-RC3 - updated to asterisk 1.4.21, zaptel 1.4.11 - fixed singleE1 miniPCI detection (cwain) - fixed "invalid argument (22)" bug when running ztcfg to configure a CRC4 cwain span - added SIP BLF support for SNOM phones (including Pickup) (just like it was in 1.2...) PLEASE NOTE: you will have to use the "call-limit" setting in sip.conf to make HINTS work on SIP devices! 0.4.0-RC2 - added compile time option to include the iLBC codec, you have to type "OK" to download and compile the iLBC codec 0.4.0-RC1 - fixed "call reference exceeds 127 on BRI spans" bug in libpri which caused a deadlock in chan_zap - fixed "t303 not stopped" bug in libpri - updated to asterisk 1.4.19.1 - updated to zaptel 1.4.10 - reduced ztgsm baudrate (serial interface to gsm modules) to be more robust against irq misses in loaded systems - improved ztgsm serial debug output - added module parameter "baudrate" to ztgsm (19200 is default) - added AT commands for SIM card selection to ztgsom (AT+SIM=0 (onboard) AT+SIM=1 (external)) - added AT commands for shutting down / starting GSM modules to ztgsm (AT+POWER=0 , AT+POWER=1) - fixed duoBRI miniPCI detection in qozap
gledam log i ne vidim ništa previše bitno u log-u od RC1 do zadnjeg patch-a
Izmjenjeno od Ernad Husremović prije oko 16 godina
ifold test¶
root@ifold:~/asterisk# dpkg -i asterisk_1.4.21.2~dfsg-3ubuntu2_i386.deb libgsm1_1.0.12-1ubuntu1_i386.deb libpri1.0_1.4.3-3ubuntu2_i386.deb libtonezone1_1.4.11~dfsg-3ubuntu2_i386.deb libgsm-tools_1.0.12-1ubuntu1_i386.deb libgsm1_1.0.12-1ubuntu1_i386.deb asterisk-sounds-main_1.4.21.2~dfsg-3ubuntu2_all.deb asterisk-sounds-extra_1.4.7-1ubuntu1_all.deb zaptel_1.4.11~dfsg-3ubuntu2_i386.deb zaptel-source_1.4.11~dfsg-3ubuntu2_all.deb
(Reading database ... 137061 files and directories currently installed.) Preparing to replace asterisk 1:1.4.17~dfsg-2ubuntu1 (using asterisk_1.4.21.2~dfsg-3ubuntu2_i386.deb) ... Stopping Asterisk PBX: asterisk. Unpacking replacement asterisk ... Preparing to replace libgsm1 1.0.12-1 (using libgsm1_1.0.12-1ubuntu1_i386.deb) ... Unpacking replacement libgsm1 ... Preparing to replace libpri1.0 1.4.2-1ubuntu2 (using libpri1.0_1.4.3-3ubuntu2_i386.deb) ... Unpacking replacement libpri1.0 ... Preparing to replace libtonezone1 1:1.4.10~dfsg-1 (using libtonezone1_1.4.11~dfsg-3ubuntu2_i386.deb) ... Unpacking replacement libtonezone1 ... Selecting previously deselected package libgsm-tools. Unpacking libgsm-tools (from libgsm-tools_1.0.12-1ubuntu1_i386.deb) ... Preparing to replace libgsm1 1.0.12-1ubuntu1 (using libgsm1_1.0.12-1ubuntu1_i386.deb) ... Unpacking replacement libgsm1 ... Preparing to replace asterisk-sounds-main 1:1.4.17~dfsg-2ubuntu1 (using asterisk-sounds-main_1.4.21.2~dfsg-3ubuntu2_all.deb) ... Unpacking replacement asterisk-sounds-main ... Selecting previously deselected package asterisk-sounds-extra. Unpacking asterisk-sounds-extra (from asterisk-sounds-extra_1.4.7-1ubuntu1_all.deb) ... dpkg: regarding zaptel_1.4.11~dfsg-3ubuntu2_i386.deb containing zaptel: zaptel breaks udev (<< 136-1) udev (version 117-8) is present and installed. dpkg: error processing zaptel_1.4.11~dfsg-3ubuntu2_i386.deb (--install): installing zaptel would break udev, and deconfiguration is not permitted (--auto-deconfigure might help) Preparing to replace zaptel-source 1:1.4.10~dfsg-1 (using zaptel-source_1.4.11~dfsg-3ubuntu2_all.deb) ... Unpacking replacement zaptel-source ... More than one copy of package libgsm1 has been unpacked in this run ! Only configuring it once. dpkg: dependency problems prevent configuration of asterisk: asteriskzavisi oasterisk-config (= 1:1.4.21.2~dfsg-3ubuntu2) | asterisk-config-custom; however: Version of asterisk-config on system is 1:1.4.17~dfsg-2ubuntu1. Package asterisk-config-custom is not installed. asteriskzavisi olsb-base (>= 3.2-14); however: Version of lsb-base on system is 3.2-4ubuntu1. dpkg: error processing asterisk (--install): dependency problems - leaving unconfigured Setting up libgsm1 (1.0.12-1ubuntu1) ... Setting up libpri1.0 (1.4.3-3ubuntu2) ... Setting up libtonezone1 (1:1.4.11~dfsg-3ubuntu2) ... Setting up libgsm-tools (1.0.12-1ubuntu1) ... Setting up asterisk-sounds-main (1:1.4.21.2~dfsg-3ubuntu2) ... Setting up asterisk-sounds-extra (1.4.7-1ubuntu1) ... Setting up zaptel-source (1:1.4.11~dfsg-3ubuntu2) ... Processing triggers for libc6 ... ldconfig deferred processing now taking place Errors were encountered while processing: zaptel_1.4.11~dfsg-3ubuntu2_i386.deb asterisk
Izmjenjeno od Ernad Husremović prije oko 16 godina
oot@ifold:~/asterisk# dpkg --ignore-depends=lsb-base -i asterisk_1.4.21.2~dfsg-3ubuntu2_i386.deb asterisk-config_1.4.21.2~dfsg-3ubuntu2_all.deb libgsm1_1.0.12-1ubuntu1_i386.deb libpri1.0_1.4.3-3ubuntu2_i386.deb libtonezone1_1.4.11~dfsg-3ubuntu2_i386.deb libgsm-tools_1.0.12-1ubuntu1_i386.deb libgsm1_1.0.12-1ubuntu1_i386.deb asterisk-sounds-main_1.4.21.2~dfsg-3ubuntu2_all.deb asterisk-sounds-extra_1.4.7-1ubuntu1_all.deb zaptel_1.4.11~dfsg-3ubuntu2_i386.deb zaptel-source_1.4.11~dfsg-3ubuntu2_all.deb
(Reading database ... 138367 files and directories currently installed.) Preparing to replace asterisk 1:1.4.21.2~dfsg-3ubuntu2 (using asterisk_1.4.21.2~dfsg-3ubuntu2_i386.deb) ... Unpacking replacement asterisk ... Preparing to replace asterisk-config 1:1.4.17~dfsg-2ubuntu1 (using asterisk-config_1.4.21.2~dfsg-3ubuntu2_all.deb) ... Unpacking replacement asterisk-config ... Preparing to replace libgsm1 1.0.12-1ubuntu1 (using libgsm1_1.0.12-1ubuntu1_i386.deb) ... Unpacking replacement libgsm1 ... Preparing to replace libpri1.0 1.4.3-3ubuntu2 (using libpri1.0_1.4.3-3ubuntu2_i386.deb) ... Unpacking replacement libpri1.0 ... Preparing to replace libtonezone1 1:1.4.11~dfsg-3ubuntu2 (using libtonezone1_1.4.11~dfsg-3ubuntu2_i386.deb) ... Unpacking replacement libtonezone1 ... Preparing to replace libgsm-tools 1.0.12-1ubuntu1 (using libgsm-tools_1.0.12-1ubuntu1_i386.deb) ... Unpacking replacement libgsm-tools ... Preparing to replace libgsm1 1.0.12-1ubuntu1 (using libgsm1_1.0.12-1ubuntu1_i386.deb) ... Unpacking replacement libgsm1 ... Preparing to replace asterisk-sounds-main 1:1.4.21.2~dfsg-3ubuntu2 (using asterisk-sounds-main_1.4.21.2~dfsg-3ubuntu2_all.deb) ... Unpacking replacement asterisk-sounds-main ... Preparing to replace asterisk-sounds-extra 1.4.7-1ubuntu1 (using asterisk-sounds-extra_1.4.7-1ubuntu1_all.deb) ... Unpacking replacement asterisk-sounds-extra ... dpkg: regarding zaptel_1.4.11~dfsg-3ubuntu2_i386.deb containing zaptel: zaptel breaks udev (<< 136-1) udev (version 117-8) is present and installed. dpkg: error processing zaptel_1.4.11~dfsg-3ubuntu2_i386.deb (--install): installing zaptel would break udev, and deconfiguration is not permitted (--auto-deconfigure might help) Preparing to replace zaptel-source 1:1.4.11~dfsg-3ubuntu2 (using zaptel-source_1.4.11~dfsg-3ubuntu2_all.deb) ... Unpacking replacement zaptel-source ... More than one copy of package libgsm1 has been unpacked in this run ! Only configuring it once. Setting up asterisk-config (1:1.4.21.2~dfsg-3ubuntu2) ... Konfiguracijska datoteka `/etc/asterisk/skinny.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** skinny.conf (Y/I/N/O/D/Z) [default=N] ? y Installing new version of config file /etc/asterisk/skinny.conf ... Konfiguracijska datoteka `/etc/asterisk/iax.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** iax.conf (Y/I/N/O/D/Z) [default=N] ? y Installing new version of config file /etc/asterisk/iax.conf ... Konfiguracijska datoteka `/etc/asterisk/vpb.conf' ==> Deleted (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** vpb.conf (Y/I/N/O/D/Z) [default=N] ? y Installing new version of config file /etc/asterisk/vpb.conf ... Konfiguracijska datoteka `/etc/asterisk/cdr.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** cdr.conf (Y/I/N/O/D/Z) [default=N] ? y Installing new version of config file /etc/asterisk/cdr.conf ... Installing new version of config file /etc/asterisk/smdi.conf ... Konfiguracijska datoteka `/etc/asterisk/modules.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** modules.conf (Y/I/N/O/D/Z) [default=N] ? y Installing new version of config file /etc/asterisk/modules.conf ... Konfiguracijska datoteka `/etc/asterisk/features.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** features.conf (Y/I/N/O/D/Z) [default=N] ? y Installing new version of config file /etc/asterisk/features.conf ... Installing new version of config file /etc/asterisk/iaxprov.conf ... Konfiguracijska datoteka `/etc/asterisk/zapata.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** zapata.conf (Y/I/N/O/D/Z) [default=N] ? Konfiguracijska datoteka `/etc/asterisk/sip.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** sip.conf (Y/I/N/O/D/Z) [default=N] ? Konfiguracijska datoteka `/etc/asterisk/voicemail.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** voicemail.conf (Y/I/N/O/D/Z) [default=N] ? Konfiguracijska datoteka `/etc/asterisk/res_odbc.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** res_odbc.conf (Y/I/N/O/D/Z) [default=N] ? y Installing new version of config file /etc/asterisk/res_odbc.conf ... Konfiguracijska datoteka `/etc/asterisk/queues.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** queues.conf (Y/I/N/O/D/Z) [default=N] ? y Installing new version of config file /etc/asterisk/queues.conf ... Konfiguracijska datoteka `/etc/asterisk/extensions.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** extensions.conf (Y/I/N/O/D/Z) [default=N] ? Setting up libgsm1 (1.0.12-1ubuntu1) ... Setting up libpri1.0 (1.4.3-3ubuntu2) ... Setting up libtonezone1 (1:1.4.11~dfsg-3ubuntu2) ... Setting up libgsm-tools (1.0.12-1ubuntu1) ... Setting up asterisk-sounds-main (1:1.4.21.2~dfsg-3ubuntu2) ... Setting up asterisk-sounds-extra (1.4.7-1ubuntu1) ... Setting up zaptel-source (1:1.4.11~dfsg-3ubuntu2) ... Setting up asterisk (1:1.4.21.2~dfsg-3ubuntu2) ... Installing new version of config file /etc/default/asterisk ... Konfiguracijska datoteka `/etc/init.d/asterisk' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** asterisk (Y/I/N/O/D/Z) [default=N] ? y Installing new version of config file /etc/init.d/asterisk ... /etc/init.d/asterisk: 235: status_of_proc: not found Starting Asterisk PBX: /etc/init.d/asterisk: 235: status_of_proc: not found Unable to open pid file '/var/run/asterisk.pid': Permission denied asterisk. Processing triggers for libc6 ... ldconfig deferred processing now taking place Errors were encountered while processing: zaptel_1.4.11~dfsg-3ubuntu2_i386.deb
Izmjenjeno od Ernad Husremović prije oko 16 godina
fali mu bash funkcija status_of_proc
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=483285
dodao je i to je sada prošlo ali ovo nije prošlo
Starting Asterisk PBX: Unable to open pid file '/var/run/asterisk.pid': Permission denied asterisk.
dobro idem ja napraviti taj pid sa sadržajem "0"
sada je to prošlo ali novi problem:
Asterisk PBX is already running. Use restart. ...
Izmjenjeno od Ernad Husremović prije oko 16 godina
dpkg: regarding zaptel_1.4.11~dfsg-3ubuntu2_i386.deb containing zaptel:
zaptel breaks udev (<< 136-1) udev (version 117-8) is present and installed.
Izmjenjeno od Ernad Husremović prije oko 16 godina
uh sad sam ušao u vrzino kolo
traži mi novi lvm2, a lvm2 traži devmpapper novi
napravio novi devmapper ali mi traži cluster i distributed lock manager novi
dpkg-checkbuilddeps: Unmet build dependencies: libcman-dev (>= 2.20080826-0ubuntu1) libdlm-dev (>= 2.20080826-0ubuntu1) dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting. dpkg-buildpackage: warning: (Use -d flag to override.) root@vz-test-5501:~/ubuntu/lvm2-2.02.39# aptitude show libcman E: Unable to locate package libcman root@vz-test-5501:~/ubuntu/lvm2-2.02.39# aptitude show libcman* ^[[AE: Unable to locate package libcman* root@vz-test-5501:~/ubuntu/lvm2-2.02.39# aptitude search libcman* i libcman-dev - cluster manager - development files i A libcman2 - cluster manager - libraries root@vz-test-5501:~/ubuntu/lvm2-2.02.39# aptitude search libdlm-dev i libdlm-dev - distributed lock manager - development files
Izmjenjeno od Ernad Husremović prije oko 16 godina
root@ifold:~/asterisk# dpkg --ignore-depends=watershed,libvolume-id1 --auto-deconfigure -i libdevmapper1.02.1_1.02.27-4ubuntu6_i386.deb libdevmapper-event1.02.1_1.02.27-4ubuntu6_i386.deb lvm2_2.02.39-0ubuntu10_i386.deb udev_141-1_i386.deb
... Setting up udev (141-1) ... invoke-rc.d: initscript udev, action "restart" failed. dpkg: error processing udev (--install): subprocess post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of lvm2: lvm2zavisi oudev (>= 136-1); however: Package udev is not configured yet. dpkg: error processing lvm2 (--install): dependency problems - leaving unconfigured Processing triggers for libc6 ... ldconfig deferred processing now taking place Errors were encountered while processing: udev lvm2
Izmjenjeno od Ernad Husremović prije oko 16 godina
oot@ifold:~/asterisk# sudo dpkg -i --ignore-depends=lsb-base asterisk_1.4.21.2~dfsg-3ubuntu2_i386.deb
(Reading database ...
Izmjenjeno od Ernad Husremović prije oko 16 godina
root@ifold:~/asterisk# apt-get install watershed libvolume-id1
Čitam spiskove paketa... Done Gradim stablo zavisnosti Reading state information... Done Package watershed is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package watershed has no installation candidate
root@ifold:~/asterisk# apt-get install libvolume-id1
Čitam spiskove paketa... Done Gradim stablo zavisnosti Reading state information... Done Package libvolume-id1 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package libvolume-id1 has no installation candidate
Izmjenjeno od Ernad Husremović prije oko 16 godina
pa sam ga isključio
root@ifold:~/asterisk# dpkg --ignore-depends=watershed,libvolume-id1,udev --auto-deconfigure -i libdevmapper1.02.1_1.02.27-4ubuntu6_i386.deb libdevmapper-event1.02.1_1.02.27-4ubuntu6_i386.deb lvm2_2.02.39-0ubuntu10_i386.deb
ovo je prošlo
Izmjenjeno od Ernad Husremović prije oko 16 godina
root@ifold:/var# mv ./lib/dpkg/info/udev.postinst ./lib/dpkg/info/udev.postinst.orig
Izmjenjeno od Ernad Husremović prije oko 16 godina
skloniću udev instalacijske skripte
root@ifold:~/asterisk# ls /var/lib/dpkg/info/udev.
udev.conffiles udev.md5sums udev.postinst.orig udev.preinst udev.list udev.postinst udev.postrm
root@ifold:~/asterisk# mv /var/lib/dpkg/info/udev.* .
ali to ne pije vode dpkg -i uvijek kreira te skripte u /var/lib/dpkg/info
Izmjenjeno od Ernad Husremović prije oko 16 godina
vraćam stari udev i lvm2 ...
root@ifold:~/asterisk/tmp/tmp# apt-get install linux-image-2.6.24-19-openvz linux-image-2.6.24-23-openvz lvm2 pcmciautils udev usplash grub
Done Sljedeći paketi su automatski instalirani i više nisu potrebni: libsnmp15 libradiusclient-ng2 libsqlite0 unixodbc libvpb0 odbcinst1debian1 mlock libct3 asterisk-sounds-main asterisk-config libpri1.0 libc-client2007 Use 'apt-get autoremove' to remove them. Predloženi paketi: linux-doc-2.6.24 linux-source-2.6.24 Preporučeni paketi: lilo grub Slijedeći NOVI paketi će biti instalirani: linux-image-2.6.24-19-openvz linux-image-2.6.24-23-openvz lvm2 pcmciautils udev usplash 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 41,1MB of archives. After this operation, 140MB of additional disk space will be used. Get: 1 http://archive.sigma-com.net hardy-updates/universe linux-image-2.6.24-19-openvz 2.6.24-19.41 [20,2MB] Get: 2 http://archive.sigma-com.net hardy-updates/universe linux-image-2.6.24-23-openvz 2.6.24-23.52 [20,2MB] Get: 3 http://archive.sigma-com.net hardy/main udev 117-8 [262kB] Get: 4 http://archive.sigma-com.net hardy/main pcmciautils 014-4ubuntu1 [30,4kB] Get: 5 http://archive.sigma-com.net hardy/main lvm2 2.02.26-1ubuntu9 [325kB] Get: 6 http://archive.sigma-com.net hardy/main usplash 0.5.19 [27,5kB] Fetched 41,1MB in 14s (2766kB/s) dpkg-preconfigure: ne mogu ponovo otvoriti: Can not write log, openpty() failed (/dev/pts not mounted?) Selecting previously deselected package linux-image-2.6.24-19-openvz. (Reading database ... 132845 files and directories currently installed.) Unpacking linux-image-2.6.24-19-openvz (from .../linux-image-2.6.24-19-openvz_2.6.24-19.41_i386.deb) ... Done. Selecting previously deselected package linux-image-2.6.24-23-openvz. Unpacking linux-image-2.6.24-23-openvz (from .../linux-image-2.6.24-23-openvz_2.6.24-23.52_i386.deb) ... Done. Selecting previously deselected package udev. Unpacking udev (from .../archives/udev_117-8_i386.deb) ... Selecting previously deselected package pcmciautils. Unpacking pcmciautils (from .../pcmciautils_014-4ubuntu1_i386.deb) ... Selecting previously deselected package lvm2. Unpacking lvm2 (from .../lvm2_2.02.26-1ubuntu9_i386.deb) ... Selecting previously deselected package usplash. Unpacking usplash (from .../usplash_0.5.19_i386.deb) ... Can not write log, openpty() failed (/dev/pts not mounted?) Setting up linux-image-2.6.24-19-openvz (2.6.24-19.41) ... Running depmod.
Izmjenjeno od Ernad Husremović prije oko 16 godina
watershed
root@vz-test-5501:~/ubuntu/watershed-4# apt-get install libnettle-dev
Čitam spiskove paketa... Done Gradim stablo zavisnosti Reading state information... Done Slijedeći dodatni paketi će biti instalirani: libgmp3-dev libgmp3c2 libgmpxx4ldbl libnettle2 Predloženi paketi: libgmp3-doc libmpfr-dev Slijedeći NOVI paketi će biti instalirani: libgmp3-dev libgmp3c2 libgmpxx4ldbl libnettle-dev libnettle2 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. Need to get 1821kB of archives. After this operation, 3863kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://archive.sigma-com.net hardy/main libgmp3c2 2:4.2.2+dfsg-1ubuntu2 [436kB] Get:2 http://archive.sigma-com.net hardy/main libgmpxx4ldbl 2:4.2.2+dfsg-1ubuntu2 [219kB] Get:3 http://archive.sigma-com.net hardy/main libgmp3-dev 2:4.2.2+dfsg-1ubuntu2 [513kB] Get:4 http://archive.sigma-com.net hardy/main libnettle2 1.15-4 [136kB] Get:5 http://archive.sigma-com.net hardy/main libnettle-dev 1.15-4 [516kB]
Izmjenjeno od Ernad Husremović prije oko 16 godina
ifold je bio čučuno nije htio da se boot-a .. tek kada sam sa recuecd-om (alternate jaunty i386) prišao ifold-u i u /boot/ prebacio 2.6.24-23-openvz sa vmware host-a boot je proradio
apt-get install
alien libbeecrypt6 librpm4.4 lprng ncurses-term pax rpm
Izmjenjeno od Ernad Husremović prije oko 16 godina
test patchiranja
root@vz-test-5501:~/ubuntu/asterisk-1.4.21.2~dfsg# QUILT_PATCHES=debian/patches quilt push -afv
Izmjenjeno od Ernad Husremović prije oko 16 godina
zaptel traži novi udev ali ja sam napravio udev-117 koji dodaje rule za zaptel uređaj
diff --git a/debian/control b/debian/control
index 9cca670..6592ccc 100644 --- a/debian/control +++ b/debian/control @@ -16,7 +16,6 @@ Architecture: any # Xorcom packages depend on xpp-firmware. Debian zaptel will probably # just recommend it. Depends: ${misc:Depends}, ${shlibs:Depends}, procps, fxload -Breaks: udev (<< 136-1) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Description: zapata telephony utilities Userspace utilities for configuring the Zapata telephony kernel driver, which supports various telephony hardware, such as Wildcard series of
Izmjenjeno od Ernad Husremović prije oko 16 godina
root@ifold:~/asterisk# dpkg -i udev_117-8ubuntu1_i386.deb
root@ifold:~/asterisk# dpkg -L udev | grep zaptel
/etc/udev/rules.d/40-zaptel.rules
Izmjenjeno od Ernad Husremović prije oko 16 godina
root@ifold:~/asterisk# dpkg -i asterisk_1.4.21.2~dfsg-3ubuntu3_i386.deb asterisk-config_1.4.21.2~dfsg-3ubuntu3_all.deb asterisk-sounds-main_1.4.21.2~dfsg-3ubuntu3_all.deb zaptel_1.4.11~dfsg-3ubuntu3_i386.deb zaptel-source_1.4.11~dfsg-3ubuntu3_all.deb libtonezone1_1.4.11~dfsg-3ubuntu3_i386.deb lsb-base_3.2-20ubuntu5_all.deb
Izmjenjeno od Ernad Husremović prije oko 16 godina
#dpkg -i asterisk_1.4.21.2~dfsg-3ubuntu3_i386.deb asterisk-config_1.4.21.2~dfsg-3ubuntu3_all.deb asterisk-sounds-main_1.4.21.2~dfsg-3ubuntu3_all.deb zaptel_1.4.11~dfsg-3ubuntu3_i386.deb libpri1.0_1.4.3-3ubuntu2_i386.deb libgsm1_1.0.12-1ubuntu1_i386.deb libgsm-tools_1.0.12-1ubuntu1_i386.deb libcap2-bin_2.11-2ubuntu1_i386.deb libcap2_2.11-2ubuntu1_i386.deb libtonezone1_1.4.11~dfsg-3ubuntu3_i386.deb
Konfiguracijska datoteka `/etc/init.d/asterisk' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** asterisk (Y/I/N/O/D/Z) [default=N] ? Starting Asterisk PBX: Unable to open pid file '/var/run/asterisk.pid': Permission denied Unable to open pid file '/var/run/asterisk.pid': Permission denied Unable to bind socket to /var/run/asterisk.ctl: Permission denied Logger Warning: Unable to open log file '/var/log/asterisk/messages': Permission denied [Apr 10 20:48:11] ERROR[11275]: logger.c:615 init_logger: Unable to create event log: Permission denied asterisk. Setting up zaptel (1:1.4.11~dfsg-3ubuntu3) ... Zaptel telephony kernel driver: FATAL: Could not load /lib/modules/2.6.24-23-openvz/modules.dep: No such file or directory Setting up libcap2-bin (2.11-2ubuntu1) ...
Izmjenjeno od Ernad Husremović prije oko 16 godina
root@ifold:~/asterisk# m-a install zaptel
Version 1:1.4.11~dfsg-3ubuntu3+2.6.24-23.52 of zaptel-modules-2.6.24-23-openvz already installed, skipping.
Izmjenjeno od Ernad Husremović prije oko 16 godina
pobrisao stare header-e
root@ifold:/usr/src# rm -r f linux-headers-2.6.17* -r -f root@ifold:/usr/src# rm -r f linux-headers-*misdn -r -f root@ifold:/usr/src# rm -r f linux-headers-2.6.24-openvz -r -f root@ifold:/usr/src# rm -r f linux-headers-2.6.24-19 -r -f root@ifold:/usr/src# rm -r f linux-headers-2.6.18* -r -f
Izmjenjeno od Ernad Husremović prije oko 16 godina
root@ifold:~/asterisk# cat /etc/default/zaptel
ZAPTEL_MODS=zaphfc
root@ifold:~/asterisk# invoke-rc.d zaptel start
Zaptel telephony kernel driver: modprobe zaphfc s-1 s-2 ZT_SPANCONFIG failed on span 1: Invalid argument (22) invoke-rc.d: initscript zaptel, action "start" failed.
problem je sa ztcfg ova komanda vraća gornje errore
root@ifold:~/asterisk# cat /proc/zaptel/1
Span 1: ZTDUMMY/1 "ZTDUMMY/1 (source: HRtimer) 1" (MASTER)
root@ifold:~/asterisk# cat /proc/zaptel/2
Span 2: ZTHFC1 "HFC-S PCI A ISDN card 1 [TE]" 1 ZTHFC1/0/1 2 ZTHFC1/0/2 3 ZTHFC1/0/3
Izmjenjeno od Ernad Husremović prije oko 16 godina
root@ifold:~/asterisk# genzaptelconf
# 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: ZTDUMMY/1 "ZTDUMMY/1 (source: HRtimer) 1" (MASTER) # Span 2: ZTHFC1 "HFC-S PCI A ISDN card 0 [TE] layer 1 DEACTIVATED (F4)" AMI/CCS span=2,1,0,ccs,ami # termtype: te bchan=1-2 dchan=3 # Global data loadzone = us defaultzone = us
ispravio zapata-channels
root@ifold:/etc/asterisk# cat zapata-channels.conf
; 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: ZTDUMMY/1 "ZTDUMMY/1 (source: HRtimer) 1" (MASTER) ; Span 2: ZTHFC1 "HFC-S PCI A ISDN card 0 [TE] layer 1 DEACTIVATED (F4)" AMI/CCS ;group=0,12 group=1 context=bringoutba ;context=from-pstn switchtype = euroisdn signalling = bri_cpe_ptmp channel => 1-2 group= context=default
Izmjenjeno od Ernad Husremović prije oko 16 godina
ifold*CLI> zap show channels
Chan Extension Context Language MOH Interpret pseudo default default 1 bringoutba default 2 bringoutba default
Izmjenjeno od Ernad Husremović prije oko 16 godina
uh baš sam brizgonja
jutros sam sve config-e uništio, sva sreća da imam backup (iax.conf ..)
šta sam još uradio:- apt-get install iaxmodem (koji ima svoj init.d iaxconf)
- u init.d hylafax zato izbacio pokretanje iaxmodema
ifold*CLI> core show version
Asterisk 1.4.21.2~dfsg-3ubuntu3 built by root @ vz-test-5501.bring.out.ba on a i686 running Linux on 2009-04-10 18:03:33 UTC
problem updgrade-a kernel-a¶
barkanjem po udev-u (upgrade, pa deinstall pa vako pa nako) uništio sam update-initramfs komandu, tako da bilo koji update kernela ili nečega što ovu komandu pokreće može puknuti ifold (boot stane)
u /boot/backup/ nalazi se *24-23-openvz kernel koji radi
Izmjenjeno od Ernad Husremović prije oko 16 godina
Izmjenjeno od Ernad Husremović prije oko 16 godina
kako koristiti ovaj gits_*tar.gz
optakovati i dobijem između ostalog _git_zaptel dir
u asterisk asterisk_dev/
onda napravim poddir za zaptel build i napravim simbolički link
asterisk_dev/zaptel$ ln -s ../_git_zaptel .git
i onda normalno radim sa git repos-om
napomena: kada se sve završi .git se briše, jer dpkg-buildpackage ne zna handlirati .git repos pa pukne
Izmjenjeno od Ernad Husremović prije oko 16 godina
šta sadrži asterisk deb ?¶
gledao sam asterisk, zaptel, libpri debian/patches
i tu ima svačega, čak neki bristuff patchevi nisu ni prihvaćeni jer ih debian mainainer-i smatraju problematičnim
tu se takođe pojavljuju i patchevi drugih autora (u asterisku) zato se može reći da je asterisk build bristuff-ed ali ne samo bristuffed patchiran asterisk
Izmjenjeno od Ernad Husremović prije oko 16 godina
vISDN¶
interesatno je pročitati mišljenje vISDN autora http://www.pbx.in/voip-info/wiki/view/Asterisk+vISDN.html
Versatile ISDN for Linux
Oct. 2005: A new ISDN architecture, called vISDN, has been developed to fully support EuroISDN protocol with HFC based cards: HFC-S PCI, HFC-4S and HFC-8S (with HFC-E1 and HFC-S USB support coming soon).
vISDN is not based on Zaptel, libpri, chan_zap, zaphfc, qozap, etc. but has been designed from scratch to be a standard compliant EuroISDN implementation plus a channel crossconnector, plus protocol analysis support thru Wireshark, plus a ppp terminator, plus other stuff.
Note that by not being based on Zaptel applications like ZapBarge, ZapScan, zaptel-based timing and the like are not applicable to vISDN channels. Your other driver options for HFC based ISDN cards are zaphfc and mISDN.
vISDN comes with support for E-channel sniffing (an E-channel is used for signalling echo; BRI only).
Web site: http://www.visdn.org
Note: You should use the latest development snapshots, if you want to test it. Huge improvements have been made since the last resale (vISDN 0.14.0).
Requirements (bases on 2006-01-31 patch 504):
- Kernel 2.6.8 or newer
- EuroISDN
- Hardware with a HFC 'Cologne' chipset, GSM/PCI Card (vgsm)
- Asterisk v1.2.x (Asterisk 1.0.x support has been removed - vISDN <=0.14.0 only supported 1.0.x )
- udev >= 051
Debian requirements:
- ppp-dev package (if you want to compile the pppd plugin)
- iproute package (for visdn_configurator script)
Izmjenjeno od Ernad Husremović prije oko 16 godina
I found zaptel to be too much voice-oriented and libpri to be a partial ISDN stack implementation, it is my opinion and the opinion of many people I know that the zaptel/libpri/chan_zap suite:
- Incompletely or wrongly implemented EuroISDN and was therefore not certifiable for use in the EU.
- Supported basic rate access only with patches and hacks.
- Had a complicated design, with several funcionalities located in the infrastructure while they would be better located in the device driver. Support for both analougue and digital cards, signalling methods which are very different in nature, (FXO, FXS, E&M, R2) furtherly complicating the design.
I've so decided to rewrite from scratch most of the functionality present in zaptel/libpri/chan_zap to support ISDN. My implementation wants to be well-integrated in the linux kernel, while still being very modular.
Izmjenjeno od Ernad Husremović prije oko 16 godina
još jedan članak koji pominje bristuff i visdn - http://blog.mactijn.eu/2006/12/asterisk-and-isdn2-in-the-netherlands
ukratko:- visdn je dobro koncipiran ali mlad projekat
- bristuff je bugg-y ali najbolje i najzrelije ISDN/BRI rješenje za asterisk
Izmjenjeno od Ernad Husremović prije oko 16 godina
juče mi je čitav dan zaphfc čučnjavao (kada sam radio na adhearsion ticketu #17002) - d channel crc error - čitav računar čučne ubrzo radi toga
vzaphfc, zaphfc¶
ali čekaj malo imamo dva zaphfc ...
root@ifold:~# modprobe -r zaphfc
FATAL: Module zaphfc is in use.
root@ifold:~# top
top - 11:54:01 up 1:34, 2 users, load average: 0.00, 0.00, 0.00
Tasks: 77 total, 1 running, 76 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.3%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 482284k total, 225904k used, 256380k free, 10264k buffers
Swap: 1048568k total, 0k used, 1048568k free, 156960k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
7706 root 20 0 2308 1080 848 R 0.7 0.2 0:00.04 top
4051 root 20 0 31732 11m 6984 S 0.3 2.5 0:04.41 asterisk
1 root 20 0 2844 1752 608 S 0.0 0.4 0:01.78 init
2 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/0
4 root 15 -5 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/0
5 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
6 root 15 -5 0 0 0 S 0.0 0.0 0:00.06 events/0
7 root 15 -5 0 0 0 S 0.0 0.0 0:00.05 khelper
38 root 15 -5 0 0 0 S 0.0 0.0 0:00.04 kblockd/0
41 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
42 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpi_notify
113 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
146 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ubstatd
148 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
149 root 20 0 0 0 0 S 0.0 0.0 0:00.15 pdflush
150 root 15 -5 0 0 0 S 0.0 0.0 0:00.02 kswapd0
215 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
1163 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ksnapd
1412 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ata/0
1416 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ata_aux
1422 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ksuspend_usbd
1428 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
1439 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
1447 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
2002 root 15 -5 0 0 0 S 0.0 0.0 0:00.01 scsi_eh_2
2004 root 15 -5 0 0 0 S 0.0 0.0 0:00.01 scsi_eh_3
root@ifold:~# modprobe -r zaphfc
FATAL: Module zaphfc is in use.
root@ifold:~# /etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk.
root@ifold:~# modprobe -v -r zaphfc
rmmod /lib/modules/2.6.24-23-openvz/misc/zaphfc.ko
rmmod /lib/modules/2.6.24-23-openvz/misc/zaptel.ko
rmmod /lib/modules/2.6.24-23-openvz/kernel/lib/crc-ccitt.ko
root@ifold:~# modprobe -v vzaphfc
insmod /lib/modules/2.6.24-23-openvz/kernel/lib/crc-ccitt.ko
insmod /lib/modules/2.6.24-23-openvz/misc/zaptel.ko
insmod /lib/modules/2.6.24-23-openvz/misc/vzaphfc/vzaphfc.ko
root@ifold:~# dmesg
...
[ 5722.905522] vzaphfc: HFC-S PCI A Zaptel Driver (V1.44) loading
[ 5722.905727] PCI: Enabling device 0000:00:09.0 (0000 -> 0003)
[ 5722.905746] ACPI: PCI Interrupt 0000:00:09.0[A] -> GSI 17 (level, low) -> IRQ 23
[ 5722.906087] vzaphfc: card 0: registered ZTHFC1/0/1
[ 5722.906098] vzaphfc: card 0: registered ZTHFC1/0/2
[ 5722.906104] vzaphfc: card 0: registered ZTHFC1/0/3
[ 5722.906236] vzaphfc: card 0: resetting
[ 5722.921450] vzaphfc: card 0 configured for TE mode at mem 0xd7efac00 (0xde9d8c00) IRQ 23
root@ifold:~# cd /var/spool/
root@ifold:/var/spool# ls
anacron asterisk cron cups hylafax lpd mail postfix
root@ifold:/var/spool# cd asterisk/
root@ifold:/var/spool/asterisk# ls
dictate fax meetme monitor outgoing sms system tmp voicemail
root@ifold:/var/spool/asterisk# cd sms
root@ifold:/var/spool/asterisk/sms# ls
motx mtrx
root@ifold:/var/spool/asterisk/sms# cd motx/
root@ifold:/var/spool/asterisk/sms/motx# ls
root@ifold:/var/spool/asterisk/sms/motx# cd ..
root@ifold:/var/spool/asterisk/sms# cd mtrx
root@ifold:/var/spool/asterisk/sms/mtrx# ls
root@ifold:/var/spool/asterisk/sms/mtrx# cd ..
root@ifold:/var/spool/asterisk/sms# zt
ztcfg ztdiag ztmonitor zt_registration ztscan ztspeed zttest zttool
root@ifold:/var/spool/asterisk/sms# ztcfg
root@ifold:/var/spool/asterisk/sms# ztscan
[1]
active=yes
alarms=OK
description=HFC-S PCI A Zaptel Driver card 0 [TE]
name=ZTHFC1
manufacturer=
devicetype=
location=
basechan=1
totchans=3
irq=0
type=digital-
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=AMI
framing_opts=CCS
coding=AMI
framing=CCS
Izmjenjeno od Ernad Husremović prije oko 16 godina
šta koristi asterisk libpri ili libpri-bristuffed ?¶
root@ifold:~# lsof | grep libpri
asterisk 4054 root mem REG 254,1 155460 1851607 /usr/lib/libpri-bristuffed.so.1.0
Izmjenjeno od Ernad Husremović prije oko 16 godina
?? zašto se ovaj ifold smrzne nakon par poziva, hajmo pratiti memoriju
root@ifold:~# vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 4 0 0 282600 9156 130408 0 0 65 4 7887 447 1 1 97 1
root@ifold:~# cat /proc/swaps
Filename Type Size Used Priority /dev/mapper/astervg1-swap partition 1048568 0 -2
Izmjenjeno od Ernad Husremović prije oko 16 godina
nakon 5-6 poziva
root@ifold:~/ah_1# ruby ami_standalone.rb
root@ifold:~/ah_1# vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 4 0 0 275396 10260 135256 0 0 59 4 7902 453 1 1 97 1
Izmjenjeno od Ernad Husremović prije oko 16 godina
vmstat
Memory
swpd: the amount of virtual memory used. free: the amount of idle memory. buff: the amount of memory used as buffers. cache: the amount of memory used as cache. inact: the amount of inactive memory. (-a option) active: the amount of active memory. (-a option)
Izmjenjeno od Ernad Husremović prije oko 16 godina
root@ifold:~/ah_1# vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 1 0 0 275384 10380 135264 0 0 50 4 7924 468 1 1 97 1
Izmjenjeno od Ernad Husremović prije oko 16 godina
kakvo je stanje kod smraka-1
root@hp-smraka-1:~# vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 113212 129776 298156 937744 2 4 361 80 39 1217 12 2 78 8
Izmjenjeno od Ernad Husremović prije oko 16 godina
nešto je usporilo ... syslog
Apr 12 14:41:02 ifold asterisk[4054]: rc_avpair_new: unknown attribute 1490026597 Apr 12 14:41:46 ifold last message repeated 4 times Apr 12 14:42:40 ifold last message repeated 7 times Apr 12 14:43:46 ifold last message repeated 6 times
pokušao izlazni poziv, sve opet blokiralo
Izmjenjeno od Ernad Husremović prije oko 16 godina
Izmjenjeno od Ernad Husremović prije oko 16 godina
buildao speex 1.2rc1 na vz-test-5501, pa to prebacio na ifold
root@ifold:~/asterisk# dpkg --force-all -i *speex*deb
instalirao na ifold
root@ifold:~/asterisk# speexdec --version
speexdec (Speex decoder) version 1.2rc1 (compiled Apr 12 2009) Copyright (C) 2002-2006 Jean-Marc Valin
Izmjenjeno od Ernad Husremović prije oko 16 godina
novi build asteriska sa misdn modulom, i sa novim speexdsp-dev 1.2:
root@ifold:~/asterisk# dpkg -i asterisk_1.4.21.2~dfsg-3ubuntu4_i386.deb asterisk-config_1.4.21.2~dfsg-3ubuntu4_all.deb
Izmjenjeno od Ernad Husremović prije oko 16 godina
prebacio isdn na misdn
root@ifold:~# vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 0 25784 57944 303888 0 0 20 17 855 366 2 1 96 1
razlika je drastična, sada imamo samo 25784 free (KB pretpostavljam) za razliku od predhodnog stanja gdje je bilo cca 10x više memorije
misdn je ovo pocugao ?!
Izmjenjeno od Ernad Husremović prije oko 16 godina
- Naslov promijenjeno iz hardy: backport asterisk 1.4.21, libpri, libgsm iz jaunty-ja u ifold hardy: backport asterisk 1.4.21, libpri, libgsm iz jaunty-ja
ifold čučnjavanja sa vzaphfc-om¶
mislim da se upravo ovo dešavalo
Subject [BUG] How to get real-time priority using idle priority
The attached program gives itself idle priority, then forks off two
child processes that execute a busy loop. The result is that sometimes
all other processes stop and the whole system freezes until this program exits. An affected system will respond to pings, but X freezes, the cursor won't move, SSH sessions won't respond or echo characters back,
and not even a text console will budge. Hitting Alt-SysRq-N twice can
sometimes unfreeze the system, or you can just wait for the program to exit.
This bug is in 2.6.29-rc1. I have also observed this bug in 2.6.28 on two dual-core systems, an Athlon X2 desktop and a Core 2 Duo laptop.
Both are running a 64-bit system. Using i386 and amd64 Ubuntu Jaunty
daily builds with a 2.6.28 kernel, I found I could reproduce the problem with the 64-bit kernel, but not the 32-bit kernel. Since that might just be due to a difference in the kernel configurations, I'm attaching the
kernel configuration on which I know this problem can be triggered.
It may take a couple-dozen runs of this program for the freeze to occur.
Just hit control-C and re-run the program until it happens. When it does freeze, the effect is immediate, so there's no chance you'll interrupt the program too soon.
Background:
I wrote this program because BOINC is freezing my system occasionally when it starts a new task. And it almost always freezes everything during boot-up when BOINC starts or when I resume processing after having suspended it.
Previously on 2.6.27, I had noticed general sluggishness and frequent short pauses of the entire system that were linked to BOINC running. It was hard to create a solid testcase for this, though. I wonder if the
current problem and the previous problem are related...
#include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <sys/types.h> #include <sys/wait.h> #include <sched.h> #include <linux/sched.h> struct sched_param blank; void go_idle() { int result = sched_setscheduler(0, SCHED_IDLE, &blank); if (result != 0) printf("Failed to set idle priority.\n"); } void busyloop() { volatile int n, t; volatile int x = 1; for (t = 0; t < 4; t++) for (n = 0; n < 0x70000000; n++) x *= n; exit(0); } pid_t spawn() { pid_t pid = fork(); if (pid == 0) busyloop(); return pid; } int main(int argc, char *argv[]) { pid_t pid1, pid2; go_idle(); pid1 = spawn(); pid2 = spawn(); int status; waitpid(pid1, &status, 0); waitpid(pid2, &status, 0); return 0; }
Izmjenjeno od Ernad Husremović prije skoro 15 godina
- Status promijenjeno iz Dodijeljeno u Odbačeno