Commit Graph

536 Commits (c7b6c42ef563d3264afd850de73267d63726fdcc)

Author SHA1 Message Date
Russell Bryant 083a9198ea Merged revisions 52903 via svnmerge from
19 years ago
Russell Bryant 4bc823f540 Add a missing quotation mark. This was pointed out by jcmoore on #asterisk-dev.
19 years ago
Russell Bryant 771be23a9c Remove a recursive lock of the manager session. This was pointed out by
19 years ago
Russell Bryant 108085ed2d ASTLDFLAGS needs to be passed to the editline configure script as LDFLAGS.
19 years ago
Russell Bryant 06a3110ed8 Fix a problem with packet-to-packet bridging and DTMF mode translation. P2P
19 years ago
Russell Bryant ce753cf0d9 The session lock can not be held while calling action callbacks. If so, then
19 years ago
Steve Murphy f2fab700c3 this is for 8778 (pt_BR backport to 1.4). It was committed to trunk via 7663. But it wasn't so much an enhancement as a fix for the bad language output for portuguese in Brazil, so, after a lot of prodding from patient Brazilians, here is the same fix for 1.4
19 years ago
Russell Bryant 824bed6260 Clean up a few things in the last commit to the adaptive jitterbuffer code.
19 years ago
Jim Dixon 2132e4f865 Fixed problem with jitterbuf, whereas it would not complain about, and
19 years ago
Joshua Colp 9c289fe01b Have the manager interface send back an "Already logged in" message instead of "Invalid/Unknown Command" when the client authenticates for a second time. (issue #8509 reported by pari)
19 years ago
Joshua Colp bc43c82f05 Fix core show file formats CLI command.
19 years ago
Joshua Colp 3b44625323 Merged revisions 52264 via svnmerge from
19 years ago
Joshua Colp 8acccb9254 Merge in dialing API and the app_page that uses it. (issue #BE-118)
19 years ago
Russell Bryant 9440d428a0 Merged revisions 51843 via svnmerge from
19 years ago
Russell Bryant 2a37a53c57 Fix some bugs in process_message(). The manager session lock needs to be held
19 years ago
Russell Bryant 86f8e0a527 Fix setting the default port of 8088 on 64-bit or big-endian machines.
19 years ago
Russell Bryant 3d5e9fa43c When traversing the list of manager actions, the iterator needs to be
19 years ago
Steve Murphy ec2c64c81b via 8748 (callerid.c loses name when returning PRIVATE_NUMBER flag), the user suggested this mod, saying it would allow 'WITHHELD' to appear in the name field, which would be useful
19 years ago
Russell Bryant 33235b40d6 Merge the changes from the /team/group/vldtmf_fixup branch.
19 years ago
Russell Bryant 879a71e921 Merged revisions 51300 via svnmerge from
19 years ago
Jason Parker 76eb4e76dc Add some more checks for option_debug before ast_log(LOG_DEBUG, ...) calls.
19 years ago
Russell Bryant eedd121fbc Ensure that the locations given to the Asterisk configure script for ncurses,
19 years ago
Tilghman Lesher 8d59d5173a Merged revisions 51255 via svnmerge from
19 years ago
Jason Parker 65565ac74d Fix an issue with file name completion in "module load" and "load".
19 years ago
Jason Parker eab59cabdb Fix an issue with deprecated commands
19 years ago
Russell Bryant c5a3194042 Make the "hasmanager" option in users.conf actually have an effect.
19 years ago
Joshua Colp 9461aa0027 Pass data as well for hold/unhold/vidupdate frames. (issue #8840 reported by mdu113)
19 years ago
Tilghman Lesher 0baf4aa941 Merged revisions 51194 via svnmerge from
19 years ago
Joshua Colp 9f0ad6093e Return the correct result when directly writing out a packet so that the core doesn't then decide to handle it the regular way again. (issue #8833 reported by rcourtna)
19 years ago
Jason Parker 1825fc3ee2 Fix issue with dtmf continuation packets when the dtmf digit is 0...
19 years ago
Jason Parker 897e4b5eaa Display more useful output when streaming files.
19 years ago
Russell Bryant de14e3d549 It is possible for the config pointer to be NULL here, so it needs to be
19 years ago
Jason Parker 9d49164921 re-add deprecated "show version" CLI command.
19 years ago
Joshua Colp caa099357b Move event processing into do_message so that it gets executed again when events are tripped.
19 years ago
Kevin P. Fleming dd357a71a7 use the ACX_PTHREAD macro from the Autoconf macro archive for setting up compiler pthreads support... should improve portability to platforms with unusual pthreads requirements
19 years ago
Joshua Colp 50f951764f Add missing newlines for two memory CLI commands.
19 years ago
Tilghman Lesher 3fb08d4e9d Merged revisions 50781 via svnmerge from
19 years ago
Joshua Colp e4de85c4f5 Only write a frame out to the channel if one exists. There are cases where one may not and would therefore cause the channel driver to segfault. (issue #8434 reported by slimey)
19 years ago
Joshua Colp 5fe88c5f88 We need to check for res being 0 in do_message itself, otherwise our headers will get lost.
19 years ago
Kevin P. Fleming 34b5a7c8ae Merged revisions 50561 via svnmerge from
19 years ago
Joshua Colp 240ca25bea Add support to see whether NAT was detected (yay symmetric RTP) and also add a check in chan_sip so that if NAT has been detected and the reinvite behind nat option has been turned off, then just do partial bridge. (issue #8655 reported by mnicholson)
19 years ago
Joshua Colp c4d1757329 Fix parsing when using something like ldap settings. (done by anthonyl)
19 years ago
Joshua Colp 59432b9e21 Ensure data's existence before trying to access it. (issue #8774 reported by rcourtna)
19 years ago
Jason Parker 281b1a890c Re-add CLI command that should have only been deprecated in 1.4.
19 years ago
Joshua Colp 46700b62af Disable the more intense packet2packet bridging until the bugs can be worked out.
19 years ago
Jason Parker 9e621e99a5 Save 1 whopping byte of allocated memory!
19 years ago
Kevin P. Fleming d2d50d7a8e ast_func_read() needs a writable copy of the function name to be passed
19 years ago
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
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