summaryrefslogtreecommitdiff
path: root/xpp
AgeCommit message (Collapse)Author
2007-07-11* Enable zaptel-perl by default.tzafrir
* Clunky shell xpp init functions replaced with better perl utilities. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2710 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-06-07Some XPP bugfixes:tzafrir
* Fix FXO power denial detection (changeset:4054) * Incorrect data type could cause FXO module to go off-hook (changeset:4048) * xpp_fxloader: fix the error message when you want to disable automatic firmware loading... (changeset:4060) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2589 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-05-17The makefile change needed for parport debugging (only used if parport tzafrir
debugging is enabled). Accedintally left out of previous commit. Has no effect by default. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2534 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-05-17* Tested with zaptel-1.2.17.1tzafrir
* Add D-Channel TX, RX and BAD frames count in /proc/xpp/XBUS-*/XPD-*/bri_info * Adjust output of xpp_sync script. Pad for 8 port BRI. * Added a debugging module parport_debug (not compiled by default). * Added an optional patch to zaptel: - compiles only if ZAPTEL_SYNC_TICK is defined - Allow interested driver to register for "sync" notification. - Does not affect drivers that do not use this feature. * Added external synchronization feature: - Only if ZAPTEL_SYNC_TICK feature is compiled in - Than XPP may be synchronized by another card (e.g: an Astribank with FXS can be synchronized by a Digium PRI card). - May be enabled/disabled in runtime via the 'sync_tick_active' module parameter to the xpp.ko module. * Fixed a potential bug in D-Channel hexdump printing. * New visual indications in BRI leds: - Constant ON RED/GREEN: Shows the port type -- NT/TE. - Very fast "double blink": Layer1 work, no D-Channel yet. - Steady blinking (1/2 sec): D-Channel trafic detected. * xpp_fxloader moved to /usr/share/zaptel . * adj_clock removed: never really used. * Debugfs code now disabled by default. * Now we have Zaptel::Hardware and a sample zaptel_hardware script (not (installed by default). * We also have a sample perl zapconf (not installed by default) which aims at replacing genzaptelconf (sans the modules detection). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2529 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-05-17The debugfs code seems to have some bad sideeffects when badly used.tzafrir
So don't enable it by default. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2520 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-04-29xpp rev. 3814:tzafrir
* Protocol no. 2.6: syncing improvements. * Support for 8-port Astribank BRI. * Firmware unloading now works: rmmod xpp_usb; /etc/hotplug/usb/xpp_fxloader reset * Defaults of kernel parameters are now part of parameter description. * World-readable kernel parameters. * No need for extra patch beyond bristuff for Astribank BRI. * Default poll intervals changed: 500 in BRI and FXO. * Allow changing FXS polls interval at run time. * BRI initalization fixed on SUSE (path to logger). * When using the SUSE zaptel rpm package, set modules_var=ZAPTEL_MODULES in /etc/sysconfig/zaptel . * zt_registration not verbose by default. * xpp_sync warns if FXO is sync slave. * Fixed genzaptelconf -z (zapscan output emulation). * PCM fixes. * Solves "multiple ticks" bug. No need for pcm_tasklets workaround. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2475 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-04-29Beginning commit of rev. 3814:tzafrir
renaming xpd init scripts, as the protocol version has changed. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2473 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-03-05Found a proper "marker" for the gfp_t typedef. Now every 2.6.9 is supported.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2286 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-03-02Clarify a cyptic build message.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2266 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-03-01SLAB_KERNEL is an obsolete alias of GFP_KERNEL. Fix build on Vanilla 2.6.20 .tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2257 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-28Make the xpp/utils/Makefile in 1.2 closer to the one in 1.4 tzafrir
(and actually work, this tine). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2252 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-28* xpp rev. 3495: fix a race in the FXO driver of recent weeks.tzafrir
* Add the Astribank BRI driver (though still needs bristuffed zaptel to build and thus will not build by default) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2243 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-27Xorcom rev. 3491:tzafrir
* Version of xpp modules is set from xpp/.version, rather than "unknown". * Astribank devices are now initialized in parallel: faster startup when there are multiple Astribanks. * Re-added support for the old format of /proc/xpp/sync write: (echo N 0 > /proc/xpp/sync ) . The new format (SYNC=NN) is preffered. * Firmware update to fix a PCM issue. * Fixed a build issue with kernel 2.6.8 . * Fixed missing initialization in Zaptel::Xpp::Xbus . * genzaptelconf will now set FXS ports as LS by default. To set them as KS, use fxs_default_start=ks in /etc/default/zaptel / /etc/sysconfig/zaptel (Also a workaround for #7755 ). * Groundwork for sync from zaptel master span: if zaptel is built with ZAPTEL_SYNC_TIC (see zaptel/team/tzafrir/sync ), xpp will report its drift from the zaptel sync master. * USB firmware update: had bad lines checksums (and fxload did not report). * fpga_load can now better report bad hex file checksum ;-) . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2239 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-24Add the Zaptel and Zaptel::Xpp perl modules, and some simple tzafrir
utilities that use them. disabled by default for now. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2223 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-24Make the xpp/utils/Makefile in 1.2 closer to the one in 1.4 .tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2222 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-11struct inode and debugfs: break some Fedoras rather than all others.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2150 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-07oops... missed a line in all the back-and-forth mergingkpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2122 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-07don't reference ZAPTEL_DIR before it has been definedkpfleming
don't print a pointless 'Compile for Unknown' message (if you want a version string, use the top-level version string that we've already created) use a simpler method of conforming to the 2.6.20 workqueue API... there is no need to document the change in the code, nor #define entries that are only used in one place git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2118 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-07Fixed an incorrect merge of xpp/xbus-core.c .tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2117 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-07Update the firmwares from previous commit (2113, Xorcom rev. 3332).tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2114 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-07xpp driver rev. 3332:tzafrir
* Reverse polarity and power denial detection. * A short led flash at registration time. * Add a real version of the xpp modules to them (independent of the Zaptel version). * Update our line status even when not registered. * Fixed a false SIG_CHANGED when inserting or removing cable to FXO. * Fixed compilation fixes for 2.6.20 (Bug #8982) * A cleaner fix for the bool changes of 2.6.19 . * Automatically detect echo_can_state_t at debug time. * Automaitcally set XPP_DEBUGFS (depending on debugfs) at compile time. * Bug-fixes to zaptel-helper. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2113 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-07build XPP on the kernels that Xorcom says are OK to build onkpfleming
update workqueue usage to conform to kernel 2.6.20 API git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2110 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-31zaptel-helper deserves wider exposure. Note: it is not getting installed.tzafrir
However it will probably help preven the braking of Astribank drivers loading for those who do care. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2064 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-31Minor genzaptelconf fixes:tzafrir
* callerid not written to zapata.conf * some messages were not printed with say (and thus not supressed without -v) (Xorcom changeset 3240) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2063 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-25* Xbus protocol version: 2.4 (Zaptel 1.2.12/1.4.0 had 2.3).tzafrir
XPS Init scripts renamed accordingly. * Performance improvements for multi-XPD (span) devices. * Astribank BRI driver (in next commit). * Changes under /proc: - XBUS and XPD numbers have two digits. - Every script wildcard should be replaced from XBUS-? to XBUS-[0-9]* - Added /proc/xpp/XBUS-*/XPD-*/blink: echo 1 to start and 0 to stop. * Several countries (South Africa, UAE, anybody else) require a shorter ring delay. Adjust FXO reg 0x17 (23)'s bits 0:2 to 011. * Use tasklets to move most of the interrupt PCM copying out of the interrupt. * Debugfs-based code to dump data to userspace (used to debug BRI D channel). * Pretend every 2.6.9 actually has later RHEL's typedefs. * fpga_load supports /dev/bus/usb . * Fixed physical order sorting in genzaptelconf. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1966 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-25Remove confusing print of ZT_FLAG_RUNNING .tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1963 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-25xproto old code cleanup:tzafrir
- Remove old SOFT_SIMULATOR (not used in the last year ;-) - As a result can merge packet_receive() and packet_process() - Remove unused macro (MAX_XPACKET_DATALEN) from xproto.h git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1962 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-23clean up various compiler warningskpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1920 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-12-27remove pointless duplication of ZAPTEL_VERSION that causes these modules to ↵kpfleming
be rebuilt every time a commit is made to any part of Zaptel git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1766 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-12-18Code is 2.6-specific anyway, no need for an explicit test.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1724 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-12-18Use the internal version (without locking) of usb_reset_device. tzafrir
Intended for kernel 2.6.9 and earlier. Finally full support of 2.6.8 and 2.6.9. r2937: diego | 2006-12-17 14:20:36 +0200 r2940: tzafrir | 2006-12-17 16:32:51 +0200 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1723 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-12-18xpp_zap.c: Better error hanlding during module init.tzafrir
orig r2948: oron | 2006-12-17 18:54:00 +0200 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1722 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-12-18Assume every 2.6.9 kernel is a later RHEL4 kernel, which backportedtzafrir
the gfp_t typedef. Either way we break some systems). r2938: diego | 2006-12-17 14:22:16 +0200 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1721 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-12-15Sync to xpp RELEASE-1.2.0 2933.tzafrir
r2847@boole: diego | 2006-12-03 10:33:00 +0200 added documentation which explains which packages are needed to build the drivers on different distributions. r2862@boole: tzafrir | 2006-12-05 08:43:50 +0200 README.Astribank: A typo in the sample config (changeset:2861). r2891@boole: tzafrir | 2006-12-08 01:11:45 +0200 Re-accept changeset:2832 after all. r2892@boole: tzafrir | 2006-12-08 02:46:07 +0200 Merge genzaptelconf changeset:2866 from trunk: * Zapata comment on unidentified channel goes to $zapata_file * Correct pattern for Sangoma A200 card's channels. r2893@boole: tzafrir | 2006-12-08 03:11:37 +0200 genzaptelconf: * Add options xpp_fxo_rxgain: add a custom rxgain for every XPP FXO channel. * Do print the original line for every channel. r2909@boole: tzafrir | 2006-12-10 20:03:59 +0200 Add some sleeps in older kernels in the firmware loading script. r2932@boole: tzafrir | 2006-12-14 17:30:12 +0200 Make the warning about a call to off-hook FXO debug. At least if we cannot suppress it at module load time. r2933@boole: tzafrir | 2006-12-14 17:32:00 +0200 Don't redefine 'bool' on newer kerenls to fix building with kernel 2.6.19. Taken from Digium tree. (from changeset:2930) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1718 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-12-15Firmwares to fix caller ID detection timing issue.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1715 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-12-11kernel 2.6.19 now has a type called 'bool', although it's not completely ↵kpfleming
implemented so there will still be some warnings when building xpp against 2.6.19 kernel headers git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1700 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-30 r2806@boole: oron | 2006-11-27 16:54:06 +0200tzafrir
Fixed panic in ticket:147 merged code from changeset:2802 changeset:2804 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1671 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-30 r2794@boole: oron | 2006-11-26 14:24:15 +0200tzafrir
Remove all SOFT_RING code (unused for a long time). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1670 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-30 r2832@boole: tzafrir | 2006-11-29 11:06:06 +0200tzafrir
Add parameter xpp_ec to the module xpp (xpp_zap.c). Defaults to 1. If 0, module will use Zaptel echo canceller even with XPP_EC_CHUNK. Parameter is read-only for now: cannot be set through /sys/modules. (Merge of changeset:2830) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1668 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-30 r2831@boole: tzafrir | 2006-11-29 11:05:08 +0200tzafrir
genzaptelconf: A list of countries for which to use busydetect. (backport of changeset:2829) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1667 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-30 r2817@boole: oron | 2006-11-28 13:39:47 +0200tzafrir
Maintenance branch for asterisk-1.2.x git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1666 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-28Give sane defualts to values that we get in 1.4 from autoconf.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1653 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-28 r1623@boole: tzafrir | 2006-11-21 17:19:16 +0200tzafrir
Typo: SBINDIR -> BINDIR . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1652 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-28 r1590@boole: tzafrir | 2006-11-11 16:34:45 +0200tzafrir
init_card[34]_23: merge from 2654,2655. * Redirect stderr to /dev/null. Without any redirection, it may fail with exitval=4 . Probably, fd 2 is closed and the shell (or sed which is used in the scripts) tries to write to it (or do some other I/O related syscall) which fails. * make XPP_BASE handling identical in the two scripts. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1651 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-28 r1571@boole: tzafrir | 2006-11-08 18:01:13 +0200tzafrir
Fixed a typo in the "wctdm reimplementation". git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1650 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-28 r1558@boole: tzafrir | 2006-11-06 21:07:29 +0200tzafrir
Fixes for card init scripts from rev 2633: * Don't log card init scripts to /tmp/results . * Document how to trace, though. * init_card_4_23: don't re-open the slics file. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1649 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-28 r1557@boole: tzafrir | 2006-11-06 20:12:16 +0200tzafrir
Merging xpp driver release 1.2 (rev. 2569), originally team/tzafrir/xpp_1.2 * Should build well. Almost final. * genzaptelconf: Also work when zap_autoreg=0 * README.Astribank updated for rev. 1.2. * xpp/utils/Makefile: Use $< with cc -c * Get xpp/utils configuration from autoconf (without changesin top dir) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1648 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-28 r1547@boole: russell | 2006-11-01 21:04:02 +0200tzafrir
instead of setting HOSTCC and CC directly in the Makefile, use the information provided by the configure script (issue #8055, tzafrir) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1647 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-28Revert some README changes to allow automerge.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1645 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-06 * genzaptelconf: Set modes of generated files to original ones or sane tzafrir
defaults. * genzaptelconf: Don't check for zap_autoreg in wait_for_xpp . * genzaptelconf: Add support for fxs_immediate: option to set FXS port as immediate. * genzaptelconf: Fix few left over writes to stdout for config files. * genzaptelconf: Documentation fixes. * genzaptelconf.8: bring up-to-date. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1559 5390a7c7-147a-4af0-8ec9-7488f05a26cb