Skip to content
Snippets Groups Projects
  1. Aug 29, 2008
    • Mark Michelson's avatar
      Merged revisions 140488 via svnmerge from · 5dfefa5e
      Mark Michelson authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r140488 | mmichelson | 2008-08-29 12:34:17 -0500 (Fri, 29 Aug 2008) | 22 lines
      
      After working on the ao2_containers branch, I noticed
      something a bit strange. In all cases where we provide
      a callback function to ao2_container_alloc, the callback
      function would only return 0 or CMP_MATCH. After inspecting
      the ao2_callback() code carefully, I found that if you're
      only looking for one specific item, then you should return
      CMP_MATCH | CMP_STOP. Otherwise, astobj2 will continue
      traversing the current bucket until the end searching for
      more matches.
      
      In cases like chan_iax2 where in 1.4, all the peers are
      shoved into a single bucket, this makes for potentially
      terrible performance since the entire bucket will be
      traversed even if the peer is one of the first ones come
      across in the bucket.
      
      All the changes I have made were for cases where the 
      callback function defined was passed to ao2_container_alloc
      so that calls to ao2_find could find a unique instance
      of whatever object was being stored in the container.
      
      
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@140489 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      5dfefa5e
  2. Aug 19, 2008
  3. Aug 07, 2008
  4. Jul 11, 2008
  5. Jun 27, 2008
  6. Jun 12, 2008
  7. Jun 03, 2008
  8. May 29, 2008
  9. May 28, 2008
  10. May 23, 2008
    • Mark Michelson's avatar
      A new feature thanks to the fine folks at Switchvox! · 975a848b
      Mark Michelson authored
      If a deadlock is detected, then the typical lock information will be
      printed along with a backtrace of the stack for the offending threads.
      Use of this requires compiling with DETECT_DEADLOCKS and having glibc
      installed.
      
      Furthermore, issuing the "core show locks" CLI command will print the
      normal lock information as well as a backtraces for each lock. This
      requires that DEBUG_THREADS is enabled and that glibc is installed.
      
      All the backtrace features may be disabled by running the configure
      script with --without-execinfo as an argument
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@118173 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      975a848b
  11. May 21, 2008
  12. May 18, 2008
  13. May 06, 2008
  14. Apr 16, 2008
  15. Apr 10, 2008
  16. Mar 18, 2008
    • Terry Wilson's avatar
      Go through and fix a bunch of places where character strings were being... · b02bc230
      Terry Wilson authored
      Go through and fix a bunch of places where character strings were being interpreted as format strings. Most of these changes are solely to make compiling with -Wsecurity and -Wformat=2 happy, and were not
      actual problems, per se.  I also added format attributes to any printf wrapper functions I found that didn't have them.  -Wsecurity and -Wmissing-format-attribute added to --enable-dev-mode.
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109447 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      b02bc230
    • Steve Murphy's avatar
      Merged revisions 109309 via svnmerge from · 4e29ae88
      Steve Murphy authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r109309 | murf | 2008-03-18 00:37:15 -0600 (Tue, 18 Mar 2008) | 17 lines
      
      (closes issue #11903)
      Reported by: atis
      
      Many thanks to atis for spotting this problem and reporting it.
      The fix was to straighten out how items are placed on and removed
      from the file stack. Regressions as well as the provided test case
      helped to straighten out all code paths. valgrind was used to make
      sure all memory allocated was freed.
      
      Sorry for not solving this earlier. I got distracted.
      
      Added the ntest23 regression test, which is mainly a copy of ntest22, 
      but with a few juicy errors thrown in, to replicate the kind of 
      error that atis spotted.
      
      
      
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      4e29ae88
  17. Mar 11, 2008
    • Kevin P. Fleming's avatar
      Merged revisions 107352 via svnmerge from · 79c3038e
      Kevin P. Fleming authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r107352 | kpfleming | 2008-03-11 06:04:29 -0500 (Tue, 11 Mar 2008) | 11 lines
      
      fix up various compiler warnings found with gcc-4.3:
      
      - the output of flex includes a static function called 'input' that is not used, so for the moment we'll stop having the compiler tell us about unused variables in the flex source files (a better fix would be to improve our flex post-processing to remove the unused function)
      
      - main/stdtime/localtime.c makes assumptions about signed integer overflow, and gcc-4.3's improved optimizer tries to take advantage of handling potential overflow conditions at compile time; for now, suppress these optimizations until we can fiure out if the code needs improvement
      
      - main/udptl.c has some references to uninitialized variables; in one case there was no bug, but in the other it was certainly possibly for unexpected behavior to occur
      
      - main/editline/readline.c had an unused variable
      
      
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107373 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      79c3038e
  18. Mar 07, 2008
    • Steve Murphy's avatar
      (closes issue #6002) · 377e51c4
      Steve Murphy authored
      Reported by: rizzo
      Tested by: murf
      
      Proposal of the changes to be made, and then an announcement of how they were accomplished:
      
      http://lists.digium.com/pipermail/asterisk-dev/2008-February/032065.html
      
      and:
      
      http://lists.digium.com/pipermail/asterisk-dev/2008-March/032124.html
      
      Here is a recap, file by file, of what I have done:
      
      pbx/pbx_config.c
      pbx/pbx_ael.c
      
      All funcs that were passed a ptr to the context list, now will ALSO be passed a hashtab ptr to the same set.
      Why? because (for the time being), the dialplan is stored in both, to facilitate a quick, low-cost move to
      hash-tables to speed up dialplan processing. If it was deemed necessary to pass the context LIST, well, it
      is just as necessary to have the TABLE available. This is because the list/table in question might not be
      the global one, but temporary ones we would use to stage the dialplan on, and then swap into the global
      position when things are ready.
      
      We now have one external function for apps to use, "ast_context_find_or_create()" instead of the pre-existing
      "find" and "create", as all existing usages used both in tandem anyway.
      
      pbx_config, and pbx_ael, will stage the reloaded dialplan into local lists and tables, and 
      then call merge_contexts_and_delete, which will merge (now) existing contexts and 
      priorities from other registrars into this local set by copying them. Then, merge_contexts_and_delete will
      lock down the contexts, swap the lists and tables, and unlock (real quick), and then 
      destroy the old dialplan.
      
      
      
      chan_sip.c
      chan_iax.c
      chan_skinny.c
      
      All the channel drivers that would add regcontexts now use the ast_context_find_or_create now.
      
      chan_sip also includes a small fix to get rid of warnings about removing priorities that never got entered.
      
      
      apps/app_meetme.c
      apps/app_dial.c
      apps/app_queue.c
      
      All the apps that added a context/exten/priority were also modified to use ast_context_find_or_create instead.
      
      
      include/asterisk/pbx.h
      
      ast_context_create() is removed. Find_or_create_ is the new method.
      ast_context_find_or_create()  interface gets the hashtab added.
      ast_merge_contexts_and_delete() gets the local hashtab arg added.
      ast_wrlock_contexts_version() is added so you can detect if someone else got a writelock between your readlocking and writelocking.
      ast_hashtab_compare_contexts was made public for use in pbx_config/pbx_ael
      ast_hashtab_hash_contexts was in like fashion make public.
      
      
      include/asterisk/pval.h
      
      ast_compile_ael2() interface changed to include the local hashtab table ptr.
      
      
      main/features.c
      
      For the sake of the parking context, we use ast_context_find_or_create().
      
      
      
      main/pbx.c
      
      I changed all the "tree" names to "table" instead. That's because the original
      implementation was based on binary trees. (had a free library). Then I moved
      to hashtabs. Now, the names move forward too.
      
      refcount field added to contexts, so you can keep track of how many modules
      wanted this context to exist.
      
      Some log messages that are warnings were inflated from LOG_NOTICE to LOG_WARNING.
      
      Added some calls to ast_verb(3,...) for debug messages
      
      Lots of little mods to ast_context_remove_extension2, which is now excersized in ways
      it was not previously; one definite bug fixed.
      
      find_or_create was upgraded to handle both local lists/tables as well as the globals.
      
      context_merge() was added to do the per-context merging of the old/present contexts/extens/prios into the new/proposed local list/tables
      
      ast_merge_contexts_and_delete() was heavily modified.
      
      ast_add_extension2() was also upgraded to handle changes. 
      
      the context_destroy() code was re-engineered to handle the new way of doing things,
      by exten/prio instead of by context.
      
      
      
      res/ael/pval.c
      res/ael/ael.tab.c
      res/ael/ael.tab.h
      res/ael/ael.y
      res/ael/ael_lex.c
      res/ael/ael.flex
      utils/ael_main.c
      utils/extconf.c
      utils/conf2ael.c
      utils/Makefile
      
      Had to change the interface to ast_compile_ael2(), to include the hashtab ptr.
      This ended up involving several external apps.  The main gotcha was I had to 
      include lock.h and hashtab.h in several places.
      
      
      As a side note, I tested this stuff pretty thoroughly, I replicated the problems
      originally reported by Luigi, and made triply sure that reloads worked, and everything
      worked thru "stop gracefully". I found a and fixed a few bugs as I was merging into
      trunk, that did not appear in my tests of bug6002.
      
      How's this for verbose commit messages?
      
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@106757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      377e51c4
    • Tilghman Lesher's avatar
      Merged revisions 106552 via svnmerge from · 87188784
      Tilghman Lesher authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r106552 | tilghman | 2008-03-07 00:36:33 -0600 (Fri, 07 Mar 2008) | 6 lines
      
      Safely use the strncat() function.
      (closes issue #11958)
       Reported by: norman
       Patches: 
             20080209__bug11958.diff.txt uploaded by Corydon76 (license 14)
      
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@106553 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      87188784
  19. Feb 28, 2008
  20. Feb 27, 2008
  21. Feb 21, 2008
  22. Feb 15, 2008
  23. Feb 04, 2008
  24. Jan 10, 2008
  25. Jan 08, 2008
  26. Dec 20, 2007
  27. Dec 18, 2007
  28. Dec 10, 2007
  29. Dec 09, 2007
  30. Dec 08, 2007
  31. Dec 04, 2007
Loading