Commit Graph

677 Commits (9aa3d2dd7ff0953d87840e5d0873404caa95186f)

Author SHA1 Message Date
Russell Bryant 1a6a5e1867 Don't do frame processing if ast_read() returned NULL.
18 years ago
Russell Bryant 3df74ed9ac Don't start/stop autoservice in pbx_extension_helper() unless a channel exists
18 years ago
Russell Bryant 80c81b8e8c Merge changes from team/russell/autoservice_1.4
18 years ago
Kevin P. Fleming 2fa2fea3f5 on second thought... revert all the other changes i've made in app options parsing leaving only one: if an empty argument is supplied for an option, set that argument pointer to point to an empty string rather than NULL, so that the application can do normal checks on it without worrying about it being NULL
18 years ago
Kevin P. Fleming e31c1b0441 generate a warning when an application option that requires an argument is ignored due to lack of an argument
18 years ago
Olle Johansson 0c3ec937ce If we get a codec offer using a well-known payload type, but using it for another
18 years ago
Steve Murphy 1975b6e753 closes issue #11379; OK, this is an attempt to make both sides happy. To the cdr.conf file, I added the option 'unanswered', which defaults to 'no'. In this mode, you will see a cdr for a call, whether it was answered or not. The disposition will be NO ANSWER or ANSWERED, as appropriate. The src is as you'd expect, the destination channel will be one of the channels from the Dial() call, usually the last in the list if more than one chan was specified. With unanswered set to 'yes', you will still see this cdr entry in both cases. But in the case where the dial timed out, you will also see a cdr for each line attempted, marked NO ANSWER, with no destination channel name. The new option defaults to 'no', so you don't see the pesky extra cdr's by default, and you will not see the irritating 'not posted' messages.
18 years ago
Joshua Colp aeed294b7b Fix issues with async dialing with an application executing. The application has to be terminated and control returned to the thread before hanging things up. (issue #BE-252)
18 years ago
Russell Bryant a17edf7d99 Add channel locking to a function that needed to be doing it. This is just a
18 years ago
Kevin P. Fleming daea9fd8e8 when parsing application options that take arguments, don't indicate that the option was supplied unless a non-zero-length argument was found for it
18 years ago
Joshua Colp c93621d1ec If channel allocation fails because the alert pipe could not be created also free the scheduler context.
18 years ago
Tilghman Lesher e671cb909d Currently, zero-length voicemail messages cause a hangup in VoicemailMain.
18 years ago
Tilghman Lesher 540a2c7098 Up until this point, the XML output of the manager has been technically
18 years ago
Kevin P. Fleming 337fb0c37f bring back compile-option checking when loading modules, only this time use a string-based storage and comparison mechanism because it is easier to support on other platforms
18 years ago
Mark Michelson da4933e657 According to comments in main/pbx.c, it is essential that if we are going to lock
18 years ago
Russell Bryant 12d60508f3 Temporarily revert revision 89325, which added md5 magic for keeping track of
18 years ago
Kevin P. Fleming 22b119d188 To help combat problems where people build external modules (asterisk-addons or others) and then change the build options of the Asterisk build in a way that makes the incompatible without warning, this commit introduces an MD5 signature of the important build-time options and includes that signature into modules when they are built. When the loader loads one of these modules and notices the problem, it will emit a warning to console and refuse to initialize the module, as doing so could cause the system to be unstable or even crash.
18 years ago
Mark Michelson 1fece3bb67 Undoing previous commit since I realize it was wrong
18 years ago
Mark Michelson 88f847869d Adding a missing mutex unlock.
18 years ago
Tilghman Lesher 1af09c5f9d When a recording ends with '#', we are improperly trimming an extra 200ms from the recording.
18 years ago
Joshua Colp f3f12761ba Return the proper value when the srv_callback function executes properly.
18 years ago
Tilghman Lesher feed493993 Debugging is running into the 16-lock limit. Increase to avoid.
18 years ago
Jason Parker 05df1092da Fix a typo pointed out by De_Mon on #asterisk-dev
18 years ago
Tilghman Lesher 472eb33648 If two config writes collide, file corruption could result. Use a mkstemp() file, instead.
18 years ago
Tilghman Lesher 1a052e0498 Fix two cases of memory corruption caused by background threads.
18 years ago
Jason Parker 76aa7c3767 Properly say the seconds here..
18 years ago
Kevin P. Fleming 30cb593fd2 fix a glaring bug in the new SRV record handling that would cause incorrect weight sorting
18 years ago
Mark Michelson 63f6e6b023 Fixing a segfault in the manager "core show channels concise" command.
18 years ago
Olle Johansson 044aa79799 Bug fixes to tdd support in zaptel.
18 years ago
Steve Murphy 712b337863 closes issue #8786 - where the [catname](!) and [catname](othercat1,othercat2,...) notation gets dropped across a ConfigUpdate (or any other thing that would cause a config file to be written). While I was at it, I also cleaned up some of the destroy routines to free up comments, which was not being done. Made sure the new struct I introduced is also cleaned up properly at destruction time. My code handles multiple template inclusions. Many thanks to ssokol for his patch, which, while not literally used in the final merge, served as a foundation for the fix.
18 years ago
Mark Michelson 7b59a194a5 Reworked deadlock avoidance in __ast_read. Restored audio to
18 years ago
Russell Bryant 34002d567b After seeing crashes related to channel variables, I went looking around at the
18 years ago
Russell Bryant 5d140cb9c2 Merge changes from asterisk/team/kpfleming/SRV-priority-handling
18 years ago
Russell Bryant 9cb94c7cde Merge the last bit of changes from asterisk/team/russell/readq-1.4
18 years ago
Russell Bryant a3af50b67d Fix up datastore handling in ast_do_masquerade(). The code is intended to move
18 years ago
Luigi Rizzo a0edff2477 Rename ast_string_field_free_pool to ast_string_field_free_memory,
18 years ago
Jason Parker fc0439dde4 We need to make sure to specify a language to ast_fileexists, otherwise it may fail for anything besides en
18 years ago
Jason Parker 4df0c83be7 Fix build of editline on Solaris.
18 years ago
Kevin P. Fleming f0c0dfe1f1 clean up (and ignore) assembler and preprocessor intermediate files if any are created during the build
18 years ago
Russell Bryant b2382349dc Add some more details to the output of "core show locks". When a thread
18 years ago
Russell Bryant fd7bc75ce9 Remove a lock that doesn't make any sense. The regions lock needs to be held
18 years ago
Joshua Colp 7fc2c32a92 Fix issue with ast_unescape_semicolon going into an endless loop.
18 years ago
Kevin P. Fleming 214a5ca25e appending one list to another should leave the first list empty, and not require the user to do that
18 years ago
Steve Murphy ea4525e780 this update to Makefile corrects how ast_expr2f.c should be generated
18 years ago
Steve Murphy 0f7198f227 This should get rid of a really, really irritating warning generated by some 64-bit platforms from libc, where free(0) is frowned upon
18 years ago
Tilghman Lesher 992f4d1aeb Minor FreeBSD build fix
18 years ago
Russell Bryant 20ce142d01 Don't leak a frame in the case that an END frame is received and the time since
18 years ago
Joshua Colp 0e9071a2e3 Move log message to before the frame it references is freed.
18 years ago
Joshua Colp fb53e2a7f5 Fixes for building under OpenSolaris.
18 years ago
Joshua Colp e2dcbeda0c When returning a DTMF digit from ast_control_streamfile cast it as a char so that 0 does not overlap with the success return code.
18 years ago
Russell Bryant 9df6ebe9b9 The channel needs to stay locked while running timer callbacks, as they access
18 years ago
Russell Bryant 9fcc010cce Revert a change that I made for issue #10979 which, as has been pointed out to
18 years ago
Tilghman Lesher d2c10c49fa When runuser/rungroup is specified, a remote console could only be attained by root
18 years ago
Tilghman Lesher 17ee21bf18 Also set up gmtoff (this is used in the %z gnu extension to strftime)
18 years ago
Joshua Colp 3a935a35a0 Fix memory allocation issue in threadstorage.
18 years ago
Russell Bryant d47ebb492f Add a small fix for the tw version of saying dates.
18 years ago
Russell Bryant 02bb2bcbaa Be pedantic about handling memory allocation failure.
18 years ago
Russell Bryant 9c47228dff The loop in the handler for the "core show locks" could potentially block for
18 years ago
Joshua Colp 0f3e461074 Bring both DTMF begin and end frames up through to the core for DTMF feature handling.
18 years ago
Joshua Colp 3cc997694d If Monitor or a spy was added to a P2P or native bridged channel bring the channel back to the generic bridging core so the monitor or spy operations work.
18 years ago
Russell Bryant b5addcd9a5 Suppress a LOG_DEBUG message if debug is not enabled.
18 years ago
Russell Bryant 39f5611898 Make sure remote consoles unmute themselves again after reconnecting.
18 years ago
Russell Bryant 9b382ca76f Make sure that the base64 decoder returns a terminated string.
18 years ago
Russell Bryant bad30446a6 Fix an issue with console verbosity when running asterisk -rx to execute a command
18 years ago
Russell Bryant 6c18b111b9 Properly handle the case where read() may return the text for more than one
18 years ago
Tilghman Lesher 18fa561af4 A dollar sign by itself, not indicating a start of a variable or expression prematurely ends substitution (closes issue #10939)
18 years ago
Mark Michelson 30b6db4bcf The thread ID should be unsigned.
18 years ago
Tilghman Lesher 96d11d3e02 This commit fixes the following issues:
18 years ago
Joshua Colp ba0bb743e6 Only update codec information if the channel has a technology private structure.
18 years ago
Joshua Colp 3dcf938f73 Update codec information as well as address when doing hold reinvites.
18 years ago
Joshua Colp 2baeb29ae4 Don't keep trying to native bridge if either of the channels are involved in a masquerade operation to be done.
18 years ago
Tilghman Lesher 9ae23cba31 Log exactly why we can't open the database, if we fail (closes issue #10887)
18 years ago
Joshua Colp 35ed1f7148 Update the remembered RTP peer information when putting an endpoint on hold or taking it off hold so that the RTP stack does not initiate a needless reinvite.
18 years ago
Russell Bryant 2c757f0747 Fix a copy/paste error in the description of UpdateConfig that was pointed
18 years ago
Tilghman Lesher 1e9edf1338 When an RFC 2833 event is sent that we don't recognize, ignore it, don't queue a NULL digit (closes issue #10877)
18 years ago
Dwayne M. Hubbard bae4135759 moved get_base_channel() code from action_redirect to ast_channel_masquerade() for issue 7706 and BE-160
18 years ago
Russell Bryant 5fdc354155 Fulfull a feature request from Qwell on the "core show locks" output. It will
18 years ago
Tilghman Lesher b1f26cfcdf Correct pronunciations of numbers for .nl (Closes issue #10837)
18 years ago
Tilghman Lesher 253a34b756 Avoid a deadlock with ALL of the locks in the masquerade function, not just the
18 years ago
Dwayne M. Hubbard 7c4e477fde if an Agent is redirected, the base channel should actually be redirected. This was causing multiple issues, especially issue 7706 and BE-160
18 years ago
Tilghman Lesher 20e50a731b jmls pointed out that unsetting the group and setting the group to the blank string aren't quite the same.
18 years ago
Tilghman Lesher 8c95942b7f Making change to group splitting, as discussed on the -dev list. The main
18 years ago
Russell Bryant d6b8fb4dc0 gcc 4.2 has a new set of warnings dealing with cosnt pointers. This set of
18 years ago
Russell Bryant 578c1d0c8a When daemonizing, don't change working directory to "/". It makes it not be
18 years ago
Russell Bryant df5599d598 Fix up another potential race condition. Do the loop decrementing use count
18 years ago
Doug Bailey 8ac8d79a5d Corrected patch applied in revision r82887.
18 years ago
Doug Bailey 33a1011c51 Fixed a bug where http manager sessions prevented the eventq from being cleaned out because http manager sessions do not have a valid file descriptor.
18 years ago
Russell Bryant 4668601f9c Fix a memory leak that can occur on systems under higher load. The issue is
18 years ago
Russell Bryant 82a6309168 Put a memset in ast_localtime() instead of a couple places in app_voicemail
18 years ago
Joshua Colp 5bf3facef0 (closes issue #10734)
18 years ago
Steve Murphy 3dd879bb13 closes issue #10668; thanks to arkadia for his patch; had to leave out the bit about ending the previous cdr in the fork; it would destroy current implementations.
18 years ago
Russell Bryant 8138003de7 resolve a warning when not building under dev mode
18 years ago
Russell Bryant c8dd4e7430 Only compile in tracking astobj2 statistics if dev-mode is enabled. Also, when
18 years ago
Tilghman Lesher 4f1183bd27 Oops, wrong location for FreeBSD zone files
18 years ago
Tilghman Lesher e28d1357de Working on issue #10531 exposed a rather nasty 64-bit issue on ast_mktime, so we
18 years ago
Russell Bryant ef740deceb Clean up the output of "asterisk -h". This tweaks the wording and wraps lines
18 years ago
Steve Murphy e84f98ea4f this change should fix issue # 10659 -- what I worry about is how many other bug reports it may generate. Hopefully, we can please the/a majority. Hopefully. We shall see. Calls not marked ANSWERED and with only one channel name will not be posted. This should eliminate the double CDR's.
18 years ago
Russell Bryant b8261abd0b backport astobj2 race condition fix. This function is the exact same as trunk
18 years ago
Russell Bryant 827ca97872 Fix a small memory leak. ast_unregister_atexit() did not free the entry it removed.
18 years ago
Russell Bryant aa3b7e22f5 Fix an issue that can occur when you do an attended transfer to parking. If
18 years ago