]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
16 years agoUse autotagged externals 1.6.0.4-rc1
Leif Madsen [Thu, 22 Jan 2009 17:22:58 +0000 (17:22 +0000)] 
Use autotagged externals

git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.6.0.4-rc1@170186 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoImporting files for 1.6.0.4-rc1 release
Leif Madsen [Thu, 22 Jan 2009 17:22:16 +0000 (17:22 +0000)] 
Importing files for 1.6.0.4-rc1 release

git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.6.0.4-rc1@170181 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoCreating tag for the release of asterisk-1.6.0.4-rc1
Leif Madsen [Thu, 22 Jan 2009 17:17:10 +0000 (17:17 +0000)] 
Creating tag for the release of asterisk-1.6.0.4-rc1

git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.6.0.4-rc1@170153 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 170148 via svnmerge from
Joshua Colp [Thu, 22 Jan 2009 16:53:12 +0000 (16:53 +0000)] 
Merged revisions 170148 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r170148 | file | 2009-01-22 12:52:21 -0400 (Thu, 22 Jan 2009) | 11 lines

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

  ........
    r170147 | file | 2009-01-22 12:50:54 -0400 (Thu, 22 Jan 2009) | 4 lines

    If we are unable to request a DAHDI pseudo channel and we are using the user introduction without review option make sure it gets unset so other code does not blindly assume a DAHDI pseudo channel exists.
    (closes issue #14282)
    Reported by: cheesegrits
  ........
................

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

16 years agoMerged revisions 170051 via svnmerge from
Joshua Colp [Thu, 22 Jan 2009 15:15:35 +0000 (15:15 +0000)] 
Merged revisions 170051 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r170051 | file | 2009-01-22 11:14:50 -0400 (Thu, 22 Jan 2009) | 13 lines

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

  ........
    r170050 | file | 2009-01-22 11:13:56 -0400 (Thu, 22 Jan 2009) | 6 lines

    Do a string comparison instead of pointer comparison since some people specify the context they are actually in as an argument to get around some funkiness.
    (closes issue #14011)
    Reported by: dveiga
    Patches:
          pbx.c.patch uploaded by dveiga (license 665)
  ........
................

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

16 years agoMerged revisions 170047 via svnmerge from
Joshua Colp [Thu, 22 Jan 2009 15:03:56 +0000 (15:03 +0000)] 
Merged revisions 170047 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r170047 | file | 2009-01-22 11:01:54 -0400 (Thu, 22 Jan 2009) | 4 lines

  Clear the autoloop flag when parsing and setting the context/extension/priority to go back to. When the channel executes a PBX again we want it to start out at the point we explicitly say and at that point it will not yet be doing autoloop.
  (closes issue #14304)
  Reported by: jcovert
........

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

16 years agoMerged revisions 169944 via svnmerge from
Tilghman Lesher [Thu, 22 Jan 2009 00:45:38 +0000 (00:45 +0000)] 
Merged revisions 169944 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r169944 | tilghman | 2009-01-21 18:44:52 -0600 (Wed, 21 Jan 2009) | 16 lines

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

  ........
    r169943 | tilghman | 2009-01-21 18:43:31 -0600 (Wed, 21 Jan 2009) | 9 lines

    AST_RWLOCK_INIT_VALUE is always defined.  What we really wanted to ask is
    whether autoconf detected a static initializer value.  This fixes rwlocks
    on all such platforms (mainly, Mac OS X).
    (closes issue #13767)
     Reported by: jcovert
     Patches:
           20090121__bug13767.diff.txt uploaded by Corydon76 (license 14)
     Tested by: jcovert, Corydon76
  ........
................

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

16 years agoMerged revisions 169869 via svnmerge from
Joshua Colp [Wed, 21 Jan 2009 23:27:19 +0000 (23:27 +0000)] 
Merged revisions 169869 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r169869 | file | 2009-01-21 19:25:27 -0400 (Wed, 21 Jan 2009) | 11 lines

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

  ........
    r169867 | file | 2009-01-21 19:20:47 -0400 (Wed, 21 Jan 2009) | 4 lines

    Read lock the contexts to maintain the locking order when we are notified that the state of a device has changed.
    (closes issue #13839)
    Reported by: mcallist
  ........
................

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

16 years agoMerged revisions 169793 via svnmerge from
Michiel van Baak [Wed, 21 Jan 2009 22:21:16 +0000 (22:21 +0000)] 
Merged revisions 169793 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r169793 | mvanbaak | 2009-01-21 23:04:16 +0100 (Wed, 21 Jan 2009) | 2 lines

  remove duplicated sentence.
........

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

16 years agoMerged revisions 169794 via svnmerge from
Mark Michelson [Wed, 21 Jan 2009 22:11:11 +0000 (22:11 +0000)] 
Merged revisions 169794 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r169794 | mmichelson | 2009-01-21 16:10:02 -0600 (Wed, 21 Jan 2009) | 17 lines

Fix a crash when saying certain numbers in Chinese

This commit fixes a crash that was occurring when attempting to
say a number between 10000 and 100000 due to dividing by 0.

This also removes some places where a "zero" is spoken when it
should not be.

(closes issue #14291)
Reported by: dant
Patches:
      say.c-14291.diff uploaded by dant (license 670)
Tested by: dant

........

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

16 years agoMerged revisions 169723 via svnmerge from
Tilghman Lesher [Wed, 21 Jan 2009 21:04:24 +0000 (21:04 +0000)] 
Merged revisions 169723 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r169723 | tilghman | 2009-01-21 15:03:40 -0600 (Wed, 21 Jan 2009) | 15 lines

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

  ........
    r169722 | tilghman | 2009-01-21 15:02:32 -0600 (Wed, 21 Jan 2009) | 8 lines

    Extra NULLs in the output cause some terminal types to abort in the middle of
    a color code, causing terminal weirdness.
    (closes issue #14130)
     Reported by: coolmig
     Patches:
           20090121__bug14130.diff.txt uploaded by Corydon76 (license 14)
     Tested by: Corydon76, coolmig
  ........
................

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

16 years agoBlocked revisions 169673 via svnmerge
Steve Murphy [Wed, 21 Jan 2009 17:43:54 +0000 (17:43 +0000)] 
Blocked revisions 169673 via svnmerge

........
  r169673 | murf | 2009-01-21 10:21:40 -0700 (Wed, 21 Jan 2009) | 14 lines

  This patch corrects a segfault reported in 14289,
  due to a null ptr being refd.

  Yes, seanbright is right in the bug comments, that is the fix.
  Sorry for this oversight; I guess my personal
  usage didn't have this happen!

  murf

  (closes issue #14289)
  Reported by: jamesgolovich
........

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

16 years agoBlocked revisions 169620 via svnmerge
Russell Bryant [Wed, 21 Jan 2009 10:26:58 +0000 (10:26 +0000)] 
Blocked revisions 169620 via svnmerge

........
r169620 | russell | 2009-01-21 04:26:07 -0600 (Wed, 21 Jan 2009) | 10 lines

Fix a regression in TCP support.

This patch fixes a problem that caused chan_sip to think that every open TCP session
was to a remote address of 0.0.0.0:0.

(closes issue #14287)
Reported by: jamesgolovich
Patches:
      bug-14287.diff.txt uploaded by jamesgolovich (license 176)

........

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

16 years agoMerged revisions 169611 via svnmerge from
Mark Michelson [Wed, 21 Jan 2009 00:35:05 +0000 (00:35 +0000)] 
Merged revisions 169611 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r169611 | mmichelson | 2009-01-20 18:33:32 -0600 (Tue, 20 Jan 2009) | 22 lines

Fix device state parsing issues for channel names with multiple slashes

The fix being applied is a bit different for trunk and the 1.6.X branches.
For trunk, we only wish to strip off the characters beyond the second slash
if the channel is a Local channel (i.e. we are removing the /n from the device
name). Other channel technologies with multiple slashes (e.g. DAHDI) need the
information after the second slash in order to get the proper device state
information.

In addition to this fix, the 1.6.X branches are receiving a much more important
fix as well. The problem in 1.6.X is that the member's device name was being directly
changed instead of having a copy changed. This meant that we would strip off the
second slash and trailing characters and then leave the member's device name like
that permanently thereafter.

(closes issue #14014)
Reported by: kebl0155
Patches:
      14014_number2.patch uploaded by putnopvut (license 60)
Tested by: kebl0155

........

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

16 years agoWe don't support ~expiry in 1.6.0 register statements
Terry Wilson [Tue, 20 Jan 2009 20:13:18 +0000 (20:13 +0000)] 
We don't support ~expiry in 1.6.0 register statements

This must have inadvertantly got merged in sometime as the code doesn't handle
this option, and configs/sip.conf.sample doesn't mention it as available. So
just remove it from the WARNING message

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

16 years agoMerged revisions 169510 via svnmerge from
Terry Wilson [Tue, 20 Jan 2009 19:29:24 +0000 (19:29 +0000)] 
Merged revisions 169510 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r169510 | twilson | 2009-01-20 13:22:24 -0600 (Tue, 20 Jan 2009) | 7 lines

  Make a proper builtin attended transfer to parking work

  This is an ugly hack from 1.4 that allows the timeout callback from a parked
  call to use the right channel name for the callback when the park is done with
  a builtin attended transfer (that isn't completed early).  This hasn't ever
  worked in trunk and no one has complained yet, so eh.
........

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

16 years agoMerged revisions 169486 via svnmerge from
Terry Wilson [Tue, 20 Jan 2009 18:58:34 +0000 (18:58 +0000)] 
Merged revisions 169486 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r169486 | twilson | 2009-01-20 12:48:14 -0600 (Tue, 20 Jan 2009) | 13 lines

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

  ........
    r169485 | twilson | 2009-01-20 12:40:56 -0600 (Tue, 20 Jan 2009) | 6 lines

    Don't play audio to the channel if we've masqueraded

    (closes issue #14066)
    Reported by: bluefox
    Tested by: otherwiseguy, bluefox
  ........
................

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

16 years agoMerged revisions 169365 via svnmerge from
Tilghman Lesher [Mon, 19 Jan 2009 20:08:06 +0000 (20:08 +0000)] 
Merged revisions 169365 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r169365 | tilghman | 2009-01-19 14:05:52 -0600 (Mon, 19 Jan 2009) | 11 lines

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

  ........
    r169364 | tilghman | 2009-01-19 13:49:25 -0600 (Mon, 19 Jan 2009) | 4 lines

    Truncate userevents at the end of a line, when the command exceeds the buffer.
    (closes issue #14278)
     Reported by: fnordian
  ........
................

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

16 years agoMerged revisions 169211 via svnmerge from
Mark Michelson [Mon, 19 Jan 2009 15:55:00 +0000 (15:55 +0000)] 
Merged revisions 169211 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r169211 | mmichelson | 2009-01-19 09:54:06 -0600 (Mon, 19 Jan 2009) | 21 lines

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

........
r169210 | mmichelson | 2009-01-19 09:52:15 -0600 (Mon, 19 Jan 2009) | 13 lines

Prevent a crash in chan_local due to a potential NULL pointer dereference

Move the check for if both channels on a local_pvt have generators to below
where p->chan is checked for NULLity (NULLness?). This prevents a crash from
occurring if p->chan is NULL.

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

........

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

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

16 years agoBlocked revisions 169080 via svnmerge
Terry Wilson [Sat, 17 Jan 2009 01:57:40 +0000 (01:57 +0000)] 
Blocked revisions 169080 via svnmerge

........
  r169080 | twilson | 2009-01-16 19:56:36 -0600 (Fri, 16 Jan 2009) | 8 lines

  Fix qualify for TCP peer

  (closes issue #14192)
  Reported by: pabelanger
  Patches:
        asterisk-bug14192.diff.txt uploaded by jamesgolovich (license 176)
  Tested by: jamesgolovich
........

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

16 years agoMerged revisions 169044 via svnmerge from
Terry Wilson [Sat, 17 Jan 2009 00:29:43 +0000 (00:29 +0000)] 
Merged revisions 169044 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r169044 | twilson | 2009-01-16 18:03:39 -0600 (Fri, 16 Jan 2009) | 8 lines

  Fix port :0 added to SIP INVITE URI when outboundproxy used

  (closes issue #14233)
  Reported by: chris-mac
  Patches:
        asterisk-bug14233.diff.txt uploaded by jamesgolovich (license 176)
  Tested by: jamesgolovich, chris-mac, otherwiseguy
........

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

16 years agoMerged revisions 168941 via svnmerge from
Terry Wilson [Fri, 16 Jan 2009 22:52:03 +0000 (22:52 +0000)] 
Merged revisions 168941 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r168941 | twilson | 2009-01-16 16:16:23 -0600 (Fri, 16 Jan 2009) | 19 lines

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

  ........
    r168716 | twilson | 2009-01-15 12:22:49 -0600 (Thu, 15 Jan 2009) | 12 lines

    Convert call to park_call_full to masq_park_call_announce

    Since we removed the AST_PBX_KEEPALIVE return value, we need to use masqueraded
    parking, otherwise we will try to call ast_hangup() in __pbx_run() and in
    do_parking_thread() and then promptly crash.
    (closes issue #14215)
     Reported by: waverly360
     Tested by: otherwiseguy
    (closes issue #14228)
     Reported by: kobaz
     Tested by: otherwiseguy
  ........
................

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

16 years agoMerged revisions 168976 via svnmerge from
Mark Michelson [Fri, 16 Jan 2009 22:46:11 +0000 (22:46 +0000)] 
Merged revisions 168976 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r168976 | mmichelson | 2009-01-16 16:43:09 -0600 (Fri, 16 Jan 2009) | 26 lines

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

........
r168975 | mmichelson | 2009-01-16 16:42:13 -0600 (Fri, 16 Jan 2009) | 18 lines

Account for possible NULL pointer when we receive a 408 in response to a REGISTER

It may be that by the time we receive a reply to a REGISTER request, the attempt has
timed out and thus the registry structure pointed to by the corresponding sip_pvt has
gone away. This situation was handled properly for a 200 OK response, but the 408
case assumed that the sip_registry struct was non-NULL, thus potentially causing a crash

This commit fixes this assumption and prints out a message to the console if we should
receive a late 408 response to a REGISTER

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

........

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

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

16 years agoMerged revisions 168832 via svnmerge from
Tilghman Lesher [Fri, 16 Jan 2009 18:53:48 +0000 (18:53 +0000)] 
Merged revisions 168832 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r168832 | tilghman | 2009-01-16 12:49:09 -0600 (Fri, 16 Jan 2009) | 13 lines

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

  ........
    r168828 | tilghman | 2009-01-16 12:41:35 -0600 (Fri, 16 Jan 2009) | 6 lines

    Fix the conjugation of Russian and Ukrainian languages.
    (related to issue #12475)
     Reported by: chappell
     Patches:
           vm_multilang.patch uploaded by chappell (license 8)
  ........
................

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

16 years agoMerged revisions 168746 via svnmerge from
Steve Murphy [Fri, 16 Jan 2009 00:38:36 +0000 (00:38 +0000)] 
Merged revisions 168746 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r168746 | murf | 2009-01-15 17:34:31 -0700 (Thu, 15 Jan 2009) | 20 lines

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

  ........
    r168745 | murf | 2009-01-15 17:19:12 -0700 (Thu, 15 Jan 2009) | 14 lines

    This patch fixes a problem where a goto (or jump, in this case)
    fails a consistency check because it can't find a matching
    extension. The problem was a missing instruction to end
    the range notation in the code where it converts the pattern
    into a regex and uses the regex code to determine the match.

    I tested using the AEL code the user supplied, and now,
    the consistency check passes.

    (closes issue #14141)
    Reported by: dimas
  ........
................

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

16 years agoMerged revisions 168737 via svnmerge from
Steve Murphy [Thu, 15 Jan 2009 21:14:31 +0000 (21:14 +0000)] 
Merged revisions 168737 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r168737 | murf | 2009-01-15 13:54:59 -0700 (Thu, 15 Jan 2009) | 16 lines

  This patch allows null args in ast_expr2 func calls, and fixes commas being converted to pipes, which was 1.4 type stuff.

  If the user says count=ENUMLOOKUP(${EXTEN},ALL,c,,enum.mydomain.tld);

  then it won't complain about the empty arg (c,,...) and fabled's patch
  won't let it swap the commas for pipes.

  Ran it thru my dialplan and no complaints.

  (closes issue #14169)
  Reported by: fabled
  Patches:
        function-argument-separator-fix.diff uploaded by fabled (license 448)
........

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

16 years agoBlocked revisions 168734 via svnmerge
Kevin P. Fleming [Thu, 15 Jan 2009 20:20:45 +0000 (20:20 +0000)] 
Blocked revisions 168734 via svnmerge

........
  r168734 | kpfleming | 2009-01-15 14:18:53 -0600 (Thu, 15 Jan 2009) | 5 lines

  remove the PBX_ODBC logic from the configure script, and add GENERIC_ODCB logic that includes copying the relevant LIB and INCLUDE data from either UnixODBC or iODBC, based on which was found; if both were found, prefer UnixODBC

  this stops modules from being linked against both sets of libraries on systems that have both installed
........

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

16 years agoMerged revisions 168722 via svnmerge from
Olle Johansson [Thu, 15 Jan 2009 18:52:54 +0000 (18:52 +0000)] 
Merged revisions 168722 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r168722 | oej | 2009-01-15 19:47:14 +0100 (Tor, 15 Jan 2009) | 10 lines

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

........
r168721 | oej | 2009-01-15 19:43:43 +0100 (Tor, 15 Jan 2009) | 2 lines

Meetme actually has realtime but wasn't documented

........

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

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

16 years agoMerged revisions 168711 via svnmerge from
Olle Johansson [Thu, 15 Jan 2009 18:23:14 +0000 (18:23 +0000)] 
Merged revisions 168711 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r168711 | oej | 2009-01-15 18:55:53 +0100 (Tor, 15 Jan 2009) | 4 lines

Clarify some misunderstandings and make it even more clear that you can refer to a peer
in the register= line.

........

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

16 years agoMerged revisions 168712 via svnmerge from
Olle Johansson [Thu, 15 Jan 2009 18:14:20 +0000 (18:14 +0000)] 
Merged revisions 168712 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r168712 | oej | 2009-01-15 19:08:59 +0100 (Tor, 15 Jan 2009) | 3 lines

Make sure that we have the same terminology in sip.conf.sample and the source code warning.
Thanks Nick Lewis for pointing this out in the bug tracker.

........

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

16 years agoMerged revisions 168705 via svnmerge from
Sean Bright [Thu, 15 Jan 2009 15:34:35 +0000 (15:34 +0000)] 
Merged revisions 168705 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r168705 | seanbright | 2009-01-15 10:33:18 -0500 (Thu, 15 Jan 2009) | 11 lines

  Add a missing unlock and properly handle the 'maxusers' setting on MeetMe
  conferences.  We were using the 'user number' field to compare against the
  maximum allowed users, which works assuming users with lower user numbers
  didn't leave the conference.

  (closes issue #14117)
  Reported by: sergedevorop
  Patches:
        20090114__bug14117-2.diff.txt uploaded by seanbright (license 71)
  Tested by: sergedevorop
........

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

16 years agoMerged revisions 168629 via svnmerge from
Mark Michelson [Thu, 15 Jan 2009 00:14:48 +0000 (00:14 +0000)] 
Merged revisions 168629 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r168629 | mmichelson | 2009-01-14 18:14:17 -0600 (Wed, 14 Jan 2009) | 24 lines

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

........
r168628 | mmichelson | 2009-01-14 18:11:01 -0600 (Wed, 14 Jan 2009) | 16 lines

Fix some crashes from bad datastore handling in app_queue.c

* The queue_transfer_fixup function was searching for and removing
  the datastore from the incorrect channel, so this was fixed.

* Most datastore operations regarding the queue_transfer datastore
  were being done without the channel locked, so proper channel locking
  was added, too.

(closes issue #14086)
Reported by: ZX81
Patches:
      14086v2.patch uploaded by putnopvut (license 60)
Tested by: ZX81, festr

........

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

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

16 years agoMerged revisions 168623 via svnmerge from
Richard Mudgett [Wed, 14 Jan 2009 21:54:31 +0000 (21:54 +0000)] 
Merged revisions 168623 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r168623 | rmudgett | 2009-01-14 15:51:06 -0600 (Wed, 14 Jan 2009) | 11 lines

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

  ........
    r168622 | rmudgett | 2009-01-14 15:48:22 -0600 (Wed, 14 Jan 2009) | 4 lines

    *  Fixed create_process() allocation of process ID values.
    The allocated process IDs could overflow their respective
    NT and TE fields.  Affects outgoing calls.
  ........
................

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

16 years agoMerged revisions 168613 via svnmerge from
Steve Murphy [Wed, 14 Jan 2009 21:21:58 +0000 (21:21 +0000)] 
Merged revisions 168613 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r168613 | murf | 2009-01-14 13:51:26 -0700 (Wed, 14 Jan 2009) | 9 lines

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

  ........
    r168608 | murf | 2009-01-14 12:34:35 -0700 (Wed, 14 Jan 2009) | 1 line

    app_page was failing to compile in dev-mode on my gcc-4.2.4 system. This change gets rid of the warning.
  ........
................

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

16 years agoMerged revisions 168615 via svnmerge from
Sean Bright [Wed, 14 Jan 2009 20:59:33 +0000 (20:59 +0000)] 
Merged revisions 168615 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r168615 | seanbright | 2009-01-14 15:58:26 -0500 (Wed, 14 Jan 2009) | 16 lines

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

  ........
    r168614 | seanbright | 2009-01-14 15:52:00 -0500 (Wed, 14 Jan 2009) | 9 lines

    Update autosupport script to supply info for both Zaptel and DAHDI in 1.4 and
    be sure to run dahdi_test in 1.6.x and trunk instead of zttest.

    (closes issue #14132)
    Reported by: dsedivec
    Patches:
          asterisk-1.4-autosupport.patch uploaded by dsedivec (license 638)
          asterisk-trunk-autosupport.patch uploaded by dsedivec (license 638)
  ........
................

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

16 years agoFix merge error caused by merging -r132883 and -r121770 from
Richard Mudgett [Wed, 14 Jan 2009 19:20:29 +0000 (19:20 +0000)] 
Fix merge error caused by merging -r132883 and -r121770 from
https://origsvn.digium.com/svn/asterisk/trunk out of order.

(closes issue #13788)
Reported by: IgorG

(closes issue #13491)
Reported by: avalentin

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

16 years agoMerged revisions 168604 via svnmerge from
Tilghman Lesher [Wed, 14 Jan 2009 19:11:56 +0000 (19:11 +0000)] 
Merged revisions 168604 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r168604 | tilghman | 2009-01-14 13:11:14 -0600 (Wed, 14 Jan 2009) | 14 lines

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

  ........
    r168603 | tilghman | 2009-01-14 13:02:55 -0600 (Wed, 14 Jan 2009) | 7 lines

    Don't read into a buffer without first checking if a value is beyond the end.
    (closes issue #13600)
     Reported by: atis
     Patches:
           20090106__bug13600.diff.txt uploaded by Corydon76 (license 14)
     Tested by: atis
  ........
................

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

16 years agoMerged revisions 168594 via svnmerge from
Terry Wilson [Wed, 14 Jan 2009 02:06:19 +0000 (02:06 +0000)] 
Merged revisions 168594 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r168594 | twilson | 2009-01-13 20:00:40 -0600 (Tue, 13 Jan 2009) | 27 lines

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

  ........
    r168593 | twilson | 2009-01-13 19:27:18 -0600 (Tue, 13 Jan 2009) | 20 lines

    Don't overflow when paging more than 128 extensions

    The number of available slots for calls in app_page was hardcoded to 128.
    Proper bounds checking was not in place to enforce this limit, so if more than
    128 extensions were passed to the Page() app, Asterisk would crash.  This patch
    instead dynamically allocates memory for the ast_dial structures and removes
    the (non-functional) arbitrary limit.

    This issue would have special importance to anyone who is dynamically creating
    the argument passed to the Page application and allowing more than 128
    extensions to be added by an outside user via some external interface.

    The patch posted by a_villacis was slightly modified for some coding guidelines
    and other cleanups.  Thanks, a_villacis!
    (closes issue #14217)
    Reported by: a_villacis
    Patches:
          20080912-asterisk-app_page-fix-buffer-overflow.patch uploaded by a (license 660)
    Tested by: otherwiseguy
  ........
................

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

16 years agoMerged revisions 168588 via svnmerge from
Terry Wilson [Tue, 13 Jan 2009 23:11:19 +0000 (23:11 +0000)] 
Merged revisions 168588 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r168588 | twilson | 2009-01-13 17:05:43 -0600 (Tue, 13 Jan 2009) | 5 lines

  Fully overwrite a same-named file when uploading

  (closes issue #14190)
  Reported by: timking
........

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

16 years agoBlocked revisions 168585 via svnmerge
Terry Wilson [Tue, 13 Jan 2009 23:01:25 +0000 (23:01 +0000)] 
Blocked revisions 168585 via svnmerge

........
  r168585 | twilson | 2009-01-13 17:00:27 -0600 (Tue, 13 Jan 2009) | 8 lines

  Add option to hide console connect messages

  (closes issue #14222)
  Reported by: jamesgolovich
  Patches:
        asterisk-hideconnect.diff.txt uploaded by jamesgolovich (license 176)
  Tested by: otherwiseguy
........

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

16 years agoMerged revisions 168578 via svnmerge from
Terry Wilson [Tue, 13 Jan 2009 22:31:20 +0000 (22:31 +0000)] 
Merged revisions 168578 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r168578 | twilson | 2009-01-13 16:22:34 -0600 (Tue, 13 Jan 2009) | 14 lines

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

  ........
    r168551 | twilson | 2009-01-13 12:34:14 -0600 (Tue, 13 Jan 2009) | 7 lines

    Don't pass a value with a side effect to a macro

    (closes issue #14176)
    Reported by: paraeco
    Patches:
          chan_sip.c.diff uploaded by paraeco (license 658)
  ........
................

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

16 years agoMerged revisions 168562 via svnmerge from
Russell Bryant [Tue, 13 Jan 2009 19:27:54 +0000 (19:27 +0000)] 
Merged revisions 168562 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r168562 | russell | 2009-01-13 13:22:13 -0600 (Tue, 13 Jan 2009) | 10 lines

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

........
r168561 | russell | 2009-01-13 13:13:05 -0600 (Tue, 13 Jan 2009) | 2 lines

Revert unnecessary indications API change from rev 122314

........

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

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

16 years agoMerged revisions 168547 via svnmerge from
Tilghman Lesher [Tue, 13 Jan 2009 17:51:58 +0000 (17:51 +0000)] 
Merged revisions 168547 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r168547 | tilghman | 2009-01-13 11:51:12 -0600 (Tue, 13 Jan 2009) | 13 lines

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

  ........
    r168546 | tilghman | 2009-01-13 11:48:00 -0600 (Tue, 13 Jan 2009) | 6 lines

    If either conditional is NULL, don't try copying it.
    (closes issue #14226)
     Reported by: caspy
     Patches:
           20090113__bug14226.diff.txt uploaded by Corydon76 (license 14)
  ........
................

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

16 years agoBlocked revisions 168539 via svnmerge
Dwayne M. Hubbard [Tue, 13 Jan 2009 16:07:48 +0000 (16:07 +0000)] 
Blocked revisions 168539 via svnmerge

........
r168539 | dhubbard | 2009-01-13 10:02:13 -0600 (Tue, 13 Jan 2009) | 1 line

correct a CLI description
........

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

16 years agoMerged revisions 168526 via svnmerge from
Tilghman Lesher [Mon, 12 Jan 2009 23:46:55 +0000 (23:46 +0000)] 
Merged revisions 168526 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r168526 | tilghman | 2009-01-12 17:45:51 -0600 (Mon, 12 Jan 2009) | 12 lines

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

  ........
    r167095 | tilghman | 2008-12-31 18:01:22 -0600 (Wed, 31 Dec 2008) | 5 lines

    Repeat attempts to write when we receive -EAGAIN from the driver, as detailed
    in the ALSA sample code (see http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2pcm_8c-example.html#a32)
    Reported by: Jerry Geis (via the -users list)
    Fixed by: me (license 14)
  ........
................

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

16 years agoMerged revisions 168517 via svnmerge from
Jeff Peeler [Mon, 12 Jan 2009 21:52:32 +0000 (21:52 +0000)] 
Merged revisions 168517 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r168517 | jpeeler | 2009-01-12 15:51:46 -0600 (Mon, 12 Jan 2009) | 12 lines

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

  ........
    r168516 | jpeeler | 2009-01-12 15:42:34 -0600 (Mon, 12 Jan 2009) | 5 lines

    (closes issue #13881)
    Reported by: hoowa

    Update the app CDR field for AGI commands that are not executing an application via "exec".
  ........
................

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

16 years agoMerged revisions 168508 via svnmerge from
Jeff Peeler [Mon, 12 Jan 2009 21:01:55 +0000 (21:01 +0000)] 
Merged revisions 168508 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r168508 | jpeeler | 2009-01-12 14:53:04 -0600 (Mon, 12 Jan 2009) | 15 lines

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

  ........
    r168507 | jpeeler | 2009-01-12 14:26:22 -0600 (Mon, 12 Jan 2009) | 9 lines

    (closes issue #12269)
    Reported by: IgorG
    Tested by: denisgalvao

    This gits rid of the notion of an owning_app allowing the request and hangup to be initiated by different threads. Originating from an active agent channel requires this. The implementation primarily changes __login_exec to wait on a condition variable rather than a lock.

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

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

16 years agoMerged revisions 168497 via svnmerge from
Olle Johansson [Mon, 12 Jan 2009 16:55:11 +0000 (16:55 +0000)] 
Merged revisions 168497 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r168497 | oej | 2009-01-12 17:31:27 +0100 (MÃ¥n, 12 Jan 2009) | 2 lines

Better to use the proper app name in the STATUS variable

........

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

16 years agoMerged revisions 168485 via svnmerge from
Mark Michelson [Mon, 12 Jan 2009 15:00:31 +0000 (15:00 +0000)] 
Merged revisions 168485 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r168485 | mmichelson | 2009-01-12 09:00:00 -0600 (Mon, 12 Jan 2009) | 13 lines

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

........
r168482 | mmichelson | 2009-01-12 08:58:25 -0600 (Mon, 12 Jan 2009) | 5 lines

I am reverting the fix made in revision 168128 (and its upward merges)
after being contacted by Olle Johansson and being shown how this fix is
incorrect. Thanks to Olle for clearing this up for me.

........

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

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

16 years agoMerged revisions 168481 via svnmerge from
Russell Bryant [Mon, 12 Jan 2009 14:58:38 +0000 (14:58 +0000)] 
Merged revisions 168481 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r168481 | russell | 2009-01-12 08:57:49 -0600 (Mon, 12 Jan 2009) | 10 lines

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

........
r168480 | russell | 2009-01-12 08:57:27 -0600 (Mon, 12 Jan 2009) | 2 lines

s/ringdance/ringcadence/ for Bulgaria

........

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

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

16 years agoMerged revisions 168334 via svnmerge from
Tilghman Lesher [Sat, 10 Jan 2009 01:43:51 +0000 (01:43 +0000)] 
Merged revisions 168334 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r168334 | tilghman | 2009-01-09 19:42:45 -0600 (Fri, 09 Jan 2009) | 2 lines

  sizeof for a stringfield is 4.  Kinda low for reconstructing a field value.
........

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

16 years agoMerged revisions 168270 via svnmerge from
Kevin P. Fleming [Fri, 9 Jan 2009 23:17:14 +0000 (23:17 +0000)] 
Merged revisions 168270 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r168270 | kpfleming | 2009-01-09 17:16:08 -0600 (Fri, 09 Jan 2009) | 9 lines

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

  ........
    r168267 | kpfleming | 2009-01-09 17:12:29 -0600 (Fri, 09 Jan 2009) | 1 line

    update to use new sound file packages that include license files
  ........
................

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

16 years agoMissed change from trunk -r168192 when resolving conflicts.
Richard Mudgett [Fri, 9 Jan 2009 23:14:57 +0000 (23:14 +0000)] 
Missed change from trunk -r168192 when resolving conflicts.

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

16 years agoMerged revisions 168192 via svnmerge from
Richard Mudgett [Fri, 9 Jan 2009 22:34:54 +0000 (22:34 +0000)] 
Merged revisions 168192 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r168192 | rmudgett | 2009-01-09 15:43:30 -0600 (Fri, 09 Jan 2009) | 10 lines

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

  ........
    r168191 | rmudgett | 2009-01-09 15:28:42 -0600 (Fri, 09 Jan 2009) | 3 lines

    *  Fix for JIRA AST-175/ABE-1757
    *  Miscellaneous doxygen comments added.
  ........
................

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

16 years agoMerged revisions 168200 via svnmerge from
Russell Bryant [Fri, 9 Jan 2009 22:22:29 +0000 (22:22 +0000)] 
Merged revisions 168200 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r168200 | russell | 2009-01-09 16:21:05 -0600 (Fri, 09 Jan 2009) | 10 lines

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

........
r168198 | russell | 2009-01-09 16:14:38 -0600 (Fri, 09 Jan 2009) | 2 lines

Make this compile for mvanbaak

........

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

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

16 years agoMerged revisions 168193 via svnmerge from
Mark Michelson [Fri, 9 Jan 2009 21:57:01 +0000 (21:57 +0000)] 
Merged revisions 168193 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r168193 | mmichelson | 2009-01-09 15:53:26 -0600 (Fri, 09 Jan 2009) | 21 lines

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

........
r168128 | mmichelson | 2009-01-09 14:08:04 -0600 (Fri, 09 Jan 2009) | 13 lines

Add check_via calls to more request handlers

INFO, NOTIFY, OPTIONS, REFER, and MESSAGE requests
were not checking the topmost Via to determine where
to send the response. Adding check_via calls to those
request handlers solves this.

(closes issue #13071)
Reported by: baron
Patches:
      check_via.patch uploaded by baron (license 531)
Tested by: baron

........

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

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

16 years agoMerged revisions 168142 via svnmerge from
Terry Wilson [Fri, 9 Jan 2009 20:28:16 +0000 (20:28 +0000)] 
Merged revisions 168142 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r168142 | twilson | 2009-01-09 14:25:25 -0600 (Fri, 09 Jan 2009) | 7 lines

  Don't leak memory if phoneprov.conf does not exist

  (closes issue #14203)
  Reported by: jamesgolovich
  Patches:
        asterisk-phoneprovleak.diff.txt uploaded by jamesgolovich (license 176)
........

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

16 years agoMerged revisions 168090 via svnmerge from
Tilghman Lesher [Fri, 9 Jan 2009 18:36:03 +0000 (18:36 +0000)] 
Merged revisions 168090 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r168090 | tilghman | 2009-01-09 12:30:55 -0600 (Fri, 09 Jan 2009) | 3 lines

  When using ast_str with a non-ast_str-enabled API, we need to update the buffer
  or otherwise, we cannot use ast_str_strlen().
........

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

16 years agoMerged revisions 168014 via svnmerge from
Matthew Nicholson [Fri, 9 Jan 2009 16:41:36 +0000 (16:41 +0000)] 
Merged revisions 168014 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r168014 | mnicholson | 2009-01-09 10:32:34 -0600 (Fri, 09 Jan 2009) | 5 lines

  Use ast_safe_system() in logger.c instead of system()

  (closes issue #14194)
  Reported by: pabelanger
........

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

16 years agoBlocked revisions 167973 via svnmerge
Terry Wilson [Fri, 9 Jan 2009 01:16:28 +0000 (01:16 +0000)] 
Blocked revisions 167973 via svnmerge

........
  r167973 | twilson | 2009-01-08 19:15:43 -0600 (Thu, 08 Jan 2009) | 2 lines

  Set ORIGINATE_STATUS instead of OUTGOING_STATUS to match the documentation
........

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

16 years agoMerged revisions 167935 via svnmerge from
Terry Wilson [Fri, 9 Jan 2009 00:37:01 +0000 (00:37 +0000)] 
Merged revisions 167935 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r167935 | twilson | 2009-01-08 18:13:12 -0600 (Thu, 08 Jan 2009) | 2 lines

  Set peer context and exten values so MACRO_EXTEN and MACRO_CONTEXT will be set
........

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

16 years agoMerged revisions 167894 via svnmerge from
Tilghman Lesher [Thu, 8 Jan 2009 22:42:23 +0000 (22:42 +0000)] 
Merged revisions 167894 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r167894 | tilghman | 2009-01-08 16:37:20 -0600 (Thu, 08 Jan 2009) | 13 lines

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

  ........
    r167840 | tilghman | 2009-01-08 16:08:56 -0600 (Thu, 08 Jan 2009) | 6 lines

    Don't truncate database results at 255 chars.
    (closes issue #14069)
     Reported by: evandro
     Patches:
           20081214__bug14069.diff.txt uploaded by Corydon76 (license 14)
  ........
................

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

16 years agoMerged revisions 167720 via svnmerge from
Kevin P. Fleming [Thu, 8 Jan 2009 17:29:36 +0000 (17:29 +0000)] 
Merged revisions 167720 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r167720 | kpfleming | 2009-01-08 11:26:03 -0600 (Thu, 08 Jan 2009) | 9 lines

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

  ........
    r167714 | kpfleming | 2009-01-08 11:24:21 -0600 (Thu, 08 Jan 2009) | 1 line

    remove an unnecessary argument to queue_request()
  ........
................

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

16 years agoMerged revisions 167700 via svnmerge from
Kevin P. Fleming [Thu, 8 Jan 2009 17:22:40 +0000 (17:22 +0000)] 
Merged revisions 167700 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r167700 | kpfleming | 2009-01-08 10:43:26 -0600 (Thu, 08 Jan 2009) | 12 lines

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

  ........
    r167620 | kpfleming | 2009-01-07 17:32:21 -0600 (Wed, 07 Jan 2009) | 5 lines

    When a SIP request or response arrives for a dialog with an associated Asterisk channel, and the lock on that channel cannot be obtained because it is held by another thread, instead of dropping the request/response, queue it for later processing when the channel lock becomes available.

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

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

16 years agoMerged revisions 167662 via svnmerge from
Leif Madsen [Thu, 8 Jan 2009 14:31:37 +0000 (14:31 +0000)] 
Merged revisions 167662 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r167662 | lmadsen | 2009-01-08 09:27:53 -0500 (Thu, 08 Jan 2009) | 1 line

  Oops... fix the fieldname I changed yesterday to be right.
........

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

16 years agoMerged revisions 167569 via svnmerge from
Russell Bryant [Wed, 7 Jan 2009 22:37:14 +0000 (22:37 +0000)] 
Merged revisions 167569 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r167569 | russell | 2009-01-07 16:36:34 -0600 (Wed, 07 Jan 2009) | 10 lines

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

........
r167566 | russell | 2009-01-07 16:35:36 -0600 (Wed, 07 Jan 2009) | 2 lines

Fix the last couple of places where free() was improperly used directly.

........

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

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

16 years agoMerged revisions 167555 via svnmerge from
Russell Bryant [Wed, 7 Jan 2009 22:27:47 +0000 (22:27 +0000)] 
Merged revisions 167555 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r167555 | russell | 2009-01-07 16:27:23 -0600 (Wed, 07 Jan 2009) | 10 lines

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

........
r167554 | russell | 2009-01-07 16:26:42 -0600 (Wed, 07 Jan 2009) | 2 lines

Don't fclose() the file early, the filestream destructor will handle it.

........

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

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

16 years agoMerged revisions 167546 via svnmerge from
Russell Bryant [Wed, 7 Jan 2009 22:21:02 +0000 (22:21 +0000)] 
Merged revisions 167546 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r167546 | russell | 2009-01-07 16:20:31 -0600 (Wed, 07 Jan 2009) | 10 lines

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

........
r167545 | russell | 2009-01-07 16:19:47 -0600 (Wed, 07 Jan 2009) | 2 lines

Only try to close the file if one was actually opened

........

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

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

16 years agoMerged revisions 167542 via svnmerge from
Russell Bryant [Wed, 7 Jan 2009 22:06:18 +0000 (22:06 +0000)] 
Merged revisions 167542 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r167542 | russell | 2009-01-07 16:05:29 -0600 (Wed, 07 Jan 2009) | 12 lines

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

........
r167541 | russell | 2009-01-07 16:03:59 -0600 (Wed, 07 Jan 2009) | 4 lines

Don't use free() directly.  This caused a crash since ast_filestream is now an ao2 object.

Reported by JunK-Y on IRC, #asterisk-dev

........

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

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

16 years agoMerged revisions 167478 via svnmerge from
BJ Weschke [Wed, 7 Jan 2009 18:30:39 +0000 (18:30 +0000)] 
Merged revisions 167478 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r167478 | bweschke | 2009-01-07 13:20:31 -0500 (Wed, 07 Jan 2009) | 7 lines

   Answer the channel if it has not already been answered and we've already found a valid profile for followme.
   (closes issue #14140)
   Reported by: dimas
   Patches:
         14140.patch uploaded by dimas
........

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

16 years agoMerged revisions 167477 via svnmerge from
Leif Madsen [Wed, 7 Jan 2009 18:25:40 +0000 (18:25 +0000)] 
Merged revisions 167477 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r167477 | lmadsen | 2009-01-07 13:18:45 -0500 (Wed, 07 Jan 2009) | 8 lines

  Update queues.conf.sample documentation.

  Update the queues.conf.sample documentation to mention that you need to preload chan_local.so as well if you plan on using Local channels for queue members, and you're preloading pbx_config.so.

  (closes issue #14179)
  Reported by: CrashHD
  Tested by: CrashHD
........

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

16 years agoMerged revisions 167442 via svnmerge from
Russell Bryant [Wed, 7 Jan 2009 17:42:27 +0000 (17:42 +0000)] 
Merged revisions 167442 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r167442 | russell | 2009-01-07 11:35:39 -0600 (Wed, 07 Jan 2009) | 12 lines

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

........
r167432 | russell | 2009-01-07 11:29:53 -0600 (Wed, 07 Jan 2009) | 4 lines

Treat an empty string the same way as a NULL country argument.

In passing, simplify the handling of returning a default tone zone.

........

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

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

16 years agoMerged revisions 167373 via svnmerge from
Leif Madsen [Wed, 7 Jan 2009 14:33:38 +0000 (14:33 +0000)] 
Merged revisions 167373 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r167373 | lmadsen | 2009-01-07 09:26:19 -0500 (Wed, 07 Jan 2009) | 1 line

  Update the sip-friends.sql file to use the non-deprecated 'defaultname' instead of 'username' and remove an extra comma that would cause the script to fail as-is
........

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

16 years agoMerged revisions 167301 via svnmerge from
Mark Michelson [Tue, 6 Jan 2009 21:38:19 +0000 (21:38 +0000)] 
Merged revisions 167301 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r167301 | mmichelson | 2009-01-06 15:36:44 -0600 (Tue, 06 Jan 2009) | 16 lines

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

........
r167299 | mmichelson | 2009-01-06 15:35:57 -0600 (Tue, 06 Jan 2009) | 8 lines

Use the correct variable when creating the format string

(closes issue #14177)
Reported by: nic_bellamy
Patches:
      asterisk-trunk-svn-r167242-ast_db_gettree.patch uploaded by nic (license 299)

........

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

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

16 years agoMerged revisions 167265 via svnmerge from
Tilghman Lesher [Tue, 6 Jan 2009 21:07:20 +0000 (21:07 +0000)] 
Merged revisions 167265 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r167265 | tilghman | 2009-01-06 15:02:33 -0600 (Tue, 06 Jan 2009) | 16 lines

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

  ................
    r167260 | tilghman | 2009-01-06 14:48:05 -0600 (Tue, 06 Jan 2009) | 9 lines

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

    ........
      r167259 | tilghman | 2009-01-06 14:44:03 -0600 (Tue, 06 Jan 2009) | 2 lines

      Security fix AST-2009-001.
    ........
  ................
................

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

16 years agoMerged revisions 167180 via svnmerge from
Mark Michelson [Mon, 5 Jan 2009 17:04:23 +0000 (17:04 +0000)] 
Merged revisions 167180 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r167180 | mmichelson | 2009-01-05 10:59:36 -0600 (Mon, 05 Jan 2009) | 49 lines

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

........
r167179 | mmichelson | 2009-01-05 10:51:59 -0600 (Mon, 05 Jan 2009) | 41 lines

A couple of changes to T.38 SDP attribute handling

There are some boolean attributes for T.38 such
as T38FaxFillBitRemoval, T38FaxTranscodingMMR, and
T38FaxTranscodingJBIG. By simply being present, we
should treat these as a "true" value. The current
code, however, was requiring a 1 or 0 as the value
of the attribute in order to parse it. This is due
to the fact that there are some T.38 endpoints and
gateways that also transmit this information
incorrectly. This patch follows the "be liberal in
what you accept and strict in what you send"
philosophy by accepting both the correctly- and
incorrectly-formatted attributes, but only sending
information as it is supposed to be sent.

It was also discovered that a particular type of
T.38 gateway sends some non-standard T.38 SDP
attributes. Instead of using T38FaxMaxDatagram
and T38MaxBitRate, it used T38MaxDatagram and
T38FaxMaxRate respectively. We now will properly
accept these attributes as well.

Note that there are a lot of patches cited in
the below commit message template. This is
because the person who submitted these patches is
an awesome person and wrote 1.4, 1.6.0, and 1.6.1
variants.

(closes issue #13976)
Reported by: linulin
Patches:
     chan_sip.c.1.4-update1.diff uploaded by arcivanov (license 648)
 chan_sip.c.1.6.0-update1.diff uploaded by arcivanov (license 648)
 chan_sip.c.1.6.1-update1.diff uploaded by arcivanov (license 648)
 chan_sip.c.1.4-relaxedT38_update1.diff uploaded by arcivanov (license 648)
 chan_sip.c.1.6.0-relaxedT38_update1.diff uploaded by arcivanov (license 648)
 chan_sip.c.1.6.1-relaxedT38_update1.diff uploaded by arcivanov (license 648)
Tested by: arcivanov

........

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

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

16 years agoMerged revisions 167176 via svnmerge from
Tilghman Lesher [Mon, 5 Jan 2009 16:45:44 +0000 (16:45 +0000)] 
Merged revisions 167176 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r167176 | tilghman | 2009-01-05 10:44:47 -0600 (Mon, 05 Jan 2009) | 7 lines

  More clearly explain that quote marks are no longer necessary.
  (closes issue #13718)
   Reported by: davidw
   Patches:
         20081020__bug13718.diff.txt uploaded by Corydon76 (license 14)
   Tested by: blitzrage
........

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

16 years agoBlocked revisions 167125 via svnmerge
Jeff Peeler [Sat, 3 Jan 2009 20:32:12 +0000 (20:32 +0000)] 
Blocked revisions 167125 via svnmerge

........
r167125 | jpeeler | 2009-01-03 14:29:54 -0600 (Sat, 03 Jan 2009) | 3 lines

When parsing environment variable ASTERISK_PROMPT, make sure to proceed to the next character when a non format specifier is used (no %). Otherwise, the while loop looking for the null byte will never exit.

........

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

16 years agoBlocked revisions 167057 via svnmerge
Terry Wilson [Wed, 31 Dec 2008 22:55:50 +0000 (22:55 +0000)] 
Blocked revisions 167057 via svnmerge

........
  r167057 | twilson | 2008-12-31 16:53:55 -0600 (Wed, 31 Dec 2008) | 2 lines

  Don't forget to free typename
........

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

16 years agoBlocked revisions 167021 via svnmerge
Mark Michelson [Wed, 31 Dec 2008 21:53:40 +0000 (21:53 +0000)] 
Blocked revisions 167021 via svnmerge

........
r167021 | mmichelson | 2008-12-31 15:52:02 -0600 (Wed, 31 Dec 2008) | 4 lines

Change some incorrect syntax for pri set debug and correct
an off-by-one error in ss7 set debug command

........

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

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

................
  r166954 | tilghman | 2008-12-31 13:34:28 -0600 (Wed, 31 Dec 2008) | 12 lines

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

  ........
    r166953 | tilghman | 2008-12-31 13:20:35 -0600 (Wed, 31 Dec 2008) | 5 lines

    Also inherit the musiconhold class.
    (Closes #14153)
    Reported by: Jerry Geis, via the users list.
    Patch by: me (license 14)
  ........
................

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

16 years agoMerged revisions 166908 via svnmerge from
Terry Wilson [Tue, 30 Dec 2008 20:55:05 +0000 (20:55 +0000)] 
Merged revisions 166908 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r166908 | twilson | 2008-12-30 14:50:05 -0600 (Tue, 30 Dec 2008) | 2 lines

  Fix some svn:keywords
........

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

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

........
r166861 | mmichelson | 2008-12-29 12:04:52 -0600 (Mon, 29 Dec 2008) | 14 lines

Update app_queue to deal with the removal of AST_PBX_KEEPALIVE

When placing a call to a queue which ran a gosub on the member's
channel, Asterisk would crash every time, stemming from the fact
that the member's channel was being hung up unexpectedly when the
Gosub completed. The necessary change was pretty much copied and
pasted from app_dial's similar changes made last week.

I also took the opportunity to change a LOG_DEBUG message in
app_dial to use ast_debug. I am guessing this was due to a direct
merge from 1.4 that was not corrected to use trunk's preferred
syntax.

........

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

16 years agoBlocked revisions 166823 via svnmerge
Eliel C. Sardanons [Sun, 28 Dec 2008 15:44:09 +0000 (15:44 +0000)] 
Blocked revisions 166823 via svnmerge

........
  r166823 | eliel | 2008-12-28 10:36:25 -0500 (Sun, 28 Dec 2008) | 3 lines

  Fix a typo in the XML documentation of the AUDIOHOOK_INHERIT dialplan function.
........

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

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