Commit Graph

244 Commits (59432b9e2177b5442f38a5903033aaacb1f60dad)

Author SHA1 Message Date
Tilghman Lesher de9c3aaa8d Pass through a frame if we don't know what it is, rather than trying to pass a
19 years ago
Joshua Colp bd40b393ec Don't use promotion on Darwin because it doesn't seem to work quite right in all cases, this should solve the unresolved symbol issue people have been seeing.
19 years ago
Joshua Colp 54790d5ceb Don't modify things if we are using vfork as this is very bad and may cause unexpected behavior (issue #7970 reported by Nick Gavrikov)
19 years ago
Luigi Rizzo 4280d28549 merge from trunk: move ast_variables_destroy() to a better
19 years ago
Joshua Colp 64a875951a Don't segfault if you're using a channel driver that doesn't turn RTCP on
19 years ago
Russell Bryant 0a78fea2ac Don't attempt to access private data members of the pthread_mutex_t object,
19 years ago
Kevin P. Fleming 227d415709 optimize the 'quick response' code a bit more... no more malloc() or memset() for each response
19 years ago
Kevin P. Fleming 60a11a7568 ------------------------------------------------------------------------
19 years ago
Joshua Colp a825206313 Merged revisions 45030 via svnmerge from
19 years ago
Kevin P. Fleming 1944a9a07c use a configure script test for PMTU discovery control instead of just assuming it's available on Linux
19 years ago
Kevin P. Fleming 09f6a6a167 Merged revisions 44955 via svnmerge from
19 years ago
Russell Bryant def01ced3d fix a silly typo in a comment that I saw while reading the commit list
19 years ago
Nadi Sarrar 8adb217804 append_event must be called while holding the session lock
19 years ago
Jason Parker 3c72ad9cb1 These are already set by the parent Makefile..
19 years ago
Paul Cadach 53024e3508 CHANNEL() function sometime mix parameter and value
19 years ago
Joshua Colp faf38b71ef Remove the seqno check for RFC2833, the handler is smart enough to not need it.
19 years ago
Joshua Colp 2d3da5b500 When the sequence number rolls over then reset the recorded sequence number for DTMF (issue #8106 reported by bungalow)
19 years ago
Joshua Colp 1a5c679e51 Merged revisions 44580 via svnmerge from
19 years ago
Luigi Rizzo f24ec459b2 make sure sockets are blocking when they should be blocking.
19 years ago
Joshua Colp dba3dae7f8 Merged revisions 44501 via svnmerge from
19 years ago
Kevin P. Fleming 6a70807a36 don't segfault when an argument without a close parenthesis is found
19 years ago
Kevin P. Fleming 5c4434d0e7 make LOW_MEMORY builds actually work
19 years ago
Kevin P. Fleming ff05bf15c8 update thread creation code a bit
19 years ago
Kevin P. Fleming fc72291807 ensure that local include files are always used
19 years ago
Joshua Colp e7a2e3cb07 Merged revisions 44168 via svnmerge from
19 years ago
Paul Cadach b0bb62a7e5 Allow one-way RTP streams (device->Asterisk)
19 years ago
Luigi Rizzo 719ba6b535 fix two recent build problems:
19 years ago
Kevin P. Fleming ec2e4f2216 fix a few build system bugs, and convert Makefiles to be compatible with GNU make 3.80
19 years ago
Jason Parker 2a5feb5485 Fix a bug with the removal of 'atleast' argument to 'core verbose' and 'core debug'.
19 years ago
Kevin P. Fleming 26524583fc yet another place where we were not using the correct CFLAGS by default
19 years ago
Kevin P. Fleming 37f61d385a missed one conversion to ASTCFLAGS
19 years ago
Kevin P. Fleming 704397dc3c don't abuse CFLAGS and LDFLAGS for build of Asterisk components, because they are also then used for non-Asterisk components (like menuselect); use our own variables instead
19 years ago
Kevin P. Fleming c2475110cc proper fix for ast_group_t change
19 years ago
Joshua Colp d2d4833b79 Put in missing \ns on the end of ast_logs (issue #7936 reported by wojtekka)
19 years ago
Joshua Colp cdf62550ed Warning be gone!
19 years ago
Kevin P. Fleming 81c8f6b539 Merged revisions 43895 via svnmerge from
19 years ago
Paul Cadach 13663f59cf Don't warn on HOLD/UNHOLD control frames
19 years ago
Paul Cadach 8d881f8be0 Don't treat unknown control frames as voice
19 years ago
Jason Parker 482c18499e Fix an issue with PLAYBACKSTATUS not being set under certain circumstances.
19 years ago
Joshua Colp f149686e8b Compensate for out of order packets better if RFC2833 compensation is turned on.
19 years ago
Russell Bryant 439f15bdb9 Merged revisions 43778 via svnmerge from
19 years ago
Russell Bryant 8857675a88 (This was actually BE-65)
19 years ago
Joshua Colp 2862b777fe Merged revisions 43705 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
Jason Parker 49e903f56d Issue #8015, patch by Dan Austin.
19 years ago
Jason Parker 408d4b978f Make sure we explicitly set the CLI command to not be deprecated, if it isn't.
19 years ago
Kevin P. Fleming 53ff7ae7cd all the Linux systems I have don't use '__m_count' for this field, so I don't know where this came from...
19 years ago
Russell Bryant 33acd61f53 Suppress a compiler warning about the use of a potentially uninitialized
19 years ago
Kevin P. Fleming 16a2f6e64f add another attempt to strip non-API symbols from the final binary... script will need to be extended to work on non-Linux systems
19 years ago
Kevin P. Fleming 44983fae40 remove this change... it requires binutils 2.17
19 years ago
Russell Bryant 97502fdec0 Fix the total allocation count and total byte count in the memory summary
19 years ago
Russell Bryant 28ffdcc783 Fix the memory summary so that it doesn't print the first file in the list over
19 years ago
Russell Bryant 6f442c4a3c fix some breakage from the CLI command changes
19 years ago
Tilghman Lesher 70af28270d Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
19 years ago
Kevin P. Fleming 9ae105df1d don't let symbols from included static libraries (like codec/ilbc) pollute the global namespace when those modules are embedded
19 years ago
Joshua Colp 3c6d5053ba Totally break a P2P bridge upon going on hold, and re-establish it upon going off hold.
19 years ago
Joshua Colp 659d467720 Expand codec check so that raw formats must be equal for a Packet2Packet bridge to occur
19 years ago
Jason Parker 4c2874b994 Commit the changes from issue #5240.
19 years ago
Kevin P. Fleming 1485fa4c24 move this header to include where it belongs
19 years ago
Jason Parker fc60c151d3 After discussing this with other people, we decided we'd like to try to do this a little differently.
19 years ago
Anthony LaMantia 3f3402d69e 5240 update
19 years ago
Matthew Fredrickson 2cc96500bd Mergeing in Paul Cadach's chan_h323 changes *holds breath*
19 years ago
Matt O'Gorman d0a1a0033d similar patch for verbose vs debug with minor changes
19 years ago
Joshua Colp d544223d02 Warning be gone!
19 years ago
Matt O'Gorman 465adf2bf1 allow for packetization on rtp channel drivers, need to add
19 years ago
Jason Parker 998ac5cab1 Only use alloca.h on OSes that have it.
19 years ago
Kevin P. Fleming c97841dbf7 always use fork() when available
19 years ago
Kevin P. Fleming fcb999c01c merge qwell's CLI verbification work
19 years ago
Kevin P. Fleming 5cf1c12796 it appears that current Mac OS/X does not need the poll compatibility module at all, and platforms that do need it also need -DPOLLCOMPAT (or they wouldn't have compiled at all)
19 years ago
Kevin P. Fleming c2c4f86c72 merge markster's usersconf branch with some slight changes
19 years ago
Jason Parker f18cbf77df Many Solaris fixes - this moves some of the stuff from utils.c to strcompat.c
19 years ago
Anthony LaMantia e421b69ce6 reveting modifaction to __ast_module_user_remove
19 years ago
Joshua Colp 10e6fbc3bc Tweak changes that went in on revision 42891
19 years ago
Anthony LaMantia 09d8972be6 small fix for 7944
19 years ago
Joshua Colp 0f3eaaf703 Merged revisions 42600 via svnmerge from
19 years ago
Joshua Colp d2a359e57f Optimize a bit
19 years ago
Joshua Colp 10e361763c It's another round of RTP updates!
19 years ago
Joshua Colp 160cea6139 Merged revisions 42452 via svnmerge from
19 years ago
Joshua Colp d597b76c36 whentohangup is already in seconds, just need to convert to milliseconds
19 years ago
Joshua Colp 8a2dd45283 Merged revisions 42260 via svnmerge from
19 years ago
Steve Murphy 11a7e38930 Made changes corresponding to those in 1.2 here in main/logger.c for bug 7544.
19 years ago
Kevin P. Fleming d5f812e0b1 don't try to get the length of the string in the ast_dynamic_str object unless we know there is actually one there
19 years ago
Joshua Colp bc5924120d Remove old unused functions
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
Russell Bryant 4de3c0e447 Add the ability to specify that a frame should not be considered for caching
19 years ago
Russell Bryant 3057660a79 when calling this function to append to a dynamic string and the buffer was not
19 years ago
BJ Weschke ffd9281db9 Provide a little more protection to make sure that a MOH class is specified when using the 'm' option with WaitExten, and prevent a segfault in the process.
19 years ago
BJ Weschke bbc9c049ab Fix enum indexing problem with m() in WaitExten. Reported by Pavel J, in asterisk-dev.
19 years ago
Joshua Colp 6fdd2ef790 Tweak the if statement a bit
19 years ago
Russell Bryant e576ac0930 Don't use ast_frdup() in the AST_LIST_INSERT_TAIL macro directly. That was a
19 years ago
Joshua Colp f912c9e69f Unbridge the RTP streams at the correct place
19 years ago
Joshua Colp 0be2884d80 If we are doing video and we can't reinvite, then resort to generic bridging instead of Packet2Packet since video isn't supported there yet. (reported by PCadach in #asterisk-bugs)
19 years ago
Joshua Colp b4d0f26d2b You see nothing...
19 years ago
Steve Murphy a845587805 Another formatting update for PCadach.
19 years ago
Joshua Colp 043a01e6bd 0 is indeed considered a valid file descriptor (issue #7861 reported by PCadach)
19 years ago
Joshua Colp 9edf55b64d Merged revisions 41690 via svnmerge from
19 years ago
Steve Murphy 2ff2b02eae PCadach wanted better formatting of those 'if' conditions for 7859.
19 years ago
Steve Murphy cd8635b9b5 This small tweek will hopefully fix 7859, and silence all possible others
19 years ago
Joshua Colp f2b836ff4f Tweak the DTMF muting stuff a bit to take into account VLDTMF and compensation.
19 years ago
Joshua Colp faf4975122 Ignore DTMF begin frames in the waitstream core so that we don't get duplicate digits in our extension match
19 years ago
Joshua Colp d6096858d0 Don't fail the write if they try to write a NULL or IAX frame as we just ignore these.
19 years ago
Joshua Colp aaaec0e917 Add new frame types for DTMF
19 years ago
Joshua Colp 29ee02bfce Only write a received packet out if we are actually bridged to something
19 years ago
Joshua Colp c6977b9983 Merge in VLDTMF support with Zaptel/Core done by the ever great Darumkilla Russell Bryant and the RTP portion done by myself, Muffinlicious Joshua Colp. This has gone through so many discussions/revisions it's not funny but we finally have it!
19 years ago
Kevin P. Fleming b281acf0f8 change default setting for autofallthrough
19 years ago
Russell Bryant 1ffff64e66 fix a bug introduced when I merged my frame caching branch. Queue the
19 years ago
Joshua Colp 11b5db3d61 Clarify what show translations is displaying a bit more (issue #7772 reported by Mithraen)
19 years ago
Joshua Colp 3028eb1c15 Print what read-only variable is being set so that the user doesn't have to guess and figure it out or look at the list in cdr.c and match it up (issue #7831 reported by sedwards)
19 years ago
Joshua Colp 0855df6a5a Only feed a DTMF frame into the core if we need to
19 years ago
Joshua Colp 245aa1a62d Only switch the second alert fd (which is RTCP) to callback mode if it is in use
19 years ago
Joshua Colp 12b6ec4e11 Use an API call (ast_rtp_get_bridged) to return the RTP stream we are bridged to, and also use it in chan_sip so we know to ignore the no RTP activity checking
19 years ago
Joshua Colp da7d969ae1 If the RTP stack is already being operated in callback mode, then suspend it upon switching to P2P callback bridging. Once P2P callback bridging has ended, then restore callback mode.
19 years ago
Joshua Colp ca33d2ecc6 This is the last round of RTP bridge optimizations. Basically it introduces a way that under a straight bridge (ie: no transcoding and no DTMF detection) the core is not touched at all and no frames pass through (not even null frames). This is accomplished by stealing the file descriptors from the channel and using the provided IO context with a custom callback. When a channel is placed on hold this bridge is broken so audio can flow from the core to the other side. When a channel is off hold this bridge is re-established.
19 years ago
Joshua Colp a2e2a51d8d Move the direct bridge write to after the NAT handling code
19 years ago
Steve Murphy 299465336a This change fixes bug 7820. Way back in April this bug was reintroduced, it appears, when a bunch of restructuring was done. This code was basically left out during the restructuring. In the case of the failure in 7820, it is trying to match the extension _x. with _x., and failing, because the 'x' should only match 0 thru 9. I **could** upgrade the code so that that N,Z, and X match not only their intended number ranges, but also N,Z,and X respectively. And, moreover, X could also match N and Z, and Z could also match N. I have no idea why this bug took so long to turn up. I have no idea what a more thorough treatment of the code would do to working code, either. So I left it as it ***was***.
19 years ago
Russell Bryant f7e7161607 Merge team/russell/frame_caching
19 years ago
Joshua Colp c70ed7614a Merge in RTP-level packet bridging. Packet comes in, packet goes out - that's what RTP-level packet bridging is all about!
19 years ago
Kevin P. Fleming d12f54f90b GNU make already knows how to quietly ignore non-existent files in 'include' directives
19 years ago
Kevin P. Fleming a757ca2947 ensure that unload_dynamic_module won't continue dereferencing a module pointer after the module has been unloaded from memory
19 years ago
Kevin P. Fleming 3ba8e0a973 ensure that cross-compiler info is removed from the enviroment before configuring menuselect
19 years ago
Kevin P. Fleming aa7b32d175 more optimizations for embedded systems:
19 years ago
Russell Bryant d770396e23 Identify what the columns mean in the output of "show profile"
19 years ago
Tilghman Lesher d2b7882788 Off by one error in buffer length (issue 7379)
19 years ago
Kevin P. Fleming 970c6876c5 instead of reverting this supposedly 'stupid' change, let's try to get it working properly
19 years ago
Russell Bryant 1ff5a0988d Merged revisions 40994 via svnmerge from
19 years ago
Matthew Fredrickson 16157e26d6 Revert stupid RTLD_NOLOAD change that breaks module loading on some systems.
19 years ago
Joshua Colp 3f7b10eab6 Free the filename so we don't have a memory leak. (reported by PCadach in #asterisk-bugs)
19 years ago
Kevin P. Fleming 7eecf0bfbc use RTLD_NOLOAD if it's available to make loading dynamic modules a little faster and less resource-intensive
19 years ago
Kevin P. Fleming e0df1dfd7c generate a message when a module cannot be found and loadable modules are disabled
19 years ago
Kevin P. Fleming 950b3fb070 make platforms that use mutexes in stdio.h happy
19 years ago
Kevin P. Fleming e274fc0b54 minor improvements
19 years ago
Kevin P. Fleming 804f49e2c9 when loadable modules are disabled, if someone tries to load a module that does not exist, don't dereference a NULL pointer, just stop trying to load it...
19 years ago
Jason Parker ec23dcb172 Solaris didn't like this.
19 years ago
Jason Parker 0264c362b6 a couple Solaris tweaks, to help build properly.
19 years ago
Kevin P. Fleming 26fa229138 restore 'preload' functionality in loader
19 years ago
Kevin P. Fleming a394f4ad64 use a customized configure macro to tell the script that uCLinux does not have fork() that works
19 years ago
Kevin P. Fleming ca0a1d3842 don't initialize global variables list twice
19 years ago
Kevin P. Fleming 61755115c2 restore printing of module name during loading
19 years ago
Russell Bryant 283bcf4c9f - simplify and improve astmm by using thread storage instead of a dynamic
19 years ago
Russell Bryant 389c605a67 - use the atomic operations for incrementing the unique int
19 years ago
Russell Bryant 5d3869a1c8 various cleanups, including ...
19 years ago
Kevin P. Fleming 5b03b3449b use a safer process for checking if a module wants to export symbols into the global namespace
19 years ago
Kevin P. Fleming f3c518a70f don't declare these variables unless needed
19 years ago
Kevin P. Fleming 0a27d8bfe5 merge new_loader_completion branch, including (at least):
19 years ago