]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
16 years agoMerged revisions 187302 via svnmerge from
Tilghman Lesher [Thu, 9 Apr 2009 05:16:25 +0000 (05:16 +0000)] 
Merged revisions 187302 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r187302 | tilghman | 2009-04-08 23:59:05 -0500 (Wed, 08 Apr 2009) | 14 lines

  Merged revisions 187300-187301 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r187300 | tilghman | 2009-04-08 23:31:38 -0500 (Wed, 08 Apr 2009) | 3 lines

    Add debugging mode for diagnosing file descriptor leaks.
    (Related to issue #14625)
  ........
    r187301 | tilghman | 2009-04-08 23:32:40 -0500 (Wed, 08 Apr 2009) | 2 lines

    Oops, missed this file in the last commit.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@187305 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 187269 via svnmerge
Kevin P. Fleming [Thu, 9 Apr 2009 02:46:46 +0000 (02:46 +0000)] 
Blocked revisions 187269 via svnmerge

........
  r187269 | kpfleming | 2009-04-08 22:44:27 -0400 (Wed, 08 Apr 2009) | 5 lines

  add a dedicated log channel for modules to be able report security-related events, so that they can be fed into external processes for analysis and possible mitigation efforts

  (inspired by this evening's Toronto Asterisk Users Group meeting and previous dicussions amongst various community members)
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@187271 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 187211 via svnmerge
Jeff Peeler [Wed, 8 Apr 2009 21:01:51 +0000 (21:01 +0000)] 
Blocked revisions 187211 via svnmerge

........
  r187211 | jpeeler | 2009-04-08 16:00:39 -0500 (Wed, 08 Apr 2009) | 20 lines

  Add timer for features so that backup bridge config can go away

  The biggest change done here was elimination of the backup_config for use with
  features. Previously, the bridging code upon detecting a feature would set the
  start time of the bridge to the start time of the feature. Then after the
  feature had either expired or timed out the start time would be reset to the
  true bridge start time from the backup_config. Now, the time differences are
  calculated with respect to the newly added feature_start_time timeval instead.

  There should be no behavior changes from the previous functionality aside from
  the bridge timing being unaffected by either valid or partial feature matches.
  Previously the timing would be increased by the length of time configured for
  featuredigittimeout, which was probably never noticed.

  (closes issue #14503)
  Reported by: KNK
  Tested by: jpeeler

  Review: http://reviewboard.digium.com/r/179/
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@187213 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 187138 via svnmerge
Mark Michelson [Wed, 8 Apr 2009 19:18:46 +0000 (19:18 +0000)] 
Blocked revisions 187138 via svnmerge

................
  r187138 | mmichelson | 2009-04-08 14:18:10 -0500 (Wed, 08 Apr 2009) | 13 lines

  Blocked revisions 187135 via svnmerge

  ........
    r187135 | mmichelson | 2009-04-08 14:16:49 -0500 (Wed, 08 Apr 2009) | 8 lines

    Fix a crash due to too few arguments to RetryDial.

    (closes issue #14852)
    Reported by: junky
    Patches:
          retry_fix.diff uploaded by junky (license 177)
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@187143 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 187046 via svnmerge from
Mark Michelson [Wed, 8 Apr 2009 16:53:26 +0000 (16:53 +0000)] 
Merged revisions 187046 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r187046 | mmichelson | 2009-04-08 11:52:20 -0500 (Wed, 08 Apr 2009) | 16 lines

  Merged revisions 187045 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r187045 | mmichelson | 2009-04-08 11:52:03 -0500 (Wed, 08 Apr 2009) | 10 lines

    Fix a small logical error when loading moh classes.

    We were unconditionally incrementing the number of mohclasses
    registered. However, we should actually only increment if the
    call to moh_register was successful.

    While this probably has never caused problems, I noticed it
    and decided to fix it anyway.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@187048 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 186985 via svnmerge from
Mark Michelson [Wed, 8 Apr 2009 15:28:50 +0000 (15:28 +0000)] 
Merged revisions 186985 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r186985 | mmichelson | 2009-04-08 10:27:41 -0500 (Wed, 08 Apr 2009) | 30 lines

  Merged revisions 186984 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r186984 | mmichelson | 2009-04-08 10:26:46 -0500 (Wed, 08 Apr 2009) | 24 lines

    Make a couple of changes with regards to a new message printed in ast_read().

    "ast_read() called with no recorded file descriptor" is a new message added
    after a bug was discovered. Unfortunately, it seems there are a bunch of places
    that potentially make such calls to ast_read() and trigger this error message
    to be displayed. This commit does two things to help to make this message appear
    less.

    First, the message has been downgraded to a debug level message if dev mode is
    not enabled. The message means a lot more to developers than it does to end users,
    and so developers should take an effort to be sure to call ast_read only when
    a channel is ready to be read from. However, since this doesn't actually cause an
    error in operation and is not something a user can easily fix, we should not spam
    their console with these messages.

    Second, the message has been moved to after the check for any pending masquerades.
    ast_read() being called with no recorded file descriptor should not interfere with
    a masquerade taking place.

    This could be seen as a simple way of resolving issue #14723. However, I still want
    to try to clear out the existing ways of triggering this message, since I feel that
    would be a better resolution for the issue.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186987 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 186899 via svnmerge from
Tilghman Lesher [Wed, 8 Apr 2009 05:07:58 +0000 (05:07 +0000)] 
Merged revisions 186899 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r186899 | tilghman | 2009-04-08 00:06:22 -0500 (Wed, 08 Apr 2009) | 2 lines

  Add lastms to the require API call.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186900 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 186842 via svnmerge from
Mark Michelson [Wed, 8 Apr 2009 00:10:15 +0000 (00:10 +0000)] 
Merged revisions 186842 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r186842 | mmichelson | 2009-04-07 19:09:28 -0500 (Tue, 07 Apr 2009) | 14 lines

  Merged revisions 186841 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r186841 | mmichelson | 2009-04-07 19:09:04 -0500 (Tue, 07 Apr 2009) | 8 lines

    Fix a few typos of the word "frequency."

    (closes issue #14842)
    Reported by: jvandal
    Patches:
          frequency-typo.diff uploaded by jvandal (license 413)
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186844 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 186837 via svnmerge from
Mark Michelson [Wed, 8 Apr 2009 00:02:39 +0000 (00:02 +0000)] 
Merged revisions 186837 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r186837 | mmichelson | 2009-04-07 19:01:49 -0500 (Tue, 07 Apr 2009) | 7 lines

  Fix bad merge from fix for issue 13867.

  (closes issue #14686)
  Reported by: davidw
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186839 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 186833 via svnmerge from
Mark Michelson [Tue, 7 Apr 2009 23:51:54 +0000 (23:51 +0000)] 
Merged revisions 186833 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r186833 | mmichelson | 2009-04-07 18:50:56 -0500 (Tue, 07 Apr 2009) | 15 lines

  Merged revisions 186832 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r186832 | mmichelson | 2009-04-07 18:49:49 -0500 (Tue, 07 Apr 2009) | 8 lines

    Set the AST_FEATURE_WARNING_ACTIVE flag when a p2p bridge returns AST_BRIDGE_RETRY.

    Without this flag set, warning sounds will not be properly played to either party
    of the bridge.

    (closes issue #14845)
    Reported by: adomjan
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186835 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 186799 via svnmerge from
Tilghman Lesher [Tue, 7 Apr 2009 22:33:03 +0000 (22:33 +0000)] 
Merged revisions 186799 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r186799 | tilghman | 2009-04-07 17:23:46 -0500 (Tue, 07 Apr 2009) | 10 lines

  Merged revisions 186775 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r186775 | tilghman | 2009-04-07 17:16:50 -0500 (Tue, 07 Apr 2009) | 3 lines

    Fix Macro documentation to match current (and intended) behavior.
    (See -dev mailing list)
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186806 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 186720 via svnmerge from
Mark Michelson [Tue, 7 Apr 2009 20:53:10 +0000 (20:53 +0000)] 
Merged revisions 186720 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r186720 | mmichelson | 2009-04-07 15:46:18 -0500 (Tue, 07 Apr 2009) | 12 lines

  Merged revisions 186719 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r186719 | mmichelson | 2009-04-07 15:43:49 -0500 (Tue, 07 Apr 2009) | 6 lines

    Ensure that \r\n is printed after the ActionID in an OriginateResponse.

    (closes issue #14847)
    Reported by: kobaz
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186722 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 186620 via svnmerge
Mark Michelson [Mon, 6 Apr 2009 16:08:05 +0000 (16:08 +0000)] 
Blocked revisions 186620 via svnmerge

........
  r186620 | mmichelson | 2009-04-06 11:06:25 -0500 (Mon, 06 Apr 2009) | 3 lines

  Silly svn. These files didn't get merged over in the merge of the issue8824 branch.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186622 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 186566 via svnmerge
Mark Michelson [Mon, 6 Apr 2009 13:58:26 +0000 (13:58 +0000)] 
Blocked revisions 186566 via svnmerge

................
  r186566 | mmichelson | 2009-04-06 08:57:39 -0500 (Mon, 06 Apr 2009) | 8 lines

  Blocked revisions 186565 via svnmerge

  ........
    r186565 | mmichelson | 2009-04-06 08:54:41 -0500 (Mon, 06 Apr 2009) | 3 lines

    Revert commit 186445 because it causes the build to fail when IMAP_STORAGE is used.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186568 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 186525 via svnmerge
Mark Michelson [Fri, 3 Apr 2009 22:43:46 +0000 (22:43 +0000)] 
Blocked revisions 186525 via svnmerge

........
  r186525 | mmichelson | 2009-04-03 17:41:46 -0500 (Fri, 03 Apr 2009) | 22 lines

  This commit introduces COLP/CONP and Redirecting party information into Asterisk.

  The channel drivers which have been most heavily tested with these enhancements are
  chan_sip and chan_misdn. Further work is being done to add Q.SIG support and will be
  introduced in a later commit. chan_skinny has code added to it here, but according
  to user pj, the support on chan_skinny is not working as of now. This will be fixed in
  a later commit.

  A special thanks goes out to bugtracker user gareth for getting the ball rolling and
  providing the initial support for this work. Without his initial work on this, this would
  not have been nearly as painless as it was.

  This functionality has been tested by Digium's product quality department, as well as a
  customer site running thousands of calls every day. In addition, many many many many bugtracker
  users have tested this, too.

  (closes issue #8824)
  Reported by: gareth

  Review: http://reviewboard.digium.com/r/201
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186527 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 186461 via svnmerge from
Kevin P. Fleming [Fri, 3 Apr 2009 20:21:23 +0000 (20:21 +0000)] 
Merged revisions 186461 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r186461 | kpfleming | 2009-04-03 15:20:01 -0500 (Fri, 03 Apr 2009) | 11 lines

  Merged revisions 186458 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r186458 | kpfleming | 2009-04-03 15:19:20 -0500 (Fri, 03 Apr 2009) | 5 lines

    Fix a bug where DAHDI/Zaptel channels would not properly switch formats when requested

    Don't offer AST_FORMAT_SLINEAR on DAHDI/Zaptel channels... while it could provide a slight performance benefit, the translation core in Asterisk has some flaws when a channel driver offers multiple raw formats. this fix is much simpler than fixing the translation core to solve that issue (although that will be done later).
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186466 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 186444,186447 via svnmerge from
Tilghman Lesher [Fri, 3 Apr 2009 20:04:16 +0000 (20:04 +0000)] 
Merged revisions 186444,186447 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r186444 | tilghman | 2009-04-03 14:30:34 -0500 (Fri, 03 Apr 2009) | 14 lines

  Merged revisions 186415 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r186415 | tilghman | 2009-04-03 14:06:58 -0500 (Fri, 03 Apr 2009) | 7 lines

    Distinguish in a sent email between simple sends and forwards.
    (closes issue #11678)
     Reported by: jamessan
     Patches:
           20090330__bug11678.diff.txt uploaded by tilghman (license 14)
     Tested by: tilghman, lmadsen
  ........
................
  r186447 | tilghman | 2009-04-03 14:59:55 -0500 (Fri, 03 Apr 2009) | 9 lines

  Merged revisions 186445 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r186445 | tilghman | 2009-04-03 14:56:48 -0500 (Fri, 03 Apr 2009) | 2 lines

    Found a conflict in the last commit, due to multiple targets
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186448 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 186379 via svnmerge from
David Vossel [Fri, 3 Apr 2009 16:38:36 +0000 (16:38 +0000)] 
Merged revisions 186379 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r186379 | dvossel | 2009-04-03 11:29:47 -0500 (Fri, 03 Apr 2009) | 4 lines

  audio_audiohook_write_list() did not correctly update sample size after ast_translate.

  audio_audiohook_write_list() did not take into account that the sample size may change after translation depending on if the original frame is is 8khz or 16khz.  the sample size is now updated after translating to reflect this possibility.  This caused the audio on the receiving end to sound terrible.  Thanks to jcolp and mmichelson for helping me work this out.

  (issue AST-197)
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186381 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 186321 via svnmerge from
Joshua Colp [Fri, 3 Apr 2009 15:54:57 +0000 (15:54 +0000)] 
Merged revisions 186321 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r186321 | file | 2009-04-03 12:52:50 -0300 (Fri, 03 Apr 2009) | 12 lines

  Merged revisions 186320 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r186320 | file | 2009-04-03 12:48:56 -0300 (Fri, 03 Apr 2009) | 5 lines

    Fix a problem with the crypto variable definitions not actually being defined properly.

    (closes issue #14804)
    Reported by: jvandal
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186323 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 186286 via svnmerge from
Mark Michelson [Fri, 3 Apr 2009 14:33:42 +0000 (14:33 +0000)] 
Merged revisions 186286 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r186286 | mmichelson | 2009-04-03 09:32:05 -0500 (Fri, 03 Apr 2009) | 20 lines

  Fix the ability to retrieve voicemail messages from IMAP.

  A recent change made interactive vm_states no longer get
  added to the list of vm_states and instead get stored in
  thread-local storage.

  In trunk and all the 1.6.X branches, the problem is that
  when we search for messages in a voicemail box, we would
  attempt to update the appropriate vm_state struct by directly
  searching in the list of vm_states instead of using the
  get_vm_state_by_imap_user function. This meant we could not
  find the interactive vm_state that we wanted.

  (closes issue #14685)
  Reported by: BlargMaN
  Patches:
        14685.patch uploaded by mmichelson (license 60)
  Tested by: BlargMaN, qualleyiv, mmichelson
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186288 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 186230 via svnmerge from
Russell Bryant [Fri, 3 Apr 2009 02:06:40 +0000 (02:06 +0000)] 
Merged revisions 186230 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r186230 | russell | 2009-04-02 21:03:48 -0500 (Thu, 02 Apr 2009) | 29 lines

Merged revisions 186229 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r186229 | russell | 2009-04-02 20:57:44 -0500 (Thu, 02 Apr 2009) | 21 lines

Fix a memory leak in cdr_radius.

I came across this while doing some testing of my ast_channel_ao2 branch.
After running a test overnight that generated over 5 million calls, Asterisk
had taken up about 1 GB of my system memory.  So, I re-ran the test with
MALLOC_DEBUG turned on.  However, it showed no leaks in Asterisk during the
test, even though Asterisk was still consuming it somehow.

Instead, I turned to valgrind, which when run with --leak-check=full, told
me exactly where the leak came from, which was from allocations inside the
radiusclient-ng library.  This explains why MALLOC_DEBUG did not report it.

After a bit of analysis, I found that we were leaking a little bit of memory
every time a CDR record was passed to cdr_radius.

I don't actually have a radius server set up to receive CDR records.  However,
I always have my development systems compile and install all modules.  In
addition to making sure there are not build errors across modules, always
loading modules helps find bugs like this, too, so it is strongly recommend for
all developers.

........

................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186232 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 186175 via svnmerge from
Mark Michelson [Thu, 2 Apr 2009 21:59:44 +0000 (21:59 +0000)] 
Merged revisions 186175 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r186175 | mmichelson | 2009-04-02 16:56:21 -0500 (Thu, 02 Apr 2009) | 11 lines

  Merged revisions 186174 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r186174 | mmichelson | 2009-04-02 16:55:34 -0500 (Thu, 02 Apr 2009) | 5 lines

    Fix instructions in one-step parking comment to make more sense.

    Changed a capital K to a lowercase k.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186177 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 186101 via svnmerge from
Kevin P. Fleming [Thu, 2 Apr 2009 17:27:42 +0000 (17:27 +0000)] 
Merged revisions 186101 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r186101 | kpfleming | 2009-04-02 12:26:07 -0500 (Thu, 02 Apr 2009) | 9 lines

  Merged revisions 186081 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r186081 | kpfleming | 2009-04-02 12:21:29 -0500 (Thu, 02 Apr 2009) | 3 lines

    ensure that the buffer passed to DAHDI_SET_BUFINFO is fully initialized
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186108 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 186060 via svnmerge from
Tilghman Lesher [Thu, 2 Apr 2009 17:14:08 +0000 (17:14 +0000)] 
Merged revisions 186060 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r186060 | tilghman | 2009-04-02 12:10:28 -0500 (Thu, 02 Apr 2009) | 16 lines

  Merged revisions 186059 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ................
    r186059 | tilghman | 2009-04-02 12:09:13 -0500 (Thu, 02 Apr 2009) | 9 lines

    Merged revisions 186056 via svnmerge from
    https://origsvn.digium.com/svn/asterisk/branches/1.2

    ........
      r186056 | tilghman | 2009-04-02 12:02:18 -0500 (Thu, 02 Apr 2009) | 2 lines

      Fix for AST-2009-003
    ........
  ................
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@186062 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 185953 via svnmerge from
Kevin P. Fleming [Thu, 2 Apr 2009 13:53:23 +0000 (13:53 +0000)] 
Merged revisions 185953 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r185953 | kpfleming | 2009-04-02 08:51:44 -0500 (Thu, 02 Apr 2009) | 11 lines

  Merged revisions 185952 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r185952 | kpfleming | 2009-04-02 08:43:43 -0500 (Thu, 02 Apr 2009) | 5 lines

    the DAHDI_GETCONF, DAHDI_SETCONF and DAHDI_GET_PARAMS ioctls were recently corrected to show that they do, in fact, read data from userspace as part of their work. due to this fix, valgrind now reports a number of cases where chan_dahdi passed an uninitialized (or partially) buffer to these ioctls, which could lead to unexpected behavior.

    this patch corrects chan_dahdi to ensure that buffers passed to these ioctls are always fully initialized.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@185956 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 185846 via svnmerge from
David Vossel [Wed, 1 Apr 2009 19:06:46 +0000 (19:06 +0000)] 
Merged revisions 185846 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r185846 | dvossel | 2009-04-01 14:03:32 -0500 (Wed, 01 Apr 2009) | 16 lines

  Merged revisions 185845 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r185845 | dvossel | 2009-04-01 14:02:00 -0500 (Wed, 01 Apr 2009) | 10 lines

    Fixes issue with dropped calles due to re-Invite glare and re-Invites never executing after a 491

    Acknowledgement for 491 responses were never being processed because it didn't match our pending invite's seqno.  Since the ACK was never processed, the 491 frame would continue to be retransmitted until eventually the call was dropped due to max retries.  Now during a pending invite, if we receive another invite, we send an 491 and hold on to that glare invite's seqno in the "glareinvite" variable for that sip_pvt struct.  When ACK's are received, we first check to see if it is in response to our pending invite, if not we check to see if it is in response to a glare invite.  In this case, it is in response to the glare invite and must be dealt with or the call is dropped.  I've changed the wait time for resending the re-Invite after receving a 491 response to comply with RFC 3261.  Before this patch the scheduled re-Invite would only change a flag indicating that the re-Invite should be sent out, now it actually sends it out as well.

    (closes issue #12013)
    Reported by: alx

    Review: http://reviewboard.digium.com/r/213/
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@185848 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 185777 via svnmerge
Mark Michelson [Wed, 1 Apr 2009 14:00:44 +0000 (14:00 +0000)] 
Blocked revisions 185777 via svnmerge

........
  r185777 | mmichelson | 2009-04-01 08:59:34 -0500 (Wed, 01 Apr 2009) | 5 lines

  Address Russell's comments regarding rev 185704.

  Use ast_debug and ast_softhangup_nolock.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@185779 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 185772 via svnmerge from
Russell Bryant [Wed, 1 Apr 2009 13:50:36 +0000 (13:50 +0000)] 
Merged revisions 185772 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r185772 | russell | 2009-04-01 08:48:26 -0500 (Wed, 01 Apr 2009) | 14 lines

Merged revisions 185771 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r185771 | russell | 2009-04-01 08:47:30 -0500 (Wed, 01 Apr 2009) | 6 lines

Fix a case where DTMF could bypass audiohooks.

This change fixes a situation where an audiohook that wants DTMF would not
actually get it.  This is in the code path where we end DTMF digit length
emulation while handling a NULL frame.

........

................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@185774 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 185704 via svnmerge
Mark Michelson [Wed, 1 Apr 2009 00:40:58 +0000 (00:40 +0000)] 
Blocked revisions 185704 via svnmerge

........
  r185704 | mmichelson | 2009-03-31 19:39:01 -0500 (Tue, 31 Mar 2009) | 8 lines

  Allow the AMI Hangup command to accept a Cause header.

  (closes issue #14695)
  Reported by: mneuhauser
  Patches:
        cause-for-hangup-manager-action.patch uploaded by mneuhauser (license 425)
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@185706 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 185664 via svnmerge from
Kevin P. Fleming [Tue, 31 Mar 2009 22:38:20 +0000 (22:38 +0000)] 
Merged revisions 185664 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r185664 | kpfleming | 2009-03-31 17:35:07 -0500 (Tue, 31 Mar 2009) | 1 line

  ignore copied (generated) file
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@185666 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 185600 via svnmerge from
Mark Michelson [Tue, 31 Mar 2009 22:05:06 +0000 (22:05 +0000)] 
Merged revisions 185600 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r185600 | mmichelson | 2009-03-31 17:02:48 -0500 (Tue, 31 Mar 2009) | 12 lines

  Merged revisions 185599 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r185599 | mmichelson | 2009-03-31 17:00:01 -0500 (Tue, 31 Mar 2009) | 6 lines

    Fix crash that would occur if an empty member was specified in queues.conf.

    (closes issue #14796)
    Reported by: pida
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@185602 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 185581 via svnmerge
Kevin P. Fleming [Tue, 31 Mar 2009 21:32:18 +0000 (21:32 +0000)] 
Blocked revisions 185581 via svnmerge

........
  r185581 | kpfleming | 2009-03-31 16:29:50 -0500 (Tue, 31 Mar 2009) | 19 lines

  Optimizations to the stringfields API

  This patch provides a number of optimizations to the stringfields API, focused around saving (not wasting) memory whenever possible. Thanks to Mark Michelson for inspiring this work and coming up with the first two optimizations that are represented here:

  Changes:

  - Cleanup of some code, fix incorrect doxygen comments

  - When a field is emptied or replaced with a new allocation, decrease the amount of 'active' space in the pool it was held in; if that pool reaches zero active space, and is not the current pool, then free it as it is no longer in use

  - When allocating a pool, try to allocate a size that will fit in a 'standard' malloc() allocation without wasting space

  - When allocating space for a field, store the amount of space in the two bytes immediately preceding the field; this eliminates the need to call strlen() on the field when overwriting it, and more importantly it 'remembers' the amount of space the field has available, even if a shorter string has been stored in it since it was allocated

  - Don't automatically double the size of each successive pool allocated; it's wasteful

  http://reviewboard.digium.com/r/165/
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@185593 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 185532 via svnmerge
Mark Michelson [Tue, 31 Mar 2009 20:59:22 +0000 (20:59 +0000)] 
Blocked revisions 185532 via svnmerge

................
  r185532 | mmichelson | 2009-03-31 15:56:46 -0500 (Tue, 31 Mar 2009) | 8 lines

  Blocked revisions 185531 via svnmerge

  ........
    r185531 | mmichelson | 2009-03-31 15:55:47 -0500 (Tue, 31 Mar 2009) | 3 lines

    Use AST_SCHED_DEL_SPINLOCK instead of manually using the logic.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@185534 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 185469 via svnmerge from
Mark Michelson [Tue, 31 Mar 2009 19:47:16 +0000 (19:47 +0000)] 
Merged revisions 185469 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r185469 | mmichelson | 2009-03-31 14:46:18 -0500 (Tue, 31 Mar 2009) | 14 lines

  Merged revisions 185468 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r185468 | mmichelson | 2009-03-31 14:45:30 -0500 (Tue, 31 Mar 2009) | 8 lines

    Fix Russian voicemail intro to say the word "messages" properly.

    (closes issue #14736)
    Reported by: chappell
    Patches:
          voicemail_no_messages.diff uploaded by chappell (license 8)
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@185471 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 185363 via svnmerge from
David Brooks [Tue, 31 Mar 2009 17:48:43 +0000 (17:48 +0000)] 
Merged revisions 185363 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r185363 | dbrooks | 2009-03-31 11:46:57 -0500 (Tue, 31 Mar 2009) | 44 lines

  Merged revisions 185362 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r185362 | dbrooks | 2009-03-31 11:37:12 -0500 (Tue, 31 Mar 2009) | 35 lines

    Fix incorrect parsing in chan_gtalk when xmpp contains extra whitespaces

    To drill into the xmpp to find the capabilities between channels, chan_gtalk
    calls iks_child() and iks_next(). iks_child() and iks_next() are functions in
    the iksemel xml parsing library that traverse xml nodes. The bug here is that
    both iks_child() and iks_next() will return the next iks_struct node
    *regardless* of type. chan_gtalk expects the next node to be of type IKS_TAG,
    which in most cases, it is, but in this case (a call being made from the
    Empathy IM client), there exists iks_struct nodes which are not IKS_TAG data
    (they are extraneous whitespaces), and chan_gtalk doesn't handle that case,
    so capabilities don't match, and a call cannot be made.

    iks_first_tag() and iks_next_tag(), on the other hand, will not return the
    very next iks_struct, but will check to see if the next iks_struct is of
    type IKS_TAG. If it isn't, it will be skipped, and the next struct of type
    IKS_TAG it finds will be returned. This assures that chan_gtalk will find
    the iks_struct it is looking for.

    This fix simply changes all calls to iks_child() and iks_next() to become
    calls to iks_first_tag() and iks_next_tag(), which resolves the capability
    matching.

    The following is a payload listing from Empathy, which, due to the extraneous
    whitespace, will not be parsed correctly by iksemel:

    <iq from='dbrooksjab@235-22-24-10/Telepathy' to='astjab@235-22-24-10/asterisk' type='set' id='542757715704'> <session xmlns='http://www.google.com/session' initiator='dbrooksjab@235-22-24-10/Telepathy' type='initiate' id='1837267342'> <description xmlns='http://www.google.com/session/phone'> <payload-type clockrate='16000' name='speex' id='96'/>
     <payload-type clockrate='8000' name='PCMA' id='8'/>
     <payload-type clockrate='8000' name='PCMU' id='0'/>
     <payload-type clockrate='90000' name='MPA' id='97'/>
     <payload-type clockrate='16000' name='SIREN' id='98'/>
     <payload-type clockrate='8000' name='telephone-event' id='99'/>
    </description>
    </session>
    </iq>

  Review: http://reviewboard.digium.com/r/181/
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@185427 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 185299 via svnmerge
Mark Michelson [Tue, 31 Mar 2009 15:35:34 +0000 (15:35 +0000)] 
Blocked revisions 185299 via svnmerge

................
  r185299 | mmichelson | 2009-03-31 10:34:29 -0500 (Tue, 31 Mar 2009) | 15 lines

  Blocked revisions 185298 via svnmerge

  ........
    r185298 | mmichelson | 2009-03-31 10:34:05 -0500 (Tue, 31 Mar 2009) | 10 lines

    Fix some state_interface stuff that was in trunk but not in the backport to 1.4.

    Issue #14359 was fixed between the time that I posted the review of the backport
    of the state interface change for 1.4. This merges the changes from that issue
    back into 1.4.

    (closes issue #14359)
    Reported by: francesco_r
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@185300 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 185261 via svnmerge from
Russell Bryant [Tue, 31 Mar 2009 14:57:45 +0000 (14:57 +0000)] 
Merged revisions 185261 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r185261 | russell | 2009-03-31 09:53:45 -0500 (Tue, 31 Mar 2009) | 5 lines

Don't free() an astobj2 object.

(closes issue #14672)
Reported by: makoto

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@185263 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 185197 via svnmerge from
Joshua Colp [Tue, 31 Mar 2009 14:10:25 +0000 (14:10 +0000)] 
Merged revisions 185197 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r185197 | file | 2009-03-31 11:07:36 -0300 (Tue, 31 Mar 2009) | 15 lines

  Merged revisions 185196 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r185196 | file | 2009-03-31 11:06:39 -0300 (Tue, 31 Mar 2009) | 8 lines

    Fix crash when moving audiohooks between channels.

    Handle the scenario where we are called to move audiohooks between channels
    and the source channel does not actually have any on it.

    (closes issue #14734)
    Reported by: corruptor
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@185199 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 185123 via svnmerge from
Richard Mudgett [Mon, 30 Mar 2009 20:50:55 +0000 (20:50 +0000)] 
Merged revisions 185123 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r185123 | rmudgett | 2009-03-30 15:42:14 -0500 (Mon, 30 Mar 2009) | 9 lines

  Merged revisions 185121 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r185121 | rmudgett | 2009-03-30 15:40:11 -0500 (Mon, 30 Mar 2009) | 1 line

    Update the channel allocation method documentation.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@185127 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 185122 via svnmerge from
Richard Mudgett [Mon, 30 Mar 2009 20:50:00 +0000 (20:50 +0000)] 
Merged revisions 185122 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r185122 | rmudgett | 2009-03-30 15:41:24 -0500 (Mon, 30 Mar 2009) | 26 lines

  Merged revisions 185120 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r185120 | rmudgett | 2009-03-30 15:38:11 -0500 (Mon, 30 Mar 2009) | 19 lines

    Make chan_misdn BRI TE side normally defer channel selection to the NT side.

    Channel allocation collisions are not handled by chan_misdn very well.
    This patch simply avoids the problem for BRI only.

    For PRI, allocation collisions are still possible but less likely since
    there are simply more channels available and each end could use a different
    allocation strategy.

    misdn.conf options available:
    te_choose_channel - Use to force the TE side to allocate channels.
    method - Specify the channel allocation strategy.

    (closes issue #13488)
    Reported by: Christian_Pinedo
    Patches:
          isdn_lib.patch.txt uploaded by crich
    Tested by: crich, siepkes, festr
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@185126 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 185072 via svnmerge from
Mark Michelson [Mon, 30 Mar 2009 16:47:22 +0000 (16:47 +0000)] 
Merged revisions 185072 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r185072 | mmichelson | 2009-03-30 11:26:48 -0500 (Mon, 30 Mar 2009) | 45 lines

  Merged revisions 185031 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r185031 | mmichelson | 2009-03-30 11:17:35 -0500 (Mon, 30 Mar 2009) | 39 lines

    Fix queue weight behavior so that calls in low-weight queues are not inappropriately blocked.

    (This is copied and pasted from the review request I made for this patch)

    Asterisk has some odd behavior when queue weights are used. The current logic used when
    potentially calling a queue member is:

    If the member we are going to call is part of another queue and _that other queue has any
    callers in it_ and has a higher weight than the queue we are calling from, then don't try
    to contact that member. The issue here is what I have marked with underscores. If the
    higher-weighted queue has any callers in it at all, then the queue member will be unreachable
    from the lower-weighted queue. This has the potential to be really really bad if using a
    queue strategy, such as leastrecent or fewestcalls, with the potential to call the same
    member repeatedly.

    The fix proposed by garychen on issue 13220 is very simple and, as far as I can see, works
    well for this situation. With this set of changes, the logic used becomes:

    If the member we are going to call is part of another queue, the other queue has a higher
    weight than the queue we are calling from, and the higher weight queue has at least as many
    callers as available members, then do not try to contact the queue member. If the higher
    weighted queue has fewer callers than available members, then there is no reason to deny
    the call to this member since the other queue can afford to spare a member.

    Since the fix involved writing a generic function for determining the number of available
    members in the queue, I also modified the is_our_turn function to make use of the new
    num_available_members function to determine if it is our turn to try calling a member. There
    is one small behavior change. Before writing this patch, if you had autofill disabled, then
    if you were the head caller in a queue, you would automatically be told that it was your
    turn to try calling a member. This did not take into account whether there were actually any
    queue members available to take the call. Now we actually make sure there is at least one
    member available to take the call if autofill is disabled.

    (closes issue #13220)
    Reported by: garychen

    Review: http://reviewboard.digium.com/r/202/
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@185088 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 184986 via svnmerge
Mark Michelson [Mon, 30 Mar 2009 15:26:13 +0000 (15:26 +0000)] 
Blocked revisions 184986 via svnmerge

................
  r184986 | mmichelson | 2009-03-30 10:25:04 -0500 (Mon, 30 Mar 2009) | 27 lines

  Blocked revisions 184980 via svnmerge

  ........
    r184980 | mmichelson | 2009-03-30 10:23:59 -0500 (Mon, 30 Mar 2009) | 22 lines

    Backport state interface changes to app_queue from trunk.

    After several issues raised on the Asterisk bugtracker against
    the 1.4 branch were determined to be fixable with the state interface
    change available in the 1.6.X series, it finally came time to just
    suck it up and backport the change.

    For a detailed explanation of what this change entails, the original
    trunk commit for this feature may be found here:

    http://svn.digium.com/view/asterisk?view=revision&revision=97203

    In addition, the details for the use of this change to fix the problems
    stated in issue #12970 may be found in the review request I made for
    this change. It is linked below.

    (closes issue #12970)
    Reported by: edugs15

    Review: http://reviewboard.digium.com/r/116
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184992 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184948 via svnmerge from
Joshua Colp [Mon, 30 Mar 2009 14:41:13 +0000 (14:41 +0000)] 
Merged revisions 184948 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r184948 | file | 2009-03-30 11:37:47 -0300 (Mon, 30 Mar 2009) | 21 lines

  Merged revisions 184947 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r184947 | file | 2009-03-30 11:35:47 -0300 (Mon, 30 Mar 2009) | 14 lines

    Improve our handling of T38 in the initial INVITE from a device.

    We now answer with matching media streams to what is requested. If an INVITE
    is received with both a T38 and RTP media stream this means we answer with both.
    For any outgoing calls created as a result of this inbound one no T38 is requested
    in the initial INVITE. Instead if we start receiving udptl packets we trigger a
    reinvite on the outbound side.

    (closes issue #12437)
    Reported by: marsosa
    Tested by: pinga-fogo, okrief, file, afu

    Review: http://reviewboard.digium.com/r/208/
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184950 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184910 via svnmerge from
Russell Bryant [Mon, 30 Mar 2009 13:57:30 +0000 (13:57 +0000)] 
Merged revisions 184910 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r184910 | russell | 2009-03-30 08:55:44 -0500 (Mon, 30 Mar 2009) | 4 lines

Fix build error when chan_h323 is not being built.

(reported by cai1982 in #asterisk-dev)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184912 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184843 via svnmerge from
Russell Bryant [Sun, 29 Mar 2009 05:52:59 +0000 (05:52 +0000)] 
Merged revisions 184843 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r184843 | russell | 2009-03-29 00:52:20 -0500 (Sun, 29 Mar 2009) | 13 lines

Merged revisions 184842 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r184842 | russell | 2009-03-29 00:51:55 -0500 (Sun, 29 Mar 2009) | 5 lines

Ensure targs variable is fully initialized.

(closes issue #14758)
Reported by: tim_ringenbach

........

................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184845 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184838 via svnmerge from
Russell Bryant [Sun, 29 Mar 2009 05:41:19 +0000 (05:41 +0000)] 
Merged revisions 184838 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r184838 | russell | 2009-03-29 00:32:04 -0500 (Sun, 29 Mar 2009) | 8 lines

Simplify chan_h323 build to not require a second run of "make".

(closes issue #14715)
Reported by: jthurman
Patches:
      h323-makefile-1.6.2.0-beta1.patch uploaded by jthurman (license 614)
Tested by: tzafrir, russell

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184840 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184762 via svnmerge from
Kevin P. Fleming [Fri, 27 Mar 2009 19:17:22 +0000 (19:17 +0000)] 
Merged revisions 184762 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r184762 | kpfleming | 2009-03-27 14:10:32 -0500 (Fri, 27 Mar 2009) | 12 lines

  Improve timing interface to remember which provider provided a timer

  The ability to load/unload timing interfaces is nice, but it means that when a timer is allocated, it may come from provider A, but later provider B becomes the 'preferred' provider. If this happens, all timer API calls on the timer that was provided by provider A will actually be handed to provider B, which will say WTF and return an error.

  This patch changes the timer API to include a pointer to the provider of the timer handle so that future operations on the timer will be forwarded to the proper provider.

  (closes issue #14697)
  Reported by: moy

  Review: http://reviewboard.digium.com/r/211/
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184765 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184726 via svnmerge from
Russell Bryant [Fri, 27 Mar 2009 18:09:49 +0000 (18:09 +0000)] 
Merged revisions 184726 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r184726 | russell | 2009-03-27 13:04:43 -0500 (Fri, 27 Mar 2009) | 2 lines

Use ast_random() instead of rand() to ensure we use the best RNG available.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184728 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184673 via svnmerge from
Joshua Colp [Fri, 27 Mar 2009 15:54:22 +0000 (15:54 +0000)] 
Merged revisions 184673 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r184673 | file | 2009-03-27 12:46:46 -0300 (Fri, 27 Mar 2009) | 7 lines

  Fix speech structure leak in the AGI speech recognition integration.

  The AGI dialplan applications did not destroy the speech structure automatically
  if it was not destroyed by the running AGI script. They will now do this.

  (issue LUMENVOX-15)
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184675 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184630 via svnmerge from
Russell Bryant [Fri, 27 Mar 2009 14:04:56 +0000 (14:04 +0000)] 
Merged revisions 184630 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r184630 | russell | 2009-03-27 09:00:18 -0500 (Fri, 27 Mar 2009) | 2 lines

Change g_eid to ast_eid_default.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184631 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184566 via svnmerge from
Joshua Colp [Fri, 27 Mar 2009 13:22:32 +0000 (13:22 +0000)] 
Merged revisions 184566 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r184566 | file | 2009-03-27 10:15:26 -0300 (Fri, 27 Mar 2009) | 16 lines

  Merged revisions 184565 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r184565 | file | 2009-03-27 10:06:45 -0300 (Fri, 27 Mar 2009) | 9 lines

    Fix an issue where nat=yes would not always take effect for the RTP session on outgoing calls.

    If calls were placed using an IP address or hostname the global nat setting was copied over
    but was not set on the RTP session itself. This caused the RTP stack to not perform symmetric RTP
    actions.

    (closes issue #14546)
    Reported by: acunningham
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184587 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184531 via svnmerge from
Russell Bryant [Fri, 27 Mar 2009 02:25:31 +0000 (02:25 +0000)] 
Merged revisions 184531 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r184531 | russell | 2009-03-26 21:20:23 -0500 (Thu, 26 Mar 2009) | 20 lines

Fix some issues with rwlock corruption that caused deadlock like symptoms.

When dvossel and I were doing some load testing last week, we noticed that we
could make Asterisk trunk lock up instantly when we started generating a bunch
of calls.  The backtraces of locked threads were bizarre, and many were stuck
on an _unlock_ of an rwlock.

The changes are:

1) Fix a number of places where a backtrace would be loaded into an invalid
   index of the backtrace array.  It's an off by one error, which ends up
   writing over the rwlock itself.

2) Ensure that in the array of held locks, we NULL out an index once it is
   not being used so that it's not confusing when analyzing its contents.

3) Remove a bunch of logging referring to an rwlock operating being done
   with "deep reentrancy".  It is normal for _many_ threads to hold a
   read lock on an rwlock.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184547 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184515 via svnmerge from
Russell Bryant [Fri, 27 Mar 2009 01:44:09 +0000 (01:44 +0000)] 
Merged revisions 184515 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r184515 | russell | 2009-03-26 20:40:28 -0500 (Thu, 26 Mar 2009) | 2 lines

Don't act surprised if we get a -1 indication.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184517 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184512 via svnmerge from
Russell Bryant [Fri, 27 Mar 2009 01:36:42 +0000 (01:36 +0000)] 
Merged revisions 184512 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r184512 | russell | 2009-03-26 20:35:56 -0500 (Thu, 26 Mar 2009) | 2 lines

Pass more useful information through to lock tracking when DEBUG_THREADS is on.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184513 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184448 via svnmerge from
Kevin P. Fleming [Thu, 26 Mar 2009 22:19:02 +0000 (22:19 +0000)] 
Merged revisions 184448 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r184448 | kpfleming | 2009-03-26 17:18:14 -0500 (Thu, 26 Mar 2009) | 9 lines

  Merged revisions 184447 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r184447 | kpfleming | 2009-03-26 17:17:32 -0500 (Thu, 26 Mar 2009) | 3 lines

    use new, improved 8kHz prompts
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184451 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184389 via svnmerge from
David Vossel [Thu, 26 Mar 2009 21:18:39 +0000 (21:18 +0000)] 
Merged revisions 184389 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r184389 | dvossel | 2009-03-26 16:09:37 -0500 (Thu, 26 Mar 2009) | 14 lines

  Merged revisions 184388 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r184388 | dvossel | 2009-03-26 16:07:32 -0500 (Thu, 26 Mar 2009) | 8 lines

    pri loop TestClient/TestServer fails: server SEND DTMF 8

    app_test was failing when sending the last DTMF digit, 8, because of the 100ms pause issued after DTMF is sent.  During this pause the other side would hang up causing the test to look like it failed. Now the other side waits a second before hanging up.

    (closes issue #12442)
    Reported by: tzafrir
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184394 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184344 via svnmerge from
Russell Bryant [Wed, 25 Mar 2009 22:13:36 +0000 (22:13 +0000)] 
Merged revisions 184344 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r184344 | russell | 2009-03-25 17:11:35 -0500 (Wed, 25 Mar 2009) | 2 lines

Remove unneeded AST_LIST_ENTRY() and comment on the purpose of ast_event_ref.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184345 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184339 via svnmerge from
Russell Bryant [Wed, 25 Mar 2009 22:02:20 +0000 (22:02 +0000)] 
Merged revisions 184339 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r184339 | russell | 2009-03-25 16:57:19 -0500 (Wed, 25 Mar 2009) | 35 lines

Improve performance of the ast_event cache functionality.

This code comes from svn/asterisk/team/russell/event_performance/.

Here is a summary of the changes that have been made, in order of both
invasiveness and performance impact, from smallest to largest.

1) Asterisk 1.6.1 introduces some additional logic to be able to handle
   distributed device state.  This functionality comes at a cost.
   One relatively minor change in this patch is that the extra processing
   required for distributed device state is now completely bypassed if
   it's not needed.

2) One of the things that I noticed when profiling this code was that a
   _lot_ of time was spent doing string comparisons.  I changed the way
   strings are represented in an event to include a hash value at the front.
   So, before doing a string comparison, we do an integer comparison on the
   hash.

3) Finally, the code that handles the event cache has been re-written.
   I tried to do this in a such a way that it had minimal impact on the API.
   I did have to change one API call, though - ast_event_queue_and_cache().
   However, the way it works now is nicer, IMO.  Each type of event that
   can be cached (MWI, device state) has its own hash table and rules for
   hashing and comparing objects.  This by far made the biggest impact on
   performance.

For additional details regarding this code and how it was tested, please see the
review request.

(closes issue #14738)
Reported by: russell

Review: http://reviewboard.digium.com/r/205/

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184342 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoadd reviewboard:url property.
Russell Bryant [Wed, 25 Mar 2009 20:32:55 +0000 (20:32 +0000)] 
add reviewboard:url property.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184325 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184280 via svnmerge from
Joshua Colp [Wed, 25 Mar 2009 19:26:04 +0000 (19:26 +0000)] 
Merged revisions 184280 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r184280 | file | 2009-03-25 16:22:06 -0300 (Wed, 25 Mar 2009) | 5 lines

  Fix issue with a T38 reinvite being sent even if not configured to do so.

  If we receive a T38 request negotiate control frame we should only attempt to do so
  if the option is enabled on the dialog.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184282 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184220 via svnmerge from
Eliel C. Sardanons [Wed, 25 Mar 2009 15:12:08 +0000 (15:12 +0000)] 
Merged revisions 184220 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r184220 | eliel | 2009-03-25 10:38:19 -0400 (Wed, 25 Mar 2009) | 19 lines

  Merged revisions 184188 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r184188 | eliel | 2009-03-25 10:12:54 -0400 (Wed, 25 Mar 2009) | 13 lines

    Avoid destroying the CLI line when moving the cursor backward and trying to autocomplete.

    When moving the cursor backward and pressing TAB to autocomplete, a NULL is put
    in the line and we are loosing what we have already wrote after the actual
    cursor position.

    (closes issue #14373)
    Reported by: eliel
    Patches:
          asterisk.c.patch uploaded by eliel (license 64)
          Tested by: lmadsen
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184223 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184147 via svnmerge from
Russell Bryant [Wed, 25 Mar 2009 01:55:16 +0000 (01:55 +0000)] 
Merged revisions 184147 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r184147 | russell | 2009-03-24 20:42:10 -0500 (Tue, 24 Mar 2009) | 5 lines

  Fix build issues on Mac OSX.

  (closes issue #14714)
  Reported by: ygor
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184149 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184079 via svnmerge from
Mark Michelson [Tue, 24 Mar 2009 22:42:00 +0000 (22:42 +0000)] 
Merged revisions 184079 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r184079 | mmichelson | 2009-03-24 17:40:39 -0500 (Tue, 24 Mar 2009) | 15 lines

  Merged revisions 184078 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r184078 | mmichelson | 2009-03-24 17:34:45 -0500 (Tue, 24 Mar 2009) | 9 lines

    Change NULL pointer check to be ast_strlen_zero.

    The 'digit' variable is guaranteed to be non-NULL, so the if
    statement could never evaluate true. Changing to ast_strlen_zero
    makes the logic correct.

    This was found while reviewing ast_channel_ao2 code review.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184081 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 184037 via svnmerge from
Russell Bryant [Tue, 24 Mar 2009 21:47:17 +0000 (21:47 +0000)] 
Merged revisions 184037 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r184037 | russell | 2009-03-24 16:40:44 -0500 (Tue, 24 Mar 2009) | 6 lines

Exclude slin16, siren7, and siren14 from bandwidth=low and =medium

The default codec configuration for chan_iax2 is bandwidth=low.  I noticed
slin16 being negotiated as the codec in some test calls, but that no longer
happens after this change.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@184039 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 183914 via svnmerge from
Tilghman Lesher [Tue, 24 Mar 2009 15:28:21 +0000 (15:28 +0000)] 
Merged revisions 183914 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r183914 | tilghman | 2009-03-24 10:26:42 -0500 (Tue, 24 Mar 2009) | 10 lines

  Merged revisions 183913 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r183913 | tilghman | 2009-03-24 10:25:42 -0500 (Tue, 24 Mar 2009) | 3 lines

    Additionally note that the operator option needs an 'o' extension.
    (Related to issue #14731)
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@183916 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 183865 via svnmerge from
Tilghman Lesher [Mon, 23 Mar 2009 23:31:42 +0000 (23:31 +0000)] 
Merged revisions 183865 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r183865 | tilghman | 2009-03-23 18:28:20 -0500 (Mon, 23 Mar 2009) | 2 lines

  Allow browsers to cache images and other static content.
  (This is a regression over 1.4)
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@183867 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 183766 via svnmerge from
Mark Michelson [Mon, 23 Mar 2009 18:59:30 +0000 (18:59 +0000)] 
Merged revisions 183766 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r183766 | mmichelson | 2009-03-23 13:58:03 -0500 (Mon, 23 Mar 2009) | 13 lines

  Merged revisions 183700 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r183700 | mmichelson | 2009-03-23 12:59:28 -0500 (Mon, 23 Mar 2009) | 7 lines

    Fix a memory leak in res_monitor.c

    The only way that this leak would occur is if Monitor were started
    using the Manager interface and no File: header were given. Discovered
    while reviewing the ast_channel_ao2 review request.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@183768 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 183701 via svnmerge from
Leif Madsen [Mon, 23 Mar 2009 18:12:10 +0000 (18:12 +0000)] 
Merged revisions 183701 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r183701 | lmadsen | 2009-03-23 14:06:40 -0400 (Mon, 23 Mar 2009) | 7 lines

  Fixes a documentation error introduced during the CLI cleanup at AstriDevCon 2008.

  (closes issue #14655)
  Reported by: ulogic
  Patches:
        chan_dahdi.patch uploaded by ulogic (license 728)
  Tested by: lmadsen
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@183703 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 183560 via svnmerge from
Russell Bryant [Fri, 20 Mar 2009 17:08:12 +0000 (17:08 +0000)] 
Merged revisions 183560 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r183560 | russell | 2009-03-20 12:00:58 -0500 (Fri, 20 Mar 2009) | 10 lines

Merged revisions 183559 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r183559 | russell | 2009-03-20 11:53:25 -0500 (Fri, 20 Mar 2009) | 2 lines

Fix a crash in IAX2 registration handling found during load testing with dvossel.

........

................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@183563 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 183553-183555 via svnmerge
Mark Michelson [Fri, 20 Mar 2009 16:32:39 +0000 (16:32 +0000)] 
Blocked revisions 183553-183555 via svnmerge

........
  r183553 | mmichelson | 2009-03-20 11:19:53 -0500 (Fri, 20 Mar 2009) | 5 lines

  Add some missing symbols to main/asterisk.exports

  Hey! chan_sip.so loads now!
........
  r183554 | mmichelson | 2009-03-20 11:24:20 -0500 (Fri, 20 Mar 2009) | 3 lines

  Remove symbols I just added to main/asterisk.exports and instead rename the functions.
........
  r183555 | mmichelson | 2009-03-20 11:25:17 -0500 (Fri, 20 Mar 2009) | 3 lines

  Fix chan_sip so it builds.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@183557 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 183511 via svnmerge
Eliel C. Sardanons [Fri, 20 Mar 2009 12:25:52 +0000 (12:25 +0000)] 
Blocked revisions 183511 via svnmerge

........
  r183511 | eliel | 2009-03-20 08:12:49 -0400 (Fri, 20 Mar 2009) | 2 lines

  Remove duplicate <description> inside the xml documentation.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@183541 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 183436 via svnmerge from
David Vossel [Thu, 19 Mar 2009 20:33:19 +0000 (20:33 +0000)] 
Merged revisions 183436 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r183436 | dvossel | 2009-03-19 15:30:39 -0500 (Thu, 19 Mar 2009) | 13 lines

  Merged revisions 183386 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r183386 | dvossel | 2009-03-19 14:40:07 -0500 (Thu, 19 Mar 2009) | 6 lines

    Cleaning up a few things in detect disconnect patch

    Initialized ast_call_feature in detect_disconnect to avoid accessing uninitialized memory.  Cleaned up /param tags in features.h.  No longer send dynamic features in ast_feature_detect.

    issue #11583
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@183438 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 183321 via svnmerge from
Tilghman Lesher [Thu, 19 Mar 2009 19:19:28 +0000 (19:19 +0000)] 
Merged revisions 183321 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r183321 | tilghman | 2009-03-19 14:17:31 -0500 (Thu, 19 Mar 2009) | 15 lines

  Merged revisions 183319 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r183319 | tilghman | 2009-03-19 14:15:33 -0500 (Thu, 19 Mar 2009) | 8 lines

    Delay signalling progress until a PRI channel really signals progress.
    (closes issue #13034)
     Reported by: klaus3000
     Patches:
           20090316__bug13034.diff.txt uploaded by tilghman (license 14)
           patch_trunk_183progress_klaus3000.txt uploaded by klaus3000 (license 65)
     Tested by: klaus3000
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@183333 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 183242 via svnmerge from
Russell Bryant [Thu, 19 Mar 2009 18:14:55 +0000 (18:14 +0000)] 
Merged revisions 183242 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r183242 | russell | 2009-03-19 13:00:15 -0500 (Thu, 19 Mar 2009) | 10 lines

Merged revisions 183241 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r183241 | russell | 2009-03-19 12:52:52 -0500 (Thu, 19 Mar 2009) | 2 lines

Remove the use of RTLD_NOLOAD, as it is not behaving like expected.

........

................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@183249 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 183244 via svnmerge from
Mark Michelson [Thu, 19 Mar 2009 18:11:41 +0000 (18:11 +0000)] 
Merged revisions 183244 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r183244 | mmichelson | 2009-03-19 13:10:34 -0500 (Thu, 19 Mar 2009) | 16 lines

  Fix a memory leak associated with queues.

  For every attempt that app_queue made to place an outbound call to a queue member,
  we would allocate a queue_end_bridge structure. When the bridge for the call had
  completed, we would free the structure. Unfortunately not all call attempts actually
  end up bridged to a member, so we need to be more selective of when to allocate
  the structure. With this change, the allocation occurs in an area where we can
  guarantee that the call will be bridged.

  (closes issue #14680)
  Reported by: caspy
  Patches:
        14680.patch uploaded by mmichelson (license 60)
  Tested by: caspy
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@183246 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 183172 via svnmerge from
David Vossel [Thu, 19 Mar 2009 17:08:23 +0000 (17:08 +0000)] 
Merged revisions 183172 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r183172 | dvossel | 2009-03-19 11:28:33 -0500 (Thu, 19 Mar 2009) | 20 lines

  Merged revisions 183126 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r183126 | dvossel | 2009-03-19 11:15:16 -0500 (Thu, 19 Mar 2009) | 17 lines

    Allow disconnect feature before a call is bridged

    feature.conf has a disconnect option.  By default this option is set to '*', but it could be anything.  If a user wishes to disconnect a call before the other side answers, only '*' will work, regardless if the disconnect option is set to something else.  This is because features are unavailable until bridging takes place.  The default disconnect option, '*', was hardcoded in app_dial, which doesn't make any sense from a user perspective since they may expect it to be something different.  This patch allows features to be detected from outside of the bridge, but not operated on.  In this case, the disconnect feature can be detected before briding and handled outside of features.c.

    (closes issue #11583)
    Reported by: sobomax
    Patches:
     patch-apps__app_dial.c uploaded by sobomax (license 359)
     11583.latest-patch uploaded by murf (license 17)
     detect_disconnect.diff uploaded by dvossel (license 671)
    Tested by: sobomax, dvossel
    Review: http://reviewboard.digium.com/r/195/
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@183198 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 183117 via svnmerge from
Mark Michelson [Thu, 19 Mar 2009 16:09:41 +0000 (16:09 +0000)] 
Merged revisions 183117 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r183117 | mmichelson | 2009-03-19 11:07:54 -0500 (Thu, 19 Mar 2009) | 20 lines

  Merged revisions 183115 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r183115 | mmichelson | 2009-03-19 11:04:02 -0500 (Thu, 19 Mar 2009) | 14 lines

    Fix an issue where cancelled outgoing SIP calls would erroneously report the device as "in use."

    A user was having an issue where if an outgoing SIP call was canceled, the SIP device
    would remain in use if we had not received any response to the initial INVITE we sent out.
    The SIP device would remain in use until the autocongestion timer was exhausted.

    I tracked down the cause of this to be the section of code I am removing here. I asked several
    people what the purpose of this code was meant to be, but no one could give me any sort of
    answer as to why this was here. The person who was having this issue has been using this patch
    for several months and it has stopped the problems they have had.

    AST-196
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@183121 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 183108 via svnmerge from
Joshua Colp [Thu, 19 Mar 2009 15:43:16 +0000 (15:43 +0000)] 
Merged revisions 183108 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r183108 | file | 2009-03-19 12:37:23 -0300 (Thu, 19 Mar 2009) | 11 lines

  Improve our triggering of a T38 switchover internally when triggered by a received reinvite.

  Previously we reached across the channel bridge to get the other party's SIP dialog
  structure in order to trigger an outgoing reinvite. This is extremely dangerous to do
  and only works if bridged to another SIP channel. This patch changes this to use the
  T38 control frame method of requesting a switchover. This change also causes the SIP
  channel driver to propogate back whether the switchover worked or not instead of blindly
  accepting the incoming T38 reinvite.

  Review: http://reviewboard.digium.com/r/200/
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@183110 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 183057 via svnmerge from
Joshua Colp [Wed, 18 Mar 2009 22:28:43 +0000 (22:28 +0000)] 
Merged revisions 183057 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r183057 | file | 2009-03-18 19:22:56 -0300 (Wed, 18 Mar 2009) | 6 lines

  Fix an issue where a T38 control frame would get dropped.

  If two channels were bridged together using a generic bridge the T38
  control frame would get passed up instead of being indicated on the
  other channel.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@183067 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 183028 via svnmerge from
Jeff Peeler [Wed, 18 Mar 2009 21:19:27 +0000 (21:19 +0000)] 
Merged revisions 183028 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r183028 | jpeeler | 2009-03-18 16:18:27 -0500 (Wed, 18 Mar 2009) | 4 lines

  Add some code removed by mistake from commit 182722 that works around a file
  descriptor leak in versions of PWLib prior to 1.12.0.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@183030 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 182847 via svnmerge from
Russell Bryant [Wed, 18 Mar 2009 14:32:47 +0000 (14:32 +0000)] 
Merged revisions 182847 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r182847 | russell | 2009-03-17 21:28:55 -0500 (Tue, 17 Mar 2009) | 52 lines

Merged revisions 182810 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r182810 | russell | 2009-03-17 21:09:13 -0500 (Tue, 17 Mar 2009) | 44 lines

Fix cases where the internal poll() was not being used when it needed to be.

We have seen a number of problems caused by poll() not working properly on
Mac OSX.  If you search around, you'll find a number of references to using
select() instead of poll() to work around these issues.  In Asterisk, we've
had poll.c which implements poll() using select() internally.  However, we
were still getting reports of problems.

vadim investigated a bit and realized that at least on his system, even
though we were compiling in poll.o, the system poll() was still being used.
So, the primary purpose of this patch is to ensure that we're using the
internal poll() when we want it to be used.

The changes are:

1) Remove logic for when internal poll should be used from the Makefile.
   Instead, put it in the configure script.  The logic in the configure
   script is the same as it was in the Makefile.  Ideally, we would have
   a functionality test for the problem, but that's not actually possible,
   since we would have to be able to run an application on the _target_
   system to test poll() behavior.

2) Always include poll.o in the build, but it will be empty if AST_POLL_COMPAT
   is not defined.

3) Change uses of poll() throughout the source tree to ast_poll().  I feel
   that it is good practice to give the API call a new name when we are
   changing its behavior and not using the system version directly in all cases.
   So, normally, ast_poll() is just redefined to poll().  On systems where
   AST_POLL_COMPAT is defined, ast_poll() is redefined to ast_internal_poll().

4) Change poll() in main/poll.c to be ast_internal_poll().

It's worth noting that any code that still uses poll() directly will work fine
(if they worked fine before).  So, for example, out of tree modules that are
using poll() will not stop working or anything.  However, for modules to work
properly on Mac OSX, ast_poll() needs to be used.

(closes issue #13404)
Reported by: agalbraith
Tested by: russell, vadim

http://reviewboard.digium.com/r/198/

........

................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182946 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 182722 via svnmerge from
Jeff Peeler [Tue, 17 Mar 2009 20:52:54 +0000 (20:52 +0000)] 
Merged revisions 182722 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r182722 | jpeeler | 2009-03-17 15:47:31 -0500 (Tue, 17 Mar 2009) | 15 lines

  Allow H.323 Plus library to be used in addition to the OpenH323 library

  Chan_h323 can now be compiled against both the previously supported versions of
  OpenH323 as well as the current H.323 Plus (version 1.20.2). The configure
  script has been modified to look in the default install location of h323 to
  hopefully help avoid using the environment variables OPENH323DIR and PWLIBDIR.
  Also, the CLI command "h323 show version" has been added which indicates which
  version of h323 is in use.

  (closes issue #11261)
  Reported by: vhatz
  Patches:
        asterisk-1.6.0.6-h323plus.patch uploaded by jthurman (license 614)
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182724 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 182553 via svnmerge from
Russell Bryant [Tue, 17 Mar 2009 15:31:14 +0000 (15:31 +0000)] 
Merged revisions 182553 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r182553 | russell | 2009-03-17 10:22:12 -0500 (Tue, 17 Mar 2009) | 5 lines

Tweak the handling of the frame list inside of ast_answer().

This does not change any behavior, but moves the frames from the local frame
list back to the channel read queue using an O(n) algorithm instead of O(n^2).

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182570 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 182530 via svnmerge from
Kevin P. Fleming [Tue, 17 Mar 2009 15:00:45 +0000 (15:00 +0000)] 
Merged revisions 182530 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r182530 | kpfleming | 2009-03-17 09:59:33 -0500 (Tue, 17 Mar 2009) | 2 lines

  correct logic flaw in ast_answer() changes in r182525
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182533 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 182525 via svnmerge from
Kevin P. Fleming [Tue, 17 Mar 2009 14:39:50 +0000 (14:39 +0000)] 
Merged revisions 182525 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r182525 | kpfleming | 2009-03-17 09:38:11 -0500 (Tue, 17 Mar 2009) | 11 lines

  Improve behavior of ast_answer() to not lose incoming frames

  ast_answer(), when supplied a delay before returning to the caller, use ast_safe_sleep() to implement the delay. Unfortunately during this time any incoming frames are discarded, which is problematic for T.38 re-INVITES and other sorts of channel operations.

  When a delay is not passed to ast_answer(), it still delays for up to 500 milliseconds, waiting for media to arrive. Again, though, it discards any control frames, or non-voice media frames.

  This patch rectifies this situation, by storing all incoming frames during the delay period on a list, and then requeuing them onto the channel before returning to the caller.

  http://reviewboard.digium.com/r/196/
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182527 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 182521 via svnmerge
Sean Bright [Tue, 17 Mar 2009 14:36:51 +0000 (14:36 +0000)] 
Blocked revisions 182521 via svnmerge

........
  r182521 | seanbright | 2009-03-17 10:24:53 -0400 (Tue, 17 Mar 2009) | 3 lines

  Don't include a space before the optional extra text that may follow a help
  string.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182523 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 182450 via svnmerge from
Tilghman Lesher [Tue, 17 Mar 2009 05:54:07 +0000 (05:54 +0000)] 
Merged revisions 182450 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r182450 | tilghman | 2009-03-17 00:51:54 -0500 (Tue, 17 Mar 2009) | 14 lines

  Merged revisions 182449 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r182449 | tilghman | 2009-03-17 00:50:52 -0500 (Tue, 17 Mar 2009) | 7 lines

    Fix race in astdb
    The underlying db1 implementation does not fully isolate the pages retrieved
    from astdb, so the lock protecting accesses needs to be extended until the
    copy from the shared memory structure is done.
    (closes issue #14682)
     Reported by: makoto
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182452 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 182408 via svnmerge
Richard Mudgett [Tue, 17 Mar 2009 02:10:16 +0000 (02:10 +0000)] 
Blocked revisions 182408 via svnmerge

........
  r182408 | rmudgett | 2009-03-16 20:54:53 -0500 (Mon, 16 Mar 2009) | 8 lines

  OPENR2 uses an incorrect string value if the extension delimiter is not present.

  *  Fixed OPENR2 using an incorrect string value if the extension
  delimiter is not present in the Dial() function.  This was fixed for
  SS7 and PRI in trunk -r172400.
  *  Made OPENR2 stripmsd behavior the same as the SS7, PRI, and others.
  *  Removed trailing whitespace that appeared with OPENR2.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182411 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 182362 via svnmerge
Russell Bryant [Mon, 16 Mar 2009 20:54:01 +0000 (20:54 +0000)] 
Blocked revisions 182362 via svnmerge

........
r182362 | russell | 2009-03-16 15:53:21 -0500 (Mon, 16 Mar 2009) | 2 lines

Update UPGRADE.txt and CHANGES for 1.6.3

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182364 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 182355 via svnmerge
Russell Bryant [Mon, 16 Mar 2009 20:39:34 +0000 (20:39 +0000)] 
Blocked revisions 182355 via svnmerge

........
r182355 | russell | 2009-03-16 15:35:58 -0500 (Mon, 16 Mar 2009) | 29 lines

Add MFC/R2 support for chan_dahdi.

This commit introduces official support for R2 signaling in chan_dahdi.  The
modifications to chan_dahdi, and the supporting library, LibOpenR2, were both
written by Moises Silva.

Many users are using this code, or a variant of it, in Asterisk 1.2, 1.4 and 1.6
in Brazil, México and Argentina. An unknown number of users (but at least 1)
are using it in each of the following countries: Colombia, Nepal, Thailand,
Venezuela, Perú, and probably others.

To use this code, LibOpenR2 must be installed from http://www.libopenr2.org/.
Information about configuration can be found in configs/chan_dahdi.conf.sample.

The code committed is the most up to date version, which was being maintained
in svn/asterisk/team/moy/mfcr2/.

I would also like to include a Thank You to the many others that tested this
code beyond those listed in this commit message.  These are the names that I
could find in the mantis issue.

(closes issue #12509)
Reported by: moy
Patches:
      chan_zap-mfr2.patch uploaded by moy (license 222)
Tested by: moy, korihor, viniciusfontes, Skarmeth, loloski, asbestoshead, titogarrido, heliocoelhojr, konsultex, ncorrare, ecarruda, rtorresduque, PTorres, ychen

Review: http://reviewboard.digium.com/r/40/

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182357 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 182282 via svnmerge from
David Vossel [Mon, 16 Mar 2009 17:53:54 +0000 (17:53 +0000)] 
Merged revisions 182282 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r182282 | dvossel | 2009-03-16 12:49:58 -0500 (Mon, 16 Mar 2009) | 13 lines

  Merged revisions 182281 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r182281 | dvossel | 2009-03-16 12:47:42 -0500 (Mon, 16 Mar 2009) | 7 lines

    Randomize IAX2 encryption padding

    The 16-32 byte random padding at the beginning of an encrypted IAX2 frame turns out to not be all that random at all.  This patch calls ast_random to fill the padding buffer with random data.  The padding is randomized at the beginning of every encrypted call and for every encrypted retransmit frame.

    Review: http://reviewboard.digium.com/r/193/
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182284 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 182211,182278 via svnmerge from
Tilghman Lesher [Mon, 16 Mar 2009 17:38:50 +0000 (17:38 +0000)] 
Merged revisions 182211,182278 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r182211 | tilghman | 2009-03-16 10:50:55 -0500 (Mon, 16 Mar 2009) | 14 lines

  Merged revisions 182208 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r182208 | tilghman | 2009-03-16 10:39:15 -0500 (Mon, 16 Mar 2009) | 7 lines

    Fixup glare detection, to fix a memory leak of a local pvt structure.
    (closes issue #14656)
     Reported by: caspy
     Patches:
           20090313__bug14656__2.diff.txt uploaded by tilghman (license 14)
     Tested by: caspy
  ........
................
  r182278 | tilghman | 2009-03-16 12:33:38 -0500 (Mon, 16 Mar 2009) | 7 lines

  Fix an off-by-one error in the FILE() function, and extend FILE()'s length parameter to work like variable substitution.
  Previously, FILE() returned one less character than specified, due to the
  terminating NULL.  Both the offset and length parameters now behave
  identically to the way variable substitution offsets and lengths also work.
  (closes issue #14670)
   Reported by: BMC
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182280 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 182171 via svnmerge from
Joshua Colp [Mon, 16 Mar 2009 14:00:21 +0000 (14:00 +0000)] 
Merged revisions 182171 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r182171 | file | 2009-03-16 10:58:24 -0300 (Mon, 16 Mar 2009) | 7 lines

  Fix a memory leak in the ast_answer / __ast_answer API call.

  For a channel that is not yet answered this API call will wait
  until a voice frame is received on the channel before returning.
  It does this by waiting for frames on the channel and reading them
  in. The frames read in were not freed when they should have been.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182173 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 182121 via svnmerge from
Mark Michelson [Fri, 13 Mar 2009 21:27:08 +0000 (21:27 +0000)] 
Merged revisions 182121 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r182121 | mmichelson | 2009-03-13 16:26:20 -0500 (Fri, 13 Mar 2009) | 6 lines

  Change faulty comparison used when announcing average hold minutes and seconds

  (closes issue #14227)
  Reported by: caspy
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182123 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 182071 via svnmerge
Mark Michelson [Fri, 13 Mar 2009 17:49:52 +0000 (17:49 +0000)] 
Blocked revisions 182071 via svnmerge

........
  r182071 | mmichelson | 2009-03-13 12:49:01 -0500 (Fri, 13 Mar 2009) | 3 lines

  Remove ast_ prefix from functions which are not public.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182073 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 182029 via svnmerge from
Mark Michelson [Fri, 13 Mar 2009 17:39:49 +0000 (17:39 +0000)] 
Merged revisions 182029 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r182029 | mmichelson | 2009-03-13 12:26:43 -0500 (Fri, 13 Mar 2009) | 41 lines

  Merged revisions 181990 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r181990 | mmichelson | 2009-03-13 12:12:32 -0500 (Fri, 13 Mar 2009) | 35 lines

    Check the DYNAMIC_FEATURES of both the chan and peer when interpreting DTMF.

    Dynamic features defined in the applicationmap section of features.conf allow
    one to specify whether the caller, callee, or both have the ability to use the
    feature. The documentation in the features.conf.sample file could be interpreted
    to mean that one only needs to set the DYNAMIC_FEATURES channel variable on the
    calling channel in order to allow for the callee to be able to use the features
    which he should have permission to use. However, the DYNAMIC_FEATURES variable
    would only be read from the channel of the participant that pressed the DTMF
    sequence to activate the feature. The result of this was that the callee was
    unable to use dynamic features unless the dialplan writer had taken measures
    to be sure that the DYNAMIC_FEATURES variable was set on the callee's channel.

    This commit changes the behavior of ast_feature_interpret to concatenate the
    values of DYNAMIC_FEATURES from both parties involved in the bridge. The features
    themselves determine who has permission to use them, so there is no reason to believe
    that one side of the bridge could gain the ability to perform an action that they
    should not have the ability to perform.

    Kevin Fleming pointed out on the asterisk-users list that the typical way that this
    was worked around in the past was by setting _DYNAMIC_FEATURES on the calling channel
    so that the value would be inherited by the called channel. While this works, the
    documentation alone is not enough to figure out why this is necessary for the callee
    to be able to use dynamic features. In this particular case, changing the code to match
    the documentation is safe, easy, and will generally make things easier for people for
    future installations.

    This bug was originally reported on the asterisk-users list by David Ruggles.

    (closes issue #14657)
    Reported by: mmichelson
    Patches:
          14657.patch uploaded by mmichelson (license 60)
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182068 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 182022 via svnmerge from
Joshua Colp [Fri, 13 Mar 2009 17:29:26 +0000 (17:29 +0000)] 
Merged revisions 182022 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r182022 | file | 2009-03-13 14:25:09 -0300 (Fri, 13 Mar 2009) | 7 lines

  Fix an issue with requesting a T38 reinvite before the call is answered.

  The code responsible for sending the T38 reinvite did not check if an INVITE was
  already being handled. This caused things to get confused and the call to fail.
  The code now defers sending the T38 reinvite until the current INVITE is done being
  handled.

  (issue AST-191)
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@182042 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 181985 via svnmerge from
Kevin P. Fleming [Fri, 13 Mar 2009 16:58:00 +0000 (16:58 +0000)] 
Merged revisions 181985 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r181985 | kpfleming | 2009-03-13 11:55:38 -0500 (Fri, 13 Mar 2009) | 1 line

  improve a bit of suboptimal code
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@181987 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 181846 via svnmerge from
Mark Michelson [Thu, 12 Mar 2009 21:45:48 +0000 (21:45 +0000)] 
Merged revisions 181846 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r181846 | mmichelson | 2009-03-12 16:43:51 -0500 (Thu, 12 Mar 2009) | 3 lines

  Run the macro on the queue member's channel when he answers, not the caller's channel.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@181849 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 181769 via svnmerge from
Mark Michelson [Thu, 12 Mar 2009 18:36:34 +0000 (18:36 +0000)] 
Merged revisions 181769 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r181769 | mmichelson | 2009-03-12 13:30:58 -0500 (Thu, 12 Mar 2009) | 28 lines

  Merged revisions 181768 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r181768 | mmichelson | 2009-03-12 13:29:48 -0500 (Thu, 12 Mar 2009) | 22 lines

    Properly send a 487 on an INVITE we have not responded to if we receive a BYE.

    If we receive an INVITE from an endpoint and then later receive a BYE from that
    same endpoint before we have sent a final response for the INVITE, then we need
    to respond to the INVITE with a 487.

    There was logic in the code prior to this commit which seemed to exist solely to
    handle this situation, but there was one condition in an if statement which
    was incorrect. The only way we would send a 487 was if the sip_pvt had no owner
    channel. This made no sense since we created the owner channel when we received
    the INVITE, meaning that the majority of the time we would never send the 487.
    The 487 being sent should not rely on whether we have created a channel. Its
    delivery should be dependent on the current state of the initial INVITE transaction.
    With this commit, that logic is now correctly in place.

    (closes issue #14149)
    Reported by: legranjl
    Patches:
          14149.patch uploaded by mmichelson (license 60)
    Tested by: legranjl
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@181771 65c4cc65-6c06-0410-ace0-fbb531ad65f3