asterisk/asterisk.git
14 years agoHTTP module memory leaks
Tilghman Lesher [Mon, 4 Aug 2008 16:34:04 +0000 (16:34 +0000)]
HTTP module memory leaks
(closes issue #13230)
 Reported by: eliel
 Patches:
       res_http_post_leak.patch uploaded by eliel (license 64)

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

14 years agoMerged revisions 135473 via svnmerge from
Russell Bryant [Mon, 4 Aug 2008 16:28:07 +0000 (16:28 +0000)]
Merged revisions 135473 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r135473 | russell | 2008-08-04 11:26:17 -0500 (Mon, 04 Aug 2008) | 2 lines

Add a minor clarification to the documentation of mohinterpret and mohsuggest

........

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

14 years agoBe explicit that we don't want a result from this callback. The callback would
Russell Bryant [Mon, 4 Aug 2008 15:02:12 +0000 (15:02 +0000)]
Be explicit that we don't want a result from this callback.  The callback would
never indicate a match, so nothing would have been returned anyway, but it was
still a poor example of proper usage.

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

14 years agoMerge in changes that allow Asterisk to be built against the Hoard
Sean Bright [Sun, 3 Aug 2008 16:14:14 +0000 (16:14 +0000)]
Merge in changes that allow Asterisk to be built against the Hoard
memory allocator.  See doc/hoard.txt for more details.

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

14 years agowhitespace fixes only.
Michiel van Baak [Sun, 3 Aug 2008 00:03:53 +0000 (00:03 +0000)]
whitespace fixes only.

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

14 years agoDont coredump on register of non-configured devices
Michiel van Baak [Sun, 3 Aug 2008 00:00:06 +0000 (00:00 +0000)]
Dont coredump on register of non-configured devices

(closes issue #13224)
Reported by: mvanbaak
Patches:
      noncon.diff uploaded by wedhorn (license 30) with whitespace fixes by me
Tested by: wedhorn, mvanbaak

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

14 years agomake this work again, and not segfault on device registration
Michiel van Baak [Sat, 2 Aug 2008 13:56:00 +0000 (13:56 +0000)]
make this work again, and not segfault on device registration

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

14 years ago--enable-dev-mode is your friend :-)
Kevin P. Fleming [Sat, 2 Aug 2008 13:21:16 +0000 (13:21 +0000)]
--enable-dev-mode is your friend :-)

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

14 years agopass device instead of session to transmit_ functions.
Michiel van Baak [Sat, 2 Aug 2008 12:29:23 +0000 (12:29 +0000)]
pass device instead of session to transmit_ functions.

(closes issue #10396)
Reported by: wedhorn
Patches:
      transmit3a.diff uploaded by wedhorn (license 30)
Tested by: wedhorn, mvanbaak

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

14 years ago(closes issue #13202)
Steve Murphy [Sat, 2 Aug 2008 04:51:29 +0000 (04:51 +0000)]
(closes issue #13202)
Reported by: falves11
Tested by: murf

falves11 ==

The changes I introduce here seem to clear up the problem
for me. However, if they do not for you, please reopen this
bug, and we'll keep digging.

The root of this problem seems to be a subtle memory corruption
introduced when creating an extension with an empty extension
name. While valgrind cannot detect it outside of DEBUG_MALLOC
mode, when compiled with DEBUG_MALLOC, this is certain death.

The code in main/features.c is a puzzle to me. On the initial
module load, the code is attempting to add the parking extension
before the features.conf file has even been opened!

I just wrapped the offending call with an if() that will not
try to add the extension if the extension name is empty. THis
seems to solve the corruption, and let the "memory show allocations"
work as one would expect.

But, really, adding an extension with an empty name is a seriously
bad thing to allow, as it will mess up all the pattern matching
algorithms, etc. So, I added a statement to the add_extension2 code to return
a -1 if this is attempted.

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

14 years agoFix mime parsing by re-adding support for passing headers to callback functions
Terry Wilson [Fri, 1 Aug 2008 21:56:07 +0000 (21:56 +0000)]
Fix mime parsing by re-adding support for passing headers to callback functions

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

14 years agoRemove some code that used to do something but does not anymore, mainly
Sean Bright [Fri, 1 Aug 2008 19:29:26 +0000 (19:29 +0000)]
Remove some code that used to do something but does not anymore, mainly
to get rid of a shadow warning (but this seemed legitimate enough to fix
here instead of in my branch).

Thanks to putnopvut for taking a look as well.

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

14 years agoMerge changes from team/bbryant/keyrotation
Russell Bryant [Fri, 1 Aug 2008 18:16:24 +0000 (18:16 +0000)]
Merge changes from team/bbryant/keyrotation

This set of changes enhances IAX2 encryption support by adding key rotation
to provide enhanced security.  The key used for encryption is rotated right
after the call gets set up, and then again every few minutes.  This was
discussed at the last AstriDevCon.  For interoperability with older versions
of Asterisk, there is an option that disables key rotation.

(closes issue #13018)
Reported by: bbryant
Patches:
      07072008__iax2_key_rotation.diff uploaded by bbryant (license 36)
Tested by: russell, bbryant

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

14 years agoPicky, picky, buildbot
Tilghman Lesher [Fri, 1 Aug 2008 17:09:50 +0000 (17:09 +0000)]
Picky, picky, buildbot

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

14 years agoSIP should use the transport type set in the Moved Temporarily for the next
Tilghman Lesher [Fri, 1 Aug 2008 16:39:51 +0000 (16:39 +0000)]
SIP should use the transport type set in the Moved Temporarily for the next
invite.
(closes issue #11843)
 Reported by: pestermann
 Patches:
       20080723__issue11843_302_ignores_transport_16branch.diff uploaded by bbryant (license 36)
       20080723__issue11843_302_ignores_transport_trunk.diff uploaded by bbryant (license 36)
 Tested by: pabelanger

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

14 years agoIMAP-specific items must go in IMAP_STORAGE defines...
Mark Michelson [Fri, 1 Aug 2008 14:42:24 +0000 (14:42 +0000)]
IMAP-specific items must go in IMAP_STORAGE defines...

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

14 years agoIMAP storage functioned under the assumption that folders
Mark Michelson [Fri, 1 Aug 2008 14:29:48 +0000 (14:29 +0000)]
IMAP storage functioned under the assumption that folders
such as "Work" and "Family" would be subfolders of the
INBOX. This is an invalid assumption to make, but it could
be desirable to set up folders in this manner, so a new
option for voicemail.conf, "imapparentfolder" has been
added to allow for this.

(closes issue #13142)
Reported by: jaroth
Patches:
      parentfolder.patch uploaded by jaroth (license 50)

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

14 years agoMake safe_asterisk work on dash/sh/bash etc.
Michiel van Baak [Fri, 1 Aug 2008 12:17:33 +0000 (12:17 +0000)]
Make safe_asterisk work on dash/sh/bash etc.

(closes issue #13111)
Reported by: pabelanger
Patches:
      2008071901_issue13111_safe_asterisk.diff uploaded by mvanbaak (license 7)
Tested by: mvanbaak, pabelanger

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

14 years agoMerged revisions 135058 via svnmerge from
Michiel van Baak [Fri, 1 Aug 2008 11:47:34 +0000 (11:47 +0000)]
Merged revisions 135058 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r135058 | mvanbaak | 2008-08-01 13:43:46 +0200 (Fri, 01 Aug 2008) | 2 lines

make app_ices compile on OpenBSD.

........

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

14 years agoMerged revisions 135055 via svnmerge from
Michiel van Baak [Fri, 1 Aug 2008 11:00:13 +0000 (11:00 +0000)]
Merged revisions 135055 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r135055 | mvanbaak | 2008-08-01 12:55:27 +0200 (Fri, 01 Aug 2008) | 8 lines

fix some potential deadlocks in chan_skinny

(closes issue #13215)
Reported by: qwell
Patches:
      2008080100_bug13215.diff.txt uploaded by mvanbaak (license 7)
Tested by: mvanbaak

........

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

14 years agoMerged revisions 134983 via svnmerge from
Kevin P. Fleming [Thu, 31 Jul 2008 22:28:42 +0000 (22:28 +0000)]
Merged revisions 134983 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r134983 | kpfleming | 2008-07-31 17:18:11 -0500 (Thu, 31 Jul 2008) | 3 lines

accomodate users who seem to lack a sense of humor :-)

........

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

14 years agoBlocked revisions 134976 via svnmerge
Tilghman Lesher [Thu, 31 Jul 2008 21:55:42 +0000 (21:55 +0000)]
Blocked revisions 134976 via svnmerge

........
r134976 | tilghman | 2008-07-31 16:53:19 -0500 (Thu, 31 Jul 2008) | 9 lines

Specify codecs in callfiles and manager, to allow video calls to be set up
from callfiles and AMI.
(closes issue #9531)
 Reported by: Geisj
 Patches:
       20080715__bug9531__1.4.diff.txt uploaded by Corydon76 (license 14)
       20080715__bug9531__1.6.0.diff.txt uploaded by Corydon76 (license 14)
 Tested by: Corydon76

........

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

14 years agoSwitch command order, to meet with current specs
Tilghman Lesher [Thu, 31 Jul 2008 21:53:59 +0000 (21:53 +0000)]
Switch command order, to meet with current specs

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

14 years agoIncrease column size beyond the minimum required, since PostgreSQL won't let
Tilghman Lesher [Thu, 31 Jul 2008 20:10:39 +0000 (20:10 +0000)]
Increase column size beyond the minimum required, since PostgreSQL won't let
us modify existing columns.

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

14 years agoMerged revisions 134883 via svnmerge from
Steve Murphy [Thu, 31 Jul 2008 19:48:08 +0000 (19:48 +0000)]
Merged revisions 134883 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r134883 | murf | 2008-07-31 13:23:42 -0600 (Thu, 31 Jul 2008) | 51 lines

(closes issue #11849)
Reported by: greyvoip
Tested by: murf

OK, a few days of debugging, a bunch of instrumentation
in chan_sip, main/channel.c, main/pbx.c, etc. and 5 solid
notebook pages of notes later, I  have made the small
tweek necc. to get the start time right on the second
CDR when:

  A Calls B
  B answ.
  A hits Xfer button on sip phone,
  A dials C and hits the OK button,
  A hangs up
  C answers ringing phone
  B and C converse
  B and/or C hangs up

But does not harm the scenario where:

  A Calls B
  B answ.
  B hits xfer button on sip phone,
  B dials C and hits the OK button,
  B hangs up
  C answers ringing phone
  A and C converse
  A and/or C hangs up

The difference in start times on the second CDR is because
of a Masquerade on the B channel when the xfer number is
sent. It ends up replacing the CDR on the B channel with
a duplicate, which ends up getting tossed out. We keep
a pointer to the first CDR, and update *that* after the
bridge closes. But, only if the CDR has changed.

I hope this change is specific enough not to muck
up any current CDR-based apps. In my defence, I
assert that the previous information was wrong,
and this change fixes it, and possibly other
similar scenarios.

I wonder if I should be doing the same thing
for the channel, as I did for the peer, but
I can't think of a scenario this might affect.
I leave it, then, as an exersize for the users,
to find the scenario where the chan's CDR
changes and loses the proper start time.

........

and as to 1.4 to trunk; have I expressed my
feelings about code shifting from one file
to another? Good.

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

14 years agoTwo errors:
Tilghman Lesher [Thu, 31 Jul 2008 19:43:02 +0000 (19:43 +0000)]
Two errors:
1) If a function returns SQLITE_LOCKED, no recovery is possible.
2) An error message can be allocated, even when no error is signalled.
(closes issue #13109)
 Reported by: gknispel_proformatique

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

14 years agoMerged revisions 134915 via svnmerge from
Russell Bryant [Thu, 31 Jul 2008 19:39:50 +0000 (19:39 +0000)]
Merged revisions 134915 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r134915 | russell | 2008-07-31 14:37:26 -0500 (Thu, 31 Jul 2008) | 9 lines

Get app_ices working again

(closes issue #12981)
Reported by: dlogan
Patches:
      20080709__app_ices_v2_update_trunk.diff uploaded by bbryant (license 36)
      20080709__app_ices_v2_update_14.diff uploaded by bbryant (license 36)
Tested by: bbryant

........

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

14 years agofix the potential use of an uninitialized variable
Russell Bryant [Thu, 31 Jul 2008 19:39:25 +0000 (19:39 +0000)]
fix the potential use of an uninitialized variable

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

14 years agoOptimize frame cache by realloc'ing the smallest frame when the cache is full.
Tilghman Lesher [Thu, 31 Jul 2008 19:03:41 +0000 (19:03 +0000)]
Optimize frame cache by realloc'ing the smallest frame when the cache is full.
This ensures that we don't just keep a cache of tiny frames, continually doing
an alloc/free for each data frame, thus negating the point of having a cache.

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

14 years agoMerged revisions 134814 via svnmerge from
Russell Bryant [Thu, 31 Jul 2008 16:50:10 +0000 (16:50 +0000)]
Merged revisions 134814 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r134814 | russell | 2008-07-31 11:45:31 -0500 (Thu, 31 Jul 2008) | 7 lines

In case we have some processing threads that free more frames than they allocate,
do not let the frame cache grow forever.

(closes issue #13160)
Reported by: tavius
Tested by: tavius, russell

........

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

14 years agoFix some tex errors
Russell Bryant [Thu, 31 Jul 2008 16:37:08 +0000 (16:37 +0000)]
Fix some tex errors

(closes issue #13211)
Reported by: eliel
Patches:
      fixtexerrors.patch uploaded by eliel (license 64)

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

14 years agoMerged revisions 134758 via svnmerge from
Mark Michelson [Thu, 31 Jul 2008 16:05:12 +0000 (16:05 +0000)]
Merged revisions 134758 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r134758 | mmichelson | 2008-07-31 10:56:18 -0500 (Thu, 31 Jul 2008) | 16 lines

Add more timeout checks into app_queue, specifically
targeting areas where an unknown and potentially
long time has just elapsed. Also added a check
to try_calling() to return early if the timeout
has elapsed instead of potentially setting a negative
timeout for the call (thus making it have *no* timeout
at all).

(closes issue #13186)
Reported by: miquel_cabrespina
Patches:
      13186.diff uploaded by putnopvut (license 60)
Tested by: miquel_cabrespina

........

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

14 years agoBlocked revisions 134704 via svnmerge
Tilghman Lesher [Wed, 30 Jul 2008 22:40:48 +0000 (22:40 +0000)]
Blocked revisions 134704 via svnmerge

........
r134704 | tilghman | 2008-07-30 17:39:57 -0500 (Wed, 30 Jul 2008) | 2 lines

Oops, wrong define

........

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

14 years agoOops, wrong define
Tilghman Lesher [Wed, 30 Jul 2008 22:38:58 +0000 (22:38 +0000)]
Oops, wrong define

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

14 years agoblocking 134652 from trunk because this problem only applies to 1.4
Steve Murphy [Wed, 30 Jul 2008 22:04:07 +0000 (22:04 +0000)]
blocking 134652 from trunk because this problem only applies to 1.4

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

14 years agoMerged revisions 134649 via svnmerge from
Tilghman Lesher [Wed, 30 Jul 2008 21:40:08 +0000 (21:40 +0000)]
Merged revisions 134649 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r134649 | tilghman | 2008-07-30 16:38:50 -0500 (Wed, 30 Jul 2008) | 4 lines

Qwell pointed out, via IRC, that the previous fix only worked when explicitly
set.  When nothing is set, and the option is implied, it breaks, because
configure sets the prefix to 'NONE'.  Fixing.

........

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

14 years agoMerged revisions 134556 via svnmerge from
Mark Michelson [Wed, 30 Jul 2008 21:05:37 +0000 (21:05 +0000)]
Merged revisions 134556 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r134556 | mmichelson | 2008-07-30 15:24:40 -0500 (Wed, 30 Jul 2008) | 7 lines

Fix the parsing of the "reason" parameter in the
Diversion: header.

(closes issue #13195)
Reported by: woodsfsg

........

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

14 years agoMerged revisions 134595 via svnmerge from
Russell Bryant [Wed, 30 Jul 2008 20:38:35 +0000 (20:38 +0000)]
Merged revisions 134595 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r134595 | russell | 2008-07-30 15:37:17 -0500 (Wed, 30 Jul 2008) | 6 lines

Reduce stack consumption by 12.5% of the max stack size to fix a crash when
compiled with LOW_MEMORY.

(closes issue #13154)
Reported by: edantie

........

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

14 years agoFix the parsing of the "reason" parameter in the
Mark Michelson [Wed, 30 Jul 2008 20:24:40 +0000 (20:24 +0000)]
Fix the parsing of the "reason" parameter in the
Diversion: header.

(closes issue #13195)
Reported by: woodsfsg

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

14 years agoMerged revisions 134540 via svnmerge from
Russell Bryant [Wed, 30 Jul 2008 19:55:31 +0000 (19:55 +0000)]
Merged revisions 134540 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r134540 | russell | 2008-07-30 14:52:53 -0500 (Wed, 30 Jul 2008) | 4 lines

Fix a memory leak in func_curl.  Every thread that used this function leaked
an allocation the size of a pointer.
(reported by jmls in #asterisk-dev)

........

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

14 years agoMerged revisions 134536 via svnmerge from
Tilghman Lesher [Wed, 30 Jul 2008 19:48:37 +0000 (19:48 +0000)]
Merged revisions 134536 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r134536 | tilghman | 2008-07-30 14:47:16 -0500 (Wed, 30 Jul 2008) | 4 lines

Only override sysconfdir and mandir when prefix=/usr
(closes issue #13093)
 Reported by: pabelanger

........

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

14 years agoLet "roundrobin" also reference rrmemory, for the 1.6 release (as described in
Tilghman Lesher [Wed, 30 Jul 2008 19:17:38 +0000 (19:17 +0000)]
Let "roundrobin" also reference rrmemory, for the 1.6 release (as described in
UPGRADE-1.4.txt)
(Closes issue #13181)

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

14 years agoMerged revisions 134480 via svnmerge from
Tilghman Lesher [Wed, 30 Jul 2008 19:05:35 +0000 (19:05 +0000)]
Merged revisions 134480 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r134480 | tilghman | 2008-07-30 14:03:44 -0500 (Wed, 30 Jul 2008) | 5 lines

launch_netscript sometimes returns -1, which fails to set AGISTATUS.  Map
failure to -1, so that AGISTATUS is always set.
(closes issue #13199)
 Reported by: smw1218

........

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

14 years agoMerged revisions 134475 via svnmerge from
Mark Michelson [Wed, 30 Jul 2008 18:33:12 +0000 (18:33 +0000)]
Merged revisions 134475 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r134475 | mmichelson | 2008-07-30 13:31:47 -0500 (Wed, 30 Jul 2008) | 4 lines

Fix a spot where a function could return without bringing
a channel out of autoservice.

........

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

14 years agoDocument adaptive capabilities
Tilghman Lesher [Wed, 30 Jul 2008 17:36:31 +0000 (17:36 +0000)]
Document adaptive capabilities

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

14 years agoAdd adaptive capabilities to the sqlite realtime driver
Tilghman Lesher [Wed, 30 Jul 2008 17:32:28 +0000 (17:32 +0000)]
Add adaptive capabilities to the sqlite realtime driver
(closes issue #13097)
 Reported by: gknispel_proformatique
 Patches:
       20080730__bug13097.diff.txt uploaded by Corydon76 (license 14)
 Tested by: Corydon76

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

14 years agoMove implementation of an attended-transfer-complete sound from one channel
Tilghman Lesher [Wed, 30 Jul 2008 16:40:43 +0000 (16:40 +0000)]
Move implementation of an attended-transfer-complete sound from one channel
driver into a common place for multiple channel drivers.
(closes issue #13152)
 Reported by: caio1982
 Patches:
       atxfer_complete_sound3.diff uploaded by caio1982 (license 22)

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

14 years agoMerged revisions 134352 via svnmerge from
Kevin P. Fleming [Wed, 30 Jul 2008 15:32:14 +0000 (15:32 +0000)]
Merged revisions 134352 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r134352 | kpfleming | 2008-07-30 10:29:17 -0500 (Wed, 30 Jul 2008) | 2 lines

use the proper method for building version.h

........

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

14 years agoAdd %u and %g to the ASTERISK_PROMPT settings, for username and group,
Tilghman Lesher [Wed, 30 Jul 2008 15:30:18 +0000 (15:30 +0000)]
Add %u and %g to the ASTERISK_PROMPT settings, for username and group,
respectively.  Also, take the opportunity to clean up the CLI prompt
generation code.
(closes issue #13175)
 Reported by: eliel
 Patches:
       cliprompt.patch uploaded by eliel (license 64)

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

14 years agoMinor changes to reduce packaging changes made by the Fedora maintainer.
Tilghman Lesher [Tue, 29 Jul 2008 23:00:45 +0000 (23:00 +0000)]
Minor changes to reduce packaging changes made by the Fedora maintainer.
(closes issue #12974)
 Reported by: jcollie
 Patches:
       0001-Don-t-override-duplicate-optimization-flags.patch uploaded by jcollie (license 412)

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

14 years agobuild against the now-typedef-free dahdi/user.h, and remove some #ifdefs for features...
Kevin P. Fleming [Tue, 29 Jul 2008 22:22:13 +0000 (22:22 +0000)]
build against the now-typedef-free dahdi/user.h, and remove some #ifdefs for features that will always be present in DAHDI

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

14 years agoFix deadlock when unloading res_http_post because the uris lock was still locked.
Brett Bryant [Tue, 29 Jul 2008 21:23:43 +0000 (21:23 +0000)]
Fix deadlock when unloading res_http_post because the uris lock was still locked.

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

14 years agoMerged revisions 134161 via svnmerge from
Tilghman Lesher [Mon, 28 Jul 2008 22:07:12 +0000 (22:07 +0000)]
Merged revisions 134161 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r134161 | tilghman | 2008-07-28 16:50:50 -0500 (Mon, 28 Jul 2008) | 7 lines

Detect when sox fails to raise the volume, because sox can't read the file.
(closes issue #12939)
 Reported by: rickbradley
 Patches:
       20080728__bug12939.diff.txt uploaded by Corydon76 (license 14)
 Tested by: rickbradley

........

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

14 years agoRestore properties mistakenly removed (broke merging)
Tilghman Lesher [Mon, 28 Jul 2008 21:56:00 +0000 (21:56 +0000)]
Restore properties mistakenly removed (broke merging)

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

14 years agoThis commit compensates for buggy poll(2)
Mark Michelson [Mon, 28 Jul 2008 19:53:56 +0000 (19:53 +0000)]
This commit compensates for buggy poll(2)
implementations. Asterisk has, for a long time,
had its own implementation of poll(2) which
just used the input arguments to call select(2).
In 1.4, this internal implementation was used
for Darwin systems. This was removed in Asterisk
trunk at some point, but it seems as though this
was not the right move to make.

On Mac OS X, it appears as though the poll used
to gather CLI input does not respond properly
when connecting via a remote Asterisk console.
Reverting to the use of Asterisk's poll fixed
the issue.

Also, there is now an option for the configure
script, --enable-internal-poll, which will allow
for anyone to use Asterisk's internal poll
implementation in case they suspect that their
system's poll implementation is buggy.

closes issue #11928)
Reported by: adriavidal
Patches:
      1.6.0-configurev2.patch uploaded by putnopvut (license 60)

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

14 years agoChange SendImage() to output a more consistent status variable.
Tilghman Lesher [Mon, 28 Jul 2008 16:49:29 +0000 (16:49 +0000)]
Change SendImage() to output a more consistent status variable.
(closes issue #13134)
 Reported by: eliel
 Patches:
       app_image.c.patch uploaded by eliel (license 64)
       UPGRADE.patch uploaded by eliel (license 64)

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

14 years agoremove remaining Zaptel references in various places
Kevin P. Fleming [Mon, 28 Jul 2008 16:42:00 +0000 (16:42 +0000)]
remove remaining Zaptel references in various places

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

14 years agomerging the zap_and_dahdi_trunk branch up to trunk
Mark Michelson [Mon, 28 Jul 2008 16:00:19 +0000 (16:00 +0000)]
merging the zap_and_dahdi_trunk branch up to trunk

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

14 years agoAdd a missing unlock within error handling
Russell Bryant [Sun, 27 Jul 2008 21:12:14 +0000 (21:12 +0000)]
Add a missing unlock within error handling
(closes issue #13176)
Reported by: pj

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

14 years agoactually use the cache_cache argument
Russell Bryant [Sat, 26 Jul 2008 15:16:20 +0000 (15:16 +0000)]
actually use the cache_cache argument

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

14 years agoast_device_state() gets called in two different ways. The first way is when
Russell Bryant [Sat, 26 Jul 2008 15:15:14 +0000 (15:15 +0000)]
ast_device_state() gets called in two different ways.  The first way is when
called from elsewhere in Asterisk to find the current state of a device.  In
that case, we want to use the cached value if it exists.  The other way is when
processing a device state change.  In that case, we do not want to check the
cache because returning the last known state is counter productive.

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

14 years agoRe-work comment about how device state changes are processed to be a bit more clear
Russell Bryant [Sat, 26 Jul 2008 14:57:50 +0000 (14:57 +0000)]
Re-work comment about how device state changes are processed to be a bit more clear

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

14 years agoRemove the code that decided when device state changes should be cached or not.
Russell Bryant [Sat, 26 Jul 2008 14:46:13 +0000 (14:46 +0000)]
Remove the code that decided when device state changes should be cached or not.
It is no longer needed.

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

14 years agoHebrew syntax for voicemail prompts
Tilghman Lesher [Fri, 25 Jul 2008 22:08:06 +0000 (22:08 +0000)]
Hebrew syntax for voicemail prompts
(closes issue #13155)
 Reported by: greenfieldtech
 Patches:
       app_voicemail.c.patch uploaded by greenfieldtech (license 369)
       hebrew.ods uploaded by greenfieldtech (license 369)

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

14 years agoUpdate version
Tilghman Lesher [Fri, 25 Jul 2008 21:59:39 +0000 (21:59 +0000)]
Update version
(closes issue #13163)
 Reported by: suretec
 Patches:
       asterisk.ldif uploaded by suretec (license 70)

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

14 years agoDeprecate *_device_state_* APIs in favor of *_devstate_* APIs
Tilghman Lesher [Fri, 25 Jul 2008 21:20:03 +0000 (21:20 +0000)]
Deprecate *_device_state_* APIs in favor of *_devstate_* APIs

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

14 years agominor change to test automerge
Kevin P. Fleming [Fri, 25 Jul 2008 20:56:43 +0000 (20:56 +0000)]
minor change to test automerge

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

14 years agoRevert tilghman and pari's code changes, as
Brandon Kruse [Fri, 25 Jul 2008 19:12:17 +0000 (19:12 +0000)]
Revert tilghman and pari's code changes, as
we do NOT need to uri_decode in manager.
(if I sent core%20show%20channels from a telnet
session, it should be interpreted literally, however,
if I send that from an http session, it should be
decoded, which is the behaivor now)

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

14 years agoBlocked revisions 133709 via svnmerge
Tilghman Lesher [Fri, 25 Jul 2008 18:01:58 +0000 (18:01 +0000)]
Blocked revisions 133709 via svnmerge

........
r133709 | tilghman | 2008-07-25 13:00:33 -0500 (Fri, 25 Jul 2008) | 3 lines

Remove unnecessary mmap flag
(Closes issue #13161)

........

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

14 years agoMerged revisions 133649 via svnmerge from
Tilghman Lesher [Fri, 25 Jul 2008 17:24:43 +0000 (17:24 +0000)]
Merged revisions 133649 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r133649 | tilghman | 2008-07-25 12:19:39 -0500 (Fri, 25 Jul 2008) | 8 lines

Fix some errant device states by making the devicestate API more strict in
terms of the device argument (only without the unique identifier appended).
(closes issue #12771)
 Reported by: davidw
 Patches:
       20080717__bug12771.diff.txt uploaded by Corydon76 (license 14)
 Tested by: davidw, jvandal, murf

........

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

14 years agoCommitting a fix that was introduced a long time
Brandon Kruse [Fri, 25 Jul 2008 17:21:46 +0000 (17:21 +0000)]
Committing a fix that was introduced a long time
ago (does not affect 1.4), where you would pass
a pointer to the end of a character array, and
ast_uri_decode would do no good.

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

14 years agoMerged revisions 133578 via svnmerge from
Russell Bryant [Fri, 25 Jul 2008 15:00:49 +0000 (15:00 +0000)]
Merged revisions 133578 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r133578 | russell | 2008-07-25 10:00:31 -0500 (Fri, 25 Jul 2008) | 10 lines

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

........
r133577 | russell | 2008-07-25 10:00:13 -0500 (Fri, 25 Jul 2008) | 2 lines

Fix the IAX2 URI for calling Digium

........

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

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

14 years agoModify the main page of the doxygen documentation to link to a new page dedicated
Russell Bryant [Fri, 25 Jul 2008 14:57:11 +0000 (14:57 +0000)]
Modify the main page of the doxygen documentation to link to a new page dedicated
to Asterisk licensing information.  The licensing page includes the Asterisk license,
as well as a (not yet complete) list of 3rd party libraries that may be used, as well
as what license we receive them under.

Help filling out this list in the format that I have started in doxyref.h would be
much appreciated.  :)

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

14 years agoMerged revisions 133572 via svnmerge from
Mark Michelson [Fri, 25 Jul 2008 14:40:52 +0000 (14:40 +0000)]
Merged revisions 133572 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r133572 | mmichelson | 2008-07-25 09:40:10 -0500 (Fri, 25 Jul 2008) | 7 lines

We need to make sure to null-terminate the "name"
portion of SIP URI parameters so that there are no
bogus comparisons.

Thanks to bbryant for pointing this out.

........

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

14 years agoAdd a missing unlock.
Mark Michelson [Fri, 25 Jul 2008 13:52:52 +0000 (13:52 +0000)]
Add a missing unlock.

Pointed out by Atis Lezdins in #asterisk-dev

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

14 years agoMinor coding guidelines tweaks ...
Russell Bryant [Fri, 25 Jul 2008 13:01:59 +0000 (13:01 +0000)]
Minor coding guidelines tweaks ...
 - Use ast_strlen_zero in one place
 - check for successful string comparison the way most of Asterisk code does it

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

14 years agoWhen the ast_device_state() function is called to retrieve device state, and
Russell Bryant [Fri, 25 Jul 2008 12:42:25 +0000 (12:42 +0000)]
When the ast_device_state() function is called to retrieve device state, and
the code checks to see if there is a cached state available, use the aggregate
cached state across all servers, and not just the local state.

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

14 years agoMerged revisions 133488 via svnmerge from
Tilghman Lesher [Thu, 24 Jul 2008 21:27:06 +0000 (21:27 +0000)]
Merged revisions 133488 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r133488 | tilghman | 2008-07-24 16:17:55 -0500 (Thu, 24 Jul 2008) | 3 lines

Fix rtautoclear and rtcachefriends
(Closes issue #12707)

........

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

14 years agoI made this change from DEVICE_STATE to DEVICE_STATE_CHANGE, but I had it backwards,
Russell Bryant [Thu, 24 Jul 2008 20:40:15 +0000 (20:40 +0000)]
I made this change from DEVICE_STATE to DEVICE_STATE_CHANGE, but I had it backwards,
this is the right event to subscribe to ...

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

14 years agoPrint the correct PID in log messages. Prior to
Mark Michelson [Thu, 24 Jul 2008 19:53:37 +0000 (19:53 +0000)]
Print the correct PID in log messages. Prior to
this commit, only the logger thread's PID would
be printed.

(closes issue #13150)
Reported by: atis
Patches:
      log_pid.diff uploaded by putnopvut (license 60)
Tested by: eliel

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

14 years agoBuild the logrotate script according to paths
Tilghman Lesher [Thu, 24 Jul 2008 05:21:00 +0000 (05:21 +0000)]
Build the logrotate script according to paths
(Closes issue #13147)

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

14 years agoOptionally install logrotate file
Tilghman Lesher [Thu, 24 Jul 2008 04:51:42 +0000 (04:51 +0000)]
Optionally install logrotate file
(Closes issue #13148)

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

14 years ago(closes issue #13144)
Steve Murphy [Wed, 23 Jul 2008 22:03:48 +0000 (22:03 +0000)]
(closes issue #13144)
Reported by: murf
Tested by: murf
For: J. Geis

The 'data' field in the ast_exten struct was being
'moved' from the current dialplan to the replacement
dialplan. This was not good, as the current dialplan
could have problems in the time between the change
and when the new dialplan is swapped in.

So, I modified the merge_and_delete code to strdup
the 'data' field (the args to the app call), and
then it's freed as normal.

I improved a few messages; I added code to limit
the number of calls to the context_merge_incls_swits_igps_other_registrars()
to one per context. I don't think having it called
multiple times per context was doing anything bad,
but it was inefficient.

I hope this fixes the problems Mr. Geiss was noting in
asterisk-users, see
http://lists.digium.com/pipermail/asterisk-users/2008-July/215634.html

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

14 years agoMerged revisions 133295 via svnmerge from
Jason Parker [Wed, 23 Jul 2008 21:50:20 +0000 (21:50 +0000)]
Merged revisions 133295 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r133295 | qwell | 2008-07-23 16:49:03 -0500 (Wed, 23 Jul 2008) | 1 line

inbandrelease is gone - it's now inbanddisconnect
........

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

14 years agoBlocked revisions 133237 via svnmerge
Kevin P. Fleming [Wed, 23 Jul 2008 21:05:39 +0000 (21:05 +0000)]
Blocked revisions 133237 via svnmerge

........
r133237 | kpfleming | 2008-07-23 16:05:22 -0500 (Wed, 23 Jul 2008) | 2 lines

revert an optimization that broke ABI... thanks russell!

........

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

14 years agoFix issue where tcp in sip is enabled by default, despite what it says in the config...
Brett Bryant [Wed, 23 Jul 2008 20:33:22 +0000 (20:33 +0000)]
Fix issue where tcp in sip is enabled by default, despite what it says in the config sample file. Also fix "sip show settings" for tcp connections.

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

14 years agoMerged revisions 133169 via svnmerge from
Mark Michelson [Wed, 23 Jul 2008 19:48:03 +0000 (19:48 +0000)]
Merged revisions 133169 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r133169 | mmichelson | 2008-07-23 14:39:47 -0500 (Wed, 23 Jul 2008) | 12 lines

As suggested by seanbright, the PSEUDO_CHAN_LEN in
app_chanspy should be set at load time, not at compile
time, since dahdi_chan_name is determined at load time.

Also changed the next_unique_id_to_use to have the
static qualifier.

Also added the dahdi_chan_name_len variable so that
strlen(dahdi_chan_name) isn't necessary. Thanks to
seanbright for the suggestion.

........

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

14 years agoMerged revisions 133104 via svnmerge from
Mark Michelson [Wed, 23 Jul 2008 19:07:56 +0000 (19:07 +0000)]
Merged revisions 133104 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r133104 | mmichelson | 2008-07-23 14:06:16 -0500 (Wed, 23 Jul 2008) | 5 lines

Zap/pseudo is ten characters, but DAHDI/pseudo is
twelve. The strncmp call in next_channel should
account for this.

........

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

14 years agoMerged revisions 133101 via svnmerge from
Mark Michelson [Wed, 23 Jul 2008 18:58:37 +0000 (18:58 +0000)]
Merged revisions 133101 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r133101 | mmichelson | 2008-07-23 13:57:17 -0500 (Wed, 23 Jul 2008) | 6 lines

Update the "last" channel in next_channel in app_chanspy so
that the same pseudo channel isn't constantly returned.

related to issue #13124

........

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

14 years agoMerged revisions 133038 via svnmerge from
Mark Michelson [Wed, 23 Jul 2008 17:54:03 +0000 (17:54 +0000)]
Merged revisions 133038 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r133038 | mmichelson | 2008-07-23 12:50:01 -0500 (Wed, 23 Jul 2008) | 7 lines

Small cleanup. Move the declaration of the DAHDI_SPANINFO
variable to the block where it is used. This allows one
less #ifdef HAVE_PRI to clutter things up.

Thanks to Tzafrir for pointing this out on #asterisk-dev

........

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

14 years agoYet another conversion of '|' to ','
Tilghman Lesher [Wed, 23 Jul 2008 17:20:43 +0000 (17:20 +0000)]
Yet another conversion of '|' to ','
(closes issue #13137)
 Reported by: eliel
 Patches:
       chan_iax2trunk-IAXPEER.patch uploaded by eliel (license 64)

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

14 years agoAdd logrotate script for Asterisk
Tilghman Lesher [Wed, 23 Jul 2008 17:14:56 +0000 (17:14 +0000)]
Add logrotate script for Asterisk
(closes issue #13085)
 Reported by: pabelanger
 Patches:
       logrotate uploaded by pabelanger (license 224)

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

14 years agoBlocked revisions 132974 via svnmerge
Mark Michelson [Wed, 23 Jul 2008 17:07:08 +0000 (17:07 +0000)]
Blocked revisions 132974 via svnmerge

........
r132974 | mmichelson | 2008-07-23 12:05:04 -0500 (Wed, 23 Jul 2008) | 4 lines

Fix building of chan_dahdi when HAVE_PRI is not
defined.

........

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

14 years agouse correct function name... please compile with --enable-dev-mode
Kevin P. Fleming [Wed, 23 Jul 2008 16:38:28 +0000 (16:38 +0000)]
use correct function name... please compile with --enable-dev-mode

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

14 years agoMerged revisions 132872 via svnmerge from
Kevin P. Fleming [Wed, 23 Jul 2008 16:30:18 +0000 (16:30 +0000)]
Merged revisions 132872 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132872 | kpfleming | 2008-07-23 06:52:18 -0500 (Wed, 23 Jul 2008) | 2 lines

minor optimization for stringfields: when a field is being set to a larger value than it currently contains and it happens to be the most recent field allocated from the currentl pool, it is possible to 'grow' it without having to waste the space it is currently using (or potentially even allocate a new pool)

........

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

14 years agoMerged revisions 132826 via svnmerge from
Christian Richter [Wed, 23 Jul 2008 12:07:15 +0000 (12:07 +0000)]
Merged revisions 132826 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132826 | crichter | 2008-07-23 13:37:50 +0200 (Mi, 23 Jul 2008) | 1 line

another Fix because of r119585, this commit has broken high frequented BRI Ports, there was a possibility that a channel, that was marked as in_use would be reused later, the corresponding port could got stuck then. So it is recommended to upgrade for chan_misdn users.
........

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

14 years agoremove bogus property that is breaking automerges
Kevin P. Fleming [Wed, 23 Jul 2008 11:40:16 +0000 (11:40 +0000)]
remove bogus property that is breaking automerges

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

14 years agoWell, the content of a channel variable may be longer than the size of a pointer...
Olle Johansson [Wed, 23 Jul 2008 08:13:07 +0000 (08:13 +0000)]
Well, the content of a channel variable may be longer than the size of a pointer...
Thanks, eliel!

Reported by: eliel
Patches:
      chan_siptrunk.SIPPEER.patch uploaded by eliel (license 64)
(closes issue #13135)

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

14 years agoMerged revisions 132777 via svnmerge from
Mark Michelson [Tue, 22 Jul 2008 22:17:09 +0000 (22:17 +0000)]
Merged revisions 132777 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........

Allow Spiraled INVITEs to work correctly within Asterisk.

Prior to this change, a spiraled INVITE would cause a 482
Loop Detected to be sent to the caller. With this change,
if a potential loop is detected, the Request-URI is inspected
to see if it has changed from what was originally received. If
pedantic mode is on, then this inspection is fully RFC 3261
compliant. If pedantic mode is not on, then a string comparison
is used to test the equality of the two R-URIs.

This has been tested by using OpenSER to rewrite the R-URI
and send the INVITE back to Asterisk.

(closes issue #7403)
Reported by: stephen_dredge

Modified:
    branches/1.4/channels/chan_sip.c

........

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

14 years agocorrect fix made in r132777... the code *did* compile in dev-mode, as long as libpri...
Kevin P. Fleming [Tue, 22 Jul 2008 22:14:37 +0000 (22:14 +0000)]
correct fix made in r132777... the code *did* compile in dev-mode, as long as libpri was installed and enabled

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