Commit Graph

339 Commits (980b0bc785d9699e7cd17dc104f868606f82678b)

Author SHA1 Message Date
Kevin P. Fleming c56f17425c don't 'consume' the params list before we try to use it again
19 years ago
Kevin P. Fleming 444adcb477 reduce stack consumption for AMI and AMI/HTTP requests by nearly 20K in most cases
19 years ago
Joshua Colp ac75028a50 Don't keep repeating the warning over and over when the end of the call is reached. (issue #8724 reported by xrg)
19 years ago
Kevin P. Fleming 46d91e71c5 add support for tracking thread-local-storage objects that exist via 'threadstorage' CLI commands
19 years ago
Joshua Colp 3d460e5a68 Only free comments and line buffer once we reach the first level. (issue #8678 reported by ssokol, fixed by anthonyl)
19 years ago
Kevin P. Fleming 24bb7d865e don't mark these allocations as 'cache' allocations when caching has been disabled
19 years ago
Kevin P. Fleming fa5de60c6e don't do frame header caching in the core if LOW_MEMORY is defined
19 years ago
Steve Murphy 49cce60e51 This is a slight modification to Josh's edits for #8579; both files edited were the produced by flex; so the source files need to be changed instead, and the generated files regenerated.
19 years ago
Jason Parker 0b50088366 Allow fractions of a second in the Wait() application, like it says it allows.
19 years ago
Joshua Colp 156a6cf5db If the Packet2Packet bridge is being broken because of a masquerade then attempt to read a frame in so the masquerade actually happens. Otherwise weirdness will occur. (issue #8696 reported by kjotte)
19 years ago
Jason Parker 52fb756adc Fix some deprecated commands.
19 years ago
Jason Parker c38c990bc7 saw this in passing... fix a small typo
19 years ago
Jason Parker c2f688d2fd make the uris_lock a rwlock instead of a mutex lock - needs to be forward ported to trunk
19 years ago
Steve Murphy 4d6a91eef0 removed <err.h> as in trunk from the ael stuff. Also, threw in a minor fix to frame.c to avoid build-killing compiler warnings.
19 years ago
Joshua Colp 6d582d75c7 ast_copy_string is not available when LOW_MEMORY is used and things are being built in the utils directory, so we need to resort to the old method of strncpy. (issue #8579 reported by mottano)
19 years ago
Kevin P. Fleming a299485952 since these variables all have static duration, none of them need initializers (they default to zero anyway)
19 years ago
Kevin P. Fleming 3307ae060a move extern declaration for this option to a header file where it belongs
19 years ago
Kevin P. Fleming b2c8abbc6d allow 'show memory' and 'show memory summary' to distinguish memory allocations that were done for caching purposes, so they don't look like memory leaks
19 years ago
Joshua Colp 9cc04e026d Add an API call that initializes an RTP structure. We need this because chan_sip is cheeky and uses a temporary RTP structure for codec purposes, and the API calls that are used rely on the lock. (Pointed out on asterisk-dev by Andy Wang)
19 years ago
Russell Bryant 395db9ea8b Implement locking for the list of URI handlers to make it thread-safe.
19 years ago
Jason Parker d017436015 Minor fixes for Solaris.
19 years ago
Kevin P. Fleming 9a78e1f90e remove some now-unnecessary explicit includes of autoconfig.h
19 years ago
Kevin P. Fleming 0509ca82b4 simplify dependency tracking system, using the compiler's built-in method for generating them, and only doing dependency tracking if developer mode is enabled via the configure script
19 years ago
Kevin P. Fleming be1b5dab06 since we really, really have to have autoconfig.h included before all other headers (especially system headers), the Makefile will now force it to happen (this will fix build problems with files like ast_expr2f.c, where we can't control the inclusion order in the file itself)
19 years ago
Joshua Colp 8df2c7228f Turn payload_lock into bridge_lock and make it encompass all RTP structure contents that may relate to bridge information, including who we are bridged to.
19 years ago
Joshua Colp 0995fb8aeb Payload values on the RTP structure can change AFTER a bridge has started. This comes from the packet handling of the SIP response when indication that it was answered has been sent. Therefore we need to protect this data with a lock when we read/write. (issue #8232 reported by tgrman)
19 years ago
Joshua Colp 87a03da072 Remove direct RTCP bridging. I've come to the conclusion that we should handle this through the core and not just forward it on. Should solve a few bugs.
19 years ago
Joshua Colp c866263f50 Merge in my latest RTP changes. Break out RTP and RTCP callback functions so they no longer share a common one.
19 years ago
Steve Murphy 0ab411f2ed Here lies the fixes that killed bug 8423 -- OriginateSuccess and OriginateError incomplete channel name. May it rest in peace.
19 years ago
Olle Johansson f89143bd13 - Disable RTP hold timers while T.38 fax transmission happens
19 years ago
Tilghman Lesher a78cc926d4 Double-unlock error (reported by blitzrage on IRC)
19 years ago
Joshua Colp b2b70adede Do not do a partial bridge for Google Talk since we need to handle STUN. (issue #8448 reported by phsultan)
19 years ago
Joshua Colp 191c129b4f Merged revisions 48151 via svnmerge from
19 years ago
Joshua Colp 558639ff6a Merged revisions 48106 via svnmerge from
19 years ago
Russell Bryant a569bfd1f2 Remove a couple of unused variables (issue #8380, casper)
19 years ago
Steve Murphy e6ce5ce979 bug 8189 posted this fix for main/translate.c for PLC
19 years ago
Joshua Colp 090c412c27 Video will never reach Packet2Packet bridging and can do more harm then good.
19 years ago
Joshua Colp 8c0f4c8711 If we have the non standard G726-32 setting turned on we want to return G726-32 to the SDP, not our AAL2 string. (issue #8330 reported by voipgate)
19 years ago
Joshua Colp 0e684abd82 Merged revisions 47859 via svnmerge from
19 years ago
Joshua Colp b42279c142 Only remove/destroy the RTCP I/O item if it exists.
19 years ago
Joshua Colp cb11263607 We need to ensure timelimit stuff is included as well so warnings get played. (issue #8050 reported by KNK)
19 years ago
Kevin P. Fleming 3302cbea3e don't try to call fclose() if fopen() failed
19 years ago
Kevin P. Fleming 7a5771161e Merged revisions 47686,47688-47689 via svnmerge from
19 years ago
Kevin P. Fleming cb4ed839c3 Merged revisions 47682 via svnmerge from
19 years ago
Luigi Rizzo a9057b2c65 fix longest match search in find_cli.
19 years ago
Joshua Colp bc6cff37bc If NAT detection is turned on or already detected then say NAT is active when setting the remote RTP peer when doing early bridging. (issue #8365 reported by marcelbarbulescu)
19 years ago
Kevin P. Fleming 8dc804fafe more formatting cleanup, and avoid running off the end of the string
19 years ago
Joshua Colp 708b84da2f Turn notice about unknown RTCP packet type into a debug message instead.
19 years ago
Steve Murphy 2a0ac6ad9a This solves bug 8342, whereby a crash occurs under certain circumstances while reading a config file with comments-- a call to CB_ADD shouldn't happen if withcomments is zero
19 years ago
Tilghman Lesher 6e4d0e50c8 Re-enable old deprecated commands
19 years ago
Joshua Colp 6351e6bb2c Free full command string upon unregistering of CLI command. Backported from revision 47536 from rizzo.
19 years ago
Russell Bryant 7ac2161b50 Tweak the formatting of this new function to better conform to coding guidelines.
19 years ago
Matt O'Gorman 5b02ba2bf1 woohoo safe out put!
19 years ago
Tilghman Lesher f11ea0549d Discussion of these CLI changes resulted in more consistency (Bug 8236)
19 years ago
Russell Bryant 5654be2803 fix tab completion for "core debug channel" and "core no debug channel"
19 years ago
Russell Bryant 795ba043e2 Fix "core show channel". Also, fix tab completion for both "core show channel"
19 years ago
Russell Bryant 6609cebaf2 Fix "core debug channel <whatever>". I guess someone needs to go through and
19 years ago
Russell Bryant 9009cfcf79 revert the previous change, which actually modified the deprecated command,
19 years ago
Russell Bryant 38be3e38e2 Fix argument parsing for the "core show profile" CLI command
19 years ago
Russell Bryant 0b927d2208 Fix another CLI command, "core show uptime" ...
19 years ago
Russell Bryant 15ba13f1ec fix "core show version" to reflect the new number of arguments for this
19 years ago
Steve Murphy 729ce4d791 This update fixes 7531
19 years ago
Kevin P. Fleming ea53cfcea3 the battle over CLI command formats has broken stuff...
19 years ago
Steve Murphy 517978fd5f These mods are to solve the problem in bug 7506. It's a lot of rework to solve a fairly small problem... such is life.
19 years ago
Russell Bryant c8ee894823 Fix another bug in "core set debug" ...
19 years ago
Russell Bryant 789234df2d Really fix the "core set debug" and "core set verbose" CLI commands.
19 years ago
Russell Bryant da6cf383d4 fix the "atleast" option to the "core set verbose" and "core set debug"
19 years ago
Tilghman Lesher 56a1e60c54 More changes making the CLI more consistent with "category verb arguments" (continuation of issue 8236)
19 years ago
Tilghman Lesher e05a2752e8 Reverse change of "show" to "list" and make several other commands more consistent with "category verb arguments"
19 years ago
Russell Bryant 105fa492b4 Add the missing call to free described in issue #8268. Also, add a bunch of
19 years ago
Russell Bryant e626d78269 fix saying one hundred and two hundred in hebrew (issue #7810, eldadran)
19 years ago
Joshua Colp 673e9f53a8 Force poll() emulation for Darwin to always be on. It's too broken to consider being used. This resolves the console issue OSX users have been seeing. I would have liked to autoconf this but I haven't been able to come up with a test case that works. Que sera.
19 years ago
Steve Murphy a0078bbbc0 Cleanups suggested by Russell.
19 years ago
Jason Parker b12229c1ff Fix "core show translation" output. Issue #8243, patch by Damin.
19 years ago
Kevin P. Fleming f532d2f198 add an API so that translators can activate/deactivate themselves when needed
19 years ago
Kevin P. Fleming 160a0448c2 revert changes that were the wrong way to address this... proper fix coming
19 years ago
Kevin P. Fleming f725940328 let's set the seen flag early enough to actually make a difference...
19 years ago
Kevin P. Fleming 59186bb2d2 don't re-do setup operations for translators that can dynamically register themselves
19 years ago
Olle Johansson d318976f4d Issue #8089 - Fix the ENUM support (picking one record by number). Thanks otmar!
19 years ago
Russell Bryant e998b2b609 Merged revisions 46560 via svnmerge from
19 years ago
Russell Bryant 68720145e3 Add a small tweak to the code that checks to see whether destination formats
19 years ago
Kevin P. Fleming d8817c0d3c when unregistering a translator, don't rebuild the translation matrix unless needed
19 years ago
Olle Johansson 86c973f71f Issue #8246 - Doxygen fixes from kshumard.
19 years ago
Olle Johansson e93e64a005 Bind RTCP to the same IP as RTP
19 years ago
Russell Bryant d7f9b5f912 We should always be using _exit() after a fork() or vfork() instead of exit().
19 years ago
Russell Bryant 3cb7bcd6d7 - If the source has no audio or no video portion, do not call powerof() to
19 years ago
Mark Spencer 72146fab32 Fix config comment code preservation code (thanks murf!)
19 years ago
Kevin P. Fleming ce4b0afb73 apparently developers are still not aware that they should be use ast_copy_string instead of strncpy... fix up many more users, and fix some bugs in the process
19 years ago
Tilghman Lesher ab677899a7 WaitExten truncates decimals of times to wait, instead of accepting them (Bug 8208)
19 years ago
Kevin P. Fleming 6c17f1e07e add passthrough and file format support for G.722 16KHz audio (issue #5084, original patch by andrew, updated by mithraen)
19 years ago
Kevin P. Fleming 05eb71c699 code zone experiment: don't offer formats in the outbound INVITE that aren't either passthrough or translatable
19 years ago
Kevin P. Fleming c5f096e220 if multiple translators are registered for the same source/dest combination, ensure that the lowest-cost one is always inserted earlier in the list
19 years ago
Luigi Rizzo e6451274d2 merge 45152 don't leak descriptors in http.c
19 years ago
Kevin P. Fleming 471c0eebdc ensure that the translation matrix is properly lock-protected every place it is used
19 years ago
Kevin P. Fleming d2b10d5f4f add an API call to allow channel drivers to determine which media formats are compatible (passthrough or transcode) with the format an existing channel is already using
19 years ago
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