]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
18 years agoIncluded some verbage in the check_includes func, to inform the user that included...
Steve Murphy [Wed, 31 Oct 2007 03:51:52 +0000 (03:51 +0000)] 
Included some verbage in the check_includes func, to inform the user that included contexts that have no match in the AEL, might be OK, as AEL cannot check in the extensions.conf or the in-memory contexts, as they may not be there at the time of the check.

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

18 years agoFix for uninitialized mutexes on *BSD
Tilghman Lesher [Tue, 30 Oct 2007 23:02:22 +0000 (23:02 +0000)] 
Fix for uninitialized mutexes on *BSD
Reported by: ys
Fixed by: ys
Closes issue #11116

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

18 years agoMerge the changes from team/russell/iax2_poke_fix and iax2-poke-fix-trunk
Russell Bryant [Tue, 30 Oct 2007 21:19:09 +0000 (21:19 +0000)] 
Merge the changes from team/russell/iax2_poke_fix and iax2-poke-fix-trunk

There was a race condition related to the handling of POKEing peers.  Essentially,
a reference to a peer is held by the scheduler when there are pending callbacks,
but the reference count didn't reflect it.  So, it was possible for a peer to hit
a reference count of zero and have its destructor begin to be called at the same
time that the scheduler thread ran a POKE related callback.  If that happened,
a crash would likely occur.

(closes issue #11082, closes issue #11094)

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

18 years agoOnly try to clean out h323/ if the h323/Makefile exists.
Jason Parker [Tue, 30 Oct 2007 20:29:41 +0000 (20:29 +0000)] 
Only try to clean out h323/ if the h323/Makefile exists.

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

18 years agoAdd two more checks before printing out a warning message about bridging. If either...
Joshua Colp [Tue, 30 Oct 2007 16:13:39 +0000 (16:13 +0000)] 
Add two more checks before printing out a warning message about bridging. If either channel has hungup of course the bridge will have failed.
(closes issue #10009)
Reported by: dimas

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

18 years agoFix build of editline on Solaris.
Jason Parker [Tue, 30 Oct 2007 15:45:35 +0000 (15:45 +0000)] 
Fix build of editline on Solaris.

Issue 11113, patch by snuffy.

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

18 years agoReturn 1.4 to a state where it builds. Changing the arguments to a function and not...
Joshua Colp [Tue, 30 Oct 2007 15:10:13 +0000 (15:10 +0000)] 
Return 1.4 to a state where it builds. Changing the arguments to a function and not changing where they are used is bad, mmmk?

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

18 years ago Fix issue where the recorded name wasn't getting removed correctly.
BJ Weschke [Tue, 30 Oct 2007 14:31:45 +0000 (14:31 +0000)] 
 Fix issue where the recorded name wasn't getting removed correctly.
 (closes issue #11115)
 Reported by: davevg
 Patches:
    followme-v3.diff

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

18 years agomissed one directory
Kevin P. Fleming [Mon, 29 Oct 2007 22:13:51 +0000 (22:13 +0000)] 
missed one directory

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

18 years agoclean up (and ignore) assembler and preprocessor intermediate files if any are create...
Kevin P. Fleming [Mon, 29 Oct 2007 22:12:16 +0000 (22:12 +0000)] 
clean up (and ignore) assembler and preprocessor intermediate files if any are created during the build

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

18 years agodon't put '-pipe' into ASTCFLAGS if '-save-temps' is already there (used when debuggi...
Kevin P. Fleming [Mon, 29 Oct 2007 22:04:29 +0000 (22:04 +0000)] 
don't put '-pipe' into ASTCFLAGS if '-save-temps' is already there (used when debugging preprocessor issues) because the compiler will whine about each compile command

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

18 years agoRemoving a completely unnecessary quota check from IMAP code.
Mark Michelson [Mon, 29 Oct 2007 21:06:31 +0000 (21:06 +0000)] 
Removing a completely unnecessary quota check from IMAP code.

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

18 years agoAdd some more details to the output of "core show locks". When a thread
Russell Bryant [Mon, 29 Oct 2007 20:22:07 +0000 (20:22 +0000)] 
Add some more details to the output of "core show locks".  When a thread
is waiting for a lock, this will now show the details about who currently
has it locked.
(inspired by issue #11100)

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

18 years agoRemove a lock that doesn't make any sense. The regions lock needs to be held
Russell Bryant [Mon, 29 Oct 2007 19:21:06 +0000 (19:21 +0000)] 
Remove a lock that doesn't make any sense.  The regions lock needs to be held
when traversing the list of allocated chunks so that they can be printed out
to the CLI.
(Thanks to eliel on #asterisk-dev for pointing this out!)

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

18 years agoFix issue where if both sides of the dialog cancelled the dialog at the same time...
Joshua Colp [Mon, 29 Oct 2007 17:20:28 +0000 (17:20 +0000)] 
Fix issue where if both sides of the dialog cancelled the dialog at the same time chan_sip could kepe retransmitting a response for no reason.
(closes issue #9566)
Reported by: atca_pres
Patches:
      bug9566.patch uploaded by oej

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

18 years agoAllow some function modules to compile under dev mode.
Jason Parker [Mon, 29 Oct 2007 17:13:04 +0000 (17:13 +0000)] 
Allow some function modules to compile under dev mode.

Issue 11104, patch by andrew.

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

18 years agoFix issue with ast_unescape_semicolon going into an endless loop.
Joshua Colp [Mon, 29 Oct 2007 14:23:49 +0000 (14:23 +0000)] 
Fix issue with ast_unescape_semicolon going into an endless loop.
(closes issue #10550)
Reported by: ramonpeek
Patches:
      unescape-85177-1.patch uploaded by IgorG (license 20)

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

18 years agoAdd autoservice to several more functions which might delay in their responses.
Tilghman Lesher [Sun, 28 Oct 2007 13:46:55 +0000 (13:46 +0000)] 
Add autoservice to several more functions which might delay in their responses.
Also, make sure that func_odbc functions have a channel on which to set
variables.
Reported by russell
Fixed by tilghman
Closes issue #11099

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

18 years agocloses issue #11086 where a user complains that references to following contexts...
Steve Murphy [Fri, 26 Oct 2007 16:34:02 +0000 (16:34 +0000)] 
closes issue #11086 where a user complains that references to following contexts report a problem; The problem was REALLy that he was referring to empty contexts, which were being ignored. Reporter stated that empty contexts should be OK. I checked it out against extensions.conf, and sure enough, empty contexts ARE ok. So, I removed the restriction from AEL. This, though, highlighted a problem with multiple contexts of the same name. This should be OK, also. So, I added the extend keyword to AEL, and it can preceed the 'context' keyword (mixed with 'abstract', if nec.). This will turn off the warnings in AEL if the same context name is used 2 or more times. Also, I now call ast_context_find_or_create for contexts now, instead of just ast_context_create; I did this because pbx_config does this. The 'extend' keyword thus becomes a statement of intent. AEL can now duplicate the behavior of pbx_config,

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

18 years agoThe addition of autoservice to func_curl additionally made func_curl dependent
Tilghman Lesher [Fri, 26 Oct 2007 13:54:30 +0000 (13:54 +0000)] 
The addition of autoservice to func_curl additionally made func_curl dependent
on the existence of a channel, with no real reason.  This should make func_curl
once again work without a channel.
Reported by jmls.
Fixed by tilghman.
Closes issue #11090

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

18 years agoappending one list to another should leave the first list empty, and not require...
Kevin P. Fleming [Thu, 25 Oct 2007 23:03:11 +0000 (23:03 +0000)] 
appending one list to another should leave the first list empty, and not require the user to do that

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

18 years agoBackport alternate encoding of newline delimiters from trunk to 1.4, as approved...
Tilghman Lesher [Thu, 25 Oct 2007 22:53:06 +0000 (22:53 +0000)] 
Backport alternate encoding of newline delimiters from trunk to 1.4, as approved by Russell
Reported by blitzrage
Closes issue #10903

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

18 years agoCorrectly respect hidecalleridname configuration option.
Jason Parker [Wed, 24 Oct 2007 20:56:47 +0000 (20:56 +0000)] 
Correctly respect hidecalleridname configuration option.
Simplify code slightly in the process.

Issue 11079, reported by ddv2005

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

18 years agocloses issue #11037 -- unable to specify app:spec in hint arguments
Steve Murphy [Wed, 24 Oct 2007 04:14:28 +0000 (04:14 +0000)] 
closes issue #11037 -- unable to specify app:spec in hint arguments

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

18 years agocloses issue #11052 -- where nothing after the ? will allow un-initialized variable...
Steve Murphy [Tue, 23 Oct 2007 21:18:08 +0000 (21:18 +0000)] 
closes issue #11052 -- where nothing after the ? will allow un-initialized variable values to corrupt and crash asterisk on 64-bit platforms

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

18 years agothis update to Makefile corrects how ast_expr2f.c should be generated
Steve Murphy [Tue, 23 Oct 2007 20:22:25 +0000 (20:22 +0000)] 
this update to Makefile corrects how ast_expr2f.c should be generated

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

18 years agoThis should get rid of a really, really irritating warning generated by some 64-bit...
Steve Murphy [Tue, 23 Oct 2007 20:20:54 +0000 (20:20 +0000)] 
This should get rid of a really, really irritating warning generated by some 64-bit platforms from libc, where free(0) is frowned upon

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

18 years agoIf lock tracking is not enabled, then we can not attempt to log any mutex
Russell Bryant [Mon, 22 Oct 2007 21:36:12 +0000 (21:36 +0000)] 
If lock tracking is not enabled, then we can not attempt to log any mutex
failures.  If so, we could end up in infinite recursion.  The only lock that
is affected by this is a mutex in astmm.c used when MALLOC_DEBUG is enabled.

(closes issue #11044)
Reported by: ys
Patches:
      lock.h.diff uploaded by ys (license 281)

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

18 years agoMinor FreeBSD build fix
Tilghman Lesher [Mon, 22 Oct 2007 17:38:13 +0000 (17:38 +0000)] 
Minor FreeBSD build fix

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

18 years agoAfter reading online I have confirmed that Record-Route headers should be copied...
Joshua Colp [Mon, 22 Oct 2007 16:35:22 +0000 (16:35 +0000)] 
After reading online I have confirmed that Record-Route headers should be copied to 1xx responses as well.
(closes issue #10113)
Reported by: makoto

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

18 years agoMake sure res is a positive value before performing the check to determine whether...
Joshua Colp [Mon, 22 Oct 2007 16:15:18 +0000 (16:15 +0000)] 
Make sure res is a positive value before performing the check to determine whether the user stopped it or not.
(closes issue #11023)
Reported by: cfc

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

18 years agoDon't leak a frame in the case that an END frame is received and the time since
Russell Bryant [Mon, 22 Oct 2007 15:52:48 +0000 (15:52 +0000)] 
Don't leak a frame in the case that an END frame is received and the time since
the BEGIN is less than that of the defined minimum DTMF duration.

(closes issue #11051)
Reported by: casper
Patches:
      channel.c.86664.diff uploaded by casper (license 55)

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

18 years agoUpdate the static mutex initializer to include the initialization of
Russell Bryant [Mon, 22 Oct 2007 15:43:30 +0000 (15:43 +0000)] 
Update the static mutex initializer to include the initialization of
the internal mutex used to protect the lock debugging data.
(closes issue #11044, patch suggested by Ivan)

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

18 years agoAccount for the fact that sometimes headers may be terminated with \r\n instead of...
Mark Michelson [Mon, 22 Oct 2007 14:48:46 +0000 (14:48 +0000)] 
Account for the fact that sometimes headers may be terminated with \r\n instead of just \n

(closes issue #11043, reported by yehavi)

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

18 years agoMove log message to before the frame it references is freed.
Joshua Colp [Mon, 22 Oct 2007 14:27:03 +0000 (14:27 +0000)] 
Move log message to before the frame it references is freed.
(closes issue #11050)
Reported by: slavon
Patches:
      channel.c.86662.diff uploaded by casper (license 55)

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

18 years agoFix tab completion for dundi show peer.
Joshua Colp [Mon, 22 Oct 2007 14:05:26 +0000 (14:05 +0000)] 
Fix tab completion for dundi show peer.
(closes issue #11041)
Reported by: jsmith
Patches:
      asterisk-dundicomplete.diff.txt uploaded by jamesgolovich (license 176)

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

18 years agoFixes for building under OpenSolaris.
Joshua Colp [Mon, 22 Oct 2007 13:33:23 +0000 (13:33 +0000)] 
Fixes for building under OpenSolaris.
(closes issue #11047)
Reported by: snuffy
Patches:
      11047-fixes.diff uploaded by snuffy (license 35)

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

18 years agowe send DISCONNECT instead of RELEASE/RELEASE_COMPLETE if the dialplan does not match...
Christian Richter [Mon, 22 Oct 2007 09:21:15 +0000 (09:21 +0000)] 
we send DISCONNECT instead of RELEASE/RELEASE_COMPLETE if the dialplan does not match after an overlap call. Also added out_cause=1

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

18 years agoWhen returning a DTMF digit from ast_control_streamfile cast it as a char so that...
Joshua Colp [Fri, 19 Oct 2007 16:38:29 +0000 (16:38 +0000)] 
When returning a DTMF digit from ast_control_streamfile cast it as a char so that 0 does not overlap with the success return code.
(closes issue #11023)
Reported by: cfc

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

18 years agoFix two issues with domains and transfers. If a port was given in the hostname it...
Joshua Colp [Fri, 19 Oct 2007 15:33:49 +0000 (15:33 +0000)] 
Fix two issues with domains and transfers. If a port was given in the hostname it was treated as part of the hostname. If domains were configured but external domains were not enabled all transfers would be considered remote.
(closes issue #11027)
Reported by: ramonpeek
Patches:
      11027-1.diff uploaded by ramonpeek (license 266)

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

18 years agoSet port number in received as information for registrations as well.
Joshua Colp [Fri, 19 Oct 2007 15:08:12 +0000 (15:08 +0000)] 
Set port number in received as information for registrations as well.
(closes issue #11028)
Reported by: brad-x

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

18 years agoFixed OSP module did not report source/devinfo IP in correct format.
TransNexus OSP Development [Fri, 19 Oct 2007 01:45:53 +0000 (01:45 +0000)] 
Fixed OSP module did not report source/devinfo IP in correct format.

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

18 years agoCorrect documentation. I removed the wrong line..
Jason Parker [Thu, 18 Oct 2007 22:01:02 +0000 (22:01 +0000)] 
Correct documentation.  I removed the wrong line..

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

18 years agoAdd documentation for options in asterisk.conf
Jason Parker [Thu, 18 Oct 2007 21:58:44 +0000 (21:58 +0000)] 
Add documentation for options in asterisk.conf

Issue 11029, patch by eserra

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

18 years agoRevert erroneous commit.
Russell Bryant [Thu, 18 Oct 2007 21:16:47 +0000 (21:16 +0000)] 
Revert erroneous commit.

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

18 years agoAdd support for setting the maximum trunk size for IAX2 trunking
Russell Bryant [Thu, 18 Oct 2007 21:14:15 +0000 (21:14 +0000)] 
Add support for setting the maximum trunk size for IAX2 trunking

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

18 years agoThe channel needs to stay locked while running timer callbacks, as they access
Russell Bryant [Thu, 18 Oct 2007 18:03:10 +0000 (18:03 +0000)] 
The channel needs to stay locked while running timer callbacks, as they access
and modify channel data that may change elsewhere.  I went through every timer
callback in the source tree to make sure that none of them did any additional
locking that could introduce deadlocks, and all is well.

(closes issue #10765)
Reported by: Ivan
Patches:
      ast_1_4_11_svn_patch_channel_rc.diff uploaded by Ivan (license 229)

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

18 years agoIf a non-existent file is specified to be played either as a periodic announcement
Mark Michelson [Thu, 18 Oct 2007 17:38:26 +0000 (17:38 +0000)] 
If a non-existent file is specified to be played either as a periodic announcement
or as a hold/position announcement, the caller would be kicked out of the queue.
No longer does this happen.

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

18 years agoExecute the RELEASE operation on transcoder channels in the destroy callback.
Russell Bryant [Thu, 18 Oct 2007 15:45:55 +0000 (15:45 +0000)] 
Execute the RELEASE operation on transcoder channels in the destroy callback.
(patch from jsloan)

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

18 years agoRevert a change that I made for issue #10979 which, as has been pointed out to
Russell Bryant [Thu, 18 Oct 2007 04:40:52 +0000 (04:40 +0000)] 
Revert a change that I made for issue #10979 which, as has been pointed out to
me in issue #11018, doesn't really make sense.  There is no reason to have
the base64 decode function force a '\0' terminated buffer, when the result is
almost always binary, anyway.  In fact, this caused some breakage, as some code
in res_crypto passed in a buffer exactly the right size to get its binary
result, which got stomped on by this patch.

(closes issue #11018, reported by dimas)

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

18 years agoChanging the strategy field of the call_queue struct to be signed instead of unsigned,
Mark Michelson [Wed, 17 Oct 2007 21:39:05 +0000 (21:39 +0000)] 
Changing the strategy field of the call_queue struct to be signed instead of unsigned,
since the code attempts to set the strategy to -1 if you specify a bogus strategy.
While this isn't a huge issue in 1.4, it could be a problem for someone who, say, tries
to use the roundrobin strategy in trunk (despite all the deprecation warnings in 1.4).

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

18 years agoIf Asterisk is in the middle of shutting down, respond to OPTIONS
Russell Bryant [Wed, 17 Oct 2007 17:57:45 +0000 (17:57 +0000)] 
If Asterisk is in the middle of shutting down, respond to OPTIONS
with 503 Unavailable.

(closes issue #10994)
Reported by: eserra
Patches:
      sip-options-503.patch uploaded by eserra (license 45)

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

18 years agoWhoops, forgot to remove the original sip_scheddestroy.
Joshua Colp [Wed, 17 Oct 2007 16:58:03 +0000 (16:58 +0000)] 
Whoops, forgot to remove the original sip_scheddestroy.
(closes issue #11010)
Reported by: vadim

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

18 years agoWhen runuser/rungroup is specified, a remote console could only be attained by root
Tilghman Lesher [Wed, 17 Oct 2007 15:23:51 +0000 (15:23 +0000)] 
When runuser/rungroup is specified, a remote console could only be attained by root
(Closes issue #9999)

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

18 years agoDon't schedule dialog destruction if a MESSAGE is received using an existing dialog.
Joshua Colp [Wed, 17 Oct 2007 15:06:36 +0000 (15:06 +0000)] 
Don't schedule dialog destruction if a MESSAGE is received using an existing dialog.
(closes issue #11010)
Reported by: vadim

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

18 years agoSince monitor-join is deprecated now, remove the example from the sample queues.conf...
Mark Michelson [Tue, 16 Oct 2007 23:35:31 +0000 (23:35 +0000)] 
Since monitor-join is deprecated now, remove the example from the sample queues.conf file

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

18 years agoUpdating UPGRADE.txt to reflect the deprecation of the monitor-join
Mark Michelson [Tue, 16 Oct 2007 23:16:08 +0000 (23:16 +0000)] 
Updating UPGRADE.txt to reflect the deprecation of the monitor-join
queue option

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

18 years agoAdding deprecated warning to monitor-join option, since the plan is to
Mark Michelson [Tue, 16 Oct 2007 22:49:10 +0000 (22:49 +0000)] 
Adding deprecated warning to monitor-join option, since the plan is to
no longer support this in favor of monitor-type = mixmonitor

(related to issue #10885)

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

18 years agoreally picky formatting tweak ...
Russell Bryant [Tue, 16 Oct 2007 22:36:16 +0000 (22:36 +0000)] 
really picky formatting tweak ...

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

18 years agoSome locking errors exposed the fact that the lock debugging code itself was
Russell Bryant [Tue, 16 Oct 2007 22:14:36 +0000 (22:14 +0000)] 
Some locking errors exposed the fact that the lock debugging code itself was
not thread safe.  How ironic!  Anyway, these changes ensure that the code that
is accessing the lock debugging data is thread-safe.

Many thanks to Ivan for finding and fixing the core issue here, and also
thanks to those that tested the patch and provided test results.

(closes issue #10571)
(closes issue #10886)
(closes issue #10875)
(might close some others, as well ...)

Patches: (from issue #10571)
      ivan_ast_1_4_12_rel_patch_lock.h.diff uploaded by Ivan (license 229)
       - a few small changes by me

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

18 years agoTrying to remove a non-dynamic queue member via dynamic means can lead to some
Mark Michelson [Tue, 16 Oct 2007 21:14:34 +0000 (21:14 +0000)] 
Trying to remove a non-dynamic queue member via dynamic means can lead to some
interesting (read nasty) situations. This patch clears up the issue by making
only dynamic queue members removable via dynamic methods.

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

18 years agoAlso set up gmtoff (this is used in the %z gnu extension to strftime)
Tilghman Lesher [Tue, 16 Oct 2007 19:41:40 +0000 (19:41 +0000)] 
Also set up gmtoff (this is used in the %z gnu extension to strftime)
Reported and fixed by jcmoore
Closes issue #11002

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

18 years agoRemove a pointless lock.
Russell Bryant [Tue, 16 Oct 2007 19:10:01 +0000 (19:10 +0000)] 
Remove a pointless lock.

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

18 years agoFixing a double free which happens in the statechange thread.
Mark Michelson [Tue, 16 Oct 2007 15:21:58 +0000 (15:21 +0000)] 
Fixing a double free which happens in the statechange thread.

(closes issue #10987, reported by andrew)

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

18 years agoCheck to make sure a value has been given to the VMCOUNT dialplan function.
Joshua Colp [Tue, 16 Oct 2007 14:52:22 +0000 (14:52 +0000)] 
Check to make sure a value has been given to the VMCOUNT dialplan function.
(closes issue #10996)
Reported by: marsosa

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

18 years agoFix memory allocation issue in threadstorage.
Joshua Colp [Tue, 16 Oct 2007 14:19:39 +0000 (14:19 +0000)] 
Fix memory allocation issue in threadstorage.
(closes issue #10995)
Reported by: snuffy
Patches:
      new-patch.diff uploaded by snuffy (license 35)

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

18 years agoFix the output for this channel help CLI command
Philippe Sultan [Tue, 16 Oct 2007 10:46:13 +0000 (10:46 +0000)] 
Fix the output for this channel help CLI command

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

18 years agoEnsure that no pending state changes are leaked when the device state change
Russell Bryant [Mon, 15 Oct 2007 21:10:02 +0000 (21:10 +0000)] 
Ensure that no pending state changes are leaked when the device state change
thread gets stopped on module unload.

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

18 years agoPreviously, app_queue created a thread to handle every single device state
Russell Bryant [Mon, 15 Oct 2007 20:59:27 +0000 (20:59 +0000)] 
Previously, app_queue created a thread to handle every single device state
change.  I changed this a while ago in trunk for performance reasons.  However,
bug 8407 points out that it is actually a race condition, causing device state
changes to get processed in random order.  So, I backported my changes from
trunk to 1.4.
(closes issue #8407, patch provided by tim_ringenbach, committed patch by me)

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

18 years agoDon't execute a gosub if the arguments is zero-len (not just NULL)
Tilghman Lesher [Mon, 15 Oct 2007 20:29:35 +0000 (20:29 +0000)] 
Don't execute a gosub if the arguments is zero-len (not just NULL)
Reported by davevg
Fixed by me
Closes issue #10985

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

18 years agoAdd a small fix for the tw version of saying dates.
Russell Bryant [Mon, 15 Oct 2007 20:21:27 +0000 (20:21 +0000)] 
Add a small fix for the tw version of saying dates.

(closes issue #7827)
Reported by: sharkey
Patches:
      say.nits.patch uploaded by sharkey (license 172)

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

18 years agoProperly use DESTDIR in 'config' target.
Jason Parker [Mon, 15 Oct 2007 20:15:51 +0000 (20:15 +0000)] 
Properly use DESTDIR in 'config' target.
Do not try to run chkconfig or similar if using DESTDIR.

Issue 10938, patch by cabal95.

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

18 years agoBe pedantic about handling memory allocation failure.
Russell Bryant [Mon, 15 Oct 2007 19:22:45 +0000 (19:22 +0000)] 
Be pedantic about handling memory allocation failure.

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

18 years agoThe loop in the handler for the "core show locks" could potentially block for
Russell Bryant [Mon, 15 Oct 2007 19:11:38 +0000 (19:11 +0000)] 
The loop in the handler for the "core show locks" could potentially block for
some amount of time.  Be a little bit more careful and prepare all of the
output in an intermediary buffer while holding a global resource.  Then, after
releasing it, send the output to ast_cli().

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

18 years agoMake the default for the srvlookup option to be yes. It doesn't really make
Russell Bryant [Mon, 15 Oct 2007 16:54:57 +0000 (16:54 +0000)] 
Make the default for the srvlookup option to be yes.  It doesn't really make
sense for it to default to off.  The default configuration file has it on, and
proper RFC behavior, as indicated by a comment in the code, is for it to be on.
So, let's have it on by default to make lives easier.
(closes issue #10954, suggested by jtodd)

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

18 years agoDocument that DTMF based features only work when two channels are bridged together.
Joshua Colp [Mon, 15 Oct 2007 16:39:59 +0000 (16:39 +0000)] 
Document that DTMF based features only work when two channels are bridged together.
(closes issue #10773)
Reported by: pbayley

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

18 years agoMake a few changes so that characters in the upper half of the ISO-8859-1
Russell Bryant [Mon, 15 Oct 2007 16:34:13 +0000 (16:34 +0000)] 
Make a few changes so that characters in the upper half of the ISO-8859-1
character set don't get stripped when reading configuration.
(closes issue #10982, dandre)

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

18 years agoBring both DTMF begin and end frames up through to the core for DTMF feature handling.
Joshua Colp [Mon, 15 Oct 2007 16:22:02 +0000 (16:22 +0000)] 
Bring both DTMF begin and end frames up through to the core for DTMF feature handling.
(closes issue #10826)
Reported by: dimas

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

18 years agoEnsure the buffer passed to ast_canmatch_extension() is properly initialized so
Russell Bryant [Mon, 15 Oct 2007 15:40:45 +0000 (15:40 +0000)] 
Ensure the buffer passed to ast_canmatch_extension() is properly initialized so
that it is null terminated.

(issue #10977)
Reported by: dimas
Patches:
      pbxdundi.patch uploaded by dimas (license 88)
    - small mods by me

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

18 years agoIf Monitor or a spy was added to a P2P or native bridged channel bring the channel...
Joshua Colp [Mon, 15 Oct 2007 14:55:04 +0000 (14:55 +0000)] 
If Monitor or a spy was added to a P2P or native bridged channel bring the channel back to the generic bridging core so the monitor or spy operations work.
(closes issue #10943)
Reported by: julianjm

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

18 years agoSuppress a LOG_DEBUG message if debug is not enabled.
Russell Bryant [Mon, 15 Oct 2007 13:16:23 +0000 (13:16 +0000)] 
Suppress a LOG_DEBUG message if debug is not enabled.

(closes issue #10980)
Reported by: casper
Patches:
      db.c.84633.diff uploaded by casper (license 55)

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

18 years agoMake sure remote consoles unmute themselves again after reconnecting.
Russell Bryant [Mon, 15 Oct 2007 13:05:45 +0000 (13:05 +0000)] 
Make sure remote consoles unmute themselves again after reconnecting.

(closes issue #10847)
Reported by: atis
Patches:
      console_unmute_on_reconnect.patch uploaded by atis (license 242)

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

18 years agoMake sure that the base64 decoder returns a terminated string.
Russell Bryant [Mon, 15 Oct 2007 12:48:10 +0000 (12:48 +0000)] 
Make sure that the base64 decoder returns a terminated string.

(closes issue #10979)
Reported by: ys
Patches:
      util.c.diff uploaded by ys (license 281)
    - small mods by me

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

18 years agoDon't create the context for users in users.conf until we know at least one user...
Russell Bryant [Sun, 14 Oct 2007 15:24:52 +0000 (15:24 +0000)] 
Don't create the context for users in users.conf until we know at least one user exists.

(closes issue #10971)
Reported by: dimas
Patches:
      pbxconfig.patch uploaded by dimas (license 88)

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

18 years agoRemove deprecated syntax from sample ael file
Tilghman Lesher [Sat, 13 Oct 2007 15:26:01 +0000 (15:26 +0000)] 
Remove deprecated syntax from sample ael file
Reported and patched by: dimas
Closes issue #10967

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

18 years agoFix an issue with console verbosity when running asterisk -rx to execute a command
Russell Bryant [Sat, 13 Oct 2007 05:48:10 +0000 (05:48 +0000)] 
Fix an issue with console verbosity when running asterisk -rx to execute a command
and retrieve its output.  The issue was that there was no way for the main Asterisk
process to know that the remote console was connecting in the -rx mode.  The way that
James has fixed this is to have all remote consoles muted by default.  Then, regular
remote consoles automatically execute a CLI command to unmute themselves when they
first start up.

(closes issue #10847)
Reported by: atis
Patches:
      asterisk-consolemute.diff.txt uploaded by jamesgolovich (license 176)

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

18 years agoProperly handle the case where read() may return the text for more than one
Russell Bryant [Sat, 13 Oct 2007 05:24:33 +0000 (05:24 +0000)] 
Properly handle the case where read() may return the text for more than one
CLI command at once for a remote console.

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

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

18 years agoChange Digium address
Tilghman Lesher [Fri, 12 Oct 2007 18:30:55 +0000 (18:30 +0000)] 
Change Digium address

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

18 years agoFix a spelling error in a log message. SMDI, not SDMI.
Russell Bryant [Fri, 12 Oct 2007 15:45:09 +0000 (15:45 +0000)] 
Fix a spelling error in a log message.  SMDI, not SDMI.
(closes issue #10959)

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

18 years agoFix the potential use of an uninitialized buffer in a log message.
Russell Bryant [Fri, 12 Oct 2007 15:40:35 +0000 (15:40 +0000)] 
Fix the potential use of an uninitialized buffer in a log message.

(closes issue #10958)
Reported by: dimas
Patches:
      realtime.patch uploaded by dimas (license 88)

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

18 years agoWhen creating a new packet don't try to stop retransmission of it. It was just alloca...
Joshua Colp [Thu, 11 Oct 2007 15:26:20 +0000 (15:26 +0000)] 
When creating a new packet don't try to stop retransmission of it. It was just allocated/created so it's impossible for it to have already been scheduled.
(closes issue #10945)
Reported by: flefoll
Patches:
      chan_sip.c.br14.85280.xmit_reliable-patch uploaded by flefoll (license 244)

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

18 years agoA dollar sign by itself, not indicating a start of a variable or expression premature...
Tilghman Lesher [Thu, 11 Oct 2007 04:35:33 +0000 (04:35 +0000)] 
A dollar sign by itself, not indicating a start of a variable or expression prematurely ends substitution (closes issue #10939)

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

18 years agoI introduced a new member to the ast_filestream struct in 1.4.12, but put it
Russell Bryant [Wed, 10 Oct 2007 15:56:23 +0000 (15:56 +0000)] 
I introduced a new member to the ast_filestream struct in 1.4.12, but put it
in the middle of the struct, instead of at the end.  One of the Debian folks,
paravoid, pointed out that this breaks binary compatability with modules
compiled against older headers.  So, I'm moving the new member to the end
of the struct to resolve the situation.

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

18 years agoThe thread ID should be unsigned.
Mark Michelson [Wed, 10 Oct 2007 15:51:56 +0000 (15:51 +0000)] 
The thread ID should be unsigned.

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

18 years agoIf devicestate is passed a port number strip it out.
Joshua Colp [Wed, 10 Oct 2007 14:42:00 +0000 (14:42 +0000)] 
If devicestate is passed a port number strip it out.
(closes issue #10930)
Reported by: ibc

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

18 years agoAdd support for handling a 182 Queued response.
Joshua Colp [Wed, 10 Oct 2007 14:28:18 +0000 (14:28 +0000)] 
Add support for handling a 182 Queued response.
(closes issue #10924)
Reported by: ramonpeek
Patches:
      queued-182.diff uploaded by ramonpeek (license 266)

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

18 years agoA bunch of changes from sprintf to snprintf.
Mark Michelson [Wed, 10 Oct 2007 14:26:31 +0000 (14:26 +0000)] 
A bunch of changes from sprintf to snprintf.

See security advisory AST-2002-022

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

18 years agoClose voicemail message description file if duration did not meet the minimum, or...
Joshua Colp [Wed, 10 Oct 2007 14:14:56 +0000 (14:14 +0000)] 
Close voicemail message description file if duration did not meet the minimum, or else we will eventually run out of file descriptors.
(closes issue #10918)
Reported by: brak2718
Patches:
      vm1.4.12.1.patch uploaded by brak2718 (license 279)

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

18 years agouse a macro instead of an inline function, so that backtraces will report the caller...
Kevin P. Fleming [Wed, 10 Oct 2007 06:24:41 +0000 (06:24 +0000)] 
use a macro instead of an inline function, so that backtraces will report the caller of ast_frame_free() properly

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

18 years agoThis commit fixes the following issues:
Tilghman Lesher [Tue, 9 Oct 2007 21:55:06 +0000 (21:55 +0000)] 
This commit fixes the following issues:
- Deadlock in ast_write (issue #10406)
- Deadlock in ast_read (issue #10406)
- Possible mutex initialization error in lock.h (issue #10571)

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