Commit Graph

319 Commits (f95db061fd9f34b7dc5a50d9fc136dda9df42dd1)

Author SHA1 Message Date
Joshua Colp e32e830419 Tweak spy locking. (issue #9951 reported by welles)
18 years ago
Joshua Colp 2303602f15 I may possibly get shot for doing this... but... defer CDR processing until after the channel has been dealt with. This should eliminate all of the issues with channels going funky (SIP/PRI) when you are posting CDRs to a database that is either slow or unavailable and do not want to enable batching.
18 years ago
Steve Murphy 8da289e13c This fixes 9246, where channel variables are not available in the 'h' exten, on a 'ZOMBIE' channel. The fix is to consolidate the channel variables during a masquerade, and then copy the merged variables back onto the clone, so the zombie has the same vars that the 'original' has.
18 years ago
Joshua Colp 07b9fc569f Update BRIDGEPEER variable if set to the new channel name when a masquerade happens. (issue #9699 reported by dimas)
18 years ago
Russell Bryant dc41cf2347 Backport rev 69010 from the 1.4 branch ...
18 years ago
Joshua Colp 41421be994 Improve deadlock handling of the channel list. (issue #8376 reported by one47)
18 years ago
Russell Bryant 3a2e0e1ed9 We have some bug reports showing crashes due to a double free of a channel.
18 years ago
Joshua Colp 71befa9884 Properly handle what happens during a masquerade in relation to group counting. (issue #9657 reported by ramonpeek)
18 years ago
Joshua Colp 6ab97a0292 Merge rewritten group counting support. No more storing data on the variable list of the channels. That was bad, mmmk? (issue #7497 reported by sabbathbh)
18 years ago
Tilghman Lesher 87c0a12a03 Issue 9130 - If prev is the last item on the channel list, then evaluating
19 years ago
Joshua Colp c966ea6e2d Only change the original or clone channel if it's the channel behind the proxy channel, not if it's just a regular bridged channel.
19 years ago
Russell Bryant ccd780463d Don't print a message indicating that we don't know what to do with a proceeding
19 years ago
Russell Bryant 9eaff06d26 Fix an issue related to synchronization of recordings when using Monitor().
19 years ago
Steve Murphy 9cc5b12741 This small patch fixes bug 8541, where the L option to the Dial app wasn't working right. A similar bug (8386) was filed and fixed earlier, but an intervening bug fix to a DTMF problem broke the L() code in a different way. Hopefully, everything is happy now.
19 years ago
Joshua Colp 6502bf97af If the generic bridge tells us not to retry, and we have a frame to spit out then break the bridge. Props to markit in #asterisk-bugs for bringing this up.
19 years ago
Joshua Colp 37db91a3b8 Don't write AST_FRAME_NULL or AST_FRAME_IAX frames out to the channel driver. (issue #8390 reported by hselasky)
19 years ago
Steve Murphy e189ffe5b5 This is the fix for bug 8386, wherein the time-limit args to dial didn't work correctly
19 years ago
Kevin P. Fleming ad0f8df528 backport proper channel_find_locked behavior from 1.4 branch (noted by Steve Davies on asterisk-dev list)
19 years ago
Steve Murphy e301bc352f This mod for bug_7506, to make the manager code output the proper event
19 years ago
Russell Bryant 0d9ea31f3a Fix a problem that occurred if a user entered a digit that matched a bridge
19 years ago
Joshua Colp c6e25717b4 Yay another 'round of spy fixes! This fixes a small logic flaw with the cleanup function and a memory allocation issue. (issue #7960 reported by jojo & issue #7999 reported by aster1) Special thanks to csum77 for letting me into a box where this issue was happening.
19 years ago
Joshua Colp cc0f191aab Only truly consider the channel in the same format if the format matches the raw format OR if a translation path already exists to translate between them. (issue #7887 reported by softins & issue #7803 reported by alvaro_palma_aste). Thanks goes to stubert for giving me access to a box and showing me a scenario where this occured.
19 years ago
Joshua Colp 25c493ffdc Swap spies during masquerading
19 years ago
Joshua Colp 68de3c0b29 Merge in last round of spy fixes. This should hopefully eliminate all the issues people have been seeing by distinctly separating what each component (core/spy) is responsible for. Core is responsible for adding a spy to a channel, feeding frames to the spy, removing the spy from a channel, and telling the spy to stop. Spy is responsible for reading frames in, and cleaning up after itself.
19 years ago
Joshua Colp c42a8d9b99 Finish up the last commit (was worse then originally reported)
19 years ago
Joshua Colp a5641b46de Don't treat an unexpected control subclass as voice (issue #7858 reported by PCadach)
19 years ago
Russell Bryant 034a919e1f Fix a few issues related to the handling of channel variables
19 years ago
Russell Bryant 2f5c21ded7 revert bogus change to attempt to fix bug 7506 which actually causes half of
19 years ago
Joshua Colp 1204f825d7 Reset our stream and vstream pointers back to NULL so that any generator that uses them (file based MOH) will not try to close them again. (issue #7668 reported by jmls)
19 years ago
Russell Bryant f4c24d5d62 Always generate a Newstate event in ast_setstate() instead of making it a
19 years ago
Russell Bryant 5e3b7eec7d suppress a compiler warning about the usage of a potentially uninitialized variable
19 years ago
Kevin P. Fleming 4f3b40fe79 ensure that the 'feature digit timeout' value is taken into account when deciding how long the bridge should run (this fixes a problem report where a digit press that did not invoke a feature is never passed across the bridge)
19 years ago
Kevin P. Fleming 6afc9c6c8f do a better job avoiding translation path teardown/setup when not needed
19 years ago
Kevin P. Fleming 0b6aa9cd29 don't do useless translation destroy/build when the channel is already in the correct format
19 years ago
Kevin P. Fleming 152df40d57 do masquerade-behind-proxy checking with better control over locks
19 years ago
Matt O'Gorman 84881a0662 patch resolves issue with when to decide if its right time
19 years ago
Joshua Colp d1afe5c64f Greatly simply the mixmonitor thread, and move channel reference directly to spy structure so that the core can modify it.
19 years ago
Kevin P. Fleming 84c0989323 handle Zap transfers behind chan_agent properly so the agent doesn't get stuck waiting for the call to hang up
19 years ago
Kevin P. Fleming e6254eeb34 don't leak frames when deferring DTMF or dropping duplicate ANSWER frames (issue #7041, slightly different fix, reported/patched by clausf)
19 years ago
Tilghman Lesher 891c6d599e Rolling back change until kpfleming is comfy
19 years ago
Tilghman Lesher f2dc4f491d Bug 7004 - release all threads waiting on a condition prior to freeing it
19 years ago
Kevin P. Fleming 58c3bdc8f1 simplify spy queue flushing logic, and always force a flush when one side gets full, even if the other side is not empty (issue #6457)
19 years ago
Olle Johansson ac9f562712 Revert earlier change
19 years ago
Olle Johansson b3af62dc4f Fix for astmm compilation
19 years ago
Russell Bryant 799247b4d5 don't hang up the channel if its state is set to UP before we return from ast_call (issue #6569)
20 years ago
Kevin P. Fleming 5fbe407b98 ensure that spy frame queueing is able to deal with translation failing for any reason (issue #6546)
20 years ago
Russell Bryant e27d844918 now that CDR is a loadable module, don't depend on it elsewhere (issue #6460)
20 years ago
Olle Johansson dc08bd8501 Issue #6439 - the "timebomb" bug. Patch by Markster over GPRS
20 years ago
Kevin P. Fleming 05fed23d06 ensure that channel cannot become zombie after we check but before we try to start indications
20 years ago
Russell Bryant 696922defe fix MixMonitor crash (issue #6321, probably others)
20 years ago