]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
16 years agoMerged revisions 166773 via svnmerge from
Russell Bryant [Sun, 28 Dec 2008 15:15:46 +0000 (15:15 +0000)] 
Merged revisions 166773 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r166773 | russell | 2008-12-28 09:15:14 -0600 (Sun, 28 Dec 2008) | 12 lines

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

........
r166772 | russell | 2008-12-28 09:13:48 -0600 (Sun, 28 Dec 2008) | 4 lines

Use strncat() instead of an sprintf() in which source and target buffers overlap

http://lists.digium.com/pipermail/asterisk-dev/2008-December/035919.html

........

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

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

16 years agoBlocked revisions 166731 via svnmerge
Terry Wilson [Wed, 24 Dec 2008 15:18:38 +0000 (15:18 +0000)] 
Blocked revisions 166731 via svnmerge

........
  r166731 | twilson | 2008-12-24 09:10:42 -0600 (Wed, 24 Dec 2008) | 10 lines

  There is no section 22.2.2 in rfc 3261.  I believe 26.2.2 is what was meant:

        Note that in the SIPS URI scheme, transport is independent of TLS,
        and thus "sips:alice@atlanta.com;transport=tcp" and
        "sips:alice@atlanta.com;transport=sctp" are both valid (although
        note that UDP is not a valid transport for SIPS).  The use of
        "transport=tls" has consequently been deprecated, partly because
        it was specific to a single hop of the request.  This is a change
        since RFC 2543.
........

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

16 years agoMerged revisions 166665 via svnmerge from
Steve Murphy [Wed, 24 Dec 2008 00:52:12 +0000 (00:52 +0000)] 
Merged revisions 166665 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

Due to non-symmetrical updating, I had some fairly
interesting conflicts to straighten out in this
release. The changes were such that I was compelled
to run thru all the same tests as trunk, which turned
up some problems, which I fixed.

................
  r166665 | murf | 2008-12-23 11:13:49 -0700 (Tue, 23 Dec 2008) | 153 lines

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

  In order to merge this 1.4 patch into trunk,
  I had to resolve some conflicts and wait for
  Russell to make some changes to res_agi.
  I re-ran all the tests; 39 calls in all, and
  made fairly careful notes and comparisons: I
  don't want this to blow up some aspect of
  asterisk; I completely removed the KEEPALIVE
  from the pbx.h decls. The first 3 scenarios
  involving feature park; feature xfer to 700;
  hookflash park to Park() app call all behave
  the same, don't appear to leave hung channels,
  and no crashes.

  ........
    r166093 | murf | 2008-12-19 15:30:32 -0700 (Fri, 19 Dec 2008) | 131 lines

    This merges the masqpark branch into 1.4

    These changes eliminate the need for (and use of)
    the KEEPALIVE return code in res_features.c;
    There are other places that use this result code
    for similar purposes at a higher level, these appear
    to be left alone in 1.4, but attacked in trunk.

    The reason these changes are being made in 1.4, is
    that parking ends a channel's life, in some situations,
    and the code in the bridge (and some other places),
    was not checking the result code properly, and dereferencing
    the channel pointer, which could lead to memory corruption
    and crashes.

    Calling the masq_park function eliminates this danger
    in higher levels.

    A series of previous commits have replaced some parking calls
    with masq_park, but this patch puts them ALL to rest,
    (except one, purposely left alone because a masquerade
    is done anyway), and gets rid of the code that tests
    the KEEPALIVE result, and the NOHANGUP_PEER result codes.

    While bug 13820 inspired this work, this patch does
    not solve all the problems mentioned there.

    I have tested this patch (again) to make sure I have
    not introduced regressions.

    Crashes that occurred when a parked party hung up
    while the parking party was listening to the numbers
    of the parking stall being assigned, is eliminated.

    These are the cases where parking code may be activated:

    1. Feature one touch (eg. *3)
    2. Feature blind xfer to parking lot (eg ##700)
    3. Run Park() app from dialplan (eg sip xfer to 700)
       (eg. dahdi hookflash xfer to 700)
    4. Run Park via manager.

    The interesting testing cases for parking are:
    I. A calls B, A parks B
        a. B hangs up while A is getting the numbers announced.
        b. B hangs up after A gets the announcement, but
           before the parking time expires
        c. B waits, time expires, A is redialed,
           A answers, B and A are connected, after
           which, B hangs up.
        d. C picks up B while still in parking lot.

    II. A calls B, B parks A
        a. A hangs up while B is getting the numbers announced.
        b. A hangs up after B gets the announcement, but
           before the parking time expires
        c. A waits, time expires, B is redialed,
           B answers, A and B are connected, after
           which, A hangs up.
        d. C picks up A while still in parking lot.

    Testing this throroughly involves acting all the permutations
    of I and II, in situations 1,2,3, and 4.

    Since I added a few more changes (ALL references to KEEPALIVE in the bridge
    code eliimated (I missed one earlier), I retested
    most of the above cases, and no crashes.

    H-extension weirdness.

    Current h-extension execution is not completely
    correct for several of the cases.

    For the case where A calls B, and A parks B, the
    'h' exten is run on A's channel as soon as the park
    is accomplished. This is expected behavior.

    But when A calls B, and B parks A, this will be
    current behavior:

    After B parks A, B is hung up by the system, and
    the 'h' (hangup) exten gets run, but the channel
    mentioned will be a derivative of A's...

    Thus, if A is DAHDI/1, and B is DAHDI/2,
    the h-extension will be run on channel
    Parked/DAHDI/1-1<ZOMBIE>, and the
    start/answer/end info will be those
    relating to Channel A.

    And, in the case where A is reconnected to
    B after the park time expires, when both parties
    hang up after the joyful reunion, no h-exten
    will be run at all.

    In the case where C picks up A from the
    parking lot, when either A or C hang up,
    the h-exten will be run for the C channel.

    CDR's are a separate issue, and not addressed
    here.

    As to WHY this strange behavior occurs,
    the answer lies in the procedure followed
    to accomplish handing over the channel
    to the parking manager thread. This procedure
    is called masquerading. In the process,
    a duplicate copy of the channel is created,
    and most of the active data is given to the
    new copy. The original channel gets its name
    changed to XXX<ZOMBIE> and keeps the PBX
    information for the sake of the original
    thread (preserving its role as a call
    originator, if it had this role to begin
    with), while the new channel is without
    this info and becomes a call target (a
    "peer").

    In this case, the parking lot manager
    thread is handed the new (masqueraded)
    channel. It will not run an h-exten
    on the channel if it hangs up while
    in the parking lot. The h exten will
    be run on the original channel instead,
    in the original thread, after the bridge
    completes.

    See bug 13820 for our intentions as
    to how to clean up the h exten behavior.

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

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

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

16 years agoMerged revisions 166696 via svnmerge from
Tilghman Lesher [Tue, 23 Dec 2008 20:52:19 +0000 (20:52 +0000)] 
Merged revisions 166696 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r166696 | tilghman | 2008-12-23 14:47:08 -0600 (Tue, 23 Dec 2008) | 7 lines

  Allow semicolons and extended characters in user-specified SIP headers.
  (closes issue #14110)
   Reported by: gork
   Patches:
         20081222__bug14110__2.diff.txt uploaded by Corydon76 (license 14)
   Tested by: gork, putnopvut
........

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

16 years agoMerged revisions 166569 via svnmerge from
Mark Michelson [Tue, 23 Dec 2008 15:18:43 +0000 (15:18 +0000)] 
Merged revisions 166569 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r166569 | mmichelson | 2008-12-23 09:17:54 -0600 (Tue, 23 Dec 2008) | 20 lines

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

........
r166568 | mmichelson | 2008-12-23 09:16:26 -0600 (Tue, 23 Dec 2008) | 12 lines

Fix a crash resulting from a datastore with inheritance but no duplicate callback

The fix for this is to simply set the newly created datastore's data pointer
to NULL if it is inherited but has no duplicate callback.

(closes issue #14113)
Reported by: francesco_r
Patches:
      14113.patch uploaded by putnopvut (license 60)
Tested by: francesco_r

........

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

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

16 years agoMerged revisions 166533 via svnmerge from
Tilghman Lesher [Tue, 23 Dec 2008 04:33:37 +0000 (04:33 +0000)] 
Merged revisions 166533 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r166533 | tilghman | 2008-12-22 22:32:15 -0600 (Mon, 22 Dec 2008) | 11 lines

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

  ........
    r166509 | tilghman | 2008-12-22 22:05:25 -0600 (Mon, 22 Dec 2008) | 4 lines

    Use the integer form of condition for integer comparisons.
    (closes issue #14127)
     Reported by: andrew
  ........
................

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

16 years agoMerged revisions 166470 via svnmerge from
Mark Michelson [Mon, 22 Dec 2008 23:27:03 +0000 (23:27 +0000)] 
Merged revisions 166470 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r166470 | mmichelson | 2008-12-22 17:25:34 -0600 (Mon, 22 Dec 2008) | 11 lines

Always use the value of the AGISIGHUP when running an AGI.

Prior to this patch, the value of AGISIGUP was not always
honored when set on a channel.

(closes issue #13711)
Reported by: fmueller
Patches:
      13711.patch uploaded by putnopvut (license 60)

........

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

16 years agoMerged revisions 166382 via svnmerge from
Mark Michelson [Mon, 22 Dec 2008 21:55:59 +0000 (21:55 +0000)] 
Merged revisions 166382 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r166382 | mmichelson | 2008-12-22 15:08:03 -0600 (Mon, 22 Dec 2008) | 44 lines

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

........
r166380 | mmichelson | 2008-12-22 14:56:29 -0600 (Mon, 22 Dec 2008) | 36 lines

Fix a deadlock relating to channel locks and autoservice

It has been discovered that if a channel is locked prior
to a call to ast_autoservice_stop, then it is likely that
a deadlock will occur. The reason is that the call to
ast_autoservice_stop has a check built into it to be sure
that the thread running autoservice is not currently trying
to manipulate the channel we are about to pull out of
autoservice.

The autoservice thread, however, cannot advance beyond where
it currently is, though, because it is trying to acquire
the lock of the channel for which autoservice is attempting
to be stopped.

The gist of all this is that a channel MUST NOT be locked
when attempting to stop autoservice on the channel.

In this particular case, the channel was locked by a call
to ast_read. A call to ast_exists_extension led to autoservice
being started and stopped due to the existence of dialplan
switches.

It may be that there are future commits which handle the same
symptoms but in a different location, but based on my looks through
the code, it is very rare to see a construct such as this one.

(closes issue #14057)
Reported by: rtrauntvein
Patches:
      14057v3.patch uploaded by putnopvut (license 60)
Tested by: rtrauntvein

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

........

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

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

16 years agoMerged revisions 166436 via svnmerge from
Russell Bryant [Mon, 22 Dec 2008 21:46:24 +0000 (21:46 +0000)] 
Merged revisions 166436 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r166436 | russell | 2008-12-22 15:45:28 -0600 (Mon, 22 Dec 2008) | 2 lines

Cosmetic change - don't mix struct initializer styles.

........

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

16 years agoMerged revisions 166377 via svnmerge from
Russell Bryant [Mon, 22 Dec 2008 20:27:59 +0000 (20:27 +0000)] 
Merged revisions 166377 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r166377 | russell | 2008-12-22 14:26:48 -0600 (Mon, 22 Dec 2008) | 2 lines

Fix a bad typo.

........

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

16 years agoMerged revisions 166317 via svnmerge from
Russell Bryant [Mon, 22 Dec 2008 17:30:05 +0000 (17:30 +0000)] 
Merged revisions 166317 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r166317 | russell | 2008-12-22 11:29:10 -0600 (Mon, 22 Dec 2008) | 10 lines

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

........
r166297 | russell | 2008-12-22 11:22:56 -0600 (Mon, 22 Dec 2008) | 2 lines

Fix up timeout handling in ast_carefulwrite().

........

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

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

16 years agoMerged revisions 166282 via svnmerge from
Russell Bryant [Mon, 22 Dec 2008 17:14:18 +0000 (17:14 +0000)] 
Merged revisions 166282 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r166282 | russell | 2008-12-22 11:09:36 -0600 (Mon, 22 Dec 2008) | 12 lines

Introduce ast_careful_fwrite() and use in AMI to prevent partial writes.

This patch introduces a function to do careful writes on a file stream which
will handle timeouts and partial writes.  It is currently used in AMI to
address the issue that has been reported.  However, there are probably a few
other places where this could be used.

(closes issue #13546)
Reported by: srt
Tested by: russell
http://reviewboard.digium.com/r/104/

........

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

16 years agoWhen merging the fix for issue #14118, I found that
Mark Michelson [Mon, 22 Dec 2008 16:30:25 +0000 (16:30 +0000)] 
When merging the fix for issue #14118, I found that
the issue didn't affect 1.6.0, but in this case that's
not an especially good thing, because it means that
the fix for issue #13496 was not merged into 1.6.0 in
the first place. This commit kills two birds with one
stone by putting both fixes in the 1.6.0 branch

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

16 years agoMerged revisions 166273 via svnmerge from
Russell Bryant [Mon, 22 Dec 2008 16:17:57 +0000 (16:17 +0000)] 
Merged revisions 166273 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r166273 | russell | 2008-12-22 10:10:40 -0600 (Mon, 22 Dec 2008) | 7 lines

Re-work ref count handling of MoH classes using astobj2 to resolve crashes.

(closes issue #13566)
Reported by: igorcarneiro
Tested by: russell
Review: http://reviewboard.digium.com/r/106/

........

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

16 years agoBack these changes out for now. The initial refcounting
Mark Michelson [Mon, 22 Dec 2008 16:12:34 +0000 (16:12 +0000)] 
Back these changes out for now. The initial refcounting
for filestreams didn't get merged into 1.6.0. I'll have
to get that in first and then put this change in

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

16 years agoMerged revisions 166267 via svnmerge from
Mark Michelson [Mon, 22 Dec 2008 16:10:14 +0000 (16:10 +0000)] 
Merged revisions 166267 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r166267 | mmichelson | 2008-12-22 10:07:59 -0600 (Mon, 22 Dec 2008) | 17 lines

Fix a file playback crash and explicitly initialize values in func_timeout.c

A crash was brought up on the bugtracker. The first run through valgrind
was full of legitimate complaints of uninitialized values in func_timeout when
setting a response timeout. These were fixed but the crash persisted.

A second run through showed the real problem. The reference counting used
for filestreams was incorrect because there were some missing increments
when a frame was read from a format module.

(closes issue #14118)
Reported by: blitzrage
Patches:
      14118v2.patch uploaded by putnopvut (license 60)
Tested by: blitzrage

........

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

16 years agoBlocked revisions 166268 via svnmerge
Joshua Colp [Mon, 22 Dec 2008 16:09:36 +0000 (16:09 +0000)] 
Blocked revisions 166268 via svnmerge

........
  r166268 | file | 2008-12-22 12:08:13 -0400 (Mon, 22 Dec 2008) | 7 lines

  Record the previous port in the temporary address structure so that the comparison does not treat the host as having changed even if it did not. This would have been uninitialized before and would have led to a baddddd port.
  (closes issue #13628)
  Reported by: pananix
  Patches:
        bug13628.patch uploaded by jpeeler (license 325)
  Tested by: file, blitzrage
........

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

16 years agoMerged revisions 166258 via svnmerge from
Russell Bryant [Mon, 22 Dec 2008 14:18:08 +0000 (14:18 +0000)] 
Merged revisions 166258 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r166258 | russell | 2008-12-22 08:16:54 -0600 (Mon, 22 Dec 2008) | 26 lines

Remove AST_PBX_KEEPALIVE usage from res_agi.

This patch removes the usage of AST_PBX_KEEPALIVE from res_agi.  The only usage
was for the AGI command, "asyncagi break".  This patch removes this feature.
Normally, a feature would not be removed like this.  However, this code is
broken and usage of it will result in a memory leak.

Usage of this feature will make the AGI code return a result of
AST_PBX_KEEPALIVE.  The PBX handler assumes that another thread has assumed
ownership of the channel.  The channel thread will exit without destroying the
channel.  Unfortunately, _no_ thread has ownership of the channel at this
point.  There are a couple of serious problems here:

1) The only way to recover the caller is to issue a channel redirect.  This
   will work, but this will be done with a masquerade, and the old ast_channel
   structure will be lost.

2) Until the channel redirect happens, there is no code servicing the channel.
   That means nothing is reading audio or handling events coming from the
   channel.  This is very bad.

The recommended way to get this same "break" functionality is to issue the
redirect while the channel is still being handled by the AGI code.  That way,
there will be no memory leak, and there will be no period of time that the
channel is not being serviced.

........

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

16 years agoMerged revisions 166162 via svnmerge from
Mark Michelson [Fri, 19 Dec 2008 23:45:26 +0000 (23:45 +0000)] 
Merged revisions 166162 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r166162 | mmichelson | 2008-12-19 17:45:00 -0600 (Fri, 19 Dec 2008) | 6 lines

Get rid of an extra space.

I don't know how this crept back in when I had already
fixed it earlier

........

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

16 years agoAdding missing file func_audiohookinherit.c
Mark Michelson [Fri, 19 Dec 2008 23:41:09 +0000 (23:41 +0000)] 
Adding missing file func_audiohookinherit.c

I don't know why this wasn't added to begin with. It's
here now though :)

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

16 years agoMerged revisions 166092,166095 via svnmerge from
Mark Michelson [Fri, 19 Dec 2008 23:04:07 +0000 (23:04 +0000)] 
Merged revisions 166092,166095 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r166092 | mmichelson | 2008-12-19 16:26:16 -0600 (Fri, 19 Dec 2008) | 28 lines

Adding a new dialplan function AUDIOHOOK_INHERIT

This function is being added as a method to allow for
an audiohook to move to a new channel during a channel
masquerade. The most obvious use for such a facility is
for MixMonitor when a transfer is performed. Prior to
the addition of this functionality, if a channel
running MixMonitor was transferred by another party, then
the recording would stop once the transfer had completed.
By using AUDIOHOOK_INHERIT, you can make MixMonitor
continue recording the call even after the transfer
has completed.

It has also been determined that since this is seen
by most as a bug fix and is not an invasive change,
this functionality will also be backported to 1.4 and
merged into the 1.6.0 branches, even though they are
feature-frozen.

(closes issue #13538)
Reported by: mbit
Patches:
      13538.patch uploaded by putnopvut (license 60)
  Tested by: putnopvut

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

........
r166095 | mmichelson | 2008-12-19 16:40:57 -0600 (Fri, 19 Dec 2008) | 5 lines

Remove the verbatim tag from the author line

I could have sworn I already did that before, though...

........

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

16 years agoBlocked revisions 165954 via svnmerge
Eliel C. Sardanons [Fri, 19 Dec 2008 18:23:47 +0000 (18:23 +0000)] 
Blocked revisions 165954 via svnmerge

........
  r165954 | eliel | 2008-12-19 16:20:46 -0200 (Fri, 19 Dec 2008) | 4 lines

  Fix the XML documentation for Record().
  <value> tags inside <variable> elements must have CDATA and no
  another XML node.
........

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

16 years agoMerged revisions 165890 via svnmerge from
Russell Bryant [Fri, 19 Dec 2008 15:08:00 +0000 (15:08 +0000)] 
Merged revisions 165890 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r165890 | russell | 2008-12-19 09:05:09 -0600 (Fri, 19 Dec 2008) | 17 lines

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

........
r165889 | russell | 2008-12-19 09:03:02 -0600 (Fri, 19 Dec 2008) | 9 lines

Ensure that the chanspy datastore is fully initialized.

This patch resolved some random crash issues observed by a user on a BSD system

(closes issue #14111)
Reported by: ys
Patches:
      app_chanspy.c.diff uploaded by ys (license 281)

........

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

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

16 years agoBlocked revisions 165886 via svnmerge
Russell Bryant [Fri, 19 Dec 2008 14:48:51 +0000 (14:48 +0000)] 
Blocked revisions 165886 via svnmerge

........
r165886 | russell | 2008-12-19 08:48:35 -0600 (Fri, 19 Dec 2008) | 2 lines

Disable some automatic links generated by doxygen.

........

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

16 years agoBlocked revisions 165883 via svnmerge
Russell Bryant [Fri, 19 Dec 2008 14:43:13 +0000 (14:43 +0000)] 
Blocked revisions 165883 via svnmerge

........
r165883 | russell | 2008-12-19 08:42:51 -0600 (Fri, 19 Dec 2008) | 8 lines

Introduce commit message formatting guidelines.

This documents the recommended outline to use for commit message.  It also
covers information on special tags that can be used in commit messages, as well
as the template functionality that is available on bugs.digium.com.

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

........

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

16 years agoMerged revisions 165797 via svnmerge from
Tilghman Lesher [Thu, 18 Dec 2008 21:56:27 +0000 (21:56 +0000)] 
Merged revisions 165797 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r165797 | tilghman | 2008-12-18 15:41:02 -0600 (Thu, 18 Dec 2008) | 15 lines

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

  ........
    r165767 | tilghman | 2008-12-18 15:14:47 -0600 (Thu, 18 Dec 2008) | 8 lines

    Add mutexes around accesses to the IMAP library interface.  This prevents
    certain crashes, especially when shared mailboxes are used.
    (closes issue #13653)
     Reported by: howardwilkinson
     Patches:
           asterisk-1.4.21.2-appvoicemail-sharedimap-lock.patch uploaded by howardwilkinson (license 590)
     Tested by: jpeeler
  ........
................

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

16 years agoMerged revisions 165801 via svnmerge from
Russell Bryant [Thu, 18 Dec 2008 21:45:38 +0000 (21:45 +0000)] 
Merged revisions 165801 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r165801 | russell | 2008-12-18 15:44:47 -0600 (Thu, 18 Dec 2008) | 19 lines

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

........
r165796 | russell | 2008-12-18 15:39:25 -0600 (Thu, 18 Dec 2008) | 11 lines

Make ast_carefulwrite() be more careful.

This patch handles some additional cases that could result in partial writes
to the file description.  This was done to address complaints about partial
writes on AMI.

(issue #13546) (more changes needed to address potential problems in 1.6)
Reported by: srt
Tested by: russell
Review: http://reviewboard.digium.com/r/99/

........

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

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

16 years agoBlocked revisions 165798 via svnmerge
Jeff Peeler [Thu, 18 Dec 2008 21:44:05 +0000 (21:44 +0000)] 
Blocked revisions 165798 via svnmerge

........
r165798 | jpeeler | 2008-12-18 15:43:17 -0600 (Thu, 18 Dec 2008) | 6 lines

(closes issue #13993)
Reported by: mika

Add ActionID response to ping if sent with request.

........

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

16 years agoBlocked revisions 165792 via svnmerge
Joshua Colp [Thu, 18 Dec 2008 21:22:29 +0000 (21:22 +0000)] 
Blocked revisions 165792 via svnmerge

........
  r165792 | file | 2008-12-18 17:21:44 -0400 (Thu, 18 Dec 2008) | 6 lines

  Numerous documentation updates.
  (closes issue #13970)
  Reported by: pkempgen
  Patches:
        __20081217_cli_usage_fixes.patch.txt uploaded by blitzrage (license 10)
........

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

16 years agoMerged revisions 165723 via svnmerge from
Russell Bryant [Thu, 18 Dec 2008 19:40:14 +0000 (19:40 +0000)] 
Merged revisions 165723 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r165723 | russell | 2008-12-18 13:33:42 -0600 (Thu, 18 Dec 2008) | 14 lines

Remove the need for AST_PBX_KEEPALIVE with the GoSub option from Dial.

This is part of an effort to completely remove AST_PBX_KEEPALIVE and other
similar return codes from the source.  While this usage was perfectly safe,
there are others that are problematic.  Since we know ahead of time that
we do not want to PBX to destroy the channel, the PBX API has been changed
so that information can be provided as an argument, instead, thus removing
the need for the KEEPALIVE return value.

Further changes to get rid of KEEPALIVE and related code is being done by
murf.  There is a patch up for that on review 29.

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

........

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

16 years agoMerged revisions 165662 via svnmerge from
Russell Bryant [Thu, 18 Dec 2008 18:56:32 +0000 (18:56 +0000)] 
Merged revisions 165662 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r165662 | russell | 2008-12-18 12:54:47 -0600 (Thu, 18 Dec 2008) | 15 lines

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

........
r165661 | russell | 2008-12-18 12:52:18 -0600 (Thu, 18 Dec 2008) | 7 lines

Set the process group ID on the MOH process so that all children will get killed

(closes issue #14099)
Reported by: caspy
Patches:
      res_musiconhold.c.patch.killpg.try2 uploaded by caspy (license 645)

........

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

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

16 years agoMerged revisions 165658 via svnmerge from
Tilghman Lesher [Thu, 18 Dec 2008 18:46:23 +0000 (18:46 +0000)] 
Merged revisions 165658 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r165658 | tilghman | 2008-12-18 12:36:48 -0600 (Thu, 18 Dec 2008) | 2 lines

  Fix 2 resource leaks and fix another pipe-to-comma conversion
........

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

16 years agoMerged revisions 165599 via svnmerge from
Joshua Colp [Thu, 18 Dec 2008 17:14:27 +0000 (17:14 +0000)] 
Merged revisions 165599 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r165599 | file | 2008-12-18 13:13:32 -0400 (Thu, 18 Dec 2008) | 11 lines

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

  ........
    r165591 | file | 2008-12-18 13:11:42 -0400 (Thu, 18 Dec 2008) | 4 lines

    Only care about a compatible codec for early bridging if we are actually bridging to another channel. If we are not we actually want to bring the audio back to us.
    (closes issue #13545)
    Reported by: davidw
  ........
................

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

16 years agoBlocked revisions 165538 via svnmerge
Joshua Colp [Thu, 18 Dec 2008 16:11:49 +0000 (16:11 +0000)] 
Blocked revisions 165538 via svnmerge

................
  r165538 | file | 2008-12-18 12:11:08 -0400 (Thu, 18 Dec 2008) | 12 lines

  Blocked revisions 165537 via svnmerge

  ........
    r165537 | file | 2008-12-18 12:07:37 -0400 (Thu, 18 Dec 2008) | 6 lines

    Do not crash if we are not passed in a followme id.
    (closes issue #14106)
    Reported by: ys
    Patches:
          app_followme.c.2.diff uploaded by ys (license 281)
  ........
................

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

16 years agoBlocked revisions 165502 via svnmerge
Eliel C. Sardanons [Thu, 18 Dec 2008 15:28:41 +0000 (15:28 +0000)] 
Blocked revisions 165502 via svnmerge

........
  r165502 | eliel | 2008-12-18 13:25:15 -0200 (Thu, 18 Dec 2008) | 9 lines

  Remove duplicate code from the ast_str API. We now use __AST_STR_* to
  access 'struct ast_str' members, but this must only be used inside the API implementation.

  (closes issue #14098)
  Reported by: eliel
  Patches:
        ast_str.patch uploaded by eliel (license 64)
........

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

16 years agoBlocked revisions 165433 via svnmerge
Russell Bryant [Thu, 18 Dec 2008 13:34:02 +0000 (13:34 +0000)] 
Blocked revisions 165433 via svnmerge

........
r165433 | russell | 2008-12-18 07:33:34 -0600 (Thu, 18 Dec 2008) | 9 lines

Add a new application, Originate.

(closes issue #14075)
Reported by: rcasas
Patches:
      app_originate.c uploaded by rcasas (license 641), heavily modified by me
Tested by: russell
Review: http://reviewboard.digium.com/r/95/

........

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

16 years agoBlocked revisions 165330 via svnmerge
Mark Michelson [Wed, 17 Dec 2008 21:48:00 +0000 (21:48 +0000)] 
Blocked revisions 165330 via svnmerge

........
r165330 | mmichelson | 2008-12-17 15:46:19 -0600 (Wed, 17 Dec 2008) | 3 lines

Fix a refcount leak in res_odbc

........

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

16 years agoOops, broke 1.6.0
Tilghman Lesher [Wed, 17 Dec 2008 21:29:32 +0000 (21:29 +0000)] 
Oops, broke 1.6.0

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

16 years agoMerged revisions 165318 via svnmerge from
Mark Michelson [Wed, 17 Dec 2008 21:22:10 +0000 (21:22 +0000)] 
Merged revisions 165318 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r165318 | mmichelson | 2008-12-17 15:17:20 -0600 (Wed, 17 Dec 2008) | 15 lines

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

........
r165255 | mmichelson | 2008-12-17 14:51:38 -0600 (Wed, 17 Dec 2008) | 7 lines

Fix some memory leaks found while looking at how realtime
configs are handled.

Also cleaned up some coding guidelines violations in app_realtime.c,
mostly related to spacing

........

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

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

16 years agoMerged revisions 165319 via svnmerge from
Tilghman Lesher [Wed, 17 Dec 2008 21:21:19 +0000 (21:21 +0000)] 
Merged revisions 165319 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r165319 | tilghman | 2008-12-17 15:18:57 -0600 (Wed, 17 Dec 2008) | 11 lines

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

  ........
    r165317 | tilghman | 2008-12-17 15:14:37 -0600 (Wed, 17 Dec 2008) | 4 lines

    Reverse the fix from issue #6176 and add proper handling for that issue.
    (Closes issue #13962, closes issue #13363)
    Fixed by myself (license 14)
  ........
................

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

16 years agoMerged revisions 165254 via svnmerge from
Steve Murphy [Wed, 17 Dec 2008 20:59:42 +0000 (20:59 +0000)] 
Merged revisions 165254 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r165254 | murf | 2008-12-17 13:50:19 -0700 (Wed, 17 Dec 2008) | 5 lines

This patch is here committed to satisfy the
buildbot, who has a problem with the const.

........

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

16 years agoMerged revisions 165219 via svnmerge from
Terry Wilson [Wed, 17 Dec 2008 20:00:11 +0000 (20:00 +0000)] 
Merged revisions 165219 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r165219 | twilson | 2008-12-17 13:55:10 -0600 (Wed, 17 Dec 2008) | 2 lines

  Polycom phones close the connection after reading a little bit of the firmware files, we should stop sending in that case. Also, make that case print out a debug statement instead of a scary WARNING.
........

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

16 years agoMerged revisions 165216 via svnmerge from
Joshua Colp [Wed, 17 Dec 2008 19:53:42 +0000 (19:53 +0000)] 
Merged revisions 165216 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r165216 | file | 2008-12-17 15:52:40 -0400 (Wed, 17 Dec 2008) | 4 lines

  Call proxy_update so that the IP address gets populated. Sending stuff to 0.0.0.0 is silly!
  (closes issue #14055)
  Reported by: chris-mac
........

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

16 years agoMerged revisions 165142-165143 via svnmerge from
Mark Michelson [Wed, 17 Dec 2008 17:55:02 +0000 (17:55 +0000)] 
Merged revisions 165142-165143 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r165142 | mmichelson | 2008-12-17 11:52:50 -0600 (Wed, 17 Dec 2008) | 10 lines

Use the create_vm_state_from_user function in a place where
it was not being used before. Also, I've moved the urgent
folder check in messagecount() up a bit so that the flow is
a bit better.

This was something I noticed while taking a look at issue
#13973, although I don't think this is the underlying cause
of the issue.

........
r165143 | mmichelson | 2008-12-17 11:53:37 -0600 (Wed, 17 Dec 2008) | 3 lines

And actually assign the function to a pointer...

........

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

16 years agoMerged revisions 165071 via svnmerge from
Steve Murphy [Wed, 17 Dec 2008 05:35:48 +0000 (05:35 +0000)] 
Merged revisions 165071 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r165071 | murf | 2008-12-16 22:04:56 -0700 (Tue, 16 Dec 2008) | 31 lines

A possibly "horrible fix" for a "horribly broken"
situation.

As stuff shifts around in the asterisk code, the
miscellaneous inclusions from the standalone stuff
gets broken. There's no easy fix for this situation.

I made sure that everything in utils builds without
problem ***AND*** that aelparse runs the regressions
correctly with the following make menuselect options
both on and off:

DONT_OPTIMIZE
DEBUG_THREADS
DEBUG_CHANNEL_LOCKS
MALLOC_DEBUG
MTX_PROFILE
DEBUG_SCHEDULER
DEBUG_THREADLOCALS
DETECT_DEADLOCKS
CHANNEL_TRACE

I think from now on, I'm going to #undef
all these features in the various utils native
files; I guess I could do the same for the
copied-in files, surrounded by STANDALONE ifdef.

A standalone isn't going to care about threads,
mutexes, etc.

........

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

16 years agoMerged revisions 164978 via svnmerge from
Mark Michelson [Tue, 16 Dec 2008 23:07:06 +0000 (23:07 +0000)] 
Merged revisions 164978 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164978 | mmichelson | 2008-12-16 17:06:04 -0600 (Tue, 16 Dec 2008) | 15 lines

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

........
r164977 | mmichelson | 2008-12-16 17:04:27 -0600 (Tue, 16 Dec 2008) | 7 lines

After looking through SIP registration code most of the day, this
is one of the few things I could find that was just plain wrong.
Even though it probably isn't possible for it to happen, it seems weird
to have code that checks if a pointer is NULL and then immediately dereferences
that pointer if it was NULL.

........

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

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

16 years agoMerged revisions 164942 via svnmerge from
Jeff Peeler [Tue, 16 Dec 2008 22:51:55 +0000 (22:51 +0000)] 
Merged revisions 164942 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r164942 | jpeeler | 2008-12-16 16:45:39 -0600 (Tue, 16 Dec 2008) | 6 lines

(closes issue #13669)
Reported by: pj

Delete file recording if recording terminated from a hangup.

........

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

16 years agoMerged revisions 164882 via svnmerge from
Russell Bryant [Tue, 16 Dec 2008 21:39:45 +0000 (21:39 +0000)] 
Merged revisions 164882 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164882 | russell | 2008-12-16 15:39:15 -0600 (Tue, 16 Dec 2008) | 17 lines

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

........
r164881 | russell | 2008-12-16 15:38:29 -0600 (Tue, 16 Dec 2008) | 9 lines

Fix an issue where DEBUG_THREADS may erroneously report that a thread
is exiting while holding a lock.

If the last lock attempt was a trylock, and it failed, it will still be in the
list of locks so that it can be reported.

(closes issue #13219)
Reported by: pj

........

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

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

16 years agoMerged revisions 164877 via svnmerge from
Russell Bryant [Tue, 16 Dec 2008 21:13:18 +0000 (21:13 +0000)] 
Merged revisions 164877 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164877 | russell | 2008-12-16 15:12:49 -0600 (Tue, 16 Dec 2008) | 14 lines

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

........
r164876 | russell | 2008-12-16 15:10:44 -0600 (Tue, 16 Dec 2008) | 6 lines

Do not dereference the channel if AST_PBX_KEEPALIVE has been returned.

This is a bug I noticed while looking at the code for app_macro.  This return code
means that another thread has assumed ownership of the channel and it can no longer
be touched.  (I hate this return code with a passion, by the way.)

........

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

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

16 years agoBlocked revisions 164821 via svnmerge
Russell Bryant [Tue, 16 Dec 2008 20:49:47 +0000 (20:49 +0000)] 
Blocked revisions 164821 via svnmerge

........
r164821 | russell | 2008-12-16 14:49:25 -0600 (Tue, 16 Dec 2008) | 2 lines

Fix build issues on Linux after sysinfo related changes

........

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

16 years agoBlocked revisions 164814 via svnmerge
Joshua Colp [Tue, 16 Dec 2008 20:48:13 +0000 (20:48 +0000)] 
Blocked revisions 164814 via svnmerge

........
  r164814 | file | 2008-12-16 16:47:31 -0400 (Tue, 16 Dec 2008) | 2 lines

  Qualify trumps poke per lmadsen.
........

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

16 years agoMerged revisions 164807 via svnmerge from
Russell Bryant [Tue, 16 Dec 2008 20:43:16 +0000 (20:43 +0000)] 
Merged revisions 164807 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164807 | russell | 2008-12-16 14:41:51 -0600 (Tue, 16 Dec 2008) | 17 lines

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

........
r164806 | russell | 2008-12-16 14:35:25 -0600 (Tue, 16 Dec 2008) | 9 lines

Add "restart gracefully" to the AMI blacklist of CLI commands.

"module unload" was already identified as a command that can not be used
from the AMI.  "restart gracefully" effectively unloads all modules, and will
run in to the same problems.

(closes issue #13894)
Reported by: kernelsensei

........

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

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

16 years agoBlocked revisions 164809 via svnmerge
Joshua Colp [Tue, 16 Dec 2008 20:43:06 +0000 (20:43 +0000)] 
Blocked revisions 164809 via svnmerge

........
  r164809 | file | 2008-12-16 16:42:33 -0400 (Tue, 16 Dec 2008) | 4 lines

  Add configuration options for finer control over how Asterisk handles having to poke all peers at seemingly the same time.
  (closes issue #13217)
  Reported by: cervajs
........

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

16 years agoBlocked revisions 164802 via svnmerge
Michiel van Baak [Tue, 16 Dec 2008 20:12:05 +0000 (20:12 +0000)] 
Blocked revisions 164802 via svnmerge

........
  r164802 | mvanbaak | 2008-12-16 21:08:34 +0100 (Tue, 16 Dec 2008) | 10 lines

  introduce 'core show sysinfo' for systems that dont have the Linux-ish sysinfo stuff but do have sysctl.

  (closes issue #13433)
  Reported by: mvanbaak
  Patches:
        2008121300_sysinfosysctl.diff.txt uploaded by mvanbaak (license 7)
     with two free calls replaced with ast_free based on feedback on reviewboard
  Review:
        http://reviewboard.digium.com/r/91/
........

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

16 years agoMerged revisions 164801 via svnmerge from
Steve Murphy [Tue, 16 Dec 2008 20:08:39 +0000 (20:08 +0000)] 
Merged revisions 164801 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r164801 | murf | 2008-12-16 13:04:46 -0700 (Tue, 16 Dec 2008) | 36 lines

(closes issue #14076)
Reported by: toc
Tested by: murf

OK, Well this issue has had its share of flip-flopping.
I found the following:

1. the code in question, in ext_cmp1 in pbx.c, would not
allow two extensions that vary only by any dashes contained
within them, to be defined in the same context.

2. for input dialstrings, dashes are NOT ignored.
So, skipping them when sorting patterns seemed a bit silly.
Thus, you might declare ext 891 in a context, but
if you try dialing 8-9-1, it will NOT match 891.

So, I proposed to remove the code from ext_cmp1 to
skip the spaces and dashes. Just kept us from
declaring 891 and 8-9-1 in the same context,
forcing users to generate otherwise uselessly
obfuscated dialplan code to get the same effect.

Then, I tried out 1.4, and found that:

1. you can declare 891 and 8-9-1 in the
same context!

2. You can't define 891, and have 8-9-1 match
it! Nor can you define 8-9-1, and have 891
match it!

So, it appears that my proposal simply restores
the pbx to behaving as it did in 1.4.

........

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

16 years agoMerged revisions 164798 via svnmerge from
Tilghman Lesher [Tue, 16 Dec 2008 19:55:38 +0000 (19:55 +0000)] 
Merged revisions 164798 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r164798 | tilghman | 2008-12-16 13:54:11 -0600 (Tue, 16 Dec 2008) | 4 lines

  Set up umask as a possible configuration option.
  (closes issue #13753)
   Reported by: irroot
........

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

16 years agoMerged revisions 164737 via svnmerge from
Russell Bryant [Tue, 16 Dec 2008 17:15:43 +0000 (17:15 +0000)] 
Merged revisions 164737 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164737 | russell | 2008-12-16 11:14:01 -0600 (Tue, 16 Dec 2008) | 22 lines

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

........
r164736 | russell | 2008-12-16 11:06:29 -0600 (Tue, 16 Dec 2008) | 14 lines

Fix memory leak and invalid reporting issues with DEBUG_THREADLOCALS.

One issue was that the ast_mutex_* API was being used within the context of the
thread local data destructors.  We would go off and allocate more thread local data
while the pthread lib was in the middle of destroying it all.  This led to a memory
leak.

Another issue was an invalid argument being provided to the the object_add
API call.

(closes issue #13678)
Reported by: ys
Tested by: Russell

........

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

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

16 years agoBlocked revisions 164733 via svnmerge
Joshua Colp [Tue, 16 Dec 2008 16:51:34 +0000 (16:51 +0000)] 
Blocked revisions 164733 via svnmerge

........
  r164733 | file | 2008-12-16 12:50:11 -0400 (Tue, 16 Dec 2008) | 6 lines

  Be more detailed about why the include did not get included.
  (closes issue #14071)
  Reported by: kshumard
  Patches:
        pbx_config.patch.improvederroroutput.txt uploaded by kshumard (license 92)
........

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

16 years agoMerged revisions 164675 via svnmerge from
Russell Bryant [Tue, 16 Dec 2008 16:02:22 +0000 (16:02 +0000)] 
Merged revisions 164675 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164675 | russell | 2008-12-16 10:00:29 -0600 (Tue, 16 Dec 2008) | 19 lines

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

........
r164672 | russell | 2008-12-16 09:56:37 -0600 (Tue, 16 Dec 2008) | 11 lines

Fix a memory leak related to the use of the "setvar" configuration option.

The problem was that these variables were being appended to the list of vars
on the sip_pvt every time a re-registration or re-subscription came in.
Since it's just a waste of memory to put them there unless the request was an
INVITE, then the fix is to check the request type before copying the vars.

(closes issue #14037)
Reported by: marvinek
Tested by: russell

........

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

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

16 years agoMerged revisions 164659 via svnmerge from
Joshua Colp [Tue, 16 Dec 2008 15:45:46 +0000 (15:45 +0000)] 
Merged revisions 164659 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r164659 | file | 2008-12-16 11:44:28 -0400 (Tue, 16 Dec 2008) | 4 lines

  When using externhost make sure the port gets set to the bindaddr port if one was not specified in the externhost value itself.
  (closes issue #13634)
  Reported by: performer
........

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

16 years agoMerged revisions 164648 via svnmerge from
Steve Murphy [Tue, 16 Dec 2008 15:37:46 +0000 (15:37 +0000)] 
Merged revisions 164648 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164648 | murf | 2008-12-16 08:31:54 -0700 (Tue, 16 Dec 2008) | 13 lines

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

........
r164634 | murf | 2008-12-16 08:15:58 -0700 (Tue, 16 Dec 2008) | 5 lines

I added a sentence to clarify why - and ' ' are ignored in patterns
as per bug 14076. Leif says he'll put some stuff about it in the
extensions.conf sample, etc.

........

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

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

16 years agoMerged revisions 164623 via svnmerge from
Russell Bryant [Tue, 16 Dec 2008 15:01:31 +0000 (15:01 +0000)] 
Merged revisions 164623 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r164623 | russell | 2008-12-16 09:00:27 -0600 (Tue, 16 Dec 2008) | 5 lines

Set MINIVM_ACCMESS_STATUS in all cases.  Also, remove a variable that was not needed.

(closes issue #14081)
Reported by: pkempgen

........

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

16 years agoMerged revisions 164606 via svnmerge from
Russell Bryant [Tue, 16 Dec 2008 14:39:40 +0000 (14:39 +0000)] 
Merged revisions 164606 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164606 | russell | 2008-12-16 08:31:02 -0600 (Tue, 16 Dec 2008) | 13 lines

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

........
r164605 | russell | 2008-12-16 08:28:10 -0600 (Tue, 16 Dec 2008) | 5 lines

Don't try to change working directory if a directory was not configured.

(closes issue #14089)
Reported by: caspy

........

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

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

16 years agoBlocked revisions 164602 via svnmerge
Russell Bryant [Tue, 16 Dec 2008 14:18:07 +0000 (14:18 +0000)] 
Blocked revisions 164602 via svnmerge

........
r164602 | russell | 2008-12-16 08:17:45 -0600 (Tue, 16 Dec 2008) | 7 lines

Fix usage of the DAHDI_VMWI ioctl.

(closes issue #14090)
Reported by: alecdavis
Patches:
      chan_dahdi.VMWI_ioctl.diff.txt uploaded by alecdavis (license 585)

........

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

16 years agoBlocked revisions 164525 via svnmerge
Russell Bryant [Mon, 15 Dec 2008 22:26:01 +0000 (22:26 +0000)] 
Blocked revisions 164525 via svnmerge

........
r164525 | russell | 2008-12-15 16:25:46 -0600 (Mon, 15 Dec 2008) | 6 lines

Open a timer before loading configuration so that the trunking configuration option
will take effect.

(closes issue #14082)
Reported by: seandarcy

........

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

16 years agoBlocked revisions 164522 via svnmerge
Russell Bryant [Mon, 15 Dec 2008 22:23:03 +0000 (22:23 +0000)] 
Blocked revisions 164522 via svnmerge

........
r164522 | russell | 2008-12-15 16:22:43 -0600 (Mon, 15 Dec 2008) | 4 lines

Fix log message to refer to the generic timing interface, not DAHDI specifically

(inspired by issue #14082)

........

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

16 years agoBlocked revisions 164519 via svnmerge
Russell Bryant [Mon, 15 Dec 2008 21:54:52 +0000 (21:54 +0000)] 
Blocked revisions 164519 via svnmerge

........
r164519 | russell | 2008-12-15 15:53:30 -0600 (Mon, 15 Dec 2008) | 7 lines

Make sure we handle a uint32_t payload in ast_frdup()

(closes issue #14080)
Reported by: fnordian
Patches:
      frame.patch uploaded by fnordian (license 110)

........

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

16 years agoBlocked revisions 164415 via svnmerge
Steve Murphy [Mon, 15 Dec 2008 19:55:40 +0000 (19:55 +0000)] 
Blocked revisions 164415 via svnmerge

........
r164415 | murf | 2008-12-15 12:42:05 -0700 (Mon, 15 Dec 2008) | 16 lines

I was getting this warning during a compile
on a 64-bit machine running ubuntu server 8.10,
and gcc-4.3.2:

   [CXXi] chan_vpb.ii -> chan_vpb.oo
cc1plus: warnings being treated as errors
In file included from /home/murf/asterisk/trunk/include/asterisk/utils.h:671,
                 from chan_vpb.cc:46:
/home/murf/asterisk/trunk/include/asterisk/strings.h: In function â€˜char* ast_str_truncate(ast_str*, ssize_t)’:
/home/murf/asterisk/trunk/include/asterisk/strings.h:479: error: comparison between signed and unsigned integer expressions
make[1]: *** [chan_vpb.oo] Error 1
make: *** [channels] Error 2

which this fix silences

........

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

16 years agoMerged revisions 164423 via svnmerge from
Mark Michelson [Mon, 15 Dec 2008 19:53:49 +0000 (19:53 +0000)] 
Merged revisions 164423 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164423 | mmichelson | 2008-12-15 13:53:29 -0600 (Mon, 15 Dec 2008) | 11 lines

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

........
r164422 | mmichelson | 2008-12-15 13:53:08 -0600 (Mon, 15 Dec 2008) | 3 lines

Add the deadlock note to ast_spawn_extension as well

........

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

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

16 years agoMerged revisions 164419 via svnmerge from
Mark Michelson [Mon, 15 Dec 2008 19:51:53 +0000 (19:51 +0000)] 
Merged revisions 164419 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164419 | mmichelson | 2008-12-15 13:51:24 -0600 (Mon, 15 Dec 2008) | 12 lines

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

........
r164416 | mmichelson | 2008-12-15 13:45:07 -0600 (Mon, 15 Dec 2008) | 4 lines

Add notes to autoservice and pbx doxygen regarding a potential
deadlock scenario so that it is avoided in the future

........

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

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

16 years agoMerged revisions 164349 via svnmerge from
Tilghman Lesher [Mon, 15 Dec 2008 18:26:46 +0000 (18:26 +0000)] 
Merged revisions 164349 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r164349 | tilghman | 2008-12-15 12:09:58 -0600 (Mon, 15 Dec 2008) | 4 lines

  When querying for the structure of the CDR table, remove the schema, if it
  exists.
  (Closes issue #14058)
........

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

16 years agoMerged revisions 164351 via svnmerge from
Joshua Colp [Mon, 15 Dec 2008 18:13:13 +0000 (18:13 +0000)] 
Merged revisions 164351 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r164351 | file | 2008-12-15 14:12:24 -0400 (Mon, 15 Dec 2008) | 13 lines

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

  ........
    r164350 | file | 2008-12-15 14:11:21 -0400 (Mon, 15 Dec 2008) | 6 lines

    Do not try to unlock a non-existant channel if the transfer fails.
    (closes issue #13800)
    Reported by: dwagner
    Patches:
          asterisk-1.4.22-chan-sip-nullp.patch uploaded by tweety (license 608)
  ........
................

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

16 years agoBlocked revisions 164344 via svnmerge
Joshua Colp [Mon, 15 Dec 2008 17:47:10 +0000 (17:47 +0000)] 
Blocked revisions 164344 via svnmerge

................
  r164344 | file | 2008-12-15 13:46:32 -0400 (Mon, 15 Dec 2008) | 10 lines

  Blocked revisions 164343 via svnmerge

  ........
    r164343 | file | 2008-12-15 13:43:59 -0400 (Mon, 15 Dec 2008) | 4 lines

    Use autoconf logic to determine whether the system has timersub or not. Do not blindly assume Solaris does not.
    (closes issue #13838)
    Reported by: ano
  ........
................

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

16 years agoBlocked revisions 164312 via svnmerge
Joshua Colp [Mon, 15 Dec 2008 17:25:35 +0000 (17:25 +0000)] 
Blocked revisions 164312 via svnmerge

........
  r164312 | file | 2008-12-15 13:24:28 -0400 (Mon, 15 Dec 2008) | 4 lines

  Use ast_seekstream to return the file stream back to the beginning instead of directly seeking to zero. This is because some audio formats have headers at the front that need to be skipped, which will be done by the format module.
  (closes issue #14079)
  Reported by: elguero
........

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

16 years agoBlocked revisions 164309 via svnmerge
Russell Bryant [Mon, 15 Dec 2008 17:21:59 +0000 (17:21 +0000)] 
Blocked revisions 164309 via svnmerge

........
r164309 | russell | 2008-12-15 11:21:38 -0600 (Mon, 15 Dec 2008) | 2 lines

Fix a couple more build issues related to ast_str_opaque

........

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

16 years agoMerged revisions 164203 via svnmerge from
Russell Bryant [Mon, 15 Dec 2008 16:26:09 +0000 (16:26 +0000)] 
Merged revisions 164203 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r164203 | russell | 2008-12-15 08:40:24 -0600 (Mon, 15 Dec 2008) | 39 lines

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

........
r164201 | russell | 2008-12-15 08:31:37 -0600 (Mon, 15 Dec 2008) | 31 lines

Handle a case where a call can be bridged to a channel that is still ringing.

The issue that was reported was about a case where a RINGING channel got
redirected to an extension to pick up a call from parking.  Once the parked
call got taken out of parking, it heard silence until the other side answered.
Ideally, the caller that was parked would get a ringing indication.  This patch
fixes this case so that the caller receives ringback once it comes out of
parking until the other side answers.

The fixes are:

 - Make sure we remember that a channel was an outgoing channel when doing
   a masquerade.  This prevents an erroneous ast_answer() call on the channel,
   which causes a bogus 200 OK to be sent in the case of SIP.

 - Add some additional comments to explain related parts of code.

 - Update the handling of the ast_channel visible_indication field.  Storing
   values that are not stateful is pointless.  Control frames that are events
   or commands should be ignored.

 - When a bridge first starts, check to see if the peer channel needs to be
   given ringing indication because the calling side is still ringing.

 - Rework ast_indicate_data() a bit for the sake of readability.

(closes issue #13747)
Reported by: davidw
Tested by: russell
Review: http://reviewboard.digium.com/r/90/

........

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

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

16 years agoMerged revisions 164272 via svnmerge from
Russell Bryant [Mon, 15 Dec 2008 16:19:00 +0000 (16:19 +0000)] 
Merged revisions 164272 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r164272 | russell | 2008-12-15 10:17:55 -0600 (Mon, 15 Dec 2008) | 8 lines

When a reload is issued, always process the configuration for dundi.conf.

The reason is that a reload can be used to refresh DNS lookups for defined peers.
Even if the config file hasn't changed, we want to process it for that purpose.

(closes issue #13776)
Reported by: kombjuder

........

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

16 years agoMerged revisions 164270 via svnmerge from
Mark Michelson [Mon, 15 Dec 2008 16:17:19 +0000 (16:17 +0000)] 
Merged revisions 164270 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r164270 | mmichelson | 2008-12-15 10:16:47 -0600 (Mon, 15 Dec 2008) | 4 lines

Fix a compile warning and a logic error that could have been bad
for non-realtime queues

........

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

16 years agoMerged revisions 164268 via svnmerge from
Mark Michelson [Mon, 15 Dec 2008 16:12:09 +0000 (16:12 +0000)] 
Merged revisions 164268 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r164268 | mmichelson | 2008-12-15 10:10:43 -0600 (Mon, 15 Dec 2008) | 17 lines

Fix up a few issues with regards to queues

* Fix reference counting used in the __queues_show function
* Add code to be sure that the "queue show" command does not
  print information for a realtime queue which has been deleted
  from the backend
* Add a missing unref to the realtime queue loading function for
  the case where a queue is in the module's container but has been
  deleted from the realtime backend

(closes issue #14033)
Reported by: cristiandimache
Patches:
      14033.patch uploaded by putnopvut (license 60)
Tested by: cristiandimache

........

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

16 years agoMerged revisions 164257 via svnmerge from
Joshua Colp [Mon, 15 Dec 2008 15:48:22 +0000 (15:48 +0000)] 
Merged revisions 164257 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r164257 | file | 2008-12-15 11:41:22 -0400 (Mon, 15 Dec 2008) | 4 lines

  Make app_fax compatible with newer versions of spandsp. This remains backwards compatible with earlier versions though so do not fret.
  (closes issue #14073)
  Reported by: seandarcy
........

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

16 years agoBlocked revisions 164208 via svnmerge
Joshua Colp [Mon, 15 Dec 2008 15:21:49 +0000 (15:21 +0000)] 
Blocked revisions 164208 via svnmerge

........
  r164208 | file | 2008-12-15 11:21:23 -0400 (Mon, 15 Dec 2008) | 2 lines

  Update to work with new ast_str changes.
........

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

16 years agoBlocked revisions 164205 via svnmerge
Joshua Colp [Mon, 15 Dec 2008 15:07:34 +0000 (15:07 +0000)] 
Blocked revisions 164205 via svnmerge

................
  r164205 | file | 2008-12-15 11:06:38 -0400 (Mon, 15 Dec 2008) | 10 lines

  Blocked revisions 164204 via svnmerge

  ........
    r164204 | file | 2008-12-15 11:05:08 -0400 (Mon, 15 Dec 2008) | 4 lines

    Can we try not to assign an unsigned int to -1?
    (closes issue #14074)
    Reported by: wetwired
  ........
................

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

16 years agoBlocked revisions 163951-163952 via svnmerge
Sean Bright [Sat, 13 Dec 2008 03:05:41 +0000 (03:05 +0000)] 
Blocked revisions 163951-163952 via svnmerge

........
  r163951 | seanbright | 2008-12-12 22:00:26 -0500 (Fri, 12 Dec 2008) | 1 line

  Use actual tables instead of ASCII art ones.
........
  r163952 | seanbright | 2008-12-12 22:03:15 -0500 (Fri, 12 Dec 2008) | 1 line

  This shouldn't have gotten commited.  We might want to generate this into a separate file instead of the version controlled one.
........

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

16 years agoBlocked revisions 163912 via svnmerge
Joshua Colp [Sat, 13 Dec 2008 01:00:41 +0000 (01:00 +0000)] 
Blocked revisions 163912 via svnmerge

........
  r163912 | file | 2008-12-12 20:59:24 -0400 (Fri, 12 Dec 2008) | 2 lines

  Only detach and destroy the whisper audiohooks if they are actually in use.
........

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

16 years agoMerged revisions 163873 via svnmerge from
Terry Wilson [Sat, 13 Dec 2008 00:05:53 +0000 (00:05 +0000)] 
Merged revisions 163873 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r163873 | twilson | 2008-12-12 17:48:26 -0600 (Fri, 12 Dec 2008) | 6 lines

  When using realtime queues, app_queue wasn't updating the strategy if it was changed in the realtime backend.  This patch resolves the issue for almost all situations.  It is currently not supported to switch to the linear strategy via realtime since the ao2_container for members will have been set to have multiple buckets and therefore the members would be unordered.

  (closes issue #14034)
  Reported by: cristiandimache
  Tested by: otherwiseguy, cristiandimache
........

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

16 years agoBlocked revisions 163828 via svnmerge
Russell Bryant [Fri, 12 Dec 2008 23:07:36 +0000 (23:07 +0000)] 
Blocked revisions 163828 via svnmerge

........
r163828 | russell | 2008-12-12 17:06:55 -0600 (Fri, 12 Dec 2008) | 2 lines

Add a note to indicate why this only supports one channel for now.

........

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

16 years agoMerged revisions 163762 via svnmerge from
Tilghman Lesher [Fri, 12 Dec 2008 22:05:16 +0000 (22:05 +0000)] 
Merged revisions 163762 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r163762 | tilghman | 2008-12-12 16:04:26 -0600 (Fri, 12 Dec 2008) | 14 lines

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

  ........
    r163761 | tilghman | 2008-12-12 16:03:10 -0600 (Fri, 12 Dec 2008) | 7 lines

    Simple fix for Ctrl-C not immediately exiting Asterisk, but also add a
    pointer inside editline to look back to asterisk.c, so others don't spend
    as much time as I did looking (in the wrong place) for the appropriate
    function.
    Reported by: ZX81, via the #asterisk-users channel
    Fixed by: me (license 14)
  ........
................

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

16 years agoBlocked revisions 163716 via svnmerge
Russell Bryant [Fri, 12 Dec 2008 20:12:43 +0000 (20:12 +0000)] 
Blocked revisions 163716 via svnmerge

........
r163716 | russell | 2008-12-12 14:12:23 -0600 (Fri, 12 Dec 2008) | 5 lines

Add a new CLI command, "channel redirect", which is similar in operation
to AMI Redirect.

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

........

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

16 years agoMerged revisions 163675 via svnmerge from
Steve Murphy [Fri, 12 Dec 2008 19:40:04 +0000 (19:40 +0000)] 
Merged revisions 163675 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r163675 | murf | 2008-12-12 12:16:32 -0700 (Fri, 12 Dec 2008) | 1 line

  demote always-appearing debug message (for certain boards) to ast_debug lev 3 msg instead
........

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

16 years agoMerged revisions 163670 via svnmerge from
Russell Bryant [Fri, 12 Dec 2008 18:52:14 +0000 (18:52 +0000)] 
Merged revisions 163670 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r163670 | russell | 2008-12-12 12:45:03 -0600 (Fri, 12 Dec 2008) | 6 lines

Rename a number of tcptls_session variables.  There are no functional changes here.

The name "ser" was used in a lot of places.  However, it is a relic from when
the struct was a server_instance, not a session_instance.  It was renamed since
it represents both a server or client connection.

........

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

16 years agoMerged revisions 163667 via svnmerge from
Russell Bryant [Fri, 12 Dec 2008 18:34:56 +0000 (18:34 +0000)] 
Merged revisions 163667 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r163667 | russell | 2008-12-12 12:33:27 -0600 (Fri, 12 Dec 2008) | 5 lines

Fix a small race condition in sip_tcp_locate().

We must increase the reference count on the tcptls_session _before_ unlocking
the thread list.

........

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

16 years agoMerged revisions 163642 via svnmerge from
Russell Bryant [Fri, 12 Dec 2008 18:21:35 +0000 (18:21 +0000)] 
Merged revisions 163642 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r163642 | russell | 2008-12-12 12:19:47 -0600 (Fri, 12 Dec 2008) | 7 lines

Resolve crashes when using SIP TCP/TLS with qualify.

The problem was a reference count error on the tcptls_session structure.

(closes issue #13989)
Reported by: Nugget

........

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

16 years agoBlocked revisions 163629 via svnmerge
Joshua Colp [Fri, 12 Dec 2008 18:18:34 +0000 (18:18 +0000)] 
Blocked revisions 163629 via svnmerge

........
  r163629 | file | 2008-12-12 14:17:12 -0400 (Fri, 12 Dec 2008) | 4 lines

  When a device registers we need to unlink them (if linked) from the peers_by_ip container and link them back in since their IP address has changed. This would have manifested itself if you configured a new device (as type=peer), registered, and then tried to place a call from the device. Since the peer was not linked into the peers_by_ip container it would have never been found.
  (closes issue #13811)
  Reported by: pj
........

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

16 years agoMerged revisions 163612 via svnmerge from
Michiel van Baak [Fri, 12 Dec 2008 17:24:31 +0000 (17:24 +0000)] 
Merged revisions 163612 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r163612 | mvanbaak | 2008-12-12 18:22:47 +0100 (Fri, 12 Dec 2008) | 7 lines

  Document default Monitor file location.

  (closes issue #14065)
  Reported by: kshumard
  Patches:
        res_monitor.documentation.patch.txt uploaded by kshumard (license 92)
........

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

16 years agoBlocked revisions 163582 via svnmerge
Michiel van Baak [Fri, 12 Dec 2008 17:16:02 +0000 (17:16 +0000)] 
Blocked revisions 163582 via svnmerge

........
  r163582 | mvanbaak | 2008-12-12 18:14:13 +0100 (Fri, 12 Dec 2008) | 11 lines

  Fix codec capability setup in chan_skinny

  Behaviour now is that general codec config flows to default_line and default_device. [devices] stuff amends default_device and similar for [lines]. These are copied to individual device and line as they are created.
  Added confcapability and confprefs for the configured stuff which doesn't change as device and so on are connected. prefs are based on line prefs if they exist, else the device prefs are used (prefs identifies codec order).

  (closes issue #13806)
  Reported by: pj
  Patches:
        codecs.diff uploaded by wedhorn (license 30)
  Tested by: pj and me
........

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

16 years agoBlocked revisions 163579 via svnmerge
Joshua Colp [Fri, 12 Dec 2008 16:55:59 +0000 (16:55 +0000)] 
Blocked revisions 163579 via svnmerge

........
  r163579 | file | 2008-12-12 12:55:15 -0400 (Fri, 12 Dec 2008) | 4 lines

  Since chan_sip is callback devicestate driven do not pass in actual states, pass in unknown so we get asked. Additionally do not pass in an actual device state value in ast_setstate since the channel may be callback driven.
  (closes issue #13525)
  Reported by: pj
........

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

16 years agoMerged revisions 163512 via svnmerge from
Russell Bryant [Fri, 12 Dec 2008 14:45:44 +0000 (14:45 +0000)] 
Merged revisions 163512 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r163512 | russell | 2008-12-12 08:44:06 -0600 (Fri, 12 Dec 2008) | 13 lines

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

........
r163511 | russell | 2008-12-12 08:40:31 -0600 (Fri, 12 Dec 2008) | 5 lines

Specify uint32_t for variables storing a CRC32 so that it is actually 32 bits
on 64-bit machines, as well.

(inspired by issue #13879)

........

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

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

16 years agoMerged revisions 163449 via svnmerge from
Russell Bryant [Fri, 12 Dec 2008 14:05:01 +0000 (14:05 +0000)] 
Merged revisions 163449 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r163449 | russell | 2008-12-12 07:55:30 -0600 (Fri, 12 Dec 2008) | 34 lines

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

........
r163448 | russell | 2008-12-12 07:44:08 -0600 (Fri, 12 Dec 2008) | 26 lines

Resolve issues that could cause DTMF to be processed out of order.

These changes come from team/russell/issue_12658

1) Change autoservice to put digits on the head of the channel's frame readq
   instead of the tail.  If there were frames on the readq that autoservice
   had not yet read, the previous code would have resulted in out of order
   processing.  This required a new API call to queue a frame to the head
   of the queue instead of the tail.

2) Change up the processing of DTMF in ast_read().  Some of the problems
   were the result of having two sources of pending DTMF frames.  There
   was the dtmfq and the more generic readq.  Both were used for pending
   DTMF in various scenarios.  Simplifying things to only use the frame
   readq avoids some of the problems.

3) Fix a bug where a DTMF END frame could get passed through when it
   shouldn't have.  If code set END_DTMF_ONLY in the middle of digit emulation,
   and a digit arrived before emulation was complete, digits would get
   processed out of order.

(closes issue #12658)
Reported by: dimas
Tested by: russell, file
Review: http://reviewboard.digium.com/r/85/

........

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

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

16 years agoMerged revisions 163384 via svnmerge from
Tilghman Lesher [Thu, 11 Dec 2008 23:43:53 +0000 (23:43 +0000)] 
Merged revisions 163384 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r163384 | tilghman | 2008-12-11 17:38:56 -0600 (Thu, 11 Dec 2008) | 16 lines

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

  ........
    r163383 | tilghman | 2008-12-11 17:35:55 -0600 (Thu, 11 Dec 2008) | 9 lines

    When a Ctrl-C or Ctrl-D ends a remote console, on certain shells, the terminal
    is messed up.  By intercepting those events with a signal handler in the remote
    console, we can avoid those issues.
    (closes issue #13464)
     Reported by: tzafrir
     Patches:
           20081110__bug13464.diff.txt uploaded by Corydon76 (license 14)
     Tested by: blitzrage
  ........
................

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

16 years agoMerged revisions 163317 via svnmerge from
Matthew Nicholson [Thu, 11 Dec 2008 22:52:18 +0000 (22:52 +0000)] 
Merged revisions 163317 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r163317 | mnicholson | 2008-12-11 16:49:59 -0600 (Thu, 11 Dec 2008) | 16 lines

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

  ........
    r163316 | mnicholson | 2008-12-11 16:44:31 -0600 (Thu, 11 Dec 2008) | 9 lines

    Clean up the dundi cache every 5 minutes.

    (closes issue #13819)
    Reported by: adomjan
    Patches:
          pbx_dundi.c-clearcache.patch uploaded by adomjan (license 487)
          dundi_clearecache3.diff uploaded by mnicholson (license 96)
    Tested by: adomjan
  ........
................

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