]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
16 years agoMerged revisions 190093 via svnmerge from
Tilghman Lesher [Wed, 22 Apr 2009 21:42:58 +0000 (21:42 +0000)] 
Merged revisions 190093 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r190093 | tilghman | 2009-04-22 16:38:15 -0500 (Wed, 22 Apr 2009) | 14 lines

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

  ........
    r190092 | tilghman | 2009-04-22 16:35:03 -0500 (Wed, 22 Apr 2009) | 7 lines

    Detect availability of pthread_rwlock_timedwrlock() before using it.
    (closes issue #14930)
     Reported by: tilghman
     Patches:
           20090420__bug14930.diff.txt uploaded by tilghman (license 14)
     Tested by: mvanbaak, tilghman
  ........
................

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

16 years agoMerged revisions 190057 via svnmerge from
Jeff Peeler [Wed, 22 Apr 2009 21:18:11 +0000 (21:18 +0000)] 
Merged revisions 190057 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r190057 | jpeeler | 2009-04-22 16:15:55 -0500 (Wed, 22 Apr 2009) | 9 lines

  Fix building of chan_h323 with gcc-3.3

  There seems to be a bug with old versions of g++ that doesn't allow a structure
  member to use the name list. Rename list member to group_list in ast_group_info
  and change the few places it is used.

  (closes issue #14790)
  Reported by: stuarth
........

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

16 years agoMerged revisions 189993 via svnmerge from
Jeff Peeler [Wed, 22 Apr 2009 19:41:10 +0000 (19:41 +0000)] 
Merged revisions 189993 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r189993 | jpeeler | 2009-04-22 14:23:49 -0500 (Wed, 22 Apr 2009) | 18 lines

  Make chan_h323 respect packetization settings

  Previously, packetization settings were ignored and now they are not. A new
  config option 'autoframing' has been added to mirror the way chan_sip handles
  it. Turning on the autoframing option (available both as a global option or per
  peer) overrides the local settings with the remote packetization settings.
  Testing was performed with varying packetization levels with the following
  codecs: ulaw, alaw, gsm, and g729.

  (closes issue #12415)
  Reported by: pj
  Patches:
        2009012200_h323packetization.diff.txt uploaded by mvanbaak (license 7),
        modified by me
........

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

16 years agoMerged revisions 189951 via svnmerge from
Russell Bryant [Wed, 22 Apr 2009 17:59:58 +0000 (17:59 +0000)] 
Merged revisions 189951 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r189951 | russell | 2009-04-22 11:56:43 -0500 (Wed, 22 Apr 2009) | 2 lines

Fix call parking callback.  Pipes -> Commas.

........

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

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

........
  r189911 | tilghman | 2009-04-22 11:01:30 -0500 (Wed, 22 Apr 2009) | 7 lines

  Do not continue to receive DTMF, when the channel is hungup and about to be destroyed.
  (closes issue #14858)
   Reported by: barryf
   Patches:
         20090421__bug14858.diff.txt uploaded by tilghman (license 14)
   Tested by: barryf
........

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

16 years agoMerged revisions 189850 via svnmerge from
Michiel van Baak [Wed, 22 Apr 2009 14:33:59 +0000 (14:33 +0000)] 
Merged revisions 189850 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r189850 | mvanbaak | 2009-04-22 16:30:47 +0200 (Wed, 22 Apr 2009) | 19 lines

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

  ........
    r189849 | mvanbaak | 2009-04-22 16:29:28 +0200 (Wed, 22 Apr 2009) | 12 lines

    replace sed with tr to remove \r from downloaded file

    On some systems, sed does not recognize \r in the pattern the way it
    was used here.
    Use tr instead because this works the same across systems.

    (closes issue #14936)
    Reported by: leobrown
    Patches:
          2009042201_14936.diff.txt uploaded by mvanbaak (license 7)
       Tested by: leobrown, mvanbaak
  ........
................

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

16 years agoMerged revisions 189813 via svnmerge from
Tilghman Lesher [Wed, 22 Apr 2009 06:36:56 +0000 (06:36 +0000)] 
Merged revisions 189813 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r189813 | tilghman | 2009-04-22 01:33:08 -0500 (Wed, 22 Apr 2009) | 3 lines

  Detect liblua on SuSE, and add libm for linking for Fedora.
  (Reported via the -dev list, Subject: Compiling Asterisk with LUA)
........

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

16 years agoMerged revisions 189771 via svnmerge from
David Vossel [Tue, 21 Apr 2009 20:42:55 +0000 (20:42 +0000)] 
Merged revisions 189771 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r189771 | dvossel | 2009-04-21 15:28:37 -0500 (Tue, 21 Apr 2009) | 11 lines

  Fixes segfault when switching UDP to TCP in sip.conf after reload.

  If transport in sip.conf is switched from UDP to TCP, Asterisk segfaults right after issuing a sip reload.  The problem is the socket type is changed to TCP but the fd may still be present for UDP.  Later, when the TCP session should be created or set using an existing one, it isn't because the old file descriptor is still present.  Now every time transport is changed during a sip.conf reload, the file descriptor is set to -1, signifying it must be created or found.

  (closes issue #14727)
  Reported by: pj
  Tested by: dvossel

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

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

16 years agoMerged revisions 189665 via svnmerge from
Doug Bailey [Tue, 21 Apr 2009 15:58:10 +0000 (15:58 +0000)] 
Merged revisions 189665 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r189665 | dbailey | 2009-04-21 10:54:16 -0500 (Tue, 21 Apr 2009) | 9 lines

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

  ........
    r189664 | dbailey | 2009-04-21 10:52:13 -0500 (Tue, 21 Apr 2009) | 2 lines

    Remove daemon call on systems that do not support forking.
  ........
................

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

16 years agoMerged revisions 189629 via svnmerge from
Doug Bailey [Tue, 21 Apr 2009 15:20:22 +0000 (15:20 +0000)] 
Merged revisions 189629 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r189629 | dbailey | 2009-04-21 09:28:04 -0500 (Tue, 21 Apr 2009) | 10 lines

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

  ........
    r189601 | dbailey | 2009-04-21 09:00:55 -0500 (Tue, 21 Apr 2009) | 3 lines

    Add check in configure script to check for GLOB_NOMAGIC and GLOB_BRACE in glob.h
    This allows config.c to compile when linked against uclibc that does not support these parameters
  ........
................

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

16 years agoMerged revisions 189516 via svnmerge from
Terry Wilson [Mon, 20 Apr 2009 21:38:11 +0000 (21:38 +0000)] 
Merged revisions 189516 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r189516 | twilson | 2009-04-20 16:29:29 -0500 (Mon, 20 Apr 2009) | 9 lines

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

  ........
    r189465 | twilson | 2009-04-20 16:10:27 -0500 (Mon, 20 Apr 2009) | 2 lines

    Update CDR appropriately when AST_CAUSE_NO_ANSWER is set
  ........
................

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

16 years agoMerged revisions 189495 via svnmerge from
Terry Wilson [Mon, 20 Apr 2009 21:36:49 +0000 (21:36 +0000)] 
Merged revisions 189495 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r189495 | twilson | 2009-04-20 16:24:34 -0500 (Mon, 20 Apr 2009) | 9 lines

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

  ........
    r189463 | twilson | 2009-04-20 16:00:52 -0500 (Mon, 20 Apr 2009) | 2 lines

    Don't treat a NOANSWER like a CHANUNAVAIL
  ........
................

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

16 years agoMerged revisions 189464 via svnmerge from
Sean Bright [Mon, 20 Apr 2009 21:34:35 +0000 (21:34 +0000)] 
Merged revisions 189464 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r189464 | seanbright | 2009-04-20 17:09:59 -0400 (Mon, 20 Apr 2009) | 20 lines

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

  ........
    r189462 | seanbright | 2009-04-20 16:58:39 -0400 (Mon, 20 Apr 2009) | 13 lines

    Properly handle @s within hints in AEL.

    AEL was not handling the case of a device hint containing an @ symbol, which
    caused parking hints (e.g. hint(park:exten@context)) to error out the parser.
    This patch makes AEL treat the @ the same way it treats colon and ampersand
    now, meaning the characters are included in verbatim.

    (closes issue #14941)
    Reported by: bpgoldsb
    Patches:
          bug14941.patch uploaded by seanbright (license 71)
    Tested by: bpgoldsb
  ........
................

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

16 years agoMerged revisions 189419 via svnmerge from
Doug Bailey [Mon, 20 Apr 2009 19:47:43 +0000 (19:47 +0000)] 
Merged revisions 189419 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r189419 | dbailey | 2009-04-20 14:28:16 -0500 (Mon, 20 Apr 2009) | 11 lines

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

  ........
    r189391 | dbailey | 2009-04-20 14:10:56 -0500 (Mon, 20 Apr 2009) | 4 lines

    Clean up problem with manager implementation of mmap where it was not testing against MAP_FAILED response.
    Got rid of shadowed variable used in processign the mmap results.
    Change test of mmap results to compare against MAP_FAILED
  ........
................

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

16 years agoMerged revisions 189350 via svnmerge from
Joshua Colp [Mon, 20 Apr 2009 17:08:26 +0000 (17:08 +0000)] 
Merged revisions 189350 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r189350 | file | 2009-04-20 14:05:15 -0300 (Mon, 20 Apr 2009) | 10 lines

  Fix a bug with non-UDP connections that caused dialogs to not get freed.

  This issue crept up because of a reference count issue on non-UDP based dialogs.
  The dialog reference count was increased when transmitting a packet reliably but never
  decreased. This caused the dialog structure to hang around despite being unlinked from
  the dialogs container.

  (closes issue #14919)
  Reported by: vrban
........

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

16 years agoMerged revisions 189278 via svnmerge from
Mark Michelson [Mon, 20 Apr 2009 14:06:49 +0000 (14:06 +0000)] 
Merged revisions 189278 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r189278 | mmichelson | 2009-04-20 09:05:27 -0500 (Mon, 20 Apr 2009) | 18 lines

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

  ........
    r189277 | mmichelson | 2009-04-20 09:04:41 -0500 (Mon, 20 Apr 2009) | 12 lines

    Move the check for chan->fdno == -1 to after the zombie/hangup check.

    Many users were finding that their hung up channels were staying up and
    causing 100% CPU usage.

    (issue #14723)
    Reported by: seadweller
    Patches:
          14723_1-4-tip.patch uploaded by mmichelson (license 60)
    Tested by: falves11, bamby
  ........
................

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

16 years agoMerged revisions 189204 via svnmerge from
David Vossel [Sat, 18 Apr 2009 01:38:21 +0000 (01:38 +0000)] 
Merged revisions 189204 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r189204 | dvossel | 2009-04-17 20:28:45 -0500 (Fri, 17 Apr 2009) | 18 lines

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

  ........
    r189203 | dvossel | 2009-04-17 20:27:19 -0500 (Fri, 17 Apr 2009) | 12 lines

    Fixed autologoff in agents.conf not working when agent logs in via AgentLogin app

    An agent logs in by calling an extension that calls the AgentLogin app.  In agents.conf ackcall=always is set, so when they get a call they have the choice to either acknowledge it or ignore it.  autologoff=10 is set as well, so if the agent ignores the call over 10sec one may assume that the agent should be logged out (and in this case hungup on as well), but this was not happening.

    (closes issue #14091)
    Reported by: evandro
    Patches:
          autologoff.diff uploaded by dvossel (license 671)

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

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

16 years agoMerged revisions 189137 via svnmerge from
Richard Mudgett [Fri, 17 Apr 2009 21:55:34 +0000 (21:55 +0000)] 
Merged revisions 189137 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r189137 | rmudgett | 2009-04-17 16:48:10 -0500 (Fri, 17 Apr 2009) | 17 lines

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

  ........
    r188833 | rmudgett | 2009-04-16 16:37:58 -0500 (Thu, 16 Apr 2009) | 4 lines

    Only disable mISDN DSP if Asterisk DSP is enabled. Leave jitter setting alone.

    JIRA ABE-1835
  ........
    r189134 | rmudgett | 2009-04-17 16:27:55 -0500 (Fri, 17 Apr 2009) | 4 lines

    Modifed/added some debug messages.

    JIRA ABE-1835
  ........
................

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

16 years agoMerged revisions 189097 via svnmerge from
Mark Michelson [Fri, 17 Apr 2009 20:21:26 +0000 (20:21 +0000)] 
Merged revisions 189097 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r189097 | mmichelson | 2009-04-17 15:20:23 -0500 (Fri, 17 Apr 2009) | 13 lines

  Prevent a crash when SIP blonde transferring an unbridged call.

  If one attempts to use the attended transfer button on a SIP phone
  to transfer an unbridged call (such as a call to an IVR) but hangs
  up while the target of the transfer is still ringing, we need to not
  crash.

  The problem was that ast_hangup was called from outside the channel
  thread.

  AST-211
........

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

16 years agoMerged revisions 189077 via svnmerge from
Sean Bright [Fri, 17 Apr 2009 19:46:04 +0000 (19:46 +0000)] 
Merged revisions 189077 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r189077 | seanbright | 2009-04-17 15:36:38 -0400 (Fri, 17 Apr 2009) | 1 line

  Fix copy/paste error with 'transmit silence' flag.
........

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

16 years agoMerged revisions 189010 via svnmerge from
Matthew Nicholson [Fri, 17 Apr 2009 17:33:27 +0000 (17:33 +0000)] 
Merged revisions 189010 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r189010 | mnicholson | 2009-04-17 10:44:18 -0500 (Fri, 17 Apr 2009) | 12 lines

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

  ........
    r189009 | mnicholson | 2009-04-17 10:43:09 -0500 (Fri, 17 Apr 2009) | 5 lines

    Make Busy() application set the CDR disposition to BUSY.

    (closes issue #14306)
    Reported by: cristiandimache
  ........
................

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

16 years agoMerged revisions 188947 via svnmerge from
Joshua Colp [Fri, 17 Apr 2009 14:48:50 +0000 (14:48 +0000)] 
Merged revisions 188947 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r188947 | file | 2009-04-17 11:44:56 -0300 (Fri, 17 Apr 2009) | 22 lines

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

  ........
    r188946 | file | 2009-04-17 11:41:25 -0300 (Fri, 17 Apr 2009) | 15 lines

    Fix a bug where a value used to create the channel name was bogus.

    This commit fixes the scenario where an incoming call is authenticated
    using a peer entry. Previously the channel name was created using either
    the username setting from the sip.conf entry or the IP address that the
    call came from. Now the channel name will be created using the peer name
    itself. This commit will not change the way the channel name is generated
    for users or friends.

    (closes issue #14256)
    Reported by: Nick_Lewis
    Patches:
          chan_sip.c-chname.patch uploaded by Nick (license 657)
    Tested by: Nick_Lewis, file
  ........
................

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

16 years agoBlocked revisions 188942 via svnmerge
Mark Michelson [Fri, 17 Apr 2009 14:34:09 +0000 (14:34 +0000)] 
Blocked revisions 188942 via svnmerge

........
  r188942 | mmichelson | 2009-04-17 09:33:50 -0500 (Fri, 17 Apr 2009) | 5 lines

  Fix a spacing issue that I claimed I would when I committed this code.

  Nothing major though.
........

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

16 years agoMerged revisions 188938 via svnmerge from
Joshua Colp [Fri, 17 Apr 2009 14:28:45 +0000 (14:28 +0000)] 
Merged revisions 188938 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r188938 | file | 2009-04-17 11:26:53 -0300 (Fri, 17 Apr 2009) | 11 lines

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

  ........
    r188937 | file | 2009-04-17 11:25:57 -0300 (Fri, 17 Apr 2009) | 4 lines

    Fix a situation where the DAHDI channel private structure lock was not unlocked when it should have been.

    (issue AST-210)
  ........
................

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

16 years agoBlocked revisions 188901 via svnmerge
Mark Michelson [Fri, 17 Apr 2009 13:30:56 +0000 (13:30 +0000)] 
Blocked revisions 188901 via svnmerge

........
  r188901 | mmichelson | 2009-04-17 08:29:33 -0500 (Fri, 17 Apr 2009) | 28 lines

  Several fixes to the extenpatternmatchnew logic.

  1. Differentiate between literal characters in an extension
  and characters that should be treated as a pattern match. Prior to
  these fixes, an extension such as NNN would be treated as a pattern,
  rather than a literal string of N's.

  2. Fixed the logic used when matching an extension with a bracketed
  expression, such as 2[5-7]6.

  3. Removed all areas of code that were executed when NOT_NOW was
  #defined. The code in these areas had the potential to crash, for
  one thing, and the actual intent of these blocks seemed counterproductive.

  4. Fixed many many coding guidelines problems I encountered while looking
  through the corresponding code.

  5. Added failure cases and warning messages for when duplicate extensions
  are encountered.

  6. Miscellaneous fixes to incorrect or redundant statements.

  (closes issue #14615)
  Reported by: steinwej
  Tested by: mmichelson

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

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

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

................
  r188836 | tilghman | 2009-04-16 16:57:37 -0500 (Thu, 16 Apr 2009) | 14 lines

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

  ........
    r188835 | tilghman | 2009-04-16 16:41:13 -0500 (Thu, 16 Apr 2009) | 7 lines

    Only update realtime, if global option rtupdate != false
    (closes issue #14885)
     Reported by: deepesh
     Patches:
           20090413__bug14885.diff.txt uploaded by tilghman (license 14)
     Tested by: deepesh
  ........
................

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

16 years agoMerged revisions 188774 via svnmerge from
Tilghman Lesher [Thu, 16 Apr 2009 21:05:35 +0000 (21:05 +0000)] 
Merged revisions 188774 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r188774 | tilghman | 2009-04-16 16:03:31 -0500 (Thu, 16 Apr 2009) | 11 lines

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

  ........
    r188773 | tilghman | 2009-04-16 16:02:29 -0500 (Thu, 16 Apr 2009) | 4 lines

    Umask should not be exported into global namespace.
    (closes issue #14912)
     Reported by: jcapp
  ........
................

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

16 years agoMerged revisions 188647 via svnmerge from
David Vossel [Wed, 15 Apr 2009 22:12:39 +0000 (22:12 +0000)] 
Merged revisions 188647 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r188647 | dvossel | 2009-04-15 17:10:04 -0500 (Wed, 15 Apr 2009) | 18 lines

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

  ........
    r188646 | dvossel | 2009-04-15 17:08:40 -0500 (Wed, 15 Apr 2009) | 12 lines

    National prefix inserted even when caller ID not available

    When the caller ID is restricted, the expected behavior is for the caller id to be blank.  In chan_dahdi, the national prefix is placed onto the callers number even if its restricted (empty) causing the caller id to be the national prefix rather than blank.

    (closes issue #13207)
    Reported by: shawkris
    Patches:
          national_prefix.diff uploaded by dvossel (license 671)

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

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

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

................
  r188585 | mmichelson | 2009-04-15 15:17:33 -0500 (Wed, 15 Apr 2009) | 13 lines

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

  ........
    r188582 | mmichelson | 2009-04-15 15:04:20 -0500 (Wed, 15 Apr 2009) | 7 lines

    Update ast_readvideo_callback to match ast_readaudio_callback.

    This fixes potential refcount errors that may occur on ast_filestreams.

    AST-208
  ........
................

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

16 years agoBlocked revisions 188544 via svnmerge
Mark Michelson [Wed, 15 Apr 2009 15:25:18 +0000 (15:25 +0000)] 
Blocked revisions 188544 via svnmerge

........
  r188544 | mmichelson | 2009-04-15 10:24:50 -0500 (Wed, 15 Apr 2009) | 9 lines

  Make the cancellation of the dial timeout on a call forward optional.

  This introduces the 'z' option to app_dial. With it set, a call forward
  will cancel any timeout originally set for this instance of the Dial
  application.

  AST-207
........

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

16 years agoBlocked revisions 188515 via svnmerge
Jeff Peeler [Wed, 15 Apr 2009 14:58:16 +0000 (14:58 +0000)] 
Blocked revisions 188515 via svnmerge

........
  r188515 | jpeeler | 2009-04-15 09:57:20 -0500 (Wed, 15 Apr 2009) | 3 lines

  Don't try to do anything in pri_check_restart with service messages unless
  libpri supports it.
........

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

16 years agoMerged revisions 188470 via svnmerge from
Mark Michelson [Tue, 14 Apr 2009 23:29:04 +0000 (23:29 +0000)] 
Merged revisions 188470 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r188470 | mmichelson | 2009-04-14 18:28:13 -0500 (Tue, 14 Apr 2009) | 3 lines

  Fix a couple of queue member reference leaks.
........

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

16 years agoMerged revisions 188413 via svnmerge from
Joshua Colp [Tue, 14 Apr 2009 17:43:19 +0000 (17:43 +0000)] 
Merged revisions 188413 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r188413 | file | 2009-04-14 14:40:50 -0300 (Tue, 14 Apr 2009) | 5 lines

  Fix an incorrect clock rate when sending T140 text.

  (closes issue #14029)
  Reported by: epicac
........

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

16 years agoBlocked revisions 188378 via svnmerge
Jeff Peeler [Tue, 14 Apr 2009 16:50:02 +0000 (16:50 +0000)] 
Blocked revisions 188378 via svnmerge

........
  r188378 | jpeeler | 2009-04-14 11:49:12 -0500 (Tue, 14 Apr 2009) | 1 line

  change some capitalization
........

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

16 years agoBlocked revisions 188342 via svnmerge
Jeff Peeler [Tue, 14 Apr 2009 15:55:45 +0000 (15:55 +0000)] 
Blocked revisions 188342 via svnmerge

........
  r188342 | jpeeler | 2009-04-14 10:54:16 -0500 (Tue, 14 Apr 2009) | 33 lines

  Add service maintenance message support

  This is the companion commit to libpri r732. Service messages are now supported
  for switch types 4ess/5ess. A new option service_message_support has been added
  to chan_dahdi.conf and is noted in the sample config file. The service message
  support is turned off by default. The current implementation relies on AstDB
  to keep track of channel state, which allows the statuses to be preserved
  across Asterisk restarts. Below is a description of the storage format.

  The state and reason for the service state are in the form <state>:<reason>,
  where:
  <state> ::= { 'O' }  // 'O' â€“ Out Of Service
  <reason> ::= { '0' | '1' | '2' | '3' }, where:
  '0' â€“ No reason (backwards compatibility)
  '1' â€“ NEAR END
  '2' â€“ FAR END
  '3' â€“ both NEAR and FAR END

  The new CLI commands to handle channel service state are:
  pri service disable channel <chan>
  pri service enable channel <chan>

  Many people contributed to the development of this functionality. Because I
  entered at the very end I do not know the exact history. Special thanks to
  all who moved the bug forward one way or another:
  cmaj, PCadach, markster, mattf, drmac, MikeJ, serge-v, murf, kanelbullar, Seb7,
  tilghman, lmadsen, and especially dhubbard (he answered lots of my questions
  and did a large portion of the work)

  (closes issue #3450)
  Reported by: cmaj
........

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

16 years agoMerged revisions 188247 via svnmerge from
Joshua Colp [Tue, 14 Apr 2009 13:18:10 +0000 (13:18 +0000)] 
Merged revisions 188247 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r188247 | file | 2009-04-14 10:14:21 -0300 (Tue, 14 Apr 2009) | 7 lines

  Fix a bug with the change I made yesterday to outbound proxy support.

  Per discussion with oej on IRC we need the actual IP address, not the
  outbound proxy IP address, in the sa field. Upon further inspection
  this should make the behaviour of all other uses of the outbound proxy
  in the code.
........

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

16 years agoMerged revisions 188210 via svnmerge from
Tilghman Lesher [Tue, 14 Apr 2009 05:46:31 +0000 (05:46 +0000)] 
Merged revisions 188210 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r188210 | tilghman | 2009-04-14 00:45:13 -0500 (Tue, 14 Apr 2009) | 2 lines

  As suggested by Russell, warn users when their dialplan arguments contain pipes, but not commas.
........

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

16 years agoMerged revisions 188206 via svnmerge from
Tilghman Lesher [Tue, 14 Apr 2009 05:29:11 +0000 (05:29 +0000)] 
Merged revisions 188206 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r188206 | tilghman | 2009-04-14 00:27:53 -0500 (Tue, 14 Apr 2009) | 6 lines

  Application delimiter is ',', not '|'.
  (closes issue #14881)
   Reported by: stegro
   Patches:
         smsq.patch uploaded by stegro (license 752)
........

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

16 years agoMerged revisions 188102 via svnmerge from
Mark Michelson [Mon, 13 Apr 2009 19:33:04 +0000 (19:33 +0000)] 
Merged revisions 188102 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r188102 | mmichelson | 2009-04-13 14:31:48 -0500 (Mon, 13 Apr 2009) | 5 lines

  Fix another crash related to cached realtime music on hold.

  This was another off-by-one problem caused by moh_register.
........

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

16 years agoMerged revisions 188067 via svnmerge from
Joshua Colp [Mon, 13 Apr 2009 16:32:34 +0000 (16:32 +0000)] 
Merged revisions 188067 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r188067 | file | 2009-04-13 13:28:06 -0300 (Mon, 13 Apr 2009) | 10 lines

  Fix a bug where using an outbound proxy would cause the local address to be 127.0.0.1.

  Copy the outbound proxy IP address into the SIP dialog structure as the IP address we will
  be sending to. This has to be done because the logic that determines what local IP address to use
  in the SIP messages is not aware of an outbound proxy being in place. It only knows what IP address
  we are sending to.

  (closes issue #12006)
  Reported by: mnicholson
........

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

16 years agoMerged revisions 188032 via svnmerge from
Mark Michelson [Mon, 13 Apr 2009 14:20:30 +0000 (14:20 +0000)] 
Merged revisions 188032 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r188032 | mmichelson | 2009-04-13 09:17:56 -0500 (Mon, 13 Apr 2009) | 6 lines

  Set all queue variables on both the caller and member channels.

  This allows for the variables to be accessed if a member macro is run.
  Thanks to Grigoriy Puzankin for bringing this up on the -dev list.
........

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

16 years agoMerged revisions 187906 via svnmerge from
Jeff Peeler [Fri, 10 Apr 2009 20:28:18 +0000 (20:28 +0000)] 
Merged revisions 187906 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r187906 | jpeeler | 2009-04-10 15:26:46 -0500 (Fri, 10 Apr 2009) | 12 lines

  Fix module embedding for chan_h323.

  Include libchanh323.a in the modules.link file so that all the symbols can be
  resolved at link time.

  (closes issue #11966)
  Reported by: dome
  Patches:
        issue_11966.patch uploaded by kpfleming (license 421)
  Tested by: jpeeler
........

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

16 years agoBlocked revisions 187830 via svnmerge
Mark Michelson [Fri, 10 Apr 2009 18:57:28 +0000 (18:57 +0000)] 
Blocked revisions 187830 via svnmerge

........
  r187830 | mmichelson | 2009-04-10 13:56:52 -0500 (Fri, 10 Apr 2009) | 3 lines

  Indicating connected line or redirecting updates were missing a call to lock the local_pvt.
........

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

16 years agoMerged revisions 187764 via svnmerge from
Tilghman Lesher [Fri, 10 Apr 2009 17:30:46 +0000 (17:30 +0000)] 
Merged revisions 187764 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r187764 | tilghman | 2009-04-10 12:29:34 -0500 (Fri, 10 Apr 2009) | 9 lines

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

  ........
    r187763 | tilghman | 2009-04-10 12:28:46 -0500 (Fri, 10 Apr 2009) | 2 lines

    Add lastms column to the contributed table designs
  ........
................

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

16 years agoMerged revisions 187721 via svnmerge from
Kevin P. Fleming [Fri, 10 Apr 2009 16:54:01 +0000 (16:54 +0000)] 
Merged revisions 187721 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r187721 | kpfleming | 2009-04-10 11:51:44 -0500 (Fri, 10 Apr 2009) | 5 lines

  clean up some patterns for files to remove

  add embedding support for bridge and test modules
........

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

16 years agoBlocked revisions 187714 via svnmerge
Mark Michelson [Fri, 10 Apr 2009 16:27:09 +0000 (16:27 +0000)] 
Blocked revisions 187714 via svnmerge

........
  r187714 | mmichelson | 2009-04-10 11:26:48 -0500 (Fri, 10 Apr 2009) | 3 lines

  ast_strdup failures aren't really failures if the original value was NULL.
........

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

16 years agoBlocked revisions 187680 via svnmerge
Mark Michelson [Fri, 10 Apr 2009 16:07:07 +0000 (16:07 +0000)] 
Blocked revisions 187680 via svnmerge

........
  r187680 | mmichelson | 2009-04-10 11:06:22 -0500 (Fri, 10 Apr 2009) | 5 lines

  Don't let ast_channel_alloc fail if explicitly passed NULL cid_name or cid_number.

  This also fixes a small memory leak.
........

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

16 years agoMerged revisions 187674 via svnmerge from
Tilghman Lesher [Fri, 10 Apr 2009 16:03:49 +0000 (16:03 +0000)] 
Merged revisions 187674 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r187674 | tilghman | 2009-04-10 10:59:40 -0500 (Fri, 10 Apr 2009) | 4 lines

  Ensure pvt is not NULL before dereferencing it.
  (closes issue #14784)
   Reported by: pj
........

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

16 years agoMerged revisions 187675 via svnmerge from
Russell Bryant [Fri, 10 Apr 2009 16:00:52 +0000 (16:00 +0000)] 
Merged revisions 187675 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r187675 | russell | 2009-04-10 11:00:29 -0500 (Fri, 10 Apr 2009) | 2 lines

Disable test modules by default.

........

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

16 years agoBlocked revisions 187634-187635 via svnmerge
Richard Mudgett [Fri, 10 Apr 2009 15:26:36 +0000 (15:26 +0000)] 
Blocked revisions 187634-187635 via svnmerge

........
  r187634 | rmudgett | 2009-04-10 09:50:42 -0500 (Fri, 10 Apr 2009) | 1 line

  Make chan_misdn_log() avoid generating the log message if logging is disabled.
........
  r187635 | rmudgett | 2009-04-10 09:53:59 -0500 (Fri, 10 Apr 2009) | 7 lines

  Miscellaneous minor changes to chan_misdn.

  * Miscellaneous spacing and comment changes.
  * Minor code rearangements.
  * Miscellaneous doxygen comments.
........

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

16 years agoBlocked revisions 187636 via svnmerge
Kevin P. Fleming [Fri, 10 Apr 2009 15:13:08 +0000 (15:13 +0000)] 
Blocked revisions 187636 via svnmerge

........
  r187636 | kpfleming | 2009-04-10 10:11:16 -0500 (Fri, 10 Apr 2009) | 3 lines

  revert addition of LOG_SECURITY log channel; after further discussion, a much better solution will be used
........

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

16 years agoMerged revisions 187599 via svnmerge from
Tilghman Lesher [Fri, 10 Apr 2009 03:56:37 +0000 (03:56 +0000)] 
Merged revisions 187599 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r187599 | tilghman | 2009-04-09 22:55:27 -0500 (Thu, 09 Apr 2009) | 2 lines

  Modify headers and macros, according to Russell's suggestions on the -dev list
........

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

16 years agoBlocked revisions 187560 via svnmerge
Mark Michelson [Thu, 9 Apr 2009 21:06:50 +0000 (21:06 +0000)] 
Blocked revisions 187560 via svnmerge

........
  r187560 | mmichelson | 2009-04-09 16:06:26 -0500 (Thu, 09 Apr 2009) | 11 lines

  Add a new option, mwi_from, to sip.conf.

  This allows for you to change the From header for outgoing MWI
  NOTIFY requests. Prior to this, the best you could do was to
  set a callerid in the general section of sip.conf. The problem
  was that this was used for all outbound requests, not just
  MWI NOTIFY requests.

  AST-201
........

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

16 years agoMerged revisions 187488 via svnmerge from
Mark Michelson [Thu, 9 Apr 2009 19:14:38 +0000 (19:14 +0000)] 
Merged revisions 187488 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r187488 | mmichelson | 2009-04-09 13:58:41 -0500 (Thu, 09 Apr 2009) | 24 lines

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

  ........
    r187484 | mmichelson | 2009-04-09 13:51:20 -0500 (Thu, 09 Apr 2009) | 18 lines

    Handle a SIP race condition (reinvite before an ACK) properly.

    RFC 5047 explains the proper course of action to take if a
    reINVITE is received before the ACK from a previous invite
    transaction. What we are to do is to treat the reINVITE as
    if it were both an ACK and a reINVITE and process it normally.

    Later, when we receive the ACK we had been expecting, we will
    ignore it since its CSeq is less than the current iseqno of
    the sip_pvt representing this dialog.

    (closes issue #13849)
    Reported by: klaus3000
    Patches:
          13849_v2.patch uploaded by mmichelson (license 60)
    Tested by: mmichelson, klaus3000
  ........
................

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

16 years agoBlocked revisions 187491 via svnmerge
Jeff Peeler [Thu, 9 Apr 2009 19:10:41 +0000 (19:10 +0000)] 
Blocked revisions 187491 via svnmerge

........
  r187491 | jpeeler | 2009-04-09 14:10:02 -0500 (Thu, 09 Apr 2009) | 15 lines

  Add ability for dialplan execution to continue when caller hangs up.

  The F option to app_dial has been modified to accept no parameters and perform
  the above functionality. I don't see anywhere else that is doing function
  overloading, but this really is the best place for this operation because:

  - It makes it close to the 'g' option in the argument list which provides
  similar functionality.
  - The existing code to support the current F option provides a very
  convienient location to add this new feature.

  (closes issue #12381)
  Reported by: michael-fig
........

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

16 years agoMerged revisions 187483 via svnmerge from
Tilghman Lesher [Thu, 9 Apr 2009 18:54:07 +0000 (18:54 +0000)] 
Merged revisions 187483 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r187483 | tilghman | 2009-04-09 13:40:01 -0500 (Thu, 09 Apr 2009) | 15 lines

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

  ........
    r187428 | tilghman | 2009-04-09 13:08:20 -0500 (Thu, 09 Apr 2009) | 8 lines

    Race condition between ast_cli_command() and 'module unload' could cause a deadlock.
    Add lock timeouts to avoid this potential deadlock.
    (closes issue #14705)
     Reported by: jamessan
     Patches:
           20090320__bug14705.diff.txt uploaded by tilghman (license 14)
     Tested by: jamessan
  ........
................

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

16 years agoMerged revisions 187421,187424 via svnmerge from
Mark Michelson [Thu, 9 Apr 2009 17:43:20 +0000 (17:43 +0000)] 
Merged revisions 187421,187424 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r187421 | mmichelson | 2009-04-09 12:30:39 -0500 (Thu, 09 Apr 2009) | 21 lines

  Fix a crash in res_musiconhold when using cached realtime moh.

  The moh_register function links an mohclass and then immediately
  unrefs the class since the container now has a reference. The problem
  with using realtime music on hold is that the class is allocated,
  registered, and started in one fell swoop. The refcounting logic
  resulted in the count being off by one. The same problem did not
  happen when using a static config because the allocation and registration
  of an mohclass is a separate operation from starting moh. This also did
  not affect non-cached realtime moh because the classes are not registered
  at all.

  I also have modified res_musiconhold to use the _t_ variants of the ao2_
  functions so that more info can be gleaned when attempting to trace the
  refcounts. I found this to be incredibly helpful for debugging this issue
  and there's no good reason to remove it.

  (closes issue #14661)
  Reported by: sum
........
  r187424 | mmichelson | 2009-04-09 12:34:39 -0500 (Thu, 09 Apr 2009) | 3 lines

  Use safe macro practices even though they really aren't necessary.
........

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

16 years agoMerged revisions 187381 via svnmerge from
Tilghman Lesher [Thu, 9 Apr 2009 17:22:38 +0000 (17:22 +0000)] 
Merged revisions 187381 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r187381 | tilghman | 2009-04-09 12:20:49 -0500 (Thu, 09 Apr 2009) | 4 lines

  Allow '/' in username portion of register; this is a regression.
  (closes issue #14668)
   Reported by: Netview
........

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

16 years agoMerged revisions 187363 via svnmerge from
Tilghman Lesher [Thu, 9 Apr 2009 16:41:23 +0000 (16:41 +0000)] 
Merged revisions 187363 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r187363 | tilghman | 2009-04-09 11:39:43 -0500 (Thu, 09 Apr 2009) | 10 lines

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

  ........
    r187362 | tilghman | 2009-04-09 11:38:37 -0500 (Thu, 09 Apr 2009) | 3 lines

    Permit zero-length text messages in SIP.
    (Related to an issue posted to the -users list, subject "AEL2, BASE64_DECODE and hexadecimal")
  ........
................

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

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