Commit Graph

16672 Commits

Author SHA1 Message Date
Mark Michelson
4e5fd8376c 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
2008-12-23 15:18:43 +00:00
Tilghman Lesher
b6244cfc7b 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
2008-12-23 04:33:37 +00:00
Mark Michelson
cc9fa36fbc 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
2008-12-22 23:27:03 +00:00
Mark Michelson
61bf090dbb 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
2008-12-22 21:55:59 +00:00
Russell Bryant
3bd710a626 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
2008-12-22 21:46:24 +00:00
Russell Bryant
d34c6ad79d 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
2008-12-22 20:27:59 +00:00
Russell Bryant
0b4abe2273 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
2008-12-22 17:30:05 +00:00
Russell Bryant
70416419ce 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
2008-12-22 17:14:18 +00:00
Mark Michelson
2e8b3deab5 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
2008-12-22 16:30:25 +00:00
Russell Bryant
b19363ed78 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
2008-12-22 16:17:57 +00:00
Mark Michelson
c01f7c0af8 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
2008-12-22 16:12:34 +00:00
Mark Michelson
3eb9bd8e4e 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
2008-12-22 16:10:14 +00:00
Joshua Colp
e6a7286d11 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
2008-12-22 16:09:36 +00:00
Russell Bryant
589ebf8421 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
2008-12-22 14:18:08 +00:00
Mark Michelson
bd050e9fae 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
2008-12-19 23:45:26 +00:00
Mark Michelson
15ec36e3aa 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
2008-12-19 23:41:09 +00:00
Mark Michelson
eec3edde9f 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
2008-12-19 23:04:07 +00:00
Eliel C. Sardanons
fccf7383df 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
2008-12-19 18:23:47 +00:00
Russell Bryant
21012610d2 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
2008-12-19 15:08:00 +00:00
Russell Bryant
202b8352ef 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
2008-12-19 14:48:51 +00:00
Russell Bryant
3c9aebde62 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
2008-12-19 14:43:13 +00:00
Tilghman Lesher
8c22d38f3a 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
2008-12-18 21:56:27 +00:00
Russell Bryant
4dcb02958e 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
2008-12-18 21:45:38 +00:00
Jeff Peeler
c3662a64c7 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
2008-12-18 21:44:05 +00:00
Joshua Colp
3bde2f6f89 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
2008-12-18 21:22:29 +00:00
Russell Bryant
ca1c37e47c 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
2008-12-18 19:40:14 +00:00
Russell Bryant
9ca178a9be 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
2008-12-18 18:56:32 +00:00
Tilghman Lesher
90d0e13f44 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
2008-12-18 18:46:23 +00:00
Joshua Colp
7333579bf9 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
2008-12-18 17:14:27 +00:00
Joshua Colp
4e3184c908 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
2008-12-18 16:11:49 +00:00
Eliel C. Sardanons
900e6b19b8 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
2008-12-18 15:28:41 +00:00
Russell Bryant
dbfd0a3928 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
2008-12-18 13:34:02 +00:00
Mark Michelson
f4760ab030 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
2008-12-17 21:48:00 +00:00
Tilghman Lesher
c4fc79c5c7 Oops, broke 1.6.0
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@165327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-17 21:29:32 +00:00
Mark Michelson
f9e08bac6d 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
2008-12-17 21:22:10 +00:00
Tilghman Lesher
475abaedf1 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
2008-12-17 21:21:19 +00:00
Steve Murphy
f79f987366 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
2008-12-17 20:59:42 +00:00
Terry Wilson
1665fe8b81 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
2008-12-17 20:00:11 +00:00
Joshua Colp
665ba5d64b 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
2008-12-17 19:53:42 +00:00
Mark Michelson
0ad1fc15cd 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
2008-12-17 17:55:02 +00:00
Steve Murphy
6bddb621ce 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
2008-12-17 05:35:48 +00:00
Mark Michelson
3377535a60 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
2008-12-16 23:07:06 +00:00
Jeff Peeler
543315bd6b 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
2008-12-16 22:51:55 +00:00
Russell Bryant
599dbbd2b7 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
2008-12-16 21:39:45 +00:00
Russell Bryant
7e0ca3563f 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
2008-12-16 21:13:18 +00:00
Russell Bryant
c411947f0a 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
2008-12-16 20:49:47 +00:00
Joshua Colp
9329c0f105 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
2008-12-16 20:48:13 +00:00
Russell Bryant
c91f280aff 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
2008-12-16 20:43:16 +00:00
Joshua Colp
38a107a673 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
2008-12-16 20:43:06 +00:00
Michiel van Baak
bd8b830613 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
2008-12-16 20:12:05 +00:00