]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
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

18 years agoDon't perform a reinvite if a transfer is in progress.
Joshua Colp [Tue, 9 Oct 2007 14:30:16 +0000 (14:30 +0000)] 
Don't perform a reinvite if a transfer is in progress.
(issue #10915)
Reported by: ramonpeek

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

18 years agoOnly update codec information if the channel has a technology private structure.
Joshua Colp [Mon, 8 Oct 2007 20:06:33 +0000 (20:06 +0000)] 
Only update codec information if the channel has a technology private structure.
(issue #10915)
Reported by: ramonpeek

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

18 years agoUpdate codec information as well as address when doing hold reinvites.
Joshua Colp [Mon, 8 Oct 2007 15:37:46 +0000 (15:37 +0000)] 
Update codec information as well as address when doing hold reinvites.
(issue #10868)
Reported by: mavince

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

18 years agoDon't keep trying to native bridge if either of the channels are involved in a masque...
Joshua Colp [Mon, 8 Oct 2007 15:03:07 +0000 (15:03 +0000)] 
Don't keep trying to native bridge if either of the channels are involved in a masquerade operation to be done.
(closes issue #10696)
Reported by: tbelder

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

18 years agoEnable file dependency tracking for _all_ builds, and not just for builds with
Russell Bryant [Mon, 8 Oct 2007 03:28:34 +0000 (03:28 +0000)] 
Enable file dependency tracking for _all_ builds, and not just for builds with
dev-mode enabled.  I have seen enough problems caused by this that I don't think
it's worth keeping.  I want to continue to encourage anybody that is interested
to continue to run Asterisk from svn.  Furthermore, I do not want their systems
to break when we change a structure definition in a header file.  :)

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

18 years agoPresence packets from a client who's connected with our Jabber ID are
Philippe Sultan [Sun, 7 Oct 2007 16:15:39 +0000 (16:15 +0000)] 
Presence packets from a client who's connected with our Jabber ID are
valid, therefore, those clients must be considered as buddies. The resource
string helps us make the distinction between clients.

Closes issue #10707, reported by yusufmotiwala.

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

18 years agoPrevent Asterisk from crashing when receiving a presence packet
Philippe Sultan [Sun, 7 Oct 2007 15:52:44 +0000 (15:52 +0000)] 
Prevent Asterisk from crashing when receiving a presence packet
without resource from a buddy that is known to have a resource list.

Revert a change I previously made, where Asterisk could point to a
freed memory location.

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

18 years agoLog exactly why we can't open the database, if we fail (closes issue #10887)
Tilghman Lesher [Fri, 5 Oct 2007 19:42:21 +0000 (19:42 +0000)] 
Log exactly why we can't open the database, if we fail (closes issue #10887)

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

18 years agoUpdate the remembered RTP peer information when putting an endpoint on hold or taking...
Joshua Colp [Fri, 5 Oct 2007 18:55:36 +0000 (18:55 +0000)] 
Update the remembered RTP peer information when putting an endpoint on hold or taking it off hold so that the RTP stack does not initiate a needless reinvite.
(closes issue #10868)
Reported by: mavince

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

18 years agoDo deadlock avoidance in a couple more places. You can't lock two channels
Russell Bryant [Fri, 5 Oct 2007 16:44:21 +0000 (16:44 +0000)] 
Do deadlock avoidance in a couple more places.  You can't lock two channels
at the same time without doing extra work to make sure it succeeds.
(closes issue #10895, patch by me)

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

18 years agoFix a copy/paste error in the description of UpdateConfig that was pointed
Russell Bryant [Fri, 5 Oct 2007 01:39:07 +0000 (01:39 +0000)] 
Fix a copy/paste error in the description of UpdateConfig that was pointed
out by JerJer on #asterisk-dev

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

18 years agoDon't allocate space for queue members unless it's needed. You end up deleting dynami...
Mark Michelson [Thu, 4 Oct 2007 21:57:03 +0000 (21:57 +0000)] 
Don't allocate space for queue members unless it's needed. You end up deleting dynamic members on a reload. Not good.

closes issue (#10879, reported by dazza76, patched by me)

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

18 years agocallers of sig2str already add the word 'signalling' in the appropriate place, so...
Kevin P. Fleming [Thu, 4 Oct 2007 21:36:56 +0000 (21:36 +0000)] 
callers of sig2str already add the word 'signalling' in the appropriate place, so don't duplicate it

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

18 years agoCreate a duplicate of the channel's member name as the tab completion stuff will...
Joshua Colp [Thu, 4 Oct 2007 14:51:57 +0000 (14:51 +0000)] 
Create a duplicate of the channel's member name as the tab completion stuff will free it.
(closes issue #10884)
Reported by: adamg

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

18 years agoWhen an RFC 2833 event is sent that we don't recognize, ignore it, don't queue a...
Tilghman Lesher [Wed, 3 Oct 2007 22:59:17 +0000 (22:59 +0000)] 
When an RFC 2833 event is sent that we don't recognize, ignore it, don't queue a NULL digit (closes issue #10877)

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

18 years agocloses issue #10870 ; where a CUT() function call in a switch expr doesn't execute...
Steve Murphy [Wed, 3 Oct 2007 18:20:07 +0000 (18:20 +0000)] 
closes issue #10870 ; where a CUT() function call in a switch expr doesn't execute correctly, because the commas in the function args are not converted to vertbars before the func is called. I modified just the switch code to convert the commas to vertbars if there, but if more of these sort of probs are found, I may have to resort to something a little more fundamental. We'll see, I guess.

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

18 years agocloses issue #10834 ; where a null input to a switch statement results in a hangup...
Steve Murphy [Wed, 3 Oct 2007 14:23:00 +0000 (14:23 +0000)] 
closes issue #10834 ; where a null input to a switch statement results in a hangup; since switch is implemented with extensions, and the default case is implemented with a '.', and the '.' matches 1 or more remaining characters, the case where 0 characters exist isn't matched, and the extension isn't matched, and the goto fails, and a hangup occurs. Now, when a default case is generated, it also generates a single fixed extension that will match a null input. That extension just does a goto to the default extension for that switch. I played with an alternate solution, where I just tack an extra char onto all the patterns and the goto, but not the default case's pattern. Then even a null input will still have at least one char in it. But it made me nervous, having that extra char in , even if that's a pretty secret and low-level issue.

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

18 years ago* Don't build the menuselect-tree for the tarball, as it requires running the
Russell Bryant [Tue, 2 Oct 2007 20:06:07 +0000 (20:06 +0000)] 
* Don't build the menuselect-tree for the tarball, as it requires running the
  configure script first
* Change the Makefile to note that menuselect-tree depends on the configure
  script.

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

18 years agoFix some odd formatting I missed..
Jason Parker [Tue, 2 Oct 2007 19:01:59 +0000 (19:01 +0000)] 
Fix some odd formatting I missed..

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

18 years agoFinish up on transferee channel before return on failure.
Jason Parker [Tue, 2 Oct 2007 18:52:55 +0000 (18:52 +0000)] 
Finish up on transferee channel before return on failure.

Issue 10821, patch by Ivan

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

18 years agoUse snprintf instead of sprintf in one place. There is no vulnerability here
Russell Bryant [Tue, 2 Oct 2007 14:12:35 +0000 (14:12 +0000)] 
Use snprintf instead of sprintf in one place.  There is no vulnerability here
due to various buffer sizes around the code, but I still didn't like seeing a
non length-limited copy of data coming off of the wire into a stack buffer, as
this would be a problem in the future if buffer sizes elsewhere got changed or
size limitations removed ...

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

18 years agoterminate USERUSER String with 0
Christian Richter [Tue, 2 Oct 2007 09:48:09 +0000 (09:48 +0000)] 
terminate USERUSER String with 0

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