summaryrefslogtreecommitdiff
path: root/xpp
AgeCommit message (Collapse)Author
2006-09-06genzaptelconf: allow passing the names of the produced files from the tzafrir
environment. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1412 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-06Cleanup the unused non-RBS code:tzafrir
* remove all non WITH_RBS code. No need for the define. * unused recv_errors and seq_errors. * CID_START_TICKS, CID_STOP_TICKS cid_timer from trunk/ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1411 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-06More cleanup:tzafrir
xpp_zap.c: * Remove old and long unused character device interface. * Show some extra fields in XPD summary proc file. * Move atomic_dec() to correct position card_fxs.c: Remove unused label. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1409 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-06Begin merging a small set of clean-ups:tzafrir
* __do_sethook() was gone and merged into do_sethook(). * Use DAA_RING_REGISTER constant instead of a number. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1408 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-06Better USB error handling: move "pending_writes" check earlier.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1407 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-06* genzaptelconf: remove duplicate test for location of ztcfgtzafrir
* genzaptelconf: really add the option -R (suppress restarting Asterisk in the end) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1405 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-05Don't throw a SLIC_REPLY packet just because we're not registered yet.tzafrir
Test for ring control and such will be done in update_line_status(). git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1399 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-05SPAN_REGISTERED() should not rely on zaptel ZT_FLAG_REGISTERED sincetzafrir
zaptel set it before registration is finished. (right: xpp needs to replicate zaptel's bookkeeping here). git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1397 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-05Rate limit error messages for USB URBs.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1396 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-05Raw xbus command proc interface (Compile-time option. Desabled by default).tzafrir
(most of this fix got accidentally into in xbus-core.c in prev. commit) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1395 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04* Re-add calibrate_slics to the FXS initialization processtzafrir
* xpp/utils: Build and install init_fxo_modes . Data is based on data from wctdm.c . TODO: a separate daa.h? * Fail the script if automatic calibration has failed. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1394 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04FXO caller-id now works.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1393 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04Workaround spurious rings described in ticket:102 .tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1392 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04Rename the bitmask xpd->hookstate into xpd->offhook (for readability).tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1391 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04Move all zt_hooksig(...{OFF,ON}HOOK) calls into update_line_status() tzafrir
in xpp_zap.c git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1390 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04Finally not using SOFT_RING.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1389 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04Send ring signalling to zaptel directly from card_fxo.c:tzafrir
no need to xpp_ring_generate() git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1388 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04Fix FXO polling (separate poll_counter for each unit)tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1387 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04Remove obsolete rapid configuration code.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1386 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04* Deleted the internal changelog of genzaptelconf.tzafrir
* bumped up internal version to 0.5.5 . git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1385 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04genzaptelconf: handle the case of zap_autoreg=0 tzafrir
(FIXME: code copied from zaptel.init) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1384 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04Minor code cleanup: No more SETHOOK method. It's only used in FXO, sotzafrir
now it's an internal function: __do_sethook() git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1383 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-04Experimenting with SOFT_RING again:tzafrir
* Poll R5 every 2 milliseconds; thresholds adjusted accordingly. * experimenting a reduced noring_threshhold (20ms) * Unset ring_sig[] for the FXO channel that is no longer being ringed. * Added ring_sig[] to the fxo struct: set when we need to check for reg 5 (instead of abusing the value of ring_thresh[]) * Don't increment ring_thresh/noring_thresh once they reached their threshold. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1382 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-02Fix problems with battery voltage fluctuations:tzafrir
- Use a higher voltage. - Add a software debounce counter. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1381 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-02Only display XORCOM_INTERNAL options if they can be used.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1380 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-02Show in /proc/xpp/XBUS-?/XPD-?/fxo_info also the noring_thresh[]tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1379 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-02Disable -DSOFT_RING: done in the FPGA now.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1378 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-02Fix a race condition when quickly reconnecting during a disconnect.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1377 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-12* Wait for /dev/zap/ctl to appear if udev takes its time creating it.tzafrir
* Try looking for ztcfg in /usr/sbin as well. * Also allow setting the location of ztcfg from environment. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1294 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10* A delay loop waiting for a slow udev to generate /dev/zap/ctltzafrir
* Work around stupid call to ztcfg on modprobe (as inserted by zaptel install script) * -M now edits /etc/sysconfig/zaptel if it find that file and not /etc/modules * editing of /etc/sysconfig/zaptel: remove all lines that begin with MODULES=, and add MODULES="list of modules" to the end. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1293 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10Show SOFT_RING compile status when xpd_fxo module is loaded.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1292 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10Fix ring detection logic in FXO:tzafrir
Detect ring stop only when register 0x05 shows no ring voltage for enough samples. This is done via noring_thresh[]. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1291 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10* Added support for readingconfiguration from /etc/sysconfig/zaptel .tzafrir
* Config file location can be overriden by environment. * Removed an obsolete function. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1290 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10Solves spinlock-panic in CentOS 4.tzafrir
zt_transmit() was called in spinlock protected context. However, it may call back our hook setting code which tries to lock the same spinlock. As a safeguard, the same logic was applied to zt_receive(). git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1289 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10card_fxo.c: Fix a potential bug: battery voltage is a 2's complement value.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1288 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10Improve checking order in xpp_zap.ctzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1287 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10Bugfix: should not call zaptel for unregistered XPD's.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1286 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10* New SOFT_RING detection in FXO:tzafrir
- Poll register 0x05 on each DAA - When enough energy (value of 0x20|0x40 occurs enough times), raise the ringing[] flag. - When the value show no energy, lower the ringing[] flag. - When we get SIG_CHANGED of stop ringing -- stop polling. * More debugging messages for proc files git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1285 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10xbus-core.c: documentation updates.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1284 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10genzaptelconf: fixed typo that prevented getting caller ID on zaptel trunkstzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1283 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10Bugfix: the PROC_USBXPP_SUMMARY does not own xpp->proc_xbus_dir and shouldtzafrir
not nullify it (partial reversal of changeset:1225) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1282 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10* xpp_fxloader: Allow loading just USB firmware with command 'usb'tzafrir
* xpp_fxloader: also add 'load' as an alias of 'xppdetect' * xpp_fxloader: and add a 'help' message. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1281 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10Better LED handling for fxo (copied from fxs):tzafrir
- Fix both branches/RELEASE-1.1.0 and trunk/ - Use a ledcontrol bitmask to mark led on/off - Actuall led commands are send only from handle_fxo_leds() git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1280 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10- In SIG_CHANGED only sig_toggles bits are interesting (was good in FXS,tzafrir
now fixed in FXO). - Better DBG messages for SIG_CHANGED (FXS and FXO). - Start work on new RING logic (for FXO caller id). git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1279 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-10fixed a typo: it's waitfor_xpds and not wait_for_xpdstzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1278 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-07-16Merged revisions 1235 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1235 | kpfleming | 2006-07-15 19:12:55 -0500 (Sat, 15 Jul 2006) | 2 lines eliminate compiler warning ........ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1238 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-07-14NULLify pointers to /proc files after removing them (so anyone who tries to tzafrir
access them afterwards causes iimmediate Oops instead of unknown behaviour). git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1225 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-07-14genzaptelconf: Fix version stringstzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1224 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-07-10* Fix currents handling in driver.tzafrir
* genzaptelconf: A simpler wait_for_xpp using new proc wait_for_xpds * genzaptelconf: fixed confusion between framing and coding for E1/{il/nl} git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1215 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-07-08just #include "zaptel.h". No STANDALONE_ZAPATA or other strange stuff.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1211 5390a7c7-147a-4af0-8ec9-7488f05a26cb