summaryrefslogtreecommitdiff
path: root/xpp
AgeCommit message (Collapse)Author
2008-08-12Zaptel-perl: more robust parsing of channel signalling types.tzafrir
Parse them from a list rather thna fusing a regex of a "word". git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4475 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-11* pcmtx_chan debugging parameter now refers to a zaptel channel number.tzafrir
* Do initialize xsp. Closes issue #13276 . * xbus_core_shutdown can't be __exit as it is used in initilization as well. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4473 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-07xpp: fxo: fix caller-id CID_STYLE_PASS_ALWAYS.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4468 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-07xpp: preliminary CAS support.tzafrir
Uses newer firmware (5975) for the 1151 alone. (From r4463 in branches/1.4) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4467 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-07xpp: reset a reserved protocol field.tzafrir
(From r4462 in branches/1.4) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4466 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-07xpp: debuggging parameter pcmtx_chan now refers to a zap channel number.tzafrir
Also fix a typo in card_fxs. (From r4461 in branches/1.4) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4465 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-04Remove obsolete calibrate_slics. Clean more in utils Makefile.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4458 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-04Add channel alarms in Zaptel-perl and lszaptel specifically.tzafrir
* Zaptel::Chans now provides a method alarms() for a list (or number of) alarms. * lszaptel uses it for a more correct display of channel status. * Also update PCI hardware list. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4455 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-04Minor BRI initlization improvements.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4454 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-04Kbuild: A more robust check for the bri_dchan patch.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4453 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-04Make it formally bashism.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4452 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-04Firmware update: 5959 (DTMF and BRI ID)tzafrir
(From DAHDI rev. 4695) * Fix some cases of double digits. * Fix some rare cases of a BRI unit providing incorrect directionality. * Extra debugging code in card_fxs.c to trace future DTMF issues. * Properly note DAHDI (as opposed to Zaptel) ioctls. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4451 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-07-10PCM: A bugfix that was reintroduced in r4352:tzafrir
After this change, the echo-canceler buffers were not cleared in some cases. As a result when one FXS is put ONHOOK, the other side could hear noise for a second or two until full disconnect is done. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4407 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-07-08A case where we didn't switch to low power at the end of a ring.tzafrir
ISsue may prevents ONHOOK detection. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4394 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-06-28Fixes building with the kernel of RHEL 5.2. Closes issue #12889 .tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4367 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-06-15Muted DTMF PCM (from FXS modules) could "leak" to the next channel.tzafrir
(From xpp r5796). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4352 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-22blink_mode was a boolean and changed to a channels bitmask. Now actuallytzafrir
changing the type from bool to unsigned long. (xpp r5756). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4314 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-20* Document Zaptel::Spantzafrir
* Minor changes to Zaptel::Xpp as well. (Documentation-only changes. xpp r5746,r5747) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4308 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-19* Zaptel-1.2.x does not have zt_alarm_channel(). Move up the backwardtzafrir
compatibility kludge so it actually affect code (failed compilation on zaptel-1.2 from Digium without (Closes issue #12654 ). * Cleanup a compile warning in xpp/card_global.c . * Fix regression in PRI init script (case of less than 4 modules). * Update changelog and bump version. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4304 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-14XPP documentation fixes.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4271 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-13xpp r5723: Includes, among others:tzafrir
* New firmware protocol version: 3.0 . * New numbers for the device types: (e.g. in card_init* scripts) - FXS: 1 (was: 3) - FXO: 2 (was: 4) - BRI: 3 (was: 6 for TE, 7 for NT) - PRI: 4 (was: 9) * Init scripts of FXS and FXO modules are now written in Perl as well (be sure to have File::Basename, e.g: perl-modules in Debian). * calibrate_slics merged into init_card_1_30 . * Module parameter print_dbg replaced with debug . Same meaning. * init_fxo_modes removed: content moved into init_card_2_30, verified at build time. * Code tested with sparse. Most warnings were fixed. * Set ZT_SIG_DACS for the bchans in the PRI and BRI modules to not get ignored by ztscan. * Handle null config_desc we get from some crazy USB controllers. * genzaptelconf: Fix reporting of empty slots in list mode. * xpp_blink can now blink a single analog port. * "slics" has been renamed "chipregs". * Fixed a small typo in fpga_load(8). * Fixed bashism in xpp_fxloader. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4264 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-04* Allow initialization of T1-s (r5665) .tzafrir
* Remove some false alarms on T1-s (r5669) . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4234 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-04A test for a specific #define in zconfig.h was done by invoking cpp .tzafrir
Sadly the change of CFLAGS handling in kernel 2.6.24 meant that it is no longer as easy to invoke cpp on our own. Impact: On kernel >= 2.6.24, xpd_bri never got built, even if the bri_dchan patch was applied. Fix: use a simpler grep instead. Hopefully noone passes it through other means. This should fix issue #12426 . (Backport of r4193 from branches/1.4) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4233 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-10Officially bumping xpp version (xpp/.version) to 5566 .tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4164 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-09The rest of the backport.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4158 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-09Backport some fxo_modes changes from 1.4 to make xpp/utils build again.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4157 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-04Zaptel::Hardware - Add support for AEX410.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4138 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-04-03Moving a macro to quiet a compiler warning.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4127 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-31Document when "D-Chan RX Bad checksum" is not a problem.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4109 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-21* Earleier initialization of PRI module's register.tzafrir
* Fix zaptel-perl reporting of battery after procfs changes. * Documentation updates. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4036 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-18* We need to silence the echo-canceller buffers as well.tzafrir
* But no need to cancel echo on channels without PCM. * Switch to FXS hardware DTMF detection again. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4012 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-03-06xpp.r5512:tzafrir
* Build: - Zaptel >= 1.4.9 is migrating to storing kernel stuff in zaptel/kernel/* - We conditionally use old/new directory scheme: In xpp/Kbuild and xpp/utils/Makefile use ZAP_KERNEL variable, so it's not confused with ZAPTEL_DIR (which appears in zaptel/Makefile as well). - Fix compile warnings on 64 bit systems. - Compile fixes for kernel-2.6.24 * UDEV: - /etc/udev/rules.d/xpp.rules now uses XPP_INIT_DIR to find astribank_hook. - astribank_hook: Modify to do nothing. Add some documentation. * Autoconfiguration -- zapconf: - Don't fail zapconf et.al. if no config file was found. - Skip the 'IRQ Missing:' line in /proc/zaptel/nnn for wcte1xp(?). - Add some newer Digium cards to our hardware inventory. - Partially handle cases where the /proc/zaptel strings does not contain info about E1/T1/J1 or NT/TE. * Better SYNC: - Finer tuning of PLL (New firmware). - Change calculation algorithm of sync offset. It now copes better with the variance in USB frame reception timing. - Statistics: . The view of results was moved from /proc/xpp/XBUS-*/summary to a new /sys/bus/astribanks/devices/xbus-*/timing and enhanced. . A new xpp_timing script shows all astribanks. . A new write only /sys/bus/astribanks/devices/xbus-*/cls is used to clear statistics. Eventually, clearing of XBUS related statistics should be done here. One that was migrated is the clearing of 'PCM [TR]X:' numbers currently appearing in /proc/xpp/XBUS-*/summary (they should be moved too later). - Shorten the strings representation sync_mode ("SYNC_MODE_AB" -> "AB") adapted their use in printk and /proc so the text is clear. - Added a command line parameter xpp.disable_pll_sync to stop all adjustments command to AB (calculations still continue as usual). * PRI: - 4 port support - set clocking master span via ztcfg, like other zaptel devices. * FXO: - Fix false hangups in some countries (voltage fluctuations). - Some countries send caller-id before first ring. Added code to handle caller-id PCM pass through according to a new command line parameter (xpd_fxo.caller_id_style). - No longer sends an event on zt_open. See #12160 . * Misc: - Adapt to zaptel-1.4.8 and above ztscan: added fields returend by new ZT_SPANSTAT_V2 ioctl() - Document sysfs and waitfor_xpds. - Miscelaneous optimizations and bugfixes. - Remove deprecated pcm_tasklet parameter. The rx_tasklet parameter has replaced it a long time ago. - Add RX_CMD counter to /proc/xpp/XBUS-*/summary - Unclutter some of the usb disconnect messages. - xpp_usb: minor preformance improvements in receive. Expose the number of pending receive URB's in /proc/xpp/XBUS-*/xpp_usb git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3952 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-30Don't fail zapconf if no config file was found.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3766 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-10Complete the renaming of Makefile (to reduce merge issues with local xpptzafrir
copy). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3644 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-01-10xpp.r5254:tzafrir
* Improved polarity reversal hangups in FXO (r5194). Fixed false detection of polarity reversals. * Optimize xframe allocation, by not zeroing the whole memory (in get_xframe()). * Fixed erronous error message that appeared sometimes from fpga_load during USB renumeration. * Zaptel::Chans now provides battery() reporting for some FXO channels (Astribank FXO and wcfxo). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3643 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-27Update documentation. Mainly regarding the PRI module.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3564 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-24* XppUtils.pm renamed Zaptel::Utils.pm .tzafrir
* Some more documentation. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3555 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-19* A few more fixes to card_pri.tzafrir
* Do use "crc4" for E1 by default when generating zaptel.conf . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3540 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-18xpp r5151:tzafrir
* xpd_pri: Basically ready. * PCM synchronization changes: - Each Astribank unit ticks independently. Each with its own PLL. - HOST synchronization is gone. Loading of xpp will no longer cause useless 250 ticks per second if you have no Astribank. - Synchronization from the zaptel sync master requires setting ZAPTEL as sync source (xpp_sync ZAPTEL). * rx_tasklet is now a parameter of the module xpp, rather than of xpp_usb. * New FPGA firmware: 5128 (1151) / 5122 (1141, 1131): - Fixes synchronization issues. - PRI module: E1 should now work. * perl module and utilities: - Modules no longer magically scan system on initialization. - Scanning is by calling explicit methods. - "Serial" has been renamed "Label". It is basically unique, but should be modifieble. - Some basic documentation of zaptel perl modules. * Default sort order of zt_registration is back to SORT_CONNCTOR. * zt_registration proc file now shows the number of span registered to if registered. Try: grep . /proc/xpp/XBUS-*/XPD-*/zt_registration * genzaptelconf: Allow using a custom command instead of /etc/init.d/asterisk to start/stop asterisk. * Fixed the typo "Slagish". git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3506 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-11Fix the typo for the case of using M= instead of SUBDIRS= .tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3415 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-11-14Changelog for xpp r5010.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3232 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-11-14Increase FXS ring detect debounce interval.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3231 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-11-14Improve (reduce) signal attenuation on FXO ports.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3230 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-11-14Fix a deadlock spotted on some SMP installations.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3229 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-11-07* zaptel-perl, genzaptelconf: Detect and list Rhino cards.tzafrir
* zaptel-perl: Fix reporting of empty slots in analog Digium cards. * genzaptelconf: More readable case-s. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3217 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-10-18Fix zaptel_hardware's behaviour for unknown span types.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3157 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-10-18 * zaptel-perl should not panic when there is no /proc/bus/usb (Closestzafrir
#11020). * Don't build metering by default for now. * And this is xpp rev 4900. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3153 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-10-18Make opermode work again.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3152 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-10-16xpp r4892:tzafrir
* Zaptel/Hardware perl modules: - Use sysfs directly. Don't rely on lspci/lsusb. - Each device has a description and driver name. - Zaptel::Hardware::drivers() to show the list of required drivers for this system (see zaptel_drivers). - zaptel_hardware shows a description and a (suggested?) driver. * zt_registration sorts by Serial first and only then by connector. * USB_FW.hex replaces all the USB_11x0.hex . - Separate USB interface for the management processor. - Hence fpga_load can now work even with drivers loaded. * Fix firmware upgrading. * Fix manual firmware loading while auto-loading. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3142 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-10-03New xpp release: r4786:tzafrir
* New firmware protocol version: 2.9 . * fpga_load: initial clean-ups before interface split. * genzaptelconf: Don't leave an empty directory behind (4784) * Increase xpp poll_timeout to 1000ms - useful for CentOS 4 (r4781). * Fix initialization anoyance: if AB don't answer to polls, don't waitfor_xpds, and show no waiting XPDs (r4725). * Disable dtmf_detect by default once again (r4712). * Don't check twice for asterisk to stop. The second test was done while Asterisk was still stopping (r4708). * Support building the kernel with M= instead of with SUBDIRS= , as used in some newer build systems (r4677). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3105 5390a7c7-147a-4af0-8ec9-7488f05a26cb