]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
17 years agoList include/asterisk/version.h as a .PHONY target because we want the commands
Russell Bryant [Wed, 26 Dec 2007 17:00:03 +0000 (17:00 +0000)] 
List include/asterisk/version.h as a .PHONY target because we want the commands
listed for this target to be executed regardless of whether the file exists or
not.  This fixes having the version not up to date when running from svn.
(closes issue #11619, reported by plack, fixed by me)

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

17 years agofile says... build on the builders.
Joshua Colp [Tue, 25 Dec 2007 02:27:08 +0000 (02:27 +0000)] 
file says... build on the builders.

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

17 years agoRace: we need to wait to queue a NewChannel event until after the channel is
Tilghman Lesher [Mon, 24 Dec 2007 19:36:59 +0000 (19:36 +0000)] 
Race: we need to wait to queue a NewChannel event until after the channel is
inserted into the channel list.  The reason is because some manager users
immediately queue requests from the channel when they see that event and are
confused when Asterisk reports no such channel. (Closes issue #11632)

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

17 years agoMore deadlock avoidance code (this time between sip_monitor and sip_hangup)
Tilghman Lesher [Mon, 24 Dec 2007 16:17:01 +0000 (16:17 +0000)] 
More deadlock avoidance code (this time between sip_monitor and sip_hangup)
Reported by: apsaras
Patch by: tilghman
(Closes issue #11413)

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

17 years agoAnother bit of bad logic in realtime_peer
Tilghman Lesher [Mon, 24 Dec 2007 15:39:56 +0000 (15:39 +0000)] 
Another bit of bad logic in realtime_peer
Reported by: dimas
Patch by: dimas
(Closes issue #11631)

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

17 years agoArgh... I suppose third time's the charm.
Tilghman Lesher [Sun, 23 Dec 2007 01:21:03 +0000 (01:21 +0000)] 
Argh... I suppose third time's the charm.

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

17 years agoBunch of coding guidelines cleanup
Mark Michelson [Fri, 21 Dec 2007 20:21:59 +0000 (20:21 +0000)] 
Bunch of coding guidelines cleanup

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

17 years agoBetter quota support for using IMAP storage voicemail
Mark Michelson [Fri, 21 Dec 2007 20:11:34 +0000 (20:11 +0000)] 
Better quota support for using IMAP storage voicemail

(closes issue #11415, reported by jaroth)
(closes issue #11152, reported by selsky)

Patch provided by jaroth

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

17 years agoThe mail_copy c-client function does not expect a full imap mailbox string, just...
Mark Michelson [Fri, 21 Dec 2007 19:59:45 +0000 (19:59 +0000)] 
The mail_copy c-client function does not expect a full imap mailbox string, just the name of the mailbox.

(closes issue #11419, reported and patched by jaroth, with additional patchwork from me)

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

17 years agoSince we are freeing list elements within a list traversal, we need to use the safe
Mark Michelson [Fri, 21 Dec 2007 16:49:35 +0000 (16:49 +0000)] 
Since we are freeing list elements within a list traversal, we need to use the safe
traversal and remove the item from the list before freeing it.

(closes issue 11612, reported by dtyoo)

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

17 years agoConvert the contexts lock to a read/write lock to resolve a deadlock. This
Russell Bryant [Fri, 21 Dec 2007 16:37:47 +0000 (16:37 +0000)] 
Convert the contexts lock to a read/write lock to resolve a deadlock.  This
has a nice side benefit of improving performance.  :)

(closes issue #11609)
(closes issue #11080)

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

17 years agoRemoving a debug message I accidentally just committed
Mark Michelson [Fri, 21 Dec 2007 16:11:44 +0000 (16:11 +0000)] 
Removing a debug message I accidentally just committed

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

17 years agoFixing Portuguese syntax for saying dates and times. Also some coding guidelines...
Mark Michelson [Fri, 21 Dec 2007 15:45:14 +0000 (15:45 +0000)] 
Fixing Portuguese syntax for saying dates and times. Also some coding guidelines cleanup.

(closes issue #11599, reported and patched by caio1982, coding guidelines cleanup by me)

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

17 years agoFix for restart-as-user problem reported via the -dev list
Tilghman Lesher [Fri, 21 Dec 2007 15:07:42 +0000 (15:07 +0000)] 
Fix for restart-as-user problem reported via the -dev list

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

17 years agoMerged revisions 94255 via svnmerge from
Russell Bryant [Thu, 20 Dec 2007 20:22:22 +0000 (20:22 +0000)] 
Merged revisions 94255 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r94255 | russell | 2007-12-20 14:21:41 -0600 (Thu, 20 Dec 2007) | 5 lines

Fix another potential seg fault ...

(closes issue #11606)
Reported by: dimas

........

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

17 years agoFix a deadlock in d-channel handling in chan_zap.
Russell Bryant [Thu, 20 Dec 2007 20:08:42 +0000 (20:08 +0000)] 
Fix a deadlock in d-channel handling in chan_zap.

This deadlock was introduced by the fix to ensure that channels are properly
locked when handling channel variables.  There were sections of this code where
the channel pvt was locked before the channel lock, when in fact it _must_ be
the other way around.

(closes issue #11582)
Reported by: bugi

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

17 years agoBlocked revisions 94214 via svnmerge
Russell Bryant [Thu, 20 Dec 2007 17:30:29 +0000 (17:30 +0000)] 
Blocked revisions 94214 via svnmerge

........
r94214 | russell | 2007-12-20 11:29:11 -0600 (Thu, 20 Dec 2007) | 2 lines

Fix a couple of places where it's possible to dereference a NULL pointer.

........

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

17 years agoSox versions 13.0.0 and newer do not have "soxmix" and instead use sox -m. res_monitor
Mark Michelson [Wed, 19 Dec 2007 23:02:22 +0000 (23:02 +0000)] 
Sox versions 13.0.0 and newer do not have "soxmix" and instead use sox -m. res_monitor
needs to use this if the user does not have soxmix.

(closes issue #11589, reported by amessina, patch inspired by amessina but with a flourish from me)

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

17 years agoCheck for the existence of the soxmix application on the target platform and have
Russell Bryant [Wed, 19 Dec 2007 22:48:48 +0000 (22:48 +0000)] 
Check for the existence of the soxmix application on the target platform and have
the result available in autoconfig.h.
(part of issue #11589)

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

17 years agoMake the 1.4 builders happy, ensure var is NULL.
Joshua Colp [Wed, 19 Dec 2007 17:29:20 +0000 (17:29 +0000)] 
Make the 1.4 builders happy, ensure var is NULL.

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

17 years agoAvoid segfault in chan_iax when peer isn't defined
Tilghman Lesher [Wed, 19 Dec 2007 17:04:13 +0000 (17:04 +0000)] 
Avoid segfault in chan_iax when peer isn't defined
(Closes issue #11602)

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

17 years agoFreeBSD also does not have byte swap functions.
Jason Parker [Tue, 18 Dec 2007 22:42:41 +0000 (22:42 +0000)] 
FreeBSD also does not have byte swap functions.

Issue 11586, patch by sobomax.

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

17 years agoBlocked revisions 93675 via svnmerge
Tilghman Lesher [Tue, 18 Dec 2007 18:45:37 +0000 (18:45 +0000)] 
Blocked revisions 93675 via svnmerge

........
r93675 | tilghman | 2007-12-18 12:44:41 -0600 (Tue, 18 Dec 2007) | 2 lines

Oops, missed this one case

........

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

17 years agoMerged revisions 93667 via svnmerge from
Tilghman Lesher [Tue, 18 Dec 2007 18:29:39 +0000 (18:29 +0000)] 
Merged revisions 93667 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r93667 | tilghman | 2007-12-18 12:23:06 -0600 (Tue, 18 Dec 2007) | 2 lines

Fixing AST-2007-027 (Closes issue #11119)

........

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

17 years agoRework deadlock avoidance used in ast_write, since it meant that agent channels which...
Mark Michelson [Tue, 18 Dec 2007 17:02:48 +0000 (17:02 +0000)] 
Rework deadlock avoidance used in ast_write, since it meant that agent channels which were being monitored
had one audio file recorded and one empty audio file saved.

(closes issue #11529, reported by atis patched by me)

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

17 years agoMissed a spot..
Jason Parker [Mon, 17 Dec 2007 22:56:58 +0000 (22:56 +0000)] 
Missed a spot..

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

17 years agoWhat was I thinking when I wrote this masterpiece?
Jason Parker [Mon, 17 Dec 2007 22:45:57 +0000 (22:45 +0000)] 
What was I thinking when I wrote this masterpiece?

-1 + 1 = 0..  who woulda thunk it?.

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

17 years agoDo not try to access information about a lock when printing out a trylock attempt...
Joshua Colp [Mon, 17 Dec 2007 22:28:09 +0000 (22:28 +0000)] 
Do not try to access information about a lock when printing out a trylock attempt. It is possible for the lock that it references to no longer be valid. This would have caused segfaults or deadlocks.
(issue #BE-263)
(closes issue #11080)
Reported by: callguy
(closes issue #11100)
Reported by: callguy

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

17 years agoToday is tomorrow's yesterday, and yesterday's tomorrow is today, and
Tilghman Lesher [Mon, 17 Dec 2007 21:12:42 +0000 (21:12 +0000)] 
Today is tomorrow's yesterday, and yesterday's tomorrow is today, and
tomorrow's tomorrow is the day after tomorrow, so who cares if you
recycle anyway?

If this confuses you, that's nothing compared to what this fixes. ;-)

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

17 years agoWe need to create the directory for a voicemail user even if they are using IMAP...
Mark Michelson [Mon, 17 Dec 2007 19:53:48 +0000 (19:53 +0000)] 
We need to create the directory for a voicemail user even if they are using IMAP storage
since greetings are stored in the filesystem.

(closes issue #11388, reported by spditner, patch by me inspired by a patch by spditner)

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

17 years agoIf a call is received with a called number IE containing nothing go to the 's' extension.
Joshua Colp [Mon, 17 Dec 2007 18:05:55 +0000 (18:05 +0000)] 
If a call is received with a called number IE containing nothing go to the 's' extension.
(closes issue #9099)
Reported by: kb1_kanobe2
Patches:
      20070906__9099.diff.txt uploaded by Corydon76 (license 14)

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

17 years agofix some copy-and-paste leftovers
Kevin P. Fleming [Mon, 17 Dec 2007 07:21:08 +0000 (07:21 +0000)] 
fix some copy-and-paste leftovers

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

17 years agoIssue 11574: Add dependencies on res_monitor and res_features.
Olle Johansson [Mon, 17 Dec 2007 07:15:13 +0000 (07:15 +0000)] 
Issue 11574: Add dependencies on res_monitor and res_features.

I wonder if Asterisk can run at all without res_features. My guess is that
there's propably a lot of more modules and the core that depends on it.

Reported by: caio1982
(closes issue #11574)

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

17 years agoIn http://lists.digium.com/pipermail/asterisk-dev/2007-December/031145.html,
Kevin P. Fleming [Mon, 17 Dec 2007 06:44:51 +0000 (06:44 +0000)] 
In http://lists.digium.com/pipermail/asterisk-dev/2007-December/031145.html,
rizzo brought up some issues related to the way that the metadata required
for menuselect and the rest of the build system is extracted from the source
files. Since I had a few hours to kill on an airplane today, I decided to
improve this situation... so now the system caches the extracted metadata
and uses it to build the menuselect 'tree' as much as it can. The result
of this is that when a single source file is changed, only the metadata for
that file needs to be extracted again, and the rest is used from the cache
files. I also reduced the number of forked processes required to do the
metadata extraction; it was actually possible to do most of what we needed
in the Makefiles themselves without using any shell scripts at all! On my
laptop, these changes resulted in an 80% decrease in the time required
for the 'menuselect.makeopts' automatic check to occur after editing a single
source file.

While doing this work I also cleaned up a few minor things in the Makefiles,
adding a check for 'awk' to the configure script and changed all remaining
places we use 'grep' or 'awk' to use the ones found by the configure script,
and changed the 'prep_tarball' script to build the menuselect metadata so
that tarballs of Asterisk will include it and won't require the user to
wait while it is extracted after unpacking.

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

17 years agoThere are a lot of existing systems that #include non-existent files. So, to
Russell Bryant [Fri, 14 Dec 2007 17:36:08 +0000 (17:36 +0000)] 
There are a lot of existing systems that #include non-existent files.  So, to
make the transition to treating this as an error a bit less painless, just issue
a huge error message for now.  Then, later, we can reinstate the code that treats
it as a failure.

(Thanks to philippel for the feedback)

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

17 years agoUp the length of the format on the SIP channel since it can now be rather long.
Joshua Colp [Fri, 14 Dec 2007 15:16:15 +0000 (15:16 +0000)] 
Up the length of the format on the SIP channel since it can now be rather long.
(closes issue #11552)
Reported by: francesco_r

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

17 years agofixed the sequencing of WAITING_4DIGS state setting and overlap_task thread starting.
Christian Richter [Fri, 14 Dec 2007 15:05:28 +0000 (15:05 +0000)] 
fixed the sequencing of WAITING_4DIGS state setting and overlap_task thread starting.

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

17 years agoChange help documentation to match actual behavior (FAILURE vs FAILED).
Tilghman Lesher [Fri, 14 Dec 2007 15:01:10 +0000 (15:01 +0000)] 
Change help documentation to match actual behavior (FAILURE vs FAILED).
Reported by: angeloxx-sir
Patch by: tilghman
(Closes issue #11548)

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

17 years agoWhen compiling with DETECT_DEADLOCKS, don't spam the CLI with messages
Mark Michelson [Fri, 14 Dec 2007 01:24:06 +0000 (01:24 +0000)] 
When compiling with DETECT_DEADLOCKS, don't spam the CLI with messages
about possible deadlocks. Instead just print the intended single message every
five seconds.

(closes issue 11537, reported and patched by dimas)

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

17 years agoProperly initialize polarity statuses, so that they are detected properly.
Tilghman Lesher [Thu, 13 Dec 2007 21:28:39 +0000 (21:28 +0000)] 
Properly initialize polarity statuses, so that they are detected properly.
Reported by: julianjm
Patch by: julianjm
(Closes issue #10238)

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

17 years agoMake application help text a little more clear about the use of extensions in a filename.
Jason Parker [Thu, 13 Dec 2007 20:13:48 +0000 (20:13 +0000)] 
Make application help text a little more clear about the use of extensions in a filename.

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

17 years agoPrevent another potential fd leak
Mark Michelson [Thu, 13 Dec 2007 20:03:20 +0000 (20:03 +0000)] 
Prevent another potential fd leak

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

17 years agoPrevent a possible fd leak.
Mark Michelson [Thu, 13 Dec 2007 19:49:55 +0000 (19:49 +0000)] 
Prevent a possible fd leak.

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

18 years agoIf a typo is found in a config file, we previous continued on with what was already...
Jason Parker [Thu, 13 Dec 2007 00:11:09 +0000 (00:11 +0000)] 
If a typo is found in a config file, we previous continued on with what was already loaded.
We do not want to do this (see bug below for details).

This makes it so that if a [ is found without a ], the entire config will fail, and nothing in it will be loaded.

Isue #10690.

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

18 years agoemit a warning message when we drop a G.729B CNG frame destined for the transcoder
Kevin P. Fleming [Wed, 12 Dec 2007 22:00:39 +0000 (22:00 +0000)] 
emit a warning message when we drop a G.729B CNG frame destined for the transcoder

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

18 years agoDon't increment user count until after name has been recorded (if enabled).
Jason Parker [Wed, 12 Dec 2007 21:15:45 +0000 (21:15 +0000)] 
Don't increment user count until after name has been recorded (if enabled).

Issue 11048, tested by pep.

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

18 years agoresolve compiler warning
Russell Bryant [Wed, 12 Dec 2007 19:40:02 +0000 (19:40 +0000)] 
resolve compiler warning

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

18 years agoCorrectly detect where a dynamic feature was activated. Before this patch,
Mark Michelson [Wed, 12 Dec 2007 17:46:14 +0000 (17:46 +0000)] 
Correctly detect where a dynamic feature was activated. Before this patch,
the channel which initiated the bridge was always assumed to have been the one
which activated the dynamic feature. This patch corrects this.

(closes issue #11529, reported and patched by nic_bellamy)

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

18 years agoTest directly for the API that fixed AST-2007-026, to ensure that older
Tilghman Lesher [Wed, 12 Dec 2007 16:52:56 +0000 (16:52 +0000)] 
Test directly for the API that fixed AST-2007-026, to ensure that older
versions of PostgreSQL are no longer acceptable.
(Closes issue #11526)

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

18 years agoRemoving an unused variable.
Mark Michelson [Wed, 12 Dec 2007 16:08:55 +0000 (16:08 +0000)] 
Removing an unused variable.

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

18 years agoFix potential memory leak with the dialed interfaces list if another memory allocatio...
Joshua Colp [Tue, 11 Dec 2007 19:51:40 +0000 (19:51 +0000)] 
Fix potential memory leak with the dialed interfaces list if another memory allocation fails.
(closes issue #11507)
Reported by: eliel
Patches:
      global_datastores.c.patch uploaded by eliel (license 64)

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

18 years agoFixing autofill to be more accurate. Specifically, if calls ahead of the current
Mark Michelson [Tue, 11 Dec 2007 17:42:25 +0000 (17:42 +0000)] 
Fixing autofill to be more accurate. Specifically, if calls ahead of the current
caller were ringing members (but not yet bridged) there could be available members
and waiting callers who would not get matched up. The member availability checker
was correctly determining the number of available members in this scenario, but
the queue itself did not parallelly reflect this status on the pending calls. This
commit corrects the issue.

(closes issue #11459, reported by equissoftware, patched by me)

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

18 years agoAdd G729A as another possible payload name for G729. Some devices use this instead...
Joshua Colp [Mon, 10 Dec 2007 16:36:15 +0000 (16:36 +0000)] 
Add G729A as another possible payload name for G729. Some devices use this instead of G729, which is perfectly normal since the payload number itself is defined and can't be used by anything else so the name doesn't matter that much.
(closes issue #11483)
Reported by: revolution
Patches:
      rtp.diff uploaded by revolution (license 346)

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

18 years agoIf there are no members in a queue, then the loop where the datastore for detecting
Mark Michelson [Mon, 10 Dec 2007 16:29:44 +0000 (16:29 +0000)] 
If there are no members in a queue, then the loop where the datastore for detecting
duplicate dialed numbers will be skipped, meaning the datastore isn't created. This means
that when we try to free it, there's a crash. This stops that crash from occurring.

(closes issue #11499, reported by slavon, patched by eliel)

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

18 years agoIt is possible for nativeformats to contain more then one codec, so print out multipl...
Joshua Colp [Mon, 10 Dec 2007 16:13:43 +0000 (16:13 +0000)] 
It is possible for nativeformats to contain more then one codec, so print out multiple ones.
(closes issue #11366)
Reported by: ovi

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

18 years agoAvoid reinvite race situations with two Asterisks trying
Olle Johansson [Mon, 10 Dec 2007 14:04:44 +0000 (14:04 +0000)] 
Avoid reinvite race situations with two Asterisks trying
to reinvite each other in 1.4 and trunk.

This patch implements support for the 491 error code that
Asterisk 1.4 generates on situations where we get an
incoming INVITE and already has one in progress.

Thanks to mavetju for reporting and to Raj Jain for an
excellent explanation of the problem.

Patch by myself. Tested with 8 Asterisk servers connected
to each other in a training network.

Closes issue #10481

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

18 years agoWe need to make sure we free the input frame if we return a different frame in ast_ds...
Jason Parker [Fri, 7 Dec 2007 23:29:01 +0000 (23:29 +0000)] 
We need to make sure we free the input frame if we return a different frame in ast_dsp_process.

Issue 11273, pointed out by dimas, with a patch by eliel.

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

18 years agoeven though Asterisk explicitly requests that endpoints using G.729 do *not* use...
Kevin P. Fleming [Fri, 7 Dec 2007 22:30:59 +0000 (22:30 +0000)] 
even though Asterisk explicitly requests that endpoints using G.729 do *not* use Annex B (silence detection and comfort noise generation) some do anyway; the transcoder card interface does not currently work properly with CNG frames, so trim off the CNG before sending the data

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

18 years agoMake the lock protecting each thread's list of locks it currently holds
Russell Bryant [Fri, 7 Dec 2007 21:24:33 +0000 (21:24 +0000)] 
Make the lock protecting each thread's list of locks it currently holds
recursive.  I think that this will fix the situation where some people have
said that "core show locks" locks up the CLI.
(related to issue #11080)

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

18 years agoFix another bug in the DEBUG_THREADS code. The ast_mutex_init() function had
Russell Bryant [Fri, 7 Dec 2007 21:17:24 +0000 (21:17 +0000)] 
Fix another bug in the DEBUG_THREADS code.  The ast_mutex_init() function had
the mutex attribute object marked as static.  This means that multiple threads
initializing locks at the same time could step on each other and end up with
improperly initialized locks.
(found when tracking down locking issues related to issue #11080)

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

18 years agoI love fixing lock related errors in the lock debugging code. That's about as
Russell Bryant [Fri, 7 Dec 2007 21:11:08 +0000 (21:11 +0000)] 
I love fixing lock related errors in the lock debugging code.  That's about as
ironic as it gets in Asterisk programming land.  Anyway, I spotted this bug while
trying to track down why systems are locking up and acting weird in issue #11080.
The mutex attribute object was marked as static in this function when it should
not have been.

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

18 years ago* Add channel locking around datastore operations that expect the channel
Russell Bryant [Fri, 7 Dec 2007 16:38:48 +0000 (16:38 +0000)] 
* Add channel locking around datastore operations that expect the channel
  to be locked.
* Document why we don't record Local channels in the dialed interfaces list.
* Remove the dialed variable as it isn't needed.
* Restructure some code for clarity and coding guidelines stuff

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

18 years ago* Add channel locking around datastore operations that expect the channel
Russell Bryant [Fri, 7 Dec 2007 16:25:25 +0000 (16:25 +0000)] 
* Add channel locking around datastore operations that expect the channel
  to be locked.
* Document why we don't record Local channels in the dialed interfaces list.
* Handle memory allocation failure.
* Remove the dialed variable, as it wasn't actually needed.
* Tweak some formatting to conform to coding guidelines.

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

18 years ago* Add a bit more of a verbose comment as to why a hangup frame needs to be
Russell Bryant [Fri, 7 Dec 2007 16:08:35 +0000 (16:08 +0000)] 
* Add a bit more of a verbose comment as to why a hangup frame needs to be
  queued up if autoservice gets a NULL return from ast_read().
* Make the process of queueing the hangup frame more efficient by putting the
  frame where it is going to end up and avoiding some locking and extra memory
  allocations and freeing.

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

18 years agoHangups that happen during autoservice were not processed appropriately. This is
Mark Michelson [Fri, 7 Dec 2007 15:39:58 +0000 (15:39 +0000)] 
Hangups that happen during autoservice were not processed appropriately. This is
because a hangup actually causes a NULL frame to be received, not a hangup frame.
Queueing a hangup if we receive a NULL frame during autoservice corrects this problem

(closes issue #11467, reported  by jmls, patched by me)

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

18 years agoDon't unlock the dialed_interfaces list until we're done messing with the iterator.
Russell Bryant [Fri, 7 Dec 2007 02:51:22 +0000 (02:51 +0000)] 
Don't unlock the dialed_interfaces list until we're done messing with the iterator.

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

18 years agoAllow dialing local channels from Queue() and Dial() again. There was a slight
Russell Bryant [Fri, 7 Dec 2007 02:38:40 +0000 (02:38 +0000)] 
Allow dialing local channels from Queue() and Dial() again.  There was a slight
flaw in the code to prevent call forwards from looping that caused this problem.
(related to issue #11486)

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

18 years agoFix in an issue in the call forwarding handling code that was causing crashes
Russell Bryant [Fri, 7 Dec 2007 02:19:45 +0000 (02:19 +0000)] 
Fix in an issue in the call forwarding handling code that was causing crashes
on every call into a queue.  I'm not entirely sure about the logic in this part
of the code, so I want to look at it some more tomorrow.  However, this makes
it safe and keeps it from crashing.

(closes issue #11486, reported by adamg, patched by me)

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

18 years agoAt the end of a call, when we're reporting, RTCP may already be partially torn down...
Tilghman Lesher [Fri, 7 Dec 2007 00:52:17 +0000 (00:52 +0000)] 
At the end of a call, when we're reporting, RTCP may already be partially torn down, so check for NULL dereference
Reported by: blitzrage
Patch by: tilghman
(Closes issue #11450)

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

18 years agoIMAP storage did not honor the maxmsg setting in voicemail.conf, and it also had...
Mark Michelson [Thu, 6 Dec 2007 20:25:11 +0000 (20:25 +0000)] 
IMAP storage did not honor the maxmsg setting in voicemail.conf, and it also had the possibility
of crashing if a user had more than 256 messages in their voicemail. This patch kills two birds with
one stone by adding maxmsg support and also setting a hard limit on the number of messages at 255 so
that the crashes cannot happen.

(closes issue #11101, reported by Skavin, patched by me)

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

18 years agoAdd a new module flag to indicate that a build sum is present. Modules built
Russell Bryant [Thu, 6 Dec 2007 19:11:35 +0000 (19:11 +0000)] 
Add a new module flag to indicate that a build sum is present.  Modules built
against older Asterisk 1.4 headers will now load properly with just a warning
indicating that they are old and may cause problems.
(patch by paravoid)

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

18 years agoFix various in the udptl implementation. It could return empty modem frames, have...
Joshua Colp [Thu, 6 Dec 2007 16:49:42 +0000 (16:49 +0000)] 
Fix various in the udptl implementation. It could return empty modem frames, have an incorrect sequence number on packets, and display the wrong sequence number in the debug messages.
(closes issue #11228)
Reported by: Cache
Patches:
      udptl-4.patch uploaded by dimas (license 88)

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

18 years agoAdd support for accepting and sending T.38 in the initial INVITE.
Joshua Colp [Thu, 6 Dec 2007 16:14:26 +0000 (16:14 +0000)] 
Add support for accepting and sending T.38 in the initial INVITE.
(closes issue #9402)
Reported by: thdei

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

18 years agoMake sure logger is reloaded at general reload in the cli.
Olle Johansson [Thu, 6 Dec 2007 12:54:11 +0000 (12:54 +0000)] 
Make sure logger is reloaded at general reload in the cli.

(Discovered during Asterisk training in Portugal)

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

18 years agoReverting extra stuff I didn't mean to commit
Mark Michelson [Wed, 5 Dec 2007 22:57:13 +0000 (22:57 +0000)] 
Reverting extra stuff I didn't mean to commit

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

18 years agoThe 'G' option for Dial() did not properly handle the case where only a label was
Mark Michelson [Wed, 5 Dec 2007 22:35:52 +0000 (22:35 +0000)] 
The 'G' option for Dial() did not properly handle the case where only a label was
provided. This was due to the fact that the answering channel did not have an extension
set, so ast_parseable_goto would fail. This fix eliminates the call to ast_parseable_goto
on the answering channel since it is a wasteful call. The answering channel and the calling
channel are both directed to the same extension and context, just different priorities, so
we can just copy the values from the calling channel to the answering channel and increment
the answering channel's priority.

(closes issue #11382, reported by jon, patch by me with correction by jon)

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

18 years agoUpgrade to the latest version of extra sounds
Tilghman Lesher [Wed, 5 Dec 2007 21:38:13 +0000 (21:38 +0000)] 
Upgrade to the latest version of extra sounds

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

18 years agoMake the lock in the threadstorage debugging code untracked to avoid a deadlock
Russell Bryant [Wed, 5 Dec 2007 17:31:42 +0000 (17:31 +0000)] 
Make the lock in the threadstorage debugging code untracked to avoid a deadlock
on thread destruction.

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

Also fixes an open bug report: (closes issue #11446)

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

18 years agoWhen DEBUG_THREADS is enabled, we only have the details about who is holding
Russell Bryant [Wed, 5 Dec 2007 00:48:47 +0000 (00:48 +0000)] 
When DEBUG_THREADS is enabled, we only have the details about who is holding
a lock that we are waiting on for a mutex, not rwlocks.  This should fix the
problem where people have reported "core show locks" crashing sometimes.

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

18 years agoFix some crashes in chan_iax2 that were reported as happening on Mac systems.
Russell Bryant [Wed, 5 Dec 2007 00:35:31 +0000 (00:35 +0000)] 
Fix some crashes in chan_iax2 that were reported as happening on Mac systems.
It turns out that the problem was the Mac version of the ast_atomic_fetchadd_int()
function.  The Mac atomic add function returns the _new_ value, while this function
is supposed to return the old value.  So, the crashes happened on unreferencing
objects.  If the reference count was decreased to 1, ao2_ref() thought that it
had been decreased to zero, and called the destructor.  However, there was still
an outstanding reference around.

(closes issue #11176)
(closes issue #11289)

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

18 years agoModify file.h to maintain API compatibility with earlier versions. If a recent
Russell Bryant [Tue, 4 Dec 2007 23:46:40 +0000 (23:46 +0000)] 
Modify file.h to maintain API compatibility with earlier versions.  If a recent
compiler is being used, then a warning will show up for any modules still using
the old name "private" instead of "_private".
(patch suggested by paravoid)

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

18 years agoMake some changes to some additions I made recently for doing channel autoservice
Russell Bryant [Tue, 4 Dec 2007 19:57:39 +0000 (19:57 +0000)] 
Make some changes to some additions I made recently for doing channel autoservice
when looking up extensions.  This code was added to handle the case where a
dialplan switch was in use that could block for a long time.  However, the way
that I added it, it did this for all extension lookups.  However, lookups in the
in-memory tree of extensions should _not_ take long enough to matter.  So, move
the autoservice stuff to be only around executing a switch.

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

18 years agoIf we fail to create a channel after allocating a timing fd, we need to make sure...
Jason Parker [Tue, 4 Dec 2007 17:28:08 +0000 (17:28 +0000)] 
If we fail to create a channel after allocating a timing fd, we need to make sure to close it.

Issue 11454, patch by eliel.

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

18 years agoFix build issue on the build cluster.
Joshua Colp [Tue, 4 Dec 2007 05:29:33 +0000 (05:29 +0000)] 
Fix build issue on the build cluster.

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

18 years agoSolaris requires the inclusion of sys/loadavg.h for getloadavg().
Tilghman Lesher [Mon, 3 Dec 2007 23:50:51 +0000 (23:50 +0000)] 
Solaris requires the inclusion of sys/loadavg.h for getloadavg().
Reported by: snuffy
Patch by: snuffy,tilghman
(Closes issue #11430)

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

18 years agoIf both dbhost and dbsock were not set, a NULL deref could result
Tilghman Lesher [Mon, 3 Dec 2007 23:23:55 +0000 (23:23 +0000)] 
If both dbhost and dbsock were not set, a NULL deref could result
Reported by: xrg
Patch by: tilghman
(Closes issue #11387)

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

18 years agoA big one...
Mark Michelson [Mon, 3 Dec 2007 23:12:17 +0000 (23:12 +0000)] 
A big one...

This is the merge of the forward-loop branch. The main change here is that call-forwards can no longer loop.
This is accomplished by creating a datastore on the calling channel which has a linked list of all devices
dialed. If a forward happens, then the local channel which is created inherits the datastore. If, through this
progression of forwards and datastore inheritance, a device is attempted to be dialed a second time, it will simply
be skipped and a warning message will be printed to the CLI. After the dialing has been completed, the datastore
is detached from the channel and destroyed.

This change also introduces some side effects to the code which I shall enumerate here:

1. Datastore inheritance has been backported from trunk into 1.4
2. A large chunk of code has been removed from app_dial. This chunk is the section of code
   which handles the call forward case after the channel has been requested but before it has
   been called. This was removed because call-forwarding still works fine without it, it makes the
   code less error-prone should it need changing, and it made this set of changes much less painful
   to just have the forwarding handled in one place in each module.
3. Two new files, global_datastores.h and .c have been added. These are necessary since the datastore
   which is attached to the channel may be created and attached in either app_dial or app_queue, so they
   need a common place to find the datastore info. This approach was taken in case similar datastores are
   needed in the future, there will be a common place to add them.

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

18 years agoMake sure we always close the conference fd if we have an open one.
Jason Parker [Mon, 3 Dec 2007 22:06:36 +0000 (22:06 +0000)] 
Make sure we always close the conference fd if we have an open one.

Issue 11383, reported by markmhy, patch by eliel.

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

18 years agoChanging some bad logic when calculating the interdigit timeout.
Mark Michelson [Mon, 3 Dec 2007 20:59:51 +0000 (20:59 +0000)] 
Changing some bad logic when calculating the interdigit timeout.

(closes issue #11402, reported and patched by eferro)

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

18 years agoFix crash in ParkAndAnnounce application.
Jason Parker [Mon, 3 Dec 2007 20:51:17 +0000 (20:51 +0000)] 
Fix crash in ParkAndAnnounce application.

Issue #11436, reported by lytledd, patch by eliel.

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

18 years agoDo not create a smoother for G723.1 frames, they need to be left alone to their nativ...
Joshua Colp [Mon, 3 Dec 2007 20:05:42 +0000 (20:05 +0000)] 
Do not create a smoother for G723.1 frames, they need to be left alone to their native 20/24 byte size.

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

18 years agoPreserve the indication currently playing on a channel when a masquerade operation...
Joshua Colp [Mon, 3 Dec 2007 18:40:56 +0000 (18:40 +0000)] 
Preserve the indication currently playing on a channel when a masquerade operation happens. (issue #BE-88)

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

18 years agoOnly log debug messages if debug is enabled.
Jason Parker [Mon, 3 Dec 2007 18:20:49 +0000 (18:20 +0000)] 
Only log debug messages if debug is enabled.

Closes issue #11416, patch by casper.

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

18 years agoThe other day when I went through making changes as a result of the ao2_link()
Russell Bryant [Sun, 2 Dec 2007 18:18:52 +0000 (18:18 +0000)] 
The other day when I went through making changes as a result of the ao2_link()
change, I added some code to set pointers to NULL after they were unreferenced.
This pointed out that in this place, the object was unreferenced before the
code was done using it.  So, move the unref down a little bit.
(crash reported by jmls on IRC)

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

18 years agoClarify the return value on autoservice. Specifically, if you started
Tilghman Lesher [Sun, 2 Dec 2007 09:34:23 +0000 (09:34 +0000)] 
Clarify the return value on autoservice.  Specifically, if you started
autoservice and autoservice was already on, it would erroneously return an
error.
Reported by: adiemus
Patch by: dimas
(Closes issue #11433)

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

18 years agoChange the behavior of ao2_link(). Previously, in inherited a reference.
Russell Bryant [Fri, 30 Nov 2007 19:26:04 +0000 (19:26 +0000)] 
Change the behavior of ao2_link().  Previously, in inherited a reference.
Now, it automatically increases the reference count to reflect the reference
that is now held by the container.

This was done to be more consistent with ao2_unlink(), which automatically
releases the reference held by the container.  It also makes it so it is
no longer possible for a pointer to be invalid after ao2_link() returns.

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

18 years agoAdd some notes on the behavior of ao2_unlink() after a discussion with Tilghman
Russell Bryant [Fri, 30 Nov 2007 18:46:46 +0000 (18:46 +0000)] 
Add some notes on the behavior of ao2_unlink() after a discussion with Tilghman

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

18 years agoFix locking issues under one legged replaces scenarios.
Joshua Colp [Fri, 30 Nov 2007 14:43:15 +0000 (14:43 +0000)] 
Fix locking issues under one legged replaces scenarios.
(closes issue #11420)
Reported by: irroot
Patches:
      chan_sip_oneleg.patch uploaded by irroot (license 52)

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

18 years agoClear the DTMF buffer if the call times out.
Mark Michelson [Fri, 30 Nov 2007 00:16:04 +0000 (00:16 +0000)] 
Clear the DTMF buffer if the call times out.

(closes issue #11418, reported and patched by eferro)

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

18 years agoProperly escape cdr->src and cdr->dst and ensure we use thread-safe escaping
Tilghman Lesher [Thu, 29 Nov 2007 19:48:10 +0000 (19:48 +0000)] 
Properly escape cdr->src and cdr->dst and ensure we use thread-safe escaping
(Fixes AST-2007-026)

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