summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-08-11xpp: CAS/E1 support in the PRI module, and minor fixes.Tzafrir Cohen
* Add support for CAS in the PRI module. Use firmware rev. 5975. * Debugging parameter pcmtx_chan now accepts a dahdi channel number. * Do initialize a reserved protocol field (card_global). * The name DAHDI as used in proc/xpp/sync has 5 (not 6) letters. * Fix DTMF "channel leak" regression in the FXS module. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4761 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-11xpp: fxo: Fix support for CID_STYLE_PASS_ALWAYSTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4760 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-11A more robust test for bri_dchan support.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4759 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-11xpp_blink is a bit mask of ports, and not boolean anymore.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4758 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-07Make sure types are same size on 64-bit machines.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4742 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-06remove incorrect referenceKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4728 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-06minor cleanupsKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4725 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-06major cleanup, remove userspace tools referencesKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4724 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-06last round of license header updates hereKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4721 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-06fix a compiler warning by using the proper format string for a size_t variableKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4720 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-06A significant change to the DAHDI transcoder interface and the wctc4xxpShaun Ruffell
driver which breaks backwards compatibility. Basically, I've replaced the memory mapped interface with a read/write interface that allows codec_dahdi to communicate with the hardware transcoder the exact size of the packet to be transcoded. This eliminates issues with remote devices that send G729.B CNG packets even though asterisk does not support them. From a user standpoint: - The transcoder drivers are much more robust in light of system / external conditions. From a developer standpoint: - DAHDI_TRANSCODE_OP is no longer supported, instead use DAHDI_TC_ALLOCATE, DAHDI_TC_GETINFO, and write/read. - Memory and stack usage is reduced (stack usage could still be reduced some more by continuing the process of getting rid of the users of wctc4xxp_send_cmd and wctc4xxp_create_cmd). - If more than one card is in the system channels will be allocated in a round-robin fashion from all available cards, reducing contention for the supervisor channel. - There is no longer a tc400b workqueue created that will not show up in the process list. - Commands and their responses are now explicitly matched up which elimated certain errors caused by unsolicited messages from the transcoder confusing the driver. - There is now an option to export a network interface for capturing traffic to/from the hardware transcoder. - codec_test has been removed from the dadhi/linux package. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4717 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-06change some ioctls that don't actually use a parameter to be defined that wayKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4713 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-06more license header updatesKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4712 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-05first pass at licensing cleanup here... put dahdi/user.h under LGPL instead ↵Kevin P. Fleming
of GPL git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4709 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-05Fix a small regression from r4667: Please don't NULL a good pointer.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4705 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-05Fix alignment issues caused by different tab sizesRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4703 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-05Copy tools README over to the linux packageRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4702 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-05In the function start_digit(), the same logic was replicated 3 times; one timeRussell Bryant
for dtmf, one for mfr2_fwd, and one for mfr2_rev. So, I created a new function which handles all three cases in a way that is (IMO) easier to read. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4699 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-04 - Tweak some formatting to match coding guidelinesRussell Bryant
- Localize a couple of variables - Use snprintf instead of sprintf git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4697 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-04Firmware update: 5959 (FTMF and BRI ID)Tzafrir Cohen
* 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 Zaptel (as opposed to DAHDI) ioctls. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4695 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-04Fix small regression from r4690: do use channo for printing channelTzafrir Cohen
numbers. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4694 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-04Tweak spacing and reduce indentationRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4692 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Re-work a for loop in proc_read. This loop traversed the array of all DAHDIRussell Bryant
channels and determined whether they belonged to the span being printed or not. This has been simplified by simply traversing the array of channels on the span structure, itself. Thanks to tzafrir for the idea in #asterisk-dev. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4690 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Do use printk-s without a priority when continuing previous printk.Tzafrir Cohen
Also remove a small duplication in dahdi-base.c, as I'm too lazy to fix in two separate places. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4688 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Strip trailing whitespaceRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4686 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Change all instances of printk in DAHDI to include a priorityRussell Bryant
(closes issue #11504) Reported by: tzafrir Patches: 20080717__issue11504_dahdi_printk_without_priority.diff uploaded by bbryant (license 36) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4685 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03reduce indentation and tweak formatting of a for loop in proc_readRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4684 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Get rid of dahdi_rxsig_t typedefRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4682 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Get rid of another typedef, sf_detect_state_t, and fix referencesRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4681 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Fix a couple last references to dahdi_txsig_t.Russell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4680 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Rework the table of signalling bits for signalling types and hook statesRussell Bryant
in dahdi_rbs_sethook() to a much more readable and less error prone format. In passing, get rid of the dahdi_txsig_t typedef, and fix uses of it throughout the tree. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4679 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03 - Formatting changes to better conform to guidelinesRussell Bryant
- tweak hw_echocan_on to reduce indentation and use an initializer instead of memset git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4677 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02Convert dahdi timers to a kernel list instead of an open coded listRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4675 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02Rework free_tone_zone a bit to avoid a potential memory leak in a weird ↵Russell Bryant
scenario. It was theoretically possible that a zone was registered after we removed a zone, but before we tried to put it back after determining that it was busy. If this occurred, then when putting the zone back, we would overwrite the reference to the newly created zone, leaking the associated memory. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4673 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02 - use C99 instead of GNU initializersRussell Bryant
- adding spaces and braces according to guidelines - use for loop instead of a while loop for open coded list traversal - reduce some indentation git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4672 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02Use C99 instead of GNU style initializersRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4671 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02 - simplify some code using ARRAY_SIZERussell Bryant
- don't put multiple statements on the same line git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4669 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02Update copyright, and fix a typo in some HDLC code that I wasn't buildingRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4668 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02 - Define kzalloc() for kernel versions that don't have itRussell Bryant
- Use kzalloc instead of kmalloc+memset - formatting tweaks to better conform to coding guidelines git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4667 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02kzalloc was introduced in later versions of 2.6, so use kcalloc insteadRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4665 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02- align case with switchRussell Bryant
- constify return of sigstr() - rework implementation of fill_alarm_string to only use one call to snprintf() and avoid more complicated string building logic git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4664 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02- use kzalloc instead of kmalloc+memsetRussell Bryant
- reformat dahdi_q_sig to match proper coding guidelines git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4662 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02ignore tagsRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4659 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02Convert most of the existing comments in kernel.h to doxygen formatRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4658 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02convert a list of defines to an enumRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4657 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-02Space out the definition of an enum, and remove an unused typedefRussell Bryant
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4655 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-01use correct logic to handle a slave channel being removed from a master ↵Kevin P. Fleming
channel, so if the master channel itself is not reconfigured it will still end up properly linking to any remaining slaves (closes issue #11611) Reported by: richvdh Tested by: tzafrir git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4653 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-01fix a couple of places where the driver assumed 4 spans were present on the cardKevin P. Fleming
(closes issue #13141) Reported by: pabelanger git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4651 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-01make skb_linearize() work for kernels <= 2.6.17 tooKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4648 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-01fix problem accepting non-linearized skbs from NIC driversKevin P. Fleming
(closes issue #13204) Reported by: biohumanoid Patches: ztd-eth.c.patch uploaded by biohumanoid (license 459) (modified by me to actually apply to DAHDI) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4643 a0bf4364-ded3-4de4-8d8a-66a801d63aff