summaryrefslogtreecommitdiff
path: root/zaptel.c
AgeCommit message (Collapse)Author
2007-08-01Merged revisions 2809 via svnmerge from qwell
https://origsvn.digium.com/svn/zaptel/branches/1.4 ................ r2809 | qwell | 2007-08-01 15:21:32 -0500 (Wed, 01 Aug 2007) | 10 lines Merged revisions 2808 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2808 | qwell | 2007-08-01 15:21:04 -0500 (Wed, 01 Aug 2007) | 2 lines Per Matt Fredrickson, we don't want to use GFP_KERNEL while holding a spinlock. ........ ................ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2810 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-07-05Merged revisions 2697 via svnmerge from qwell
https://origsvn.digium.com/svn/zaptel/branches/1.4 Closes issue 7612. ................ r2697 | qwell | 2007-07-05 13:10:29 -0500 (Thu, 05 Jul 2007) | 13 lines Merged revisions 2696 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2696 | qwell | 2007-07-05 13:08:53 -0500 (Thu, 05 Jul 2007) | 5 lines Do not report channels in ZT_STATE_KEWL or ZT_STATE_AFTERKEWL (ie; battery drop) states as available. This becomes more likely if ZT_KEWLTIME or ZT_AFTERKEWLTIME are set to higher values. Issue 7612, patch by rbraun. ........ ................ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2698 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-05-18Let's not overload our minor numbers. Fixes error on unload on systems with ↵mattf
more than 250 devices. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2542 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-05-18Remove silly got signal message.mattf
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2541 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-04-28Enable slip debugging by default, as well as add a parameter to report slips ↵mattf
in /proc/zaptel/x git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2472 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-04-25Merged revisions 2444 via svnmerge from qwell
https://origsvn.digium.com/svn/zaptel/branches/1.4 ................ r2444 | qwell | 2007-04-25 10:36:17 -0500 (Wed, 25 Apr 2007) | 10 lines Merged revisions 2443 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2443 | qwell | 2007-04-25 10:35:34 -0500 (Wed, 25 Apr 2007) | 2 lines Don't try to reference a variable on a channel that may not exist. ........ ................ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2445 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-04-24merge (manually) ztmonitor pre-echocan debuggingqwell
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2436 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-04-13Merged revisions 2423 via svnmerge from qwell
https://origsvn.digium.com/svn/zaptel/branches/1.4 ................ r2423 | qwell | 2007-04-13 18:14:33 -0500 (Fri, 13 Apr 2007) | 22 lines Merged revisions 2422 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2422 | qwell | 2007-04-13 18:12:23 -0500 (Fri, 13 Apr 2007) | 14 lines Fix several places where we treat confmode as a bitmask. It is a bitmask...sort of.. I'll explain.. confmode is used for 2 different things. It defines both the "mode" and the "flags" of the conference. The "mode" part is in 0x00FF and is NOT bitwise. The "flag" part is in 0xFF00 and *IS* bitwise. Confused yet? Good. So, when we want to check the "mode" of the conference, we need to check only within 0xFF. There were several places where this was not happening - but due to luck, it worked (...sort of). That's what this patch fixes. ........ ................ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2424 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-04-11Merged revisions 2406 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.4 ................ r2406 | mattf | 2007-04-11 14:03:50 -0500 (Wed, 11 Apr 2007) | 12 lines Merged revisions 2405 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2405 | mattf | 2007-04-11 14:01:21 -0500 (Wed, 11 Apr 2007) | 4 lines Fix buglet in memory corruption fix. ........ ................ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2407 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-04-07chan variables are accessed without a lock, so they could change underneath ↵mattf
us. Make sure we use a local variable for access to them. (#9208) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2396 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-04-03The ZT_CHANDIAG ioctl was disabled by default because the large zt_chan structrussell
that was being allocated on the stack is too big for some systems (those with 4k stacks). So, change the code to allocate the struct on the heap, and let the ioctl be always enabled. (issue #9364, patch by tzafrir, with minor mods) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2384 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-03-30Merged revisions 2359 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.4 ........ r2359 | mattf | 2007-03-30 15:03:19 -0600 (Fri, 30 Mar 2007) | 2 lines Fix potential spinlock recursion issue. ........ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2360 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-03-30Need to revert this last change. trunk doesn't yet have all the right stuff ↵qwell
in place. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2356 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-03-30Merged revisions 2354 via svnmerge from qwell
https://origsvn.digium.com/svn/zaptel/branches/1.4 ................ r2354 | qwell | 2007-03-30 13:57:48 -0500 (Fri, 30 Mar 2007) | 12 lines Merged revisions 2353 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2353 | qwell | 2007-03-30 13:56:46 -0500 (Fri, 30 Mar 2007) | 4 lines Fix an issue where an echo can was freed incorrectly in certain circumstances. Issue 9292, fix suggested by ddv2005. ........ ................ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2355 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-28If the span sets its sync_tick method, call it on every tick of the synctzafrir
master. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2249 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-31Merged revisions 2044 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.4 ................ r2044 | kpfleming | 2007-01-31 08:12:37 -0600 (Wed, 31 Jan 2007) | 12 lines Merged revisions 2043 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2043 | kpfleming | 2007-01-31 08:06:34 -0600 (Wed, 31 Jan 2007) | 4 lines fix up author email addresses use the kernel's built-in support for module aliases instead of manually doing it in modprobe.conf or equivalent add wctdm8xxp alias for wctdm24xxp ........ ................ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2045 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-23Merged revisions 1921 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.4 ................ r1921 | kpfleming | 2007-01-23 09:29:28 -0600 (Tue, 23 Jan 2007) | 10 lines Merged revisions 1920 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1920 | kpfleming | 2007-01-23 09:25:42 -0600 (Tue, 23 Jan 2007) | 2 lines clean up various compiler warnings ........ ................ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1922 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-11Return what I took away (fcstab) since it's actually required for some ↵file
instances... (issue #8792 reported by tootai) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1807 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-10Remove old and unused declarations. If these do serve a purpose we can throw ↵file
them back in. (issue #8458 reported by tzafrir) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1802 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-22Fix for #8403. No extra characters in /proc/zaptel/* when readingmattf
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1636 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-17Merged revisions 1611 via svnmerge from bweschke
https://origsvn.digium.com/svn/zaptel/branches/1.4 ................ r1611 | bweschke | 2006-11-16 23:12:38 -0500 (Thu, 16 Nov 2006) | 12 lines Merged revisions 1610 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1610 | bweschke | 2006-11-16 23:06:05 -0500 (Thu, 16 Nov 2006) | 4 lines mattf - I'm not sure if this is where you wanted the definitions placed. If not, please fix, but this gets the compiles working again for now. ........ ................ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1612 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-17Make the master span change more atomic, in face of not doing actual locking ↵mattf
like we need to do. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1607 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-11-16Fix for 7769. Make sure we lock before modifying flags.mattf
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1603 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-09-16Merged revisions 1468 via svnmerge from tilghman
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1468 | tilghman | 2006-09-16 02:45:04 -0500 (Sat, 16 Sep 2006) | 4 lines Round two of the fix for "hard-safe -> hard-unsafe lock order detected" (Issue 7620) Only difference is that the fix is only defined for kernel versions 2.6.11 and above; older kernels keep the current (possible deadlocking) code. ........ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1469 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-31Merge in Zaptel VLDTMF support. This does currently have the bug where ↵file
dialtone briefly returns after a digit is being played, but that will be fixed shortly. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1374 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-24Actually populate sigcapmarkster
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1346 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-15Merged revisions 1311 via svnmerge from russell
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1311 | russell | 2006-08-15 17:30:49 -0400 (Tue, 15 Aug 2006) | 3 lines fix passing a 'w' to wait when using pulse dialing (issue #7738, hanabana) ........ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1312 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-15Add support for looping back a single channelmattf
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1310 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-14Merged revisions 1306 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1306 | kpfleming | 2006-08-14 15:40:55 -0500 (Mon, 14 Aug 2006) | 2 lines revert this change until a version that compiles on 2.4 kernels and older 2.6 kernels is made available and tested ........ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1307 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-08-14Merged revisions 1304 via svnmerge from russell
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1304 | russell | 2006-08-14 00:07:00 -0400 (Mon, 14 Aug 2006) | 3 lines fix potential deadlock found by kernel's lock checker (issue #7620, reported by smurfix, fixed by Corydon) ........ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1305 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-07-26Allow zaptel to compile on 2.4 kernelstilghman
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1247 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-07-05yet another header file installation location change... Zaptel headers are ↵kpfleming
now installed into /usr/include/zaptel, not /usr/include git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1200 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-06-24install zaptel.h and tonezone.h into /usr/include, not /usr/include/linux, ↵kpfleming
sinc e they are used much more by userspace apps than by kernel modules remove any old copies of those headers remove README.udev, since it no longer applies git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1172 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-06-23add infrastructure for zaptel transcoderskpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1162 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-05-23Allow for longer echo tail specificationmattf
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1083 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-05-11Bug 6816 - Allow nethdlc device to take optional alternative nametilghman
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1053 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-03-28notify userspace when echo canceller on channel is disabled due to CED detectionkpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@992 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-01-18Fix debug typomarkster
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@908 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-01-12Fix for HDLC API that might have been broken for some 2.4.x kernels, also ↵mattf
fix to stop and start the queues on the net interface. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@894 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-01-10Commits for HardHDLC API in zaptel (#5313)mattf
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@887 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-12-26Added support for Dial Pulse recognition on E&M trunksjdixon
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@876 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-12-17allow userspace apps to extract version/echo canceller infokpfleming
add version/echo canceller info to ztcfg verbose output git-svn-id: http://svn.digium.com/svn/zaptel/trunk@872 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-12-17don't include the echo canceller headers in every module that includes ↵kpfleming
zaptel.h... instead, only in zaptel.c git-svn-id: http://svn.digium.com/svn/zaptel/trunk@867 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-12-17Merged revisions 865 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r865 | kpfleming | 2005-12-16 20:04:05 -0600 (Fri, 16 Dec 2005) | 3 lines add version and echo canceller selection reporting when zaptel module is loaded make 'update' target work like the Asterisk one and report conflicts ........ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@866 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-12-02fix udev support for 2.6.15 (issue #5891)russell
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@842 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-11-29remove extraneous svn:executable propertieskpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@837 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-11-23eliminate preprocessor warningskpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@823 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-11-11Make sure zaptel doesn't crash the kernel when bringing hdlc devices downmattf
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@815 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-10-04correct typokpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@789 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-09-30support minimum time for FXS flashkpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@788 5390a7c7-147a-4af0-8ec9-7488f05a26cb