Commit Graph

102 Commits (c347a43c9feef90e99218385bc93a4ffa46f861f)

Author SHA1 Message Date
Mark Michelson 82937be553 Revert my previous change because it was stupid
17 years ago
Mark Michelson fed7d2308b Add a missing unlock. Extremely unlikely to ever matter, but it's needed.
17 years ago
Russell Bryant 5de6848d0c Ensure that the chanspy datastore is fully initialized.
17 years ago
Kevin P. Fleming add5ff5b05 fix a bunch of potential problems found by gcc 4.3.x, primarily bare strings being passed to printf()-like functions and ignored results from read()/write() and friends
17 years ago
Russell Bryant 6177d367e2 Fix a crash in the ChanSpy application. The issue here is that if you call
17 years ago
Mark Michelson ccfa1564da Add a lock and unlock prior to the destruction of the chanspy_ds
17 years ago
Kevin P. Fleming cd12517eeb make some more changes to the dahdi/zap channel name support stuff to ensure allthe globals are 'const', and clean up mmichelson's changes to app_chanspy to simplify the code
17 years ago
Mark Michelson 252c5728fc As suggested by seanbright, the PSEUDO_CHAN_LEN in
17 years ago
Mark Michelson 9482af686b Zap/pseudo is ten characters, but DAHDI/pseudo is
17 years ago
Mark Michelson ba642db1f4 Update the "last" channel in next_channel in app_chanspy so
17 years ago
Jeff Peeler f9818af8dd Adds DAHDI support alongside Zaptel. DAHDI usage favored, but all Zap stuff should continue working. Release announcement to follow.
17 years ago
Mark Michelson a7f2c5dbf9 Russell noted to me that in the case that separate threads use their
17 years ago
Mark Michelson 9460de70ef Add a unique id to the datastore allocated in app_chanspy since
17 years ago
Mark Michelson fcd288a33e Move the unlock of the spyee channel to outside the start_spying() function so that
17 years ago
Russell Bryant 74694c686d Fix an issue that caused getting the correct next channel to not always work.
17 years ago
Mark Michelson 2dbf0778b3 Declaration of the peer channel in this scope was making it so the peer variable defined
17 years ago
Sean Bright e7072918e0 Make sure we have enough room for the recording's filename.
17 years ago
Mark Michelson ebb67cf852 Add a missing unlock in the case that memory allocation fails in app_chanspy.
17 years ago
Russell Bryant 755933863f Fix one place where the chanspy datastore isn't removed from a channel.
17 years ago
Mark Michelson 284f74997d Make sure that we release the lock on the spyee channel if the spyee or spy has hung up
17 years ago
Russell Bryant efa3b46cdf Fix another issue that was causing crashes in chanspy. This introduces a new
17 years ago
Russell Bryant a169524ff6 (closes issue #12187, reported by atis, fixed by me after some brainstorming
17 years ago
Tilghman Lesher 56e908b787 Safely use the strncat() function.
17 years ago
Joshua Colp fdb44349e9 Don't loop around infinitely trying to spy on our own channel, and don't forget to free/detach the datastore upon hangup of the spy.
18 years ago
Russell Bryant 750067bd1a Fix a problem in ChanSpy where it could get stuck in an infinite loop without
18 years ago
Russell Bryant c882e6da6f Avoid some recursion in the cleanup code for the chanspy datastore
18 years ago
Russell Bryant f64df49235 This patch fixes some pretty significant problems with how app_chanspy handles
18 years ago
Russell Bryant ece4c9c40c ChanSpy issues a beep when it starts at the beginning of a list of channels to
18 years ago
Joshua Colp fa640604de Replace current spy architecture with backport of audiohooks. This should take care of current known spy issues.
18 years ago
Mark Michelson 90da4da6ad Merged revisions 75066 via svnmerge from
18 years ago
Joshua Colp 0e80607e17 Merged revisions 73349 via svnmerge from
18 years ago
Joshua Colp 6c9e737d70 Only split up extension and context if a value exists. (issue #8332 reported by loloski)
19 years ago
Joshua Colp ba3ac1c86b Merged revisions 45060 via svnmerge from
19 years ago
Joshua Colp d95288fdf8 Slight overhaul of the whisper support. 1. We need to duplicate the frame from ast_translate 2. We need to ensure we always have signed linear coming in for signed linear combining. 3. We need to ensure we are always feeding signed linear out. 4. Properly store and restore write format when beeping on the channel we are whispering on. 5. Properly discontinue the stream on the channel for the beep. (issue #8019 reported by timkelly1980)
19 years ago
Joshua Colp 4a7947501e Minor tweak - we need to lock the channel when we are removing the spy from it.
19 years ago
Joshua Colp 49cfc19f0a Use tabs instead of spaces (I <3 tabs -- this is for you Qwell)
19 years ago
Joshua Colp 55d594e9da Make the difference clear about what the responsibilities of the core and a spy are when it comes to spying on a channel. The core is responsible for adding a spy to a channel, feeding frames into the spy, removing the spy from the channel, and notifying the spy that is has been detached. The spy is responsible for reading frames in, and cleaning itself up. Each side will not try to do the other's job.
19 years ago
BJ Weschke c4dac0c1e5 We don't spy on Zap/psuedo channels. Not at all. Never. (#7871 - sxpert reporting)
19 years ago
Kevin P. Fleming 0a27d8bfe5 merge new_loader_completion branch, including (at least):
19 years ago
Russell Bryant b9ee151d22 suppress a compiler warning about the usage of a potentially uninitialized
19 years ago
Kevin P. Fleming 21e3c3a561 play a beep tone into the spied-on channel if we are about to whisper to them
19 years ago
Kevin P. Fleming 4bc6613648 add ExtenSpy variant of ChanSpy
19 years ago
Kevin P. Fleming a8b85fda84 more simplification, and correct a bug i introduced in the last commit
19 years ago
Kevin P. Fleming 94fa23aaa1 remove local channel finding wrappers
19 years ago
Kevin P. Fleming 8af55b34ad restore infinite timeout for ast_waitfor() call
19 years ago
Kevin P. Fleming 22d37976f2 various cleanups:
19 years ago
Kevin P. Fleming 39b9a1c945 Merged revisions 34087 via svnmerge from
19 years ago
Kevin P. Fleming 472c1ca282 simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
19 years ago
Russell Bryant 932c5c7fd7 use the channel lock wrappers (issue #7120, Mithraen)
19 years ago
Mark Spencer db502da870 Make menuselect be able to show what the modules are
19 years ago