]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
17 years agoFlipflop the sections for two options, since the section for 'X' (exit context)
Tilghman Lesher [Thu, 12 Jun 2008 15:18:39 +0000 (15:18 +0000)] 
Flipflop the sections for two options, since the section for 'X' (exit context)
may otherwise absorb keypresses meant for 's' (admin/user menu).
(closes issue #12836)
 Reported by: blitzrage
 Patches:
       20080611__bug12836.diff.txt uploaded by Corydon76 (license 14)
 Tested by: blitzrage

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

17 years agoOccasionally, the alertpipe loses its nonblocking status, so detect and correct
Tilghman Lesher [Thu, 12 Jun 2008 15:11:30 +0000 (15:11 +0000)] 
Occasionally, the alertpipe loses its nonblocking status, so detect and correct
that situation before it causes a deadlock.  (Reported and tested by ctooley
via #asterisk-dev)

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

17 years agoArkadia tried to warn me, but the code added to ast_cdr_busy, _failed, and _noanswer...
Steve Murphy [Thu, 12 Jun 2008 14:51:44 +0000 (14:51 +0000)] 
Arkadia tried to warn me, but the code added to ast_cdr_busy, _failed, and _noanswer was redundant. Didn't spot it until I was resolving conflicts in trunk. Ugh. Redundant code removed. It wasn't harmful. Just dumb.

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

17 years ago(closes issue #10668)
Steve Murphy [Thu, 12 Jun 2008 13:47:34 +0000 (13:47 +0000)] 
(closes issue #10668)
Reported by: arkadia
Tested by: murf, arkadia

Options added to forkCDR() app and the CDR() func to
remove some roadblocks for CDR applications.

The "show application ForkCDR" output was upgraded
to more fully explain the inner workings of forkCDR.

The A option was added to forkCDR to force the
CDR system to NOT change the disposition on the
original CDR, after the fork. This involves
ast_cdr_answer, _busy, _failed, and so on.

The T option was added to forkCDR to force
obedience of the cdr LOCKED flag in the
ast_cdr_end, all the disposition changing
funcs (ast_cdr_answer, etc), and in the
ast_cdr_setvar func.

The CHANGES file was updated to explain ALL
the new options added to satisfy this bug report
(and some requests made verbally and via
email, irc, etc, over the past months/year)

The 's' option was added to the CDR() func,
to force it to skip LOCKED cdr's in the
chain.

Again, the new options should be totally transparent
to existing apps! Current behavior of CDR,
forkCDR, and the rest of the CDR system should
not change one little bit. Until you add the
new options, at least!

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

17 years agoBackport fix for 11520--for some reason I didn't do this back in February when I...
Terry Wilson [Wed, 11 Jun 2008 23:47:23 +0000 (23:47 +0000)] 
Backport fix for 11520--for some reason I didn't do this back in February when I patched for trunk.

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

17 years agoMake calls to ast_assert() actually test something, so that the error message
Tilghman Lesher [Wed, 11 Jun 2008 18:18:16 +0000 (18:18 +0000)] 
Make calls to ast_assert() actually test something, so that the error message
printed is not nonsensical (reported by mvanbaak via #asterisk-bugs).

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

17 years agoadd instructions for logging gdb output via set logging on
Jeff Peeler [Wed, 11 Jun 2008 16:11:09 +0000 (16:11 +0000)] 
add instructions for logging gdb output via set logging on

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

17 years agofixed issue with previous commit, the find_free_channel test for channels which where...
Christian Richter [Wed, 11 Jun 2008 09:28:04 +0000 (09:28 +0000)] 
fixed issue with previous commit, the find_free_channel test for channels which where inuse was broken.

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

17 years agoFixes a problem with some buggy versions of GNU awk (3.1.3) not liking carriage retur...
Sean Bright [Tue, 10 Jun 2008 18:34:45 +0000 (18:34 +0000)] 
Fixes a problem with some buggy versions of GNU awk (3.1.3) not liking carriage returns in scripts.

(closes issue #12749)
Reported by: alinux
Tested by: Laureano (on #asterisk-dev), juggie

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

17 years agoIf we are destroying a dialog only set the MWI dialog pointer on the related peer...
Joshua Colp [Tue, 10 Jun 2008 13:34:27 +0000 (13:34 +0000)] 
If we are destroying a dialog only set the MWI dialog pointer on the related peer to NULL if it is the dialog currently being destroyed.
(closes issue #12828)
Reported by: ramonpeek

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

17 years agoUpdate BRIDGEPEER variable before we do a generic bridge in case we just broke out...
Joshua Colp [Tue, 10 Jun 2008 12:52:06 +0000 (12:52 +0000)] 
Update BRIDGEPEER variable before we do a generic bridge in case we just broke out of a native bridge and fell through to generic.
(closes issue #12815)
Reported by: ramonpeek

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

17 years agoDo not attempt to do emulation if an END digit is received and the length is
Russell Bryant [Mon, 9 Jun 2008 16:35:40 +0000 (16:35 +0000)] 
Do not attempt to do emulation if an END digit is received and the length is
less than the defined minimum digit length, and the other end only wants END
digits (SIP INFO, for example).

(closes issue #12778)
Reported by: tsearle
Patches:
      12778.rev1.txt uploaded by russell (license 2)
Tested by: tsearle

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

17 years agoA unique situation of timeouts brought forth a failure situation for
Mark Michelson [Mon, 9 Jun 2008 15:02:37 +0000 (15:02 +0000)] 
A unique situation of timeouts brought forth a failure situation for
autologoff in chan_agent. If using AgentCallbackLogin-style agents,
then if the timeout specified by the Dial() to reach the agent's phone
was shorter than the timeout specified in queues.conf, then autologoff
would only work if the caller hung up while the agent's phone was ringing.
This patch allows autologoff to work in this situation when the call in
queue transfers to the next available agent (as it would have if the timeout
in queues.conf were less than the timeout in the Dial()).

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

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

17 years agoDon't run LIST_HEAD_DESTROY on a STATIC list
Russell Bryant [Sat, 7 Jun 2008 14:10:56 +0000 (14:10 +0000)] 
Don't run LIST_HEAD_DESTROY on a STATIC list

(closes issue #12807)
Reported by: ys
Patches:
      chan_agent_local.diff uploaded by ys (license 281)

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

17 years agoadd another LOW_MEMORY define I forgot
Jeff Peeler [Fri, 6 Jun 2008 18:29:14 +0000 (18:29 +0000)] 
add another LOW_MEMORY define I forgot

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

17 years agoonly define thread storage variable if necessary for LOW_MEMORY
Jeff Peeler [Fri, 6 Jun 2008 18:05:15 +0000 (18:05 +0000)] 
only define thread storage variable if necessary for LOW_MEMORY

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

17 years agoCorrection to commmit 120863, make sure proper destructor function is called as well...
Jeff Peeler [Fri, 6 Jun 2008 16:39:20 +0000 (16:39 +0000)] 
Correction to commmit 120863, make sure proper destructor function is called as well define two thread storage local variables.

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

17 years agoThis fixes a crash when LOW_MEMORY is turned on. Two allocations of the ast_rtp struc...
Jeff Peeler [Fri, 6 Jun 2008 15:33:15 +0000 (15:33 +0000)] 
This fixes a crash when LOW_MEMORY is turned on. Two allocations of the ast_rtp struct that were previously allocated on the stack have been modified to use thread local storage instead.

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

17 years agofix filename
Russell Bryant [Thu, 5 Jun 2008 18:03:45 +0000 (18:03 +0000)] 
fix filename

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

17 years agoAdd the UPGRADE.txt file from Asterisk 1.2, for handy reference.
Russell Bryant [Thu, 5 Jun 2008 18:01:25 +0000 (18:01 +0000)] 
Add the UPGRADE.txt file from Asterisk 1.2, for handy reference.

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

17 years agoIgnore appended resource when comparing JIDs.
Philippe Sultan [Thu, 5 Jun 2008 16:56:15 +0000 (16:56 +0000)] 
Ignore appended resource when comparing JIDs.

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

17 years agoIt turns out that searching on the forwarding station isn't very useful for
Russell Bryant [Thu, 5 Jun 2008 16:38:52 +0000 (16:38 +0000)] 
It turns out that searching on the forwarding station isn't very useful for
most people, so pull in the changes that allow searching for SMDI messages
based on other components of the SMDI message.  Also, update the SMDI
documentation.

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

17 years agoMake sure that the string we set will survive the unref of
Mark Michelson [Wed, 4 Jun 2008 22:05:33 +0000 (22:05 +0000)] 
Make sure that the string we set will survive the unref of
the queue member.

Thanks to Russell, who pointed this out.

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

17 years agoIf we fail to setup the PRI request channel, don't continue, exit with an error.
Tilghman Lesher [Wed, 4 Jun 2008 18:35:47 +0000 (18:35 +0000)] 
If we fail to setup the PRI request channel, don't continue, exit with an error.
(closes issue #11989)
 Reported by: Corydon76
 Patches:
       20080213__zap_memleak.diff.txt uploaded by Corydon76 (license 14)

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

17 years agoMake the "dialplan remove include" CLI command actually work. Also, tweak
Russell Bryant [Wed, 4 Jun 2008 16:26:43 +0000 (16:26 +0000)] 
Make the "dialplan remove include" CLI command actually work.  Also, tweak
some formatting, and make the success message a little bit more clear.
(closes AST-52)

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

17 years agoTab completion when removing a member should give the member's interface,
Mark Michelson [Wed, 4 Jun 2008 14:11:12 +0000 (14:11 +0000)] 
Tab completion when removing a member should give the member's interface,
not the name, since the interface is what is expected for the command.

(closes issue #12783)
Reported by: davevg

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

17 years agoFix a log message and add a message for when the dialplan is done reloading.
Joshua Colp [Wed, 4 Jun 2008 13:31:09 +0000 (13:31 +0000)] 
Fix a log message and add a message for when the dialplan is done reloading.
(closes issue #12716)
Reported by: chappell
Patches:
      dialplan_reload_2.diff uploaded by chappell (license 8)

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

17 years agoDue to incorrect use of the AST_LIST_INSERT_HEAD() macro the loopback switch
Tilghman Lesher [Tue, 3 Jun 2008 22:41:04 +0000 (22:41 +0000)] 
Due to incorrect use of the AST_LIST_INSERT_HEAD() macro the loopback switch
cannot perform any translation on the extension number before searching for it
in the target context.
(closes issue #12473)
 Reported by: chappell
 Patches:
       pbx_loopback.c.diff uploaded by chappell (license 8)

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

17 years ago(closes issue #11594)
Jeff Peeler [Tue, 3 Jun 2008 22:15:33 +0000 (22:15 +0000)] 
(closes issue #11594)
Reported by: yem
Tested by: yem

This change decreases the buffer size allocated on the stack substantially in config_text_file_load when LOW_MEMORY is turned on. This change combined with the fix from revision 117462 (making mkintf not copy the zt_chan_conf structure) was enough to prevent the crash.

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

17 years agoFix another place where peer->callno could change at a very bad time, and also
Russell Bryant [Tue, 3 Jun 2008 21:34:55 +0000 (21:34 +0000)] 
Fix another place where peer->callno could change at a very bad time, and also
fix a place where a peer was used after the reference was released.
(inspired by rev 120001)

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

17 years agoWhen listing the manager users, managers in users.conf are not shown, even
Tilghman Lesher [Tue, 3 Jun 2008 18:23:32 +0000 (18:23 +0000)] 
When listing the manager users, managers in users.conf are not shown, even
though they are allowed to connect.
(closes issue #12594)
 Reported by: bkruse
 Patches:
       12594-managerusers-2.diff uploaded by qwell (license 4)
 Tested by: bkruse

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

17 years agoSave the callno when we're poking, because our peer structure could change
Tilghman Lesher [Tue, 3 Jun 2008 16:10:53 +0000 (16:10 +0000)] 
Save the callno when we're poking, because our peer structure could change
during destruction (and thus we unlock the wrong callno, causing a
cascade failure).
(closes issue #12717)
 Reported by: gewfie
 Patches:
       20080525__bug12717.diff.txt uploaded by Corydon76 (license 14)
 Tested by: gewfie

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

17 years agoUpdated the regressions on AEL. Hadn't updated
Steve Murphy [Tue, 3 Jun 2008 15:26:56 +0000 (15:26 +0000)] 
Updated the regressions on AEL. Hadn't updated
this for the changes I made to preserve ${EXTEN}
in switches, which affected several tests because
it adds extra priorities, and at least one needed to be updated
because of the removal of the empty extension warning
message.

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

17 years agoas per http://lists.digium.com/pipermail/asterisk-users/2008-June/212934.html,
Steve Murphy [Tue, 3 Jun 2008 14:49:46 +0000 (14:49 +0000)] 
as per http://lists.digium.com/pipermail/asterisk-users/2008-June/212934.html,
which is a message from Philipp Kempgen, requesting that the WARNING
that an extension is empty be reduced to a NOTICE or less, as empty
extensions are syntactically possible, and no big deal.

With which I agree, and have removed that WARNING message entirely.
I think it is not necessary to see this message. It didn't
state that a NoOp() was inserted automatically on your behalf,
and really, as users, who cares? Why freak out dialplan writers
with unnecessary warnings? The details of the machinations a compiler goes
thru to produce working assembly code is of little interest
to most programmers-- we will follow the unix principal of
doing our work silently.

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

17 years agoTreat ECONNREFUSED as an error that will stop further retransmissions. (issue #AST...
Joshua Colp [Tue, 3 Jun 2008 14:46:24 +0000 (14:46 +0000)] 
Treat ECONNREFUSED as an error that will stop further retransmissions. (issue #AST-58, patch from Switchvox)

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

17 years agoRevert a change made for issue #12479. This change caused a regression such that
Russell Bryant [Mon, 2 Jun 2008 20:08:04 +0000 (20:08 +0000)] 
Revert a change made for issue #12479.  This change caused a regression such that
a dial string such as (IAX2/foo) did not automatically fall back to dialing the 's'
extension anymore.

(closes issue #12770)
Reported by: dagmoller

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

17 years agoImprove CLI command blacklist checking for the command manager action. Previously,
Russell Bryant [Mon, 2 Jun 2008 14:39:45 +0000 (14:39 +0000)] 
Improve CLI command blacklist checking for the command manager action.  Previously,
it did not handle case or whitespace properly.  This made it possible for blacklisted
commands to get executed anyway.
(closes issue #12765)

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

17 years agoDo not link the guest account with any configured XMPP client (in
Philippe Sultan [Mon, 2 Jun 2008 14:32:53 +0000 (14:32 +0000)] 
Do not link the guest account with any configured XMPP client (in
jabber.conf). The actual connection is made when a call comes in
Asterisk.

Fix the ast_aji_get_client function that was not able to retrieve an
XMPP client from its JID.

(closes issue #12085)
Reported by: junky
Tested by: phsultan

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

17 years agoEven of the first PING or LAGRQ doesn't get sent because it comes up too soon,
Russell Bryant [Mon, 2 Jun 2008 12:30:17 +0000 (12:30 +0000)] 
Even of the first PING or LAGRQ doesn't get sent because it comes up too soon,
make sure to reschedule so it gets sent later.

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

17 years agofixed compile issue when dev-mode is enabled
Christian Richter [Mon, 2 Jun 2008 09:29:21 +0000 (09:29 +0000)] 
fixed compile issue when dev-mode is enabled

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

17 years agoAdded counter for unhandled_bmsg Print, this prevents the logs to be flooded to fast...
Christian Richter [Mon, 2 Jun 2008 08:35:28 +0000 (08:35 +0000)] 
Added counter for unhandled_bmsg Print, this prevents the logs to be flooded to fast and save CPU in this error scenario. Added 'last_used' element to bc structure, when a bchannel changes from used to free this exact time will be marked in last_used. When a new channel is requested the find_free_chan function will check if the new empty channel was used within the last second, if yes it will search for the next channel, if no it will return this channel. This simple mechanism has prooven to prevent race conditions where the NT and TE tried to allocate the exact same channel at the same time (RELEASE cause: 44).

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

17 years agoChange a debug message to an actual debug message
Russell Bryant [Mon, 2 Jun 2008 01:06:09 +0000 (01:06 +0000)] 
Change a debug message to an actual debug message

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

17 years agoFix another typo in documentation
Russell Bryant [Mon, 2 Jun 2008 01:03:22 +0000 (01:03 +0000)] 
Fix another typo in documentation

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

17 years agosmall typo fix 'retires' => 'retries'
Michiel van Baak [Sun, 1 Jun 2008 20:47:55 +0000 (20:47 +0000)] 
small typo fix 'retires' => 'retries'

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

17 years agoWhen joinempty=strict, it only failed on join if there were busy members. If
Tilghman Lesher [Fri, 30 May 2008 21:17:45 +0000 (21:17 +0000)] 
When joinempty=strict, it only failed on join if there were busy members.  If
all members were logged out OR paused, then it (incorrectly) let callers join
the queue.
(closes issue #12451)
 Reported by: davidw

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

17 years agoFix a bug I found while testing for another issue.
Joshua Colp [Fri, 30 May 2008 19:46:37 +0000 (19:46 +0000)] 
Fix a bug I found while testing for another issue.

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

17 years agodont use a bashism way to check the $VERSION variable.
Michiel van Baak [Fri, 30 May 2008 16:44:39 +0000 (16:44 +0000)] 
dont use a bashism way to check the $VERSION variable.
The rc/init.d scripts, and safe_asterisk work on normal sh now again.
Tested on:
OpenBSD 4.2 (me)
Debian etch (me)
Ubuntu Hardy (me and loloski)
FC9 (loloski)

(closes issue #12687)
Reported by: loloski
Patches:
      20080529-12687-safe_asterisk-fixversion.diff.txt uploaded by mvanbaak (license 7)
  Tested by: loloski, mvanbaak

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

17 years agoMerged revisions 119237 via svnmerge from
Russell Bryant [Fri, 30 May 2008 12:55:36 +0000 (12:55 +0000)] 
Merged revisions 119237 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r119237 | russell | 2008-05-30 07:49:39 -0500 (Fri, 30 May 2008) | 7 lines

- Instead of only enforcing destination call number checking on an ACK, check
  all full frames except for PING and LAGRQ, which may be sent by older versions
  too quickly to contain the destination call number.
  (As suggested by Tim Panton on the asterisk-dev list)
- Merge changes from team/russell/iax2-frame-race, which prevents PING and LAGRQ
  from being sent before the destination call number is known.

........

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

17 years agoFix a race condition in channel autoservice. There was still a small window of oppor...
Russell Bryant [Thu, 29 May 2008 22:24:29 +0000 (22:24 +0000)] 
Fix a race condition in channel autoservice.  There was still a small window of opportunity
for a DTMF frame, or some other deferred frame type, to come in and get dropped.

(closes issue #12656)
(closes issue #12656)
Reported by: dimas
Patches:
      v3-12656.patch uploaded by dimas (license 88)
  -- with some modifications by me

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

17 years agoOddly enough, all of the contents of audiohook.h were in there twice. I have
Russell Bryant [Thu, 29 May 2008 20:48:33 +0000 (20:48 +0000)] 
Oddly enough, all of the contents of audiohook.h were in there twice.  I have
removed the second copy.

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

17 years agoCall waiting tone occurs too often, because it's getting serviced by both
Tilghman Lesher [Thu, 29 May 2008 20:24:11 +0000 (20:24 +0000)] 
Call waiting tone occurs too often, because it's getting serviced by both
subchannels.
(closes issue #11354)
 Reported by: cahen
 Patches:
       20080512__bug11354.diff.txt uploaded by Corydon76 (license 14)

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

17 years ago - Fix a typo in the argument to Playtones
Russell Bryant [Thu, 29 May 2008 19:04:52 +0000 (19:04 +0000)] 
 - Fix a typo in the argument to Playtones
 - use ast_safe_sleep() instead of calling the wait application
(thanks to tilghman for pointing these out!)

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

17 years agoMerged revisions 119008 via svnmerge from
Russell Bryant [Thu, 29 May 2008 18:49:12 +0000 (18:49 +0000)] 
Merged revisions 119008 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r119008 | russell | 2008-05-29 13:45:21 -0500 (Thu, 29 May 2008) | 7 lines

Merge changes from team/russell/iax2-another-fix-to-the-fix

As described in the following post to the asterisk-dev mailing list, only
enforce destination call numbers when processing an ACK.

http://lists.digium.com/pipermail/asterisk-dev/2008-May/033217.html

(closes issue #12631)
........

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

17 years ago - Mark app_milliwatt dependent on res_indications (thanks to jsmith)
Russell Bryant [Thu, 29 May 2008 17:51:29 +0000 (17:51 +0000)] 
 - Mark app_milliwatt dependent on res_indications (thanks to jsmith)
 - fix a typo in a log message (thanks to qwell)

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

17 years agoChange milliwatt to use the proper tone by default (1004 Hz) instead of 1000 Hz.
Russell Bryant [Thu, 29 May 2008 17:38:38 +0000 (17:38 +0000)] 
Change milliwatt to use the proper tone by default (1004 Hz) instead of 1000 Hz.
An option is there to use 1000 Hz for anyone that might want it.

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

17 years agoDefine also when not DEBUG_THREADS
Tilghman Lesher [Thu, 29 May 2008 17:33:01 +0000 (17:33 +0000)] 
Define also when not DEBUG_THREADS

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

17 years agoAdd some debugging code that ensures that when we do deadlock avoidance, we
Tilghman Lesher [Thu, 29 May 2008 17:20:16 +0000 (17:20 +0000)] 
Add some debugging code that ensures that when we do deadlock avoidance, we
don't lose the information about how a lock was originally acquired.

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

17 years ago(closes issue #10668)
Steve Murphy [Thu, 29 May 2008 00:25:28 +0000 (00:25 +0000)] 
(closes issue #10668)
(closes issue #11721)
(closes issue #12726)
Reported by: arkadia
Tested by: murf

These changes:

1. revert the changes made via bug 10668;
   I should have known that such changes,
   even tho they made sense at the time,
   seemed like an omission, etc, were actually
   integral to the CDR system via forkCDR.
   It makes sense to me now that forkCDR didn't
   natively end any CDR's, but rather depended
   on natively closing them all at hangup time
   via traversing and closing them all, whether
   locked or not. I still don't completely
   understand the benefits of setvar and answer
   operating on locked cdrs, but I've seen
   enough to revert those changes also, and
   stop messing up users who depended on that
   behavior. bug 12726 found reverting the changes
   fixed his changes, and after a long review
   and working on forkCDR, I can see why.
2. Apply the suggested enhancements proposed
   in 10668, but in a completely compatible
   way. ForkCDR will behave exactly as before,
   but now has new options that will allow some
   actions to be taken that will slightly
   modify the outcome and side-effects of
   forkCDR. Based on conversations I've had
   with various people, these small tweaks
   will allow some users to get the behavior
   they need. For instance, users executing
   forkCDR in an AGI script will find the
   answer time set, and DISPOSITION set,
   a situation not covered when the routines
  were first written.
3. A small problem in the cdr serializer
   would output answer and end times even
   when they were not set. This is now
   fixed.

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

17 years agomerge revision 118702 from trunk to 1.4 -- Fixes a bug in chan_iax that uses send_com...
Brett Bryant [Wed, 28 May 2008 16:10:48 +0000 (16:10 +0000)] 
merge revision 118702 from trunk to 1.4 -- Fixes a bug in chan_iax that uses send_command to poke a peer while a channel is unlocked in some cases, and because it can cause seemingly random failures could be related to some bugs in the tracker...

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

17 years agoAdd an option to use the source IP address of RTP as the destination IP address of...
Joshua Colp [Wed, 28 May 2008 14:23:34 +0000 (14:23 +0000)] 
Add an option to use the source IP address of RTP as the destination IP address of UDPTL when a specific option is enabled. If the remote side is properly configured (ports forwarded) then UDPTL will flow.
(closes issue #10417)
Reported by: cstadlmann

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

17 years agoFix an issue where codec preferences were not set on dialogs that were not authentica...
Joshua Colp [Tue, 27 May 2008 19:32:38 +0000 (19:32 +0000)] 
Fix an issue where codec preferences were not set on dialogs that were not authenticated via a user or peer and allow framing to work without rtpmap in the SDP.
(closes issue #12501)
Reported by: slimey

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

17 years agoWhen showing an error message for a command, don't shorten the command output,
Tilghman Lesher [Tue, 27 May 2008 19:15:27 +0000 (19:15 +0000)] 
When showing an error message for a command, don't shorten the command output,
as it tends to confuse the user (it's fine for suggesting other commands,
however).
 Reported by: seanbright (on #asterisk-dev)
 Fixed by: me

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

17 years agoRussell noted to me that in the case that separate threads use their
Mark Michelson [Tue, 27 May 2008 19:07:26 +0000 (19:07 +0000)] 
Russell noted to me that in the case that separate threads use their
own addressing system, the fix I made for issue 12376 does not guarantee
uniqueness to the datastores' uids. Though I know of no system that works
this way, I am going to change this right now to prevent trying to track
down some future bug that may occur and cause untold hours of debugging
time to track down.

The change involves using a global counter which increases with each new
chanspy_ds which is created. This guarantees uniqueness.

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

17 years agoNULL character should terminate only commands back to the core, not log
Tilghman Lesher [Tue, 27 May 2008 18:58:09 +0000 (18:58 +0000)] 
NULL character should terminate only commands back to the core, not log
messages to the console.
(closes issue #12731)
 Reported by: seanbright
 Patches:
       20080527__bug12731.diff.txt uploaded by Corydon76 (license 14)
 Tested by: seanbright

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

17 years agosmall update to the g() option of app_voicemail to
Michiel van Baak [Tue, 27 May 2008 17:17:20 +0000 (17:17 +0000)] 
small update to the g() option of app_voicemail to
note that gain changes only work on zap channels right now.

issue #12578 shows it's not clear right now.

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

17 years agoAdd a unique id to the datastore allocated in app_chanspy since
Mark Michelson [Tue, 27 May 2008 16:38:38 +0000 (16:38 +0000)] 
Add a unique id to the datastore allocated in app_chanspy since
it is possible that multiple spies may be listening to the same
channel.

(closes issue #12376)
Reported by: DougUDI
Patches:
      12376_chanspy_uid.diff uploaded by putnopvut (license 60)
Tested by: destiny6628

(closes issue #12243)
Reported by: atis

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

17 years agoAdd a note that pbx_config.so is needed for Local channels.
Tilghman Lesher [Tue, 27 May 2008 15:45:37 +0000 (15:45 +0000)] 
Add a note that pbx_config.so is needed for Local channels.
(Closes issue #12671)

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

17 years agoRealtime flag affects construction in multiple ways, so consulting whether
Tilghman Lesher [Sun, 25 May 2008 16:02:04 +0000 (16:02 +0000)] 
Realtime flag affects construction in multiple ways, so consulting whether
rtcachefriends was set was done too soon (needed to be done inside build_peer,
not just as a flag to build_peer).
Also, fullcontact needed to be reconstructed, because realtime separates the
embedded ';' into multiple fields.
(closes issue #12722)
 Reported by: barthpbx
 Patches:
       20080525__bug12722.diff.txt uploaded by Corydon76 (license 14)
 Tested by: barthpbx
 (Much of the discussion happened on #asterisk-dev for diagnosing this issue)

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

17 years agoFix a few things I missed to ensure zt_chan_conf structure is not modified in mkintf
Jeff Peeler [Fri, 23 May 2008 21:21:35 +0000 (21:21 +0000)] 
Fix a few things I missed to ensure zt_chan_conf structure is not modified in mkintf

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

17 years agoAdd format type checking for recently de-inlined function
Tilghman Lesher [Fri, 23 May 2008 13:18:44 +0000 (13:18 +0000)] 
Add format type checking for recently de-inlined function

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

17 years agoAdd information on using the Asterisk console, including tab command line
Tilghman Lesher [Fri, 23 May 2008 12:59:16 +0000 (12:59 +0000)] 
Add information on using the Asterisk console, including tab command line
completion.  (Closes issue #12681)

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

17 years agoDon't declare a function that takes variable arguments as inline, because it's
Russell Bryant [Fri, 23 May 2008 12:30:53 +0000 (12:30 +0000)] 
Don't declare a function that takes variable arguments as inline, because it's
not valid, and on some compilers, will emit a warning.

http://gcc.gnu.org/onlinedocs/gcc/Inline.html#Inline

(closes issue #12289)
Reported by: francesco_r
Patches by Tilghman, final patch by me

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

17 years agoAlso remove preamble from asynchronous events (reported by jsmith on #asterisk-dev)
Tilghman Lesher [Thu, 22 May 2008 18:53:53 +0000 (18:53 +0000)] 
Also remove preamble from asynchronous events (reported by jsmith on #asterisk-dev)

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

17 years agoTake into account the length of delimiters when calculating result string length.
Tilghman Lesher [Thu, 22 May 2008 16:47:03 +0000 (16:47 +0000)] 
Take into account the length of delimiters when calculating result string length.
(closes issue #12696)
 Reported by: adomjan
 Patches:
       func_realtime.c-longdelimiter.patch uploaded by adomjan (license 487)

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

17 years agoEnsure that passed in zt_chan_conf structure is not modified in mkintf.
Jeff Peeler [Wed, 21 May 2008 20:11:14 +0000 (20:11 +0000)] 
Ensure that passed in zt_chan_conf structure is not modified in mkintf.

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

17 years agoApply the autoframing setting to dialogs that do not get matched against a user or...
Joshua Colp [Wed, 21 May 2008 19:38:28 +0000 (19:38 +0000)] 
Apply the autoframing setting to dialogs that do not get matched against a user or peer.

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

17 years agoRevert accidental commit of the last change
Tilghman Lesher [Wed, 21 May 2008 18:44:53 +0000 (18:44 +0000)] 
Revert accidental commit of the last change

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

17 years agoStrip the preamble from the output also when -rx is not being used
Tilghman Lesher [Wed, 21 May 2008 18:40:14 +0000 (18:40 +0000)] 
Strip the preamble from the output also when -rx is not being used
(Related to issue #12702)

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

17 years agoDon't filter the magic character in the network verboser. It gets filtered
Russell Bryant [Wed, 21 May 2008 18:28:46 +0000 (18:28 +0000)] 
Don't filter the magic character in the network verboser.  It gets filtered
once it reaches the client.
(related to issue #12702, pointed out by tilghman)

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

17 years ago1) Don't print the verbose marker in front of every message from ast_verbose()
Russell Bryant [Wed, 21 May 2008 18:19:34 +0000 (18:19 +0000)] 
1) Don't print the verbose marker in front of every message from ast_verbose()
   being sent to remote consoles.

2) Fix pbx_gtkconsole to filter out the verbose marker.

(related to issue #12702)

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

17 years agoDon't display the verbose marker for calls to ast_verbose() that do not include
Russell Bryant [Wed, 21 May 2008 18:11:51 +0000 (18:11 +0000)] 
Don't display the verbose marker for calls to ast_verbose() that do not include
a VERBOSE_PREFIX in front of the message.
(closes issue #12702)
Reported by: johnlange
Patched by me

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

17 years agoPass a pointer for the conf parameter to the function mkintf rather than the whole...
Jeff Peeler [Wed, 21 May 2008 16:58:40 +0000 (16:58 +0000)] 
Pass a pointer for the conf parameter to the function mkintf rather than the whole zt_chan_conf structure.

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

17 years agoUse the right pthread lock and condition when waiting.
Joshua Colp [Mon, 19 May 2008 16:50:52 +0000 (16:50 +0000)] 
Use the right pthread lock and condition when waiting.
(closes issue #12664)
Reported by: tomo1657
Patches:
      res_smdi.c.patch uploaded by tomo1657 (license 484)

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

17 years agoThe addition of usleep(2) within ast_assert requires the inclusion of the unistd...
Tilghman Lesher [Mon, 19 May 2008 16:05:05 +0000 (16:05 +0000)] 
The addition of usleep(2) within ast_assert requires the inclusion of the unistd.h header

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

17 years agoMake chan_h323 work with pwlib 1.12.0
Joshua Colp [Mon, 19 May 2008 15:22:10 +0000 (15:22 +0000)] 
Make chan_h323 work with pwlib 1.12.0
(closes issue #12682)
Reported by: bamby
Patches:
      pwlib_nopipe.diff uploaded by bamby (license 430)

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

17 years agoAvoid access of uninitialized memory. This caused a bunch of crashes for me
Russell Bryant [Mon, 19 May 2008 03:44:04 +0000 (03:44 +0000)] 
Avoid access of uninitialized memory.  This caused a bunch of crashes for me
while doing load testing of development branch where I'm working on some
performance improvements.

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

17 years agoCheck to make sure an RTP structure exists before calling ast_rtp_new_source on it.
Joshua Colp [Fri, 16 May 2008 20:28:11 +0000 (20:28 +0000)] 
Check to make sure an RTP structure exists before calling ast_rtp_new_source on it.
(closes issue #12669)
Reported by: sbisker

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

17 years agoAvoid zombies when the channel exits before the AGI.
Tilghman Lesher [Wed, 14 May 2008 21:38:09 +0000 (21:38 +0000)] 
Avoid zombies when the channel exits before the AGI.
(closes issue #12648)
 Reported by: gkloepfer
 Patches:
       20080514__bug12648.diff.txt uploaded by Corydon76 (license 14)
 Tested by: gkloepfer

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

17 years agoAdd ast_assert(), which can be used to handle fatal errors. It is only compiled
Russell Bryant [Wed, 14 May 2008 21:32:00 +0000 (21:32 +0000)] 
Add ast_assert(), which can be used to handle fatal errors.  It is only compiled
in if dev-mode is enabled, and only aborts if DO_CRASH is defined.
(inspired by issue #12650)

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

17 years agoDocument exitcontext in app_voicemail sample config
Jason Parker [Wed, 14 May 2008 20:43:08 +0000 (20:43 +0000)] 
Document exitcontext in app_voicemail sample config

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

17 years agoAdd linux-gnueabi in.
Joshua Colp [Wed, 14 May 2008 18:53:39 +0000 (18:53 +0000)] 
Add linux-gnueabi in.
(closes issue #12529)
Reported by: tzafrir

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

17 years agoDetect another way for a connection to have gone away.
Tilghman Lesher [Wed, 14 May 2008 16:46:48 +0000 (16:46 +0000)] 
Detect another way for a connection to have gone away.

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

17 years agoAccept text messages even with
Olle Johansson [Wed, 14 May 2008 12:51:06 +0000 (12:51 +0000)] 
Accept text messages even with
Content-Type: text/plain;charset=Södermanländska

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

17 years agoA change to the way channel locks are handled when DEBUG_CHANNEL_LOCKS is defined.
Mark Michelson [Tue, 13 May 2008 23:47:49 +0000 (23:47 +0000)] 
A change to the way channel locks are handled when DEBUG_CHANNEL_LOCKS is defined.

After debugging a deadlock, it was noticed that when DEBUG_CHANNEL_LOCKS
is enabled in menuselect, the actual origin of channel locks is obscured
by the fact that all channel locks appear to happen in the function
ast_channel_lock(). This code change redefines ast_channel_lock to be a
macro which maps to __ast_channel_lock(), which then relays the proper
file name, line number, and function name information to the core lock
functions so that this information will be displayed in the case that
there is some sort of locking error or core show locks is issued.

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

17 years agoFix a deadlock involving channel autoservice and chan_local that was debugged
Russell Bryant [Tue, 13 May 2008 21:17:23 +0000 (21:17 +0000)] 
Fix a deadlock involving channel autoservice and chan_local that was debugged
and fixed by mmichelson and me.

We observed a system that had a bunch of threads stuck in ast_autoservice_stop().
The reason these threads were waiting around is because this function waits to
ensure that the channel list in the autoservice thread gets rebuilt before the
stop() function returns.  However, the autoservice thread was also locked, so
the autoservice channel list was never getting rebuilt.

The autoservice thread was stuck waiting for the channel lock on a local channel.
However, the local channel was locked by a thread that was stuck in the autoservice
stop function.

It turned out that the issue came down to the local_queue_frame() function in
chan_local.  This function assumed that one of the channels passed in as an
argument was locked when called.  However, that was not always the case.  There
were multiple cases in which this channel was not locked when the function was
called.  We fixed up chan_local to indicate to this function whether this channel
was locked or not.  The previous assumption had caused local_queue_frame() to
improperly return with the channel locked, where it would then never get unlocked.

(closes issue #12584)
(related to issue #12603)

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

17 years agoFix an issue that I noticed in autoservice while mmichelson and I were debugging
Russell Bryant [Tue, 13 May 2008 21:05:57 +0000 (21:05 +0000)] 
Fix an issue that I noticed in autoservice while mmichelson and I were debugging
a different problem.  I noticed that it was theoretically possible for two threads
to attempt to start the autoservice thread at the same time.  This change makes the
process of starting the autoservice thread, thread-safe.

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

17 years agoUse the right flag to open the audio in non-blocking.
Joshua Colp [Tue, 13 May 2008 20:28:23 +0000 (20:28 +0000)] 
Use the right flag to open the audio in non-blocking.
(closes issue #12616)
Reported by: nicklewisdigiumuser

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

17 years agoIf the socket dies (read returns 0=EOF), return immediately.
Tilghman Lesher [Tue, 13 May 2008 18:36:13 +0000 (18:36 +0000)] 
If the socket dies (read returns 0=EOF), return immediately.
(Closes issue #12637)

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

17 years agoIf a thread holds no locks, do not print any information on the thread when issuing
Mark Michelson [Mon, 12 May 2008 17:51:14 +0000 (17:51 +0000)] 
If a thread holds no locks, do not print any information on the thread when issuing
a core show locks command. This will help to de-clutter output somewhat.

Russell said it would be fine to place this improvement in the 1.4 branch, so that's
why it's going here too.

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

17 years agoImprove res_ninit and res_ndestroy autoconf logic on the Darwin platform.
Joshua Colp [Fri, 9 May 2008 16:34:08 +0000 (16:34 +0000)] 
Improve res_ninit and res_ndestroy autoconf logic on the Darwin platform.

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