]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
12 years agoMerged revisions 378735,378748 via svnmerge from
Automerge script [Wed, 9 Jan 2013 20:21:33 +0000 (20:21 +0000)] 
Merged revisions 378735,378748 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378735 | dlee | 2013-01-09 13:38:53 -0600 (Wed, 09 Jan 2013) | 13 lines

  Replace errant tabs with spaces in causes.h.

  (closes issue ASTERISK-20826)
  Reported by: snuffy
  Patches:
   notabs.dif uploaded by snuffy (license 5024)
  ........

  Merged revisions 378733 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378734 from http://svn.asterisk.org/svn/asterisk/branches/11
................
  r378748 | dlee | 2013-01-09 14:12:00 -0600 (Wed, 09 Jan 2013) | 13 lines

  Move declaration of ast_regex_string_to_regex_pattern futher down strings.h.

  The prior location is before the declaration of struct ast_str, which causes
  compiler warnings.

  (closes issue ASTERISK-20852)
  Reported by: Pavel Troller
  Patches:
   strings.diff uploaded by Pavel Troller (license 6302)
  ........

  Merged revisions 378747 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378759 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378688,378691 via svnmerge from
Automerge script [Wed, 9 Jan 2013 00:20:35 +0000 (00:20 +0000)] 
Merged revisions 378688,378691 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378688 | rmudgett | 2013-01-08 17:44:26 -0600 (Tue, 08 Jan 2013) | 35 lines

  app_queue: Fix multiple calls to a queue member that is in only one queue.

  When ringinuse=no queue members can receive more than one call if these
  calls happen at nearly the same time.

  * Fix so a queue member does not receive more than one call from a queue.

  NOTE: This fix does not prevent multiple calls to a member if the member
  is in more than one queue.

  * Did some refactoring to eliminate some code redundancy.

  (issue ASTERISK-16115)
  Reported by: nik600
  Patches:
        jira_asterisk_16115_single_q_v1.8.patch (license #5621) patch uploaded by rmudgett
        Modified

  * Revert the -r341580 and -r341599 changes adding the queues.conf
  check_state_unknown option as it was added in an attempt to fix this
  problem.  The fix did not need to be optional.  The fix should not have
  tried to explicitly set the device state.  Setting the device state by
  something other than the device introduces a race condition.  I also could
  not see how the change would be effective other than delaying the
  app_queue code long enough for the device state to propagate to app_queue.
  ........

  Merged revisions 378663 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378683 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 378687 from http://svn.asterisk.org/svn/asterisk/branches/11
................
  r378691 | rmudgett | 2013-01-08 18:05:35 -0600 (Tue, 08 Jan 2013) | 10 lines

  app_queue: Fix incorrect assertion.

  (issue ASTERISK-16115)
  ........

  Merged revisions 378689 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 378690 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378699 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoRemove tasks from the taskprocessor and free them when taskprocessor is destroyed.
Mark Michelson [Mon, 7 Jan 2013 23:11:41 +0000 (23:11 +0000)] 
Remove tasks from the taskprocessor and free them when taskprocessor is destroyed.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378654 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd some doxygen and remove an unnecessary unlock.
Mark Michelson [Mon, 7 Jan 2013 22:56:37 +0000 (22:56 +0000)] 
Add some doxygen and remove an unnecessary unlock.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378653 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAddress review board feedback from Matt and Richard
Mark Michelson [Mon, 7 Jan 2013 22:16:06 +0000 (22:16 +0000)] 
Address review board feedback from Matt and Richard

* Remove extraneous whitespace
* Bump up debug levels of messages and add identifying info to messages.
* Account for potential failures of ao2_link()
* Add additional test and some more test data
* Add some comments in places where they could be useful
* Make threadpool listeners and their callbacks optional

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378652 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378634 via svnmerge from
Automerge script [Sun, 6 Jan 2013 22:19:17 +0000 (22:19 +0000)] 
Merged revisions 378634 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

........
  r378634 | wedhorn | 2013-01-06 15:37:59 -0600 (Sun, 06 Jan 2013) | 6 lines

  Skinny blob cleanup

  Cleanup of red blobs in chan_skinny and possible other small formatting issues.

  Review: https://reviewboard.asterisk.org/r/2262/
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378639 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378623-378624 via svnmerge from
Automerge script [Sun, 6 Jan 2013 21:20:13 +0000 (21:20 +0000)] 
Merged revisions 378623-378624 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378623 | wedhorn | 2013-01-06 14:45:12 -0600 (Sun, 06 Jan 2013) | 12 lines

  Rewrite skinny dialing to remove threaded simpleswitch

  This rewrite changes skinny dialing from the threaded simpleswitch
  to a scheduled timeout approach. There were some underlying issues
  with the threaded simple switch with occasional corruption and
  possible segfaults.

  Review: https://reviewboard.asterisk.org/r/2240/
  ........

  Merged revisions 378622 from http://svn.asterisk.org/svn/asterisk/branches/11
................
  r378624 | wedhorn | 2013-01-06 15:09:43 -0600 (Sun, 06 Jan 2013) | 6 lines

  Add group and namedgroup pickup to skinny

  Above says it all. Code by snuff, cleaned up by me.

  Review: https://reviewboard.asterisk.org/r/2246/
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378629 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378593 via svnmerge from
Automerge script [Fri, 4 Jan 2013 23:19:39 +0000 (23:19 +0000)] 
Merged revisions 378593 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378593 | jrose | 2013-01-04 17:14:54 -0600 (Fri, 04 Jan 2013) | 23 lines

  res_srtp: Prevent a crash from occurring due to srtp_create failures in srtp_create

  Under some circumstances, libsrtp's srtp_create function deallocates memory that
  it wasn't initially responsible for allocating. Because we weren't initially
  aware of this behavior, this memory was still used in spite of being unallocated
  during the course of the srtp_unprotect function. A while back I made a patch
  which would set this value to NULL, but that exposed a possible condition where
  we would then try to check a member of the struct which would cause a segfault.
  In order to address these problems, ast_srtp_unprotect will now set an error value
  when it ends without a valid SRTP session which will result in the caller of
  srtp_unprotect observing this error and hanging up the relevant channel instead of
  trying to keep using the invalid session address.

  (closes issue ASTERISK-20499)
  Reported by: Tootai
  Review: https://reviewboard.asterisk.org/r/2228/diff/#index_header
  ........

  Merged revisions 378591 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378592 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378600 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378565,378585 via svnmerge from
Automerge script [Fri, 4 Jan 2013 22:19:35 +0000 (22:19 +0000)] 
Merged revisions 378565,378585 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378565 | elguero | 2013-01-04 15:20:12 -0600 (Fri, 04 Jan 2013) | 27 lines

  Fix SIP Notify Messages To Have The Proper IP Address In The FROM Field

  On a multihomed server when sending a NOTIFY message, we were not figuring out
  which network should be used to contact the peer.

  This patch fixes the problem by calling ast_sip_ouraddrfor() and then
  build_via() so that our NOTIFY message contains the correct IP address.

  Also, a debug message is being added to help follow the call-id changes that
  occur.  This was helpful for confirming that the IP address was set properly
  since the call-id contains the IP address.  It also will be helpful for
  troubleshooting purposes when following a call in the debug logs.

  (closes issue ASTERISK-20805)
  Reported by: Bryan Hunt
  Tested by: Bryan Hunt, Michael L. Young
  Patches:
      asterisk-20805-notify-ip-v2.diff uploaded by Michael L. Young (license 5026)

  Review: https://reviewboard.asterisk.org/r/2255/
  ........

  Merged revisions 378554 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378559 from http://svn.asterisk.org/svn/asterisk/branches/11
................
  r378585 | kmoore | 2013-01-04 16:19:16 -0600 (Fri, 04 Jan 2013) | 13 lines

  Fix pjproject compilation in certain circumstances

  On a fresh checkout of Asterisk 11, running make before ./configure
  could cause the pjproject subdirectory to get in an odd state that
  would prevent compilation. This patch by Tilghman prevents that from
  occurring.

  (closes issue ASTERISK-20681)
Patch-by: Tilghman Lesher
  ........

  Merged revisions 378582 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378586 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378557 via svnmerge from
Automerge script [Fri, 4 Jan 2013 21:18:39 +0000 (21:18 +0000)] 
Merged revisions 378557 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378557 | file | 2013-01-04 15:18:07 -0600 (Fri, 04 Jan 2013) | 11 lines

  Don't pass STUN packets through the SRTP unprotect function.

  (closes issue AST-1036)
  Reported by: jbigelow
  ........

  Merged revisions 378553 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378555 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378560 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378543 via svnmerge from
Automerge script [Fri, 4 Jan 2013 17:20:32 +0000 (17:20 +0000)] 
Merged revisions 378543 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

........
  r378543 | lathama | 2013-01-04 10:44:33 -0600 (Fri, 04 Jan 2013) | 6 lines

  Doxygen Cleanups

  Baseline clean up of formating to make room for extended documentation

  (issue ASTERISK-20259)
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378548 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378516 via svnmerge from
Automerge script [Thu, 3 Jan 2013 22:19:46 +0000 (22:19 +0000)] 
Merged revisions 378516 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378516 | elguero | 2013-01-03 16:14:20 -0600 (Thu, 03 Jan 2013) | 25 lines

  Fix Queue Log Reporting Every Call COMPLETECALLER With "h" Extension Present

  When the "h" extension is present within the context of the queue, all calls
  are being reported COMPLETECALLER even when the agent is hanging up the call.

  This patch checks to see if the agent hung-up or not instead of only relying on
  checking if the queue (caller) channel hung-up or not.  It would appear that
  having the h extension in the mix, the pbx goes to the h extension,
  "hanging-up" the queue channel and triggering the reporting of COMPLETECALLER.

  (closes issue ASTERISK-20743)
  Reported by: call
  Tested by: call, Michael L. Young
  Patches:
      asterisk-20743-q-cmplt-caller.diff
                                       uploaded by Michael L. Young (license 5026)

  Review: https://reviewboard.asterisk.org/r/2256/
  ........

  Merged revisions 378514 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378515 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378523 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378488 via svnmerge from
Automerge script [Thu, 3 Jan 2013 20:19:37 +0000 (20:19 +0000)] 
Merged revisions 378488 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378488 | rmudgett | 2013-01-03 13:42:54 -0600 (Thu, 03 Jan 2013) | 15 lines

  chan_agent: Fix wrapup time wait response.

  * Made agent_cont_sleep() and agent_ack_sleep() stop waiting if the wrapup
  time expires.  agent_cont_sleep() had tried but returned the wrong value
  to stop waiting.

  * Made agent_ack_sleep() take a struct agent_pvt pointer instead of a void
  pointer for better type safety.
  ........

  Merged revisions 378486 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378487 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378495 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378458,378460 via svnmerge from
Automerge script [Thu, 3 Jan 2013 19:19:40 +0000 (19:19 +0000)] 
Merged revisions 378458,378460 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378458 | rmudgett | 2013-01-03 12:47:29 -0600 (Thu, 03 Jan 2013) | 18 lines

  chan_agent: Misc code cleanup.

  * Fix off-nominal path resource cleanup in agent_request().

  * Create agent_pvt_destroy() to eliminate inlined versions in many places.

  * Pull invariant code out of loop in add_agent().

  * Remove redundant module user references in login_exec().

  * Remove unused struct agent_pvt logincallerid[] member.
  ........

  Merged revisions 378456 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378457 from http://svn.asterisk.org/svn/asterisk/branches/11
................
  r378460 | kmoore | 2013-01-03 12:51:43 -0600 (Thu, 03 Jan 2013) | 13 lines

  Add missing test event

  This test event was missing from channel.c causing the dial_LS_options
  test to fail intermittently because of a race condition where most code
  paths emitted the test event but this one did not. The dial_LS_options
  test should stop bouncing now.
  ........

  Merged revisions 378455 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378459 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378467 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378429 via svnmerge from
Automerge script [Thu, 3 Jan 2013 18:20:07 +0000 (18:20 +0000)] 
Merged revisions 378429 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378429 | rmudgett | 2013-01-03 11:48:14 -0600 (Thu, 03 Jan 2013) | 10 lines

  chan_agent: Fix agent_indicate() locking.

  Avoid deadlock potential with local channels and simplify the locking.
  ........

  Merged revisions 378427 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378428 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378436 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378410,378412,378414 via svnmerge from
Automerge script [Thu, 3 Jan 2013 16:19:40 +0000 (16:19 +0000)] 
Merged revisions 378410,378412,378414 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378410 | mjordan | 2013-01-03 09:37:31 -0600 (Thu, 03 Jan 2013) | 13 lines

  Prevent crashes in res_xmpp when receiving large messages

  Similar to r378287, res_xmpp was marshaling data read from an external source
  onto the stack. For a sufficiently large message, this could cause a stack
  overflow. This patch modifies res_xmpp in a similar fashion to res_jabber by
  removing the stack allocation, as it was unnecessary.

  (issue ASTERISK-20658)
  Reported by: wdoekes
  ........

  Merged revisions 378409 from http://svn.asterisk.org/svn/asterisk/branches/11
................
  r378412 | file | 2013-01-03 09:40:21 -0600 (Thu, 03 Jan 2013) | 11 lines

  Prevent exhaustion of system resources through exploitation of event cache

  This patch changes res_xmpp to no longer cache events under certain circumstances.

  (issue ASTERISK-20175)
  Reported by: Russell Bryant, Leif Madsen, Joshua Colp
  Tested by: kmoore
  ........

  Merged revisions 378411 from http://svn.asterisk.org/svn/asterisk/branches/11
................
  r378414 | tilghman | 2013-01-03 10:04:11 -0600 (Thu, 03 Jan 2013) | 11 lines

  Add aliases to the Directory.

  This is an interesting feature that allows additional strings to be used to
  search the Directory, primarily intended to be used with nicknames, but could
  be used with affiliations and the like.  Because the name field is used in
  more than one place (such as email notifications), it is important that these
  additional strings not be placed in the name field, but be specified
  separately.

  Review: https://reviewboard.asterisk.org/r/2244/
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378422 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378374,378377,378384 via svnmerge from
Automerge script [Wed, 2 Jan 2013 22:19:49 +0000 (22:19 +0000)] 
Merged revisions 378374,378377,378384 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378374 | rmudgett | 2013-01-02 15:23:16 -0600 (Wed, 02 Jan 2013) | 33 lines

  Fix AMI redirect action with two channels failing to redirect both channels.

  The AMI redirect action can fail to redirect two channels that are bridged
  together.  There is a race between the AMI thread redirecting the two
  channels and the bridge thread noticing that a channel is hungup from the
  redirects.

  * Made the bridge wait for both channels to be redirected before exiting.

  * Made the AMI redirect check that all required headers are present before
  proceeding with the redirection.

  * Made the AMI redirect require that any supplied ExtraChannel exist
  before proceeding.  Previously the code fell back to a single channel
  redirect operation.

  (closes issue ASTERISK-18975)
  Reported by: Ben Klang

  (closes issue ASTERISK-19948)
  Reported by: Brent Dalgleish
  Patches:
        jira_asterisk_19948_v11.patch (license #5621) patch uploaded by rmudgett
  Tested by: rmudgett, Thomas Sevestre, Deepak Lohani, Kayode

  Review: https://reviewboard.asterisk.org/r/2243/
  ........

  Merged revisions 378356 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378358 from http://svn.asterisk.org/svn/asterisk/branches/11
................
  r378377 | mjordan | 2013-01-02 16:10:32 -0600 (Wed, 02 Jan 2013) | 24 lines

  Prevent crashes from occurring when reading from data sources with large values

  When reading configuration data from an Asterisk .conf file or when pulling
  data from an Asterisk RealTime backend, Asterisk was copying the data on the
  stack for manipulation. Unfortunately, it is possible to read configuration
  data or realtime data from some data source that provides a large blob of
  characters. This could potentially cause a crash via a stack overflow.

  This patch prevents large sets of data from being read from an ARA backend or
  from an Asterisk conf file.

  (issue ASTERISK-20658)
  Reported by: wdoekes
  Tested by: wdoekes, mmichelson
  patches:
   * issueA20658_dont_process_overlong_config_lines.patch uploaded by wdoekes (license 5674)
   * issueA20658_func_realtime_limit.patch uploaded by wdoekes (license 5674)
  ........

  Merged revisions 378375 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378376 from http://svn.asterisk.org/svn/asterisk/branches/11
................
  r378384 | mjordan | 2013-01-02 16:19:32 -0600 (Wed, 02 Jan 2013) | 11 lines

  Clean up app_mysql's application entry points to properly parse arguments

  When parsing arguments, application entry points should not attempt to
  directly modify the parameters to the function. This patch properly duplicates
  the passed in parameters before attempting to parse them.

  (issue ASTERISK-20658)
  Reported by: wdoekes
  patches:
    issueA20658_sanitize_app_mysql.patch uploaded by wdoekes (license 5674)
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378385 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378322 via svnmerge from
Automerge script [Wed, 2 Jan 2013 18:20:03 +0000 (18:20 +0000)] 
Merged revisions 378322 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378322 | mjordan | 2013-01-02 12:11:59 -0600 (Wed, 02 Jan 2013) | 33 lines

  Prevent exhaustion of system resources through exploitation of event cache

  Asterisk maintains an internal cache for devices in the event subsystem. The
  device state cache holds the state of each device known to Asterisk, such that
  consumers of device state information can query for the last known state for
  a particular device, even if it is not part of an active call. The concept of
  a device in Asterisk can include entities that do not have a physical
  representation. One way that this occurred was when anonymous calls are allowed
  in Asterisk. A device was automatically created and stored in the cache for
  each anonymous call that occurred; this was possible in the SIP and IAX2
  channel drivers and through channel drivers that utilized the
  res_jabber/res_xmpp resource modules (Gtalk, Jingle, and Motif). These devices
  are never removed from the system, allowing anonymous calls to potentially
  exhaust a system's resources.

  This patch changes the event cache subsystem and device state management to
  no longer cache devices that are not associated with a physical entity.

  (issue ASTERISK-20175)
  Reported by: Russell Bryant, Leif Madsen, Joshua Colp
  Tested by: kmoore
  patches:
    event-cachability-3.diff uploaded by jcolp (license 5000)
  ........

  Merged revisions 378303 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378320 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 378321 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378329 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378288 via svnmerge from
Automerge script [Wed, 2 Jan 2013 16:20:01 +0000 (16:20 +0000)] 
Merged revisions 378288 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378288 | mjordan | 2013-01-02 09:39:42 -0600 (Wed, 02 Jan 2013) | 36 lines

  Resolve crashes due to large stack allocations when using TCP

  Asterisk had several places where messages received over various network
  transports may be copied in a single stack allocation. In the case of TCP,
  since multiple packets in a stream may be concatenated together, this can
  lead to large allocations that overflow the stack.

  This patch modifies those portions of Asterisk using TCP to either
  favor heap allocations or use an upper bound to ensure that the stack will not
  overflow:
   * For SIP, the allocation now has an upper limit
   * For HTTP, the allocation is now a heap allocation instead of a stack
     allocation
   * For XMPP (in res_jabber), the allocation has been eliminated since it was
     unnecesary.

  Note that the HTTP portion of this issue was independently found by Brandon
  Edwards of Exodus Intelligence.

  (issue ASTERISK-20658)
  Reported by: wdoekes, Brandon Edwards
  Tested by: mmichelson, wdoekes
  patches:
    ASTERISK-20658_res_jabber.c.patch uploaded by mmichelson (license 5049)
    issueA20658_http_postvars_use_malloc2.patch uploaded by wdoekes (license 5674)
    issueA20658_limit_sip_packet_size3.patch uploaded by wdoekes (license 5674)
  ........

  Merged revisions 378269 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378286 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 378287 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378296 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378259 via svnmerge from
Automerge script [Tue, 1 Jan 2013 19:19:12 +0000 (19:19 +0000)] 
Merged revisions 378259 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

........
  r378259 | lathama | 2013-01-01 13:02:52 -0600 (Tue, 01 Jan 2013) | 5 lines

  Add UUID packages now required to configure

  In ASTERISK-20726 UUID was added to Asterisk.  This commit is to add the dependancies to the install script
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378264 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378248-378249 via svnmerge from
Automerge script [Tue, 1 Jan 2013 17:20:00 +0000 (17:20 +0000)] 
Merged revisions 378248-378249 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

........
  r378248 | seanbright | 2013-01-01 11:03:59 -0600 (Tue, 01 Jan 2013) | 2 lines

  Bail out early when building an ast_trans_pvt and the translator doesn't supply a 'newpvt'
........
  r378249 | seanbright | 2013-01-01 11:10:42 -0600 (Tue, 01 Jan 2013) | 2 lines

  Revert 378248.  I changed the logic of this function unitentionally, pointed out by file.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378254 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378220 via svnmerge from
Automerge script [Mon, 31 Dec 2012 15:21:42 +0000 (15:21 +0000)] 
Merged revisions 378220 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378220 | kmoore | 2012-12-31 08:46:06 -0600 (Mon, 31 Dec 2012) | 18 lines

  Ensure chan_sip rejects encrypted streams without crypto info

  This ensures that Asterisk rejects encrypted media streams (RTP/SAVP
  audio and video) that are missing cryptographic keys and ensures that
  the incoming SDP is consistent with RFC4568 as far as having a crypto
  attribute present for any SAVP streams.

  Review: https://reviewboard.asterisk.org/r/2204/
  ........

  Merged revisions 378217 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378218 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 378219 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378228 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378166 via svnmerge from
Automerge script [Thu, 20 Dec 2012 22:18:25 +0000 (22:18 +0000)] 
Merged revisions 378166 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378166 | rmudgett | 2012-12-20 15:51:03 -0600 (Thu, 20 Dec 2012) | 8 lines

  Give the causes[] a struct name.
  ........

  Merged revisions 378164 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378165 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378169 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378122 via svnmerge from
Automerge script [Tue, 18 Dec 2012 18:18:44 +0000 (18:18 +0000)] 
Merged revisions 378122 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378122 | kmoore | 2012-12-18 11:48:36 -0600 (Tue, 18 Dec 2012) | 17 lines

  Add test events for time limit-related hangups

  This patch adds hangup-related test events in order to support testing
  of time-limited bridges. This aids in testing the S() and L() bridge
  options.

  (issue SWP-4713)
  ........

  Merged revisions 378119 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378120 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 378121 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378126 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378091,378095 via svnmerge from
Automerge script [Mon, 17 Dec 2012 23:18:40 +0000 (23:18 +0000)] 
Merged revisions 378091,378095 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378091 | rmudgett | 2012-12-17 17:02:54 -0600 (Mon, 17 Dec 2012) | 22 lines

  Make chan_local module references tied to local_pvt lifetime.

  The chan_local module references were manually tied to the existence of
  the ;1 and ;2 channel links.

  * Made chan_local module references tied to the existence of the local_pvt
  structure as well as automatically take care of the module references.

  * Tweaked the wording of the local_fixup() failure warning message to make
  sense.

  Review: https://reviewboard.asterisk.org/r/2181/
  ........

  Merged revisions 378088 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378089 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 378090 from http://svn.asterisk.org/svn/asterisk/branches/11
................
  r378095 | rmudgett | 2012-12-17 17:10:42 -0600 (Mon, 17 Dec 2012) | 11 lines

  Fix potential double free when unloading a module.
  ........

  Merged revisions 378092 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378093 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 378094 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378099 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378081 via svnmerge from
Automerge script [Mon, 17 Dec 2012 22:17:57 +0000 (22:17 +0000)] 
Merged revisions 378081 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

........
  r378081 | rmudgett | 2012-12-17 15:22:21 -0600 (Mon, 17 Dec 2012) | 7 lines

  chan_local: Parse dial string consistently.

  * Fix local_alloc() unexpected limitation of exten and context length from
  a combined length of 80 characters to a normal 80 characters each.

  * Made local_alloc() and local_devicestate() parse the same way.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378083 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378072,378074 via svnmerge from
Automerge script [Mon, 17 Dec 2012 21:18:01 +0000 (21:18 +0000)] 
Merged revisions 378072,378074 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378072 | rmudgett | 2012-12-17 14:34:25 -0600 (Mon, 17 Dec 2012) | 9 lines

  chan_local: Misc lock and ref tweaks.

  * awesome_locking() does not need to thrash the pvt lock as much.

  * local_setoption() does not need to check for NULL pvt on cleanup since
  it will never be NULL.

  * Made ref the pvt before locking for consistency.
................
  r378074 | qwell | 2012-12-17 14:59:51 -0600 (Mon, 17 Dec 2012) | 10 lines

  Make libasteriskssl.so symlink use a relative path.

  This was causing issues when using DESTDIR, since the path to which the link
  pointed is not likely to exist (and not useful to exist) on the target system.

  (issue ASTNOW-284)
  ........

  Merged revisions 378073 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378076 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378063-378064 via svnmerge from
Automerge script [Fri, 14 Dec 2012 23:17:59 +0000 (23:17 +0000)] 
Merged revisions 378063-378064 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

........
  r378063 | jrose | 2012-12-14 16:34:18 -0600 (Fri, 14 Dec 2012) | 8 lines

  Features: BRIDGE_FEATURES variable automixmonitor support and use proper party

  BRIDGE_FEATURES did not previously support the automixmonitor feature. Now it
  does. In addition, the BRIDGE_FEATURES variable would not apply features to
  the proper party based on whether the feature option letter was in caps or
  in lowercase (both ways would apply it to the caller). Now uppercase applies
  to the caller while lowercase applies to the callee (like with the dial option)
........
  r378064 | rmudgett | 2012-12-14 16:45:03 -0600 (Fri, 14 Dec 2012) | 4 lines

  chan_agent: Remove some duplicated code.

  No need to check for an agent twice.  Santa does that.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378066 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378039 via svnmerge from
Automerge script [Fri, 14 Dec 2012 22:18:35 +0000 (22:18 +0000)] 
Merged revisions 378039 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378039 | rmudgett | 2012-12-14 15:35:44 -0600 (Fri, 14 Dec 2012) | 26 lines

  app_queue: Revert bad ringinuse=no patch.

  With the option ringinuse=no set, the patch committed for ASTERISK-16115
  causes non-SIP queue members to never be called because the device state
  is checked after a channel is created to determine if the member is busy.
  These queue members always get the "Member %s is busy, cannot dial"
  message.

  Most channel drivers other than chan_sip use the default device state
  handling.  The default device-state state is considered in use or unknown
  if the channel exists or not respectively.

  (closes issue ASTERISK-20801)
  Reported by: rmudgett
  Patches:
        jira_asterisk_16115_revert_r370418_v1.8.patch (license #5621) patch uploaded by rmudgett
  ........

  Merged revisions 378036 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 378037 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 378038 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378043 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378029 via svnmerge from
Automerge script [Fri, 14 Dec 2012 21:18:00 +0000 (21:18 +0000)] 
Merged revisions 378029 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

........
  r378029 | rmudgett | 2012-12-14 14:22:36 -0600 (Fri, 14 Dec 2012) | 1 line

  app_queue: Make update_status() not return anything.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378031 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378011 via svnmerge from
Automerge script [Fri, 14 Dec 2012 02:17:34 +0000 (02:17 +0000)] 
Merged revisions 378011 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378011 | wedhorn | 2012-12-13 19:55:43 -0600 (Thu, 13 Dec 2012) | 15 lines

  Fix skinny to recognise vmexten in general section of conf

  Fixup the vmexten so if globally set in general section will be honored by
  chan_skinny. Also get rid of the 'global_' part of variable name to match
  regexten.

  (closes issue AST-20790)
  Reported by: snuffy
  Tested by: snuffy, myself
  Patches:
      skinny-vm.diff uploaded by snuffy (license 5024)
  ........

  Merged revisions 378010 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378012 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378006 via svnmerge from
Automerge script [Fri, 14 Dec 2012 01:17:36 +0000 (01:17 +0000)] 
Merged revisions 378006 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

........
  r378006 | wedhorn | 2012-12-13 19:02:15 -0600 (Thu, 13 Dec 2012) | 8 lines

  Add g722 codec support to skinny

  (closes issue AST-20788)
  Reported by: snuffy
  Tested by: snuffy, myself
  Patches:
      skinny-g722.diff uploaded by snuffy (license 5024)
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378007 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 378000-378002 via svnmerge from
Automerge script [Thu, 13 Dec 2012 22:17:36 +0000 (22:17 +0000)] 
Merged revisions 378000-378002 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r378000 | seanbright | 2012-12-13 15:20:32 -0600 (Thu, 13 Dec 2012) | 8 lines

  Make generate_exchange_uuid() always return the passed ast_str pointer.

  I changed this code earlier to return NULL if it wasn't able to generate a UUID,
  whereas the earlier code would always return the ast_str that was passed in.
  Switch back to returning the ast_str, only set it to the empty string instead if
  UUID generation fails.  We still do a validity check later which will catch this
  and blow up if necessary.
................
  r378001 | wedhorn | 2012-12-13 15:25:31 -0600 (Thu, 13 Dec 2012) | 9 lines

  Minor fixes for chan_skinny

  Whitespace, change SUBSTATE_ONHOOK to correct SKINNY_ONHOOK and
  correct len of 2 strcmp in skinny_setdebug(). (see opticron's review
  on https://reviewboard.asterisk.org/r/2240/)
  ........

  Merged revisions 377991 from http://svn.asterisk.org/svn/asterisk/branches/11
................
  r378002 | rmudgett | 2012-12-13 15:28:15 -0600 (Thu, 13 Dec 2012) | 35 lines

  confbridge: Fix MOH on simultaneous user entry to a new conference.

  When two users entered a new conference simultaneously, one of the callers
  hears MOH.  This happened if two unmarked users entered simultaneously and
  also if a waitmarked and a marked user entered simultaneously.

  * Created a confbridge internal MOH API to eliminate the inlined MOH
  handling code.  Note that the conference mixing bridge needs to be locked
  when actually starting/stopping MOH because there is a small window
  between the conference join unsuspend MOH and actually joining the mixing
  bridge.

  * Created the concept of suspended MOH so it can be interrupted while
  conference join announcements to the user and DTMF features can operate.

  * Suspend any MOH until the user is about to actually join the mixing
  bridge of the conference.  This way any pre-join file playback does not
  need to worry about MOH.

  * Made post-join actions only play deferred entry announcement files.
  Changing the user/conference state during that time is not protected or
  controlled by the state machine.

  (closes issue ASTERISK-20606)
  Reported by: Eugenia Belova
  Tested by: rmudgett

  Review: https://reviewboard.asterisk.org/r/2232/
  ........

  Merged revisions 377992 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377993 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378003 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377994 via svnmerge from
Automerge script [Thu, 13 Dec 2012 21:17:50 +0000 (21:17 +0000)] 
Merged revisions 377994 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

........
  r377994 | dlee | 2012-12-13 15:15:44 -0600 (Thu, 13 Dec 2012) | 1 line

  Fixed svn merge property breakage from r377986
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377996 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377986 via svnmerge from
Automerge script [Thu, 13 Dec 2012 19:17:36 +0000 (19:17 +0000)] 
Merged revisions 377986 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377986 | wedhorn | 2012-12-13 12:28:41 -0600 (Thu, 13 Dec 2012) | 14 lines

  Fix skinny debug tab completion

  Review the syntax of the 'skinny debug' command to show more than
  just 'show' for options to 'skinny debug' command.

  (closes issue ASTERISK-20789)
  Reported by: snuffy
  Tested by: snuffy, myself
  Patches:
      skinny-debug.diff uploaded by snuffy (license 5024)
  ........

  Merged revisions 377985 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377987 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377981 via svnmerge from
Automerge script [Thu, 13 Dec 2012 17:17:34 +0000 (17:17 +0000)] 
Merged revisions 377981 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

........
  r377981 | dlee | 2012-12-13 10:43:40 -0600 (Thu, 13 Dec 2012) | 1 line

  Bail configure if it can't find libuuid.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377982 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoResolve conflict and reset automerge.
Mark Michelson [Thu, 13 Dec 2012 16:39:40 +0000 (16:39 +0000)] 
Resolve conflict and reset automerge.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377980 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoautomerge cancel
Automerge script [Thu, 13 Dec 2012 16:17:38 +0000 (16:17 +0000)] 
automerge cancel

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377976 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377966 via svnmerge from
Automerge script [Thu, 13 Dec 2012 15:17:41 +0000 (15:17 +0000)] 
Merged revisions 377966 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377966 | kmoore | 2012-12-13 08:28:57 -0600 (Thu, 13 Dec 2012) | 23 lines

  Ensure Min-SE is included in outbound INVITEs

  Asterisk now includes Min-SE in outbound INVITEs when the value is not
  90 (the default) and session timers are not disabled. This has the
  effect of Asterisk following RFC4028 more closely with regard to 422
  responses and preventing situations in which Asterisk would be forced
  to temporarily accept a call to tear it down based on a Session-Expires
  below the locally configured Min-SE.

  (issue SWP-5051)
  Review: https://reviewboard.asterisk.org/r/2222/
Reported-by: Kinsey Moore
Patch-by: Kinsey Moore
  ........

  Merged revisions 377946 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377947 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377948 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377968 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377925 via svnmerge from
Automerge script [Wed, 12 Dec 2012 23:18:09 +0000 (23:18 +0000)] 
Merged revisions 377925 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377925 | newtonr | 2012-12-12 16:43:40 -0600 (Wed, 12 Dec 2012) | 18 lines

  Incremented EXTRA_SOUNDS_VERSION in sounds/Makefile to 1.4.12 for new Extra Sounds releases

  See CHANGES-* files in English extra 1.4.12 tarballs for new sound prompts added.

  (closes ASTERISK-20328)
  Reported by: Matt Jordan
  (closes AST-755)
  Reported by: John Bigelow
  ........

  Merged revisions 377922 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377923 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377924 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377928 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377915 via svnmerge from
Automerge script [Wed, 12 Dec 2012 05:17:36 +0000 (05:17 +0000)] 
Merged revisions 377915 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

........
  r377915 | elguero | 2012-12-11 22:43:18 -0600 (Tue, 11 Dec 2012) | 17 lines

  Convert Dynamic Features Buffer To Use ast_str

  Currently, the buffer for the dynamic features list is set to a fixed size of
  128.  If the list is bigger than that, it results in the dynamic feature(s) not
  being recognized.

  This patch changes the buffer from a fixed size to a dynamic one.

  (closes issue ASTERISK-20680)
  Reported by: Clod Patry
  Tested by: Michael L. Young
  Patches:
      asterisk-20680-dynamic-features-v2.diff
                                       uploaded by Michael L. Young (license 5026)

  Review: https://reviewboard.asterisk.org/r/2221/
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377916 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377911 via svnmerge from
Automerge script [Wed, 12 Dec 2012 00:17:36 +0000 (00:17 +0000)] 
Merged revisions 377911 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377911 | mmichelson | 2012-12-11 18:02:31 -0600 (Tue, 11 Dec 2012) | 22 lines

  Fix a potential deadlock in chan_sip during transfers.

  The issue comes from the fact that transfers may perform
  a redirecting update on a channel. The issue is that lock
  inversion between the channel and its tech_pvt occurs since
  the channel lock is released during the transfer process.

  The fix is to move when the redirecting update occurs to a
  place where neither the tech_pvt or the channel is locked so
  that the two can be locked in the proper order.

  (closes issue ASTERISK-20708)
  reported by Mark Michelson
  patches:
   ASTERISK-20708-3.patch uploaded by Mark Michelson (License #5049)

  Tested by:
   Tim Ringenbach at Asteria Solutions Group
  ........

  Merged revisions 377910 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377912 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377906 via svnmerge from
Automerge script [Tue, 11 Dec 2012 23:17:37 +0000 (23:17 +0000)] 
Merged revisions 377906 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

........
  r377906 | mmichelson | 2012-12-11 16:42:11 -0600 (Tue, 11 Dec 2012) | 3 lines

  Add test events necessary for bridging tests to be able to properly run.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377907 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoReset automerge property.
Mark Michelson [Tue, 11 Dec 2012 22:25:21 +0000 (22:25 +0000)] 
Reset automerge property.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377903 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoautomerge cancel
Automerge script [Tue, 11 Dec 2012 22:18:11 +0000 (22:18 +0000)] 
automerge cancel

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377887 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd automerge property back after conflict.
Mark Michelson [Tue, 11 Dec 2012 21:52:09 +0000 (21:52 +0000)] 
Add automerge property back after conflict.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377879 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoautomerge cancel
Automerge script [Tue, 11 Dec 2012 21:19:46 +0000 (21:19 +0000)] 
automerge cancel

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377856 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377809 via svnmerge from
Automerge script [Tue, 11 Dec 2012 20:20:16 +0000 (20:20 +0000)] 
Merged revisions 377809 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377809 | rmudgett | 2012-12-11 14:05:32 -0600 (Tue, 11 Dec 2012) | 23 lines

  Cleanup pbx on exit.

  * Cleanup CLI commands on exit.

  * Unreference hints and statecbs containers on exit.

  (issue ASTERISK-20649)
  Reported by: Corey Farrell
  Patches:
        pbx-cleanup-1_8.patch (license #5909) patch uploaded by Corey Farrell
        pbx-cleanup-10.patch (license #5909) patch uploaded by Corey Farrell
        pbx-cleanup-11-trunk.patch (license #5909) patch uploaded by Corey Farrell
        Modified
  ........

  Merged revisions 377806 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377807 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377808 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377816 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoSome general cleanup, plus we now send state changes when threads activate.
Mark Michelson [Tue, 11 Dec 2012 16:53:16 +0000 (16:53 +0000)] 
Some general cleanup, plus we now send state changes when threads activate.

This is now ready for review board, imo!

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377805 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd threadpool option version check into threadpool creation routine.
Mark Michelson [Tue, 11 Dec 2012 16:36:08 +0000 (16:36 +0000)] 
Add threadpool option version check into threadpool creation routine.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377804 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd auto-increment option and accompanying test.
Mark Michelson [Tue, 11 Dec 2012 16:34:00 +0000 (16:34 +0000)] 
Add auto-increment option and accompanying test.

This allows for the threadpool to automatically grow if tasks
are pushed to it and no idle threads are currently available.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377803 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoSome documentation fixes and function call name fixes.
Mark Michelson [Tue, 11 Dec 2012 04:23:31 +0000 (04:23 +0000)] 
Some documentation fixes and function call name fixes.

The documentation for taskprocessors was incorrect with
regards to when a listener's alloc callback was called.

I also made the names of queued function calls in the
threadpool more uniform.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377802 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377774 via svnmerge from
Automerge script [Tue, 11 Dec 2012 03:19:39 +0000 (03:19 +0000)] 
Merged revisions 377774 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377774 | rmudgett | 2012-12-10 20:44:53 -0600 (Mon, 10 Dec 2012) | 19 lines

  Cleanup logger on exit.

  * Cleanup CLI commands, destroy verbosers and logchannels lists on exit.

  (issue ASTERISK-20649)
  Reported by: Corey Farrell
  Patches:
        logger-cleanup-all.patch (license #5909) patch uploaded by Corey Farrell
        Modified
  ........

  Merged revisions 377771 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377772 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377773 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377781 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377743 via svnmerge from
Automerge script [Tue, 11 Dec 2012 02:19:39 +0000 (02:19 +0000)] 
Merged revisions 377743 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377743 | rmudgett | 2012-12-10 20:13:37 -0600 (Mon, 10 Dec 2012) | 25 lines

  Cleanup indications on exit.

  * Made ast_unregister_indication_country() unlink the found tone zone
  before selecting a new default_tone_zone to make it impossible to select
  the tone zone being unregistered again.

  * Ringcadence is no longer parsed twice in store_config_tone_zone().

  * Cleanup CLI commands and destroy default_tone_zone on exit.

  (issue ASTERISK-20649)
  Reported by: Corey Farrell
  Patches:
        indications-cleanup-all.patch (license #5909) patch uploaded by Corey Farrell
        Modified
  ........

  Merged revisions 377740 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377741 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377742 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377750 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377707,377711 via svnmerge from
Automerge script [Tue, 11 Dec 2012 01:19:39 +0000 (01:19 +0000)] 
Merged revisions 377707,377711 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377707 | rmudgett | 2012-12-10 18:37:01 -0600 (Mon, 10 Dec 2012) | 20 lines

  Cleanup dnsmgr on exit.

  * Cleanup dnsmgr thread and CLI commands on exit.

  (issue ASTERISK-20649)
  Reported by: Corey Farrell
  Patches:
        dnsmgr-cleanup-1_8.patch (license #5909) patch uploaded by Corey Farrell
        dnsmgr-cleanup-10-11-trunk.patch (license #5909) patch uploaded by Corey Farrell
        Modified
  ........

  Merged revisions 377704 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377705 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377706 from http://svn.asterisk.org/svn/asterisk/branches/11
................
  r377711 | rmudgett | 2012-12-10 19:04:50 -0600 (Mon, 10 Dec 2012) | 19 lines

  Cleanup event on exit.

  * Cleanup CLI commands on exit.

  (issue ASTERISK-20649)
  Reported by: Corey Farrell
  Patches:
        event_shutdown-10-only.patch (license #5909) patch uploaded by Corey Farrell
        event_shutdown-1_8-11-trunk.patch (license #5909) patch uploaded by Corey Farrell
  ........

  Merged revisions 377708 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377709 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377710 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377719 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoSolve the issue about the "CHANGE THIS" and "XXX CHANGE THIS XXX" taskprocessor names.
Mark Michelson [Mon, 10 Dec 2012 20:14:23 +0000 (20:14 +0000)] 
Solve the issue about the "CHANGE THIS" and "XXX CHANGE THIS XXX" taskprocessor names.

Unfortunately, this required a taskprocessor listener change that makes listener allocation
utterly silly. I'm going to change the scheme so that allocation of taskprocessor listeners
is done internally within taskprocessor code. This will make it parallel with threadpool
code, which is a good thing.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377687 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMake thread state waiting a little less ugly and not possible to lock up.
Mark Michelson [Mon, 10 Dec 2012 19:32:50 +0000 (19:32 +0000)] 
Make thread state waiting a little less ugly and not possible to lock up.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377686 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377658 via svnmerge from
Automerge script [Mon, 10 Dec 2012 17:19:37 +0000 (17:19 +0000)] 
Merged revisions 377658 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377658 | kmoore | 2012-12-10 10:56:37 -0600 (Mon, 10 Dec 2012) | 20 lines

  Ensure ReceiveFax provides a CED tone via T.38

  When using res_fax_digium, the T.38 CED tone was not being provided
  properly which would cause some incoming faxes to fail. This was not an
  issue with res_fax_spandsp since it does not strictly honor the
  send_ced flag and sends the CED tone whenever receiving a T.38 fax.

  (closes issue FAX-343)
Reported-by: Benjamin Tietz
Patch-by: Kinsey Moore
  ........

  Merged revisions 377655 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377656 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377657 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377665 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoImprove timedwaits in tests to actually behave like they should.
Mark Michelson [Mon, 10 Dec 2012 15:55:56 +0000 (15:55 +0000)] 
Improve timedwaits in tests to actually behave like they should.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377654 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377626 via svnmerge from
Automerge script [Mon, 10 Dec 2012 15:21:05 +0000 (15:21 +0000)] 
Merged revisions 377626 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377626 | kmoore | 2012-12-10 08:45:52 -0600 (Mon, 10 Dec 2012) | 20 lines

  Handle Session-Expires less than local Min-SE in 200 OK

  Ensure that a call is immediately torn down if a Session-Expires value
  received in a 200 OK is less than the local Min-SE. This also prevents
  Asterisk from allowing calls with Session-Expires below the
  RFC4028-mandated minimum (90s).

  (closes issue ASTERISK-20653)
  Review: https://reviewboard.asterisk.org/r/2237/
Patch-by: Kinsey Moore
  ........

  Merged revisions 377623 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377624 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377625 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377633 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377594-377595 via svnmerge from
Automerge script [Mon, 10 Dec 2012 07:19:34 +0000 (07:19 +0000)] 
Merged revisions 377594-377595 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377594 | igorg | 2012-12-10 00:56:04 -0600 (Mon, 10 Dec 2012) | 15 lines

  Fix codec mismatch

  Fix code to send in both rx and tx open stream messages correct codecs. Found that on phase 0/1 phones wrong codecs cause to no audio in some situations.

  (issue ASTERISK-20183)
  ........

  Merged revisions 377591 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377592 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377593 from http://svn.asterisk.org/svn/asterisk/branches/11
................
  r377595 | igorg | 2012-12-10 01:03:48 -0600 (Mon, 10 Dec 2012) | 3 lines

  Add firmware information to CLI devices listing
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377602 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377579 via svnmerge from
Automerge script [Mon, 10 Dec 2012 06:19:08 +0000 (06:19 +0000)] 
Merged revisions 377579 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377579 | igorg | 2012-12-09 23:29:04 -0600 (Sun, 09 Dec 2012) | 7 lines

  Remove trailing whitespaces in number from incoming redial list.

  Reported by: Igor Olhovskiy
  ........

  Merged revisions 377577 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377585 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd threadpool options and accompanying test.
Mark Michelson [Mon, 10 Dec 2012 06:13:09 +0000 (06:13 +0000)] 
Add threadpool options and accompanying test.

The only test added so far is an idle thread timeout
option. This will greatly aid threadpool users who wish
to maintain a threadpool by allowing for idle threads to
die out as necessary.

Test passes.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377580 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoImprove shutdown procedure.
Mark Michelson [Mon, 10 Dec 2012 05:25:38 +0000 (05:25 +0000)] 
Improve shutdown procedure.

This helps tests to pass more often than before.
They are far less likely to queue extra processes
into the control taskprocessor since they are prevented
once the threadpool begins to shut down.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377578 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd safeguards to ensure we don't improperly access a destroyed taskprocessor.
Mark Michelson [Mon, 10 Dec 2012 04:08:29 +0000 (04:08 +0000)] 
Add safeguards to ensure we don't improperly access a destroyed taskprocessor.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377556 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377506,377512 via svnmerge from
Automerge script [Mon, 10 Dec 2012 02:20:30 +0000 (02:20 +0000)] 
Merged revisions 377506,377512 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377506 | tilghman | 2012-12-09 19:29:32 -0600 (Sun, 09 Dec 2012) | 11 lines

  Remove some dead code and additionally handle a case that wasn't handled.
  ........

  Merged revisions 377487 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377504 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377505 from http://svn.asterisk.org/svn/asterisk/branches/11
................
  r377512 | tilghman | 2012-12-09 19:41:50 -0600 (Sun, 09 Dec 2012) | 22 lines

  Improve documentation by making all of the colors used readable,
  no matter what the background color is.

  Dark blue on a black background is unreadable, as is yellow on a
  light background.  This patch turns on the bright attribute for
  colors when on a dark background and turns *off* the bright
  attribute when the -W command line option is used (indicating a
  _light_ background).  This ensures that text is readable in both
  cases.

  Patch by: tilghman
  Review: https://reviewboard.asterisk.org/r/2224
  ........

  Merged revisions 377509 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377510 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377511 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377535 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoRemove unnecessary debugging and add some useful debugging.
Mark Michelson [Sun, 9 Dec 2012 19:10:14 +0000 (19:10 +0000)] 
Remove unnecessary debugging and add some useful debugging.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377476 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd some useful debugging in threadpool test failure conditions.
Mark Michelson [Sun, 9 Dec 2012 19:06:35 +0000 (19:06 +0000)] 
Add some useful debugging in threadpool test failure conditions.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377475 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoCreate longer thread destruction test.
Mark Michelson [Sun, 9 Dec 2012 18:56:25 +0000 (18:56 +0000)] 
Create longer thread destruction test.

This one involves shrinking the threadpool in such
a way that both idle and active threads are affected.

This test made me re-realize why the zombie state exists,
so I re-added it. We don't want to clog up the control
taskprocessor by waiting on active threads to complete
what they are doing. Instead, we mark them as zombies so
that when they are done, they can clean themselves up
properly.

Without the zombie state available, the new test actually
will deadlock.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377474 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377463 via svnmerge from
Automerge script [Sun, 9 Dec 2012 02:20:13 +0000 (02:20 +0000)] 
Merged revisions 377463 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377463 | file | 2012-12-08 19:23:44 -0600 (Sat, 08 Dec 2012) | 9 lines

  Add missing support for "who hung up" to chan_motif.

  (closes issue ASTERISK-20671)
  Reported by: Matt Jordan
  Review: https://reviewboard.asterisk.org/r/2208/
  ........

  Merged revisions 377462 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377468 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377434 via svnmerge from
Automerge script [Sat, 8 Dec 2012 01:19:36 +0000 (01:19 +0000)] 
Merged revisions 377434 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377434 | rmudgett | 2012-12-07 18:30:40 -0600 (Fri, 07 Dec 2012) | 20 lines

  Fix order of SIP allow/disallow in MySQL contrib script.

  Using the contrib sippeers.sql script to create the sippeers MySQL table
  would result in being unable to place calls if you set the disallow value
  to all.

  (closes issue ASTERISK-20756)
  Reported by: Andre Luis
  Patches:
        sippeers.patch patch uploaded by Andre Luis
  ........

  Merged revisions 377431 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377432 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377433 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377441 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd a task distribution test.
Mark Michelson [Sat, 8 Dec 2012 00:22:33 +0000 (00:22 +0000)] 
Add a task distribution test.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377418 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377402 via svnmerge from
Automerge script [Sat, 8 Dec 2012 00:19:39 +0000 (00:19 +0000)] 
Merged revisions 377402 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377402 | rmudgett | 2012-12-07 17:45:15 -0600 (Fri, 07 Dec 2012) | 11 lines

  MALLOC_DEBUG: Only wait if we want atexit allocation dumps.
  ........

  Merged revisions 377398 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377399 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377401 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377409 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd threadpool reactivation test.
Mark Michelson [Fri, 7 Dec 2012 23:42:42 +0000 (23:42 +0000)] 
Add threadpool reactivation test.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377400 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd a single-thread multi-task test.
Mark Michelson [Fri, 7 Dec 2012 22:35:11 +0000 (22:35 +0000)] 
Add a single-thread multi-task test.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377397 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377384 via svnmerge from
Automerge script [Fri, 7 Dec 2012 22:20:16 +0000 (22:20 +0000)] 
Merged revisions 377384 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377384 | kmoore | 2012-12-07 16:08:48 -0600 (Fri, 07 Dec 2012) | 23 lines

  codec_dahdi: Fix output of "transcoder show" CLI command.

  In r306010 "Asterisk media architecture conversion - no more format
  bitfields", the logic for incrementing encoders and decoders when
  opening transcoder channels was changed without making the corresponding
  change when decrementing encoder / decoder channels.  The result being
  that when a channel was destroyed, codec_dahdi couldn't properly tell if
  it was an encoder or decoder, and the default case is to assume it was a
  decoder.

  This could result in negative numbers for decoders in use like in:
    VOIP6*CLI> transcoder show
    2/-2 encoders/decoders of 92 channels are in use.

  (closes issue ASTERISK-19921)
Patch-by: Shaun Ruffell
  ........

  Merged revisions 377382 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377383 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377390 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoRemove unsafe write of listener member.
Mark Michelson [Fri, 7 Dec 2012 21:53:18 +0000 (21:53 +0000)] 
Remove unsafe write of listener member.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377381 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd test where we create a thread and push a task.
Mark Michelson [Fri, 7 Dec 2012 19:50:38 +0000 (19:50 +0000)] 
Add test where we create a thread and push a task.

Passes!

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377380 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd test where we add a task then create a thread for it.
Mark Michelson [Fri, 7 Dec 2012 19:34:11 +0000 (19:34 +0000)] 
Add test where we add a task then create a thread for it.

It passes.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377379 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd threadpool destruction test.
Mark Michelson [Fri, 7 Dec 2012 19:16:28 +0000 (19:16 +0000)] 
Add threadpool destruction test.

It worked on the first try. Fun time.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377378 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoFix infinite looping and crash problem.
Mark Michelson [Fri, 7 Dec 2012 19:05:30 +0000 (19:05 +0000)] 
Fix infinite looping and crash problem.

MALLOC_DEBUG is complaining about corrupted memory on taskprocessor
listeners, but I'm not seeing it, nor is valgrind. Not sure what's up
there.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377377 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoFix up categories of threadpool tests.
Mark Michelson [Fri, 7 Dec 2012 01:03:49 +0000 (01:03 +0000)] 
Fix up categories of threadpool tests.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377369 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd new threadpool test and fix some taskprocessor bugs.
Mark Michelson [Fri, 7 Dec 2012 00:30:35 +0000 (00:30 +0000)] 
Add new threadpool test and fix some taskprocessor bugs.

The new thread creation test fails because Asterisk locks up
while trying to lock a taskprocessor.

While trying to debug that, I found a race condition during taskprocessor
creation where a default taskprocessor listener could try to operate on
a partially started taskprocessor. This was fixed by adding a new callback
to taskprocessor listeners.

Then while testing that change, I found some bugs in the taskprocessor
tests where I was not properly unlocking when done with a lock. Scoped
locks have spoiled me a bit.

I still have not figured out why the threadpool thread creation test
is locking up.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377368 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377356 via svnmerge from
Automerge script [Fri, 7 Dec 2012 00:19:29 +0000 (00:19 +0000)] 
Merged revisions 377356 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377356 | rmudgett | 2012-12-06 18:00:39 -0600 (Thu, 06 Dec 2012) | 30 lines

  confbridge: Fix some resource leaks on conference teardown.

  * Made destroy_conference_bridge() destroy a missed ast_mutex_t and ast_cond_t.

  * Made join_conference_bridge() init the ast_mutex_t's and ast_cond_t so
  destroy_conference_bridge() can destroy them unconditionally.

  * Made join_conference_bridge() abort if the new conference could not be
  added to the conferences container.

  * Made leave_conference() discard any post-join actions if
  join_conference_bridge() had to abort early.

  * Made the join_conference_bridge() diagnostic messages better describe
  what happened.

  * Renamed leave_conference_bridge() to leave_conference() and made it only
  take a conference user pointer.  The conference pointer was redundant.

  * Made conf_bridge_profile_copy() use struct copy instead of memcpy().

  * No need to lock the conference in start_conf_record_thread() since all
  of the callers already have it locked.
  ........

  Merged revisions 377354 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377355 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377362 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoIt helps if we actually assign the listener to the pool.
Mark Michelson [Thu, 6 Dec 2012 20:45:42 +0000 (20:45 +0000)] 
It helps if we actually assign the listener to the pool.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377352 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd initial simple threadpool test.
Mark Michelson [Thu, 6 Dec 2012 20:25:17 +0000 (20:25 +0000)] 
Add initial simple threadpool test.

This one simply pushes a task into the threadpool and ensures
that the listener gets the callbacks expected.

It currently crashes, so I need to figure out what's wrong.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377351 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377341 via svnmerge from
Automerge script [Thu, 6 Dec 2012 18:19:22 +0000 (18:19 +0000)] 
Merged revisions 377341 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377341 | russell | 2012-12-06 11:29:13 -0600 (Thu, 06 Dec 2012) | 10 lines

  Recorded merge of revisions 377340 from http://svn.asterisk.org/svn/asterisk/branches/11

  ........
  Add CLI tab completion to 'acl show'.

  The 'acl show' CLI command allows you to show the details about a specific
  named ACL in acl.conf.  This patch adds tab completion to the command.

  Review: https://reviewboard.asterisk.org/r/2230/
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377346 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377324,377329-377330 via svnmerge from
Automerge script [Thu, 6 Dec 2012 15:19:58 +0000 (15:19 +0000)] 
Merged revisions 377324,377329-377330 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377324 | mjordan | 2012-12-06 08:26:13 -0600 (Thu, 06 Dec 2012) | 13 lines

  Fix memory leak in 'manager show event' when command entered incorrectly

  When the CLI command 'manager show event' was run incorrectly and its usage
  instructions returned, a reference to the event container was leaked. This
  would prevent the container from being reclaimed when Asterisk exits. We now
  properly decrement the count on the ao2 object using the nifty RAII_VAR macro.

  Thanks to Russell for helping me stumble on this, and Terry for writing that
  ridiculously helpful macro.
  ........

  Merged revisions 377319 from http://svn.asterisk.org/svn/asterisk/branches/11
................
  r377329 | russell | 2012-12-06 09:06:47 -0600 (Thu, 06 Dec 2012) | 7 lines

  Add CLI tab completion to 'acl show'.

  The 'acl show' CLI command allows you to show the details about a specific
  named ACL in acl.conf.  This patch adds tab completion to the command.

  Review: https://reviewboard.asterisk.org/r/2230/
................
  r377330 | russell | 2012-12-06 09:13:37 -0600 (Thu, 06 Dec 2012) | 6 lines

  Minor code cleanup in named_acl.c.

  This patch makes a few little cleanups to named_acl.c.  A couple non-public
  functions were made static and an opening brace for a function was moved to
  its own line, per the coding guidelines.
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377335 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377260,377263 via svnmerge from
Automerge script [Wed, 5 Dec 2012 17:20:37 +0000 (17:20 +0000)] 
Merged revisions 377260,377263 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377260 | file | 2012-12-05 10:51:58 -0600 (Wed, 05 Dec 2012) | 25 lines

  Fix a SIP request memory leak with TLS connections.

  During the TLS re-work in chan_sip some TLS specific code was moved
  into a separate function. This function operates on a copy of the
  incoming SIP request. This copy was never deinitialized causing a
  memory leak for each request processed.

  This function is now given a SIP request structure which it can use
  to copy the incoming request into. This reduces the amount of memory
  allocations done since the internal allocated components are reused
  between packets and also ensures the SIP request structure is
  deinitialized when the TLS connection is torn down.

  (closes issue ASTERISK-20763)
  Reported by: deti
  ........

  Merged revisions 377257 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377258 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377259 from http://svn.asterisk.org/svn/asterisk/branches/11
................
  r377263 | jrose | 2012-12-05 11:17:06 -0600 (Wed, 05 Dec 2012) | 21 lines

  res_srtp: Fix a crash caused by srtp_dealloc on an already dealloced session

  When srtp_create fails, the session may be dealloced or just not alloced. At
  the same time though, the session pointer might not be set to NULL in this
  process and attempting to srtp_dealloc it again will cause a segfault. This
  patch checks for failure of srtp_create and sets the session pointer to NULL
  if it fails.

  (closes issue ASTERISK-20499)
  Reported by: tootai
  Review: https://reviewboard.asterisk.org/r/2228/
  ........

  Merged revisions 377256 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377261 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377262 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377270 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377245-377246 via svnmerge from
Automerge script [Wed, 5 Dec 2012 03:19:08 +0000 (03:19 +0000)] 
Merged revisions 377245-377246 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377245 | rmudgett | 2012-12-04 20:20:57 -0600 (Tue, 04 Dec 2012) | 8 lines

  Fix registering core show codecs/codec CLI commands twice.
  ........

  Merged revisions 377241 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377244 from http://svn.asterisk.org/svn/asterisk/branches/11
................
  r377246 | rmudgett | 2012-12-04 20:23:10 -0600 (Tue, 04 Dec 2012) | 1 line

  Remove init_framer(). It no longer does anything.
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377251 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377229 via svnmerge from
Automerge script [Wed, 5 Dec 2012 01:19:26 +0000 (01:19 +0000)] 
Merged revisions 377229 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377229 | rmudgett | 2012-12-04 19:11:26 -0600 (Tue, 04 Dec 2012) | 31 lines

  confbridge: Fix several small issues.

  * Made func_confbridge_helper() allow an empty value when setting options.
  You previously could not Set(CONFBRIDGE(user,pin)=) and clear the
  configured pin from the dialplan.

  * Made func_confbridge_helper() handle its datastore better if multiple
  threads attempt to set the first CONFBRIDGE option value on the channel.

  * Made the func_confbridge_helper() only output one diagnostic message
  concerning the option.

  * Made the bridge video_mode able to repeatedly change in the config file
  and CONFBRIDGE dialplan function.  The video_mode option values are an
  enum and not independent of each other.

  * Made handle_cli_confbridge_show_bridge_profile() better handle the
  video_mode option.

  * Simplified datastore handling code in conf_find_user_profile() and
  conf_find_bridge_profile().

  (closes issue ASTERISK-20655)
  Reported by: Birger "WIMPy" Harzenetter
  ........

  Merged revisions 377227 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377228 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377235 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd better listener support.
Mark Michelson [Tue, 4 Dec 2012 23:45:39 +0000 (23:45 +0000)] 
Add better listener support.

Add some parameters to listener callbacks.
Add alloc and destroy callbacks for listeners.
Add public function for allocating a listener.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377226 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377214 via svnmerge from
Automerge script [Tue, 4 Dec 2012 23:19:30 +0000 (23:19 +0000)] 
Merged revisions 377214 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377214 | rmudgett | 2012-12-04 16:34:05 -0600 (Tue, 04 Dec 2012) | 8 lines

  confbridge: Update online XML documentation.
  ........

  Merged revisions 377212 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377213 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377220 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoRemove zombie state from threadpool altogether.
Mark Michelson [Tue, 4 Dec 2012 22:11:31 +0000 (22:11 +0000)] 
Remove zombie state from threadpool altogether.

After giving it some consideration, there's no real
use for zombie threads. Listeners can't really use the
current number of zombie threads as a way of gauging activity,
zombifying threads is just an extra step before they die that
really serves no purpose, and since there's no way to re-animate
zombies, the operation does not need to be around.

I also fixed up some miscellaneous compilation errors that
were lingering from some past revisions.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377211 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoSimplify threadpool refcounting a bit.
Mark Michelson [Tue, 4 Dec 2012 21:21:15 +0000 (21:21 +0000)] 
Simplify threadpool refcounting a bit.

Since threadpool shutdown is very strictly controlled,
there is no need to be so precise with reference counts
in queued operations. Since the threadpool shuts down its
own control taskprocessor before doing anything else destructive,
it can be guaranteed that all queued tasks will have a valid
pointer to the pool. This meant that some destructor functions
for helper structs could be removed entirely.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377210 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd some doxygen and rearrange code.
Mark Michelson [Tue, 4 Dec 2012 21:11:34 +0000 (21:11 +0000)] 
Add some doxygen and rearrange code.

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377209 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377196 via svnmerge from
Automerge script [Tue, 4 Dec 2012 13:20:08 +0000 (13:20 +0000)] 
Merged revisions 377196 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377196 | russell | 2012-12-04 07:01:23 -0600 (Tue, 04 Dec 2012) | 7 lines

  Add libuuid to install_prereq for Fedora.

  I ran this script and my build failed.  pjproject requires this.
  ........

  Merged revisions 377195 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377201 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377168 via svnmerge from
Automerge script [Mon, 3 Dec 2012 23:19:30 +0000 (23:19 +0000)] 
Merged revisions 377168 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377168 | rmudgett | 2012-12-03 17:00:08 -0600 (Mon, 03 Dec 2012) | 21 lines

  Cleanup ast_run_atexits() atexits list.

  * Convert atexits list to a mutex instead of a rd/wr lock.  The lock is
  only write locked.

  * Move CLI verbose Asterisk ending message to where AMI message is output
  in really_quit() to avoid further surprises about using stuff already
  shutdown.

  (issue ASTERISK-20649)
  Reported by: Corey Farrell
  ........

  Merged revisions 377165 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377166 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377167 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377175 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377138 via svnmerge from
Automerge script [Mon, 3 Dec 2012 21:19:40 +0000 (21:19 +0000)] 
Merged revisions 377138 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377138 | rmudgett | 2012-12-03 14:46:11 -0600 (Mon, 03 Dec 2012) | 23 lines

  Cleanup core main on exit.

  * Cleanup time zones on exit.

  * Make exit clean/unclean report consistent for AMI and CLI in
  really_quit().

  (issue ASTERISK-20649)
  Reported by: Corey Farrell
  Patches:
        core-cleanup-1_8-10.patch (license #5909) patch uploaded by Corey Farrell
        core-cleanup-11-trunk.patch (license #5909) patch uploaded by Corey Farrell
        Modified
  ........

  Merged revisions 377135 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377136 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377137 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377145 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 377107 via svnmerge from
Automerge script [Mon, 3 Dec 2012 20:19:34 +0000 (20:19 +0000)] 
Merged revisions 377107 via svnmerge from
file:///srv/subversion/repos/asterisk/trunk

................
  r377107 | rmudgett | 2012-12-03 13:33:06 -0600 (Mon, 03 Dec 2012) | 16 lines

  Cleanup config cache on exit.

  (issue ASTERISK-20649)
  Reported by: Corey Farrell
  Patches:
        config-cleanup-all.patch (license #5909) patch uploaded by Corey Farrell
  ........

  Merged revisions 377104 from http://svn.asterisk.org/svn/asterisk/branches/1.8
  ........

  Merged revisions 377105 from http://svn.asterisk.org/svn/asterisk/branches/10
  ........

  Merged revisions 377106 from http://svn.asterisk.org/svn/asterisk/branches/11
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377114 65c4cc65-6c06-0410-ace0-fbb531ad65f3