]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
17 years agoIf no group has been provided to the GROUP_COUNT dialplan function then use the first...
Joshua Colp [Tue, 8 Jan 2008 19:53:52 +0000 (19:53 +0000)] 
If no group has been provided to the GROUP_COUNT dialplan function then use the first one specific to the channel.
(closes issue #11077)
Reported by: m4him

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

17 years agoMake app_queue calls work with directed pickup.
Joshua Colp [Tue, 8 Jan 2008 18:36:40 +0000 (18:36 +0000)] 
Make app_queue calls work with directed pickup.
(closes issue #11700)
Reported by: jbauer

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

17 years agoApply multiple crash fixes, found in issue #11386, but not completely
Tilghman Lesher [Tue, 8 Jan 2008 18:02:13 +0000 (18:02 +0000)] 
Apply multiple crash fixes, found in issue #11386, but not completely
closing that issue.

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

17 years agoMerged revisions 96931 via svnmerge from
Russell Bryant [Mon, 7 Jan 2008 20:47:52 +0000 (20:47 +0000)] 
Merged revisions 96931 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r96931 | russell | 2008-01-07 14:46:22 -0600 (Mon, 07 Jan 2008) | 2 lines

Change misery.digium.com to pbx.digium.com

........

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

17 years agoDon't crash if something happens when setting up an SMDI interface and it gets
Russell Bryant [Mon, 7 Jan 2008 16:39:23 +0000 (16:39 +0000)] 
Don't crash if something happens when setting up an SMDI interface and it gets
destroyed before the SMDI port handling thread gets created.

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

17 years agoIndentation fix, makes the code easier to read
Philippe Sultan [Mon, 7 Jan 2008 14:34:36 +0000 (14:34 +0000)] 
Indentation fix, makes the code easier to read

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

17 years agoCompute the base64 value over the [authzid]\0authcid\0password string,
Philippe Sultan [Mon, 7 Jan 2008 14:25:29 +0000 (14:25 +0000)] 
Compute the base64 value over the [authzid]\0authcid\0password string,
thus excluding the trailing NULL byte.

This change has already been committed to trunk, see #11644.

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

17 years agoDon't pass an empty string as the device name.
Russell Bryant [Sat, 5 Jan 2008 02:09:19 +0000 (02:09 +0000)] 
Don't pass an empty string as the device name.

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

17 years agoFix the problem of notification of a device state change to a device with a '-'
Tilghman Lesher [Fri, 4 Jan 2008 23:03:40 +0000 (23:03 +0000)] 
Fix the problem of notification of a device state change to a device with a '-'
in the name.  Could probably do with a better fix in trunk, but this bug has
been open way too long without a better solution.
Reported by: stevedavies
Patch by: tilghman
(Closes issue #9668)

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

17 years agoProperly continue in the dialplan if using PARKINGEXTEN and the slot is full.
Jason Parker [Fri, 4 Jan 2008 22:55:56 +0000 (22:55 +0000)] 
Properly continue in the dialplan if using PARKINGEXTEN and the slot is full.

Issue 11237, patch by me.

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

17 years agoIf you change the bindaddr in sip.conf to a non-bound address and reload, sip goes...
Tilghman Lesher [Fri, 4 Jan 2008 19:27:25 +0000 (19:27 +0000)] 
If you change the bindaddr in sip.conf to a non-bound address and reload, sip goes kablooie.
Reported and patched by: one47
(Closes issue #11535)

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

17 years agoMake use of the temporary channel pointer while the pvt is unlocked.
Russell Bryant [Fri, 4 Jan 2008 16:19:22 +0000 (16:19 +0000)] 
Make use of the temporary channel pointer while the pvt is unlocked.

(closes issue #11675)
Reported by: flefoll
Patches:
      chan_zap.c.patch-store-owner-before-unlock uploaded by flefoll (license 244)

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

17 years agoDon't crash if the iax2 pvt structure has been destroyed before we get to this point
Russell Bryant [Thu, 3 Jan 2008 22:44:22 +0000 (22:44 +0000)] 
Don't crash if the iax2 pvt structure has been destroyed before we get to this point
(closes issue #11672, reported by snuffy, patched by me)

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

17 years agoMissed initialization caused crash.
Tilghman Lesher [Thu, 3 Jan 2008 21:37:02 +0000 (21:37 +0000)] 
Missed initialization caused crash.
Reported and fixed by: tiziano
(Closes issue #11671)

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

17 years agomake sure frame is completely clean, before we send it to asterisk as DTMF. If we...
Christian Richter [Thu, 3 Jan 2008 12:12:27 +0000 (12:12 +0000)] 
make sure frame is completely clean, before we send it to asterisk as DTMF. If we don't make it clean, it happens that one way audio occurs..

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

17 years agowhen overlapdial was used and no number was dialed, the call was dropped, now we...
Christian Richter [Thu, 3 Jan 2008 12:08:40 +0000 (12:08 +0000)] 
when overlapdial was used and no number was dialed, the call was dropped, now we just jump into the s extension, which makes a lot more sense.

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

17 years agoWe need to reset the membername to NULL on each iteration of this loop, otherwise...
Mark Michelson [Wed, 2 Jan 2008 23:46:02 +0000 (23:46 +0000)] 
We need to reset the membername to NULL on each iteration of this loop, otherwise the result is that
multiple members can have the same name, since the variable was not reset on each iteration of the loop.

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

17 years agoConvert locks of the contexts list in pbx_config to the appropriate rdlock or wrlock
Russell Bryant [Wed, 2 Jan 2008 22:14:28 +0000 (22:14 +0000)] 
Convert locks of the contexts list in pbx_config to the appropriate rdlock or wrlock

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

17 years agopbx_dundi only needs a rdlock on the contexts list.
Russell Bryant [Wed, 2 Jan 2008 22:04:47 +0000 (22:04 +0000)] 
pbx_dundi only needs a rdlock on the contexts list.

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

17 years agoapp_macro only needs a rdlock on the contexts list.
Russell Bryant [Wed, 2 Jan 2008 22:00:21 +0000 (22:00 +0000)] 
app_macro only needs a rdlock on the contexts list.

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

17 years agoAllocate a SIP refer structure when performing a transfer using BYE with Also so...
Joshua Colp [Wed, 2 Jan 2008 20:24:09 +0000 (20:24 +0000)] 
Allocate a SIP refer structure when performing a transfer using BYE with Also so that the transfer information is properly stored. (AST-2008-001)
(closes issue #11637)
Reported by: greyvoip

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

17 years agoA change to improve the accuracy of queue logging in the case where a member does not
Mark Michelson [Wed, 2 Jan 2008 17:51:22 +0000 (17:51 +0000)] 
A change to improve the accuracy of queue logging in the case where a member does not
answer during the specified timeout period. Prior to this change, there was a small chance
that the member name recorded in this case would be blank. Also prior to this change, if using
the ringall strategy, if no one answered the call during the specified timeout, the member name
listed in the queue log would randomly be one of the members that was rung.

(closes issue #11498, reported and tested by hloubser, patched by me)

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

17 years agoAvoiding a potentially bad locking situation. ast_merge_contexts_and_delete writelock...
Mark Michelson [Mon, 31 Dec 2007 23:43:13 +0000 (23:43 +0000)] 
Avoiding a potentially bad locking situation. ast_merge_contexts_and_delete writelocks the conlock, then
calls ast_hint_extension, which attempts to readlock the same lock. Recursion with read-write locks is
dangerous, so the inner lock needs to be removed. I did this by copying the "guts" of ast_hint_extension
into ast_merge_contexts_and_delete (sans the extra lock).

(this change is inspired by the locking problems seen in issue #11080, but I have no idea if this is the
problematic area experienced by the reporters of that issue)

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

17 years agoAllow the default "0" to be returned if the STAT fails
Tilghman Lesher [Mon, 31 Dec 2007 20:27:26 +0000 (20:27 +0000)] 
Allow the default "0" to be returned if the STAT fails
(Closes issue #11659)

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

17 years agoRemove duplicate increment of the header count in the add_header() function.
Russell Bryant [Fri, 28 Dec 2007 18:24:59 +0000 (18:24 +0000)] 
Remove duplicate increment of the header count in the add_header() function.

(closes issue #11648)
Reported by: makoto
Patch provided by sergee, committed patch by me, inspired by comments from putnopvut

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

17 years agoI found a bug while browsing the queue code and managed to reproduce it in a small...
Mark Michelson [Fri, 28 Dec 2007 00:16:15 +0000 (00:16 +0000)] 
I found a bug while browsing the queue code and managed to reproduce it in a small setup.

If a queue uses the ringall strategy, it was possible through unfortunate coincidence for a single member at a given penalty level to
make app_queue think that all members at that penalty level were unavailable and cause the members at the
next penalty level to be rung. With this patch, we will only move to the next penalty level if ALL the members
at a given penalty level are unreachable.

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

17 years agoDon't report a syntax error when an empty string is passed to ast_get_group.
Russell Bryant [Thu, 27 Dec 2007 21:40:02 +0000 (21:40 +0000)] 
Don't report a syntax error when an empty string is passed to ast_get_group.
Just return 0.

(closes issue #11540)
Reported by: tzafrir
Patches:
      group_empty.diff uploaded by tzafrir (license 46)
   -- slightly changed by me

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

17 years agoFixing a typo in a comment.
Mark Michelson [Thu, 27 Dec 2007 20:09:06 +0000 (20:09 +0000)] 
Fixing a typo in a comment.

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

17 years agoInclude types.h in chan_h323 as without it it can not be compiled on some operating...
Joshua Colp [Thu, 27 Dec 2007 17:32:15 +0000 (17:32 +0000)] 
Include types.h in chan_h323 as without it it can not be compiled on some operating systems like FreeBSD to name one.
(closes issue #11585)
Reported by: sobomax
Patches:
      chan_h323.c.diff uploaded by sobomax (license 359)

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

17 years agoUse ast_strlen_zero to see if our_contact is set or not on the dialog. It is possible...
Joshua Colp [Thu, 27 Dec 2007 17:27:11 +0000 (17:27 +0000)] 
Use ast_strlen_zero to see if our_contact is set or not on the dialog. It is possible for it to be a pointer to NULL.
(closes issue #11557)
Reported by: FuriousGeorge

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

17 years agoNow that the contexts lock is a read/write lock, it should not be locked here
Russell Bryant [Thu, 27 Dec 2007 15:16:56 +0000 (15:16 +0000)] 
Now that the contexts lock is a read/write lock, it should not be locked here
in ast_hint_state_changed().  This makes it get locked recursively which now
causes a deadlock.
(closes issue #11080, thanks to callguy for the access to a deadlocked machine)

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

17 years agoUse the constant that I really meant to use here ...
Russell Bryant [Thu, 27 Dec 2007 14:44:29 +0000 (14:44 +0000)] 
Use the constant that I really meant to use here ...

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

17 years agoChange ast_translator_best_choice() to only pay attention to audio formats.
Russell Bryant [Thu, 27 Dec 2007 14:33:21 +0000 (14:33 +0000)] 
Change ast_translator_best_choice() to only pay attention to audio formats.
This fixes a problem where Asterisk claims that a translation path can not be
found for channels involving video.

(closes issue #11638)
Reported by: cwhuang
Tested by: cwhuang
Patch suggested by cwhuang, with some additional changes by me.

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

17 years agomake this comment explain the situation in an even more explicit fashion
Kevin P. Fleming [Thu, 27 Dec 2007 01:01:47 +0000 (01:01 +0000)] 
make this comment explain the situation in an even more explicit fashion

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

17 years agoWorkaround for what is probably a glibc bug (but we'll see this crop up again
Tilghman Lesher [Wed, 26 Dec 2007 20:43:38 +0000 (20:43 +0000)] 
Workaround for what is probably a glibc bug (but we'll see this crop up again
and again, if we don't add the workaround).
Reported by: rolek
Patch by: tilghman
(Closes issue #11601, closes issue #11426)

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

17 years agoJust in case the AST_FLAG_END_DTMF_ONLY flag was already set before starting
Russell Bryant [Wed, 26 Dec 2007 19:04:31 +0000 (19:04 +0000)] 
Just in case the AST_FLAG_END_DTMF_ONLY flag was already set before starting
autoservice, remember it and ensure that the channel has the same setting when
autoservice gets stopped.  (pointed out by d1mas, patched up by me)

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

17 years agoWhen a channel is in autoservice, mark a flag on the channel that says that
Russell Bryant [Wed, 26 Dec 2007 18:46:39 +0000 (18:46 +0000)] 
When a channel is in autoservice, mark a flag on the channel that says that
we only care about the END of a digit.  That way, no magic digit emulation stuff
will happen when all we're doing is queueing up END frames.

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

17 years agoDon't try to send a parked call back to itself.
Russell Bryant [Wed, 26 Dec 2007 17:24:17 +0000 (17:24 +0000)] 
Don't try to send a parked call back to itself.
(closes issue #11622, reported by djrodman, patched by me)

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

17 years agoDon't store DTMF BEGIN frames while a channel is in autoservice. It's just
Russell Bryant [Wed, 26 Dec 2007 17:06:26 +0000 (17:06 +0000)] 
Don't store DTMF BEGIN frames while a channel is in autoservice.  It's just
going to make ast_read() do a lot of extra work when the channel comes back
out of autoservice.
(closes issue #11628, patched by me)

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

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