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

18 years agoAdd dist-clean support for subdirs.
Jason Parker [Mon, 1 Oct 2007 21:52:45 +0000 (21:52 +0000)] 
Add dist-clean support for subdirs.

Change h323 to only remove the Makefile on a dist-clean, rather than a clean.

This fixes a bug I found with trying to run make after a make clean

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

18 years agomoved get_base_channel() code from action_redirect to ast_channel_masquerade() for...
Dwayne M. Hubbard [Mon, 1 Oct 2007 21:25:37 +0000 (21:25 +0000)] 
moved get_base_channel() code from action_redirect to ast_channel_masquerade() for issue 7706 and BE-160

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

18 years agoAnything to keep gcc 4.2 happy...
Steve Murphy [Mon, 1 Oct 2007 21:18:40 +0000 (21:18 +0000)] 
Anything to keep gcc 4.2 happy...

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

18 years agoFulfull a feature request from Qwell on the "core show locks" output. It will
Russell Bryant [Mon, 1 Oct 2007 21:07:06 +0000 (21:07 +0000)] 
Fulfull a feature request from Qwell on the "core show locks" output.  It will
now note the lock type for each lock that a thread holds.
(mutex, rdlock, or wrlock)

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

18 years agocloses issue #10777 -- by returning a null for the parse tree when there's really...
Steve Murphy [Mon, 1 Oct 2007 20:27:52 +0000 (20:27 +0000)] 
closes issue #10777 -- by returning a null for the parse tree when there's really nothing there, and making sure we don't try to do checking on a null tree.

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

18 years agoAdd another sanity check in the AGI read loop. We really don't care about
Russell Bryant [Mon, 1 Oct 2007 19:56:28 +0000 (19:56 +0000)] 
Add another sanity check in the AGI read loop.  We really don't care about
EAGAIN unless we didn't read an entire line.  If there is a newline at the
end if the read buffer, break, because we got the whole thing.
(reported and patched by bmd)

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

18 years agoShow rwlocks in the "core show locks" output. Before, it only showed mutexes.
Russell Bryant [Mon, 1 Oct 2007 19:34:12 +0000 (19:34 +0000)] 
Show rwlocks in the "core show locks" output.  Before, it only showed mutexes.

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

18 years agoRemove another file in "make clean".
Russell Bryant [Mon, 1 Oct 2007 15:00:56 +0000 (15:00 +0000)] 
Remove another file in "make clean".
(closes issue #10814, paravoid)

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

18 years agoSimplify the CAN_EARLY_BRIDGE macro a bit.
Russell Bryant [Mon, 1 Oct 2007 14:24:49 +0000 (14:24 +0000)] 
Simplify the CAN_EARLY_BRIDGE macro a bit.

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

18 years agoRemove chan_usbradio config file from tree, it is not present in here.
Joshua Colp [Mon, 1 Oct 2007 14:10:47 +0000 (14:10 +0000)] 
Remove chan_usbradio config file from tree, it is not present in here.
(closes issue #10839)
Reported by: casper

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

18 years agoFix randomness. save_pos was being set to 0 initially instead of -1, causing it to...
Joshua Colp [Mon, 1 Oct 2007 13:57:42 +0000 (13:57 +0000)] 
Fix randomness. save_pos was being set to 0 initially instead of -1, causing it to jump to position 0 when moh started.
(closes issue #10859)
Reported by: jamesgolovich
Patches:
      asterisk-mohpos2.diff.txt uploaded by jamesgolovich (license 176)

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

18 years agoOnly attempt early bridging if the options given to Dial() permit it.
Joshua Colp [Mon, 1 Oct 2007 13:49:36 +0000 (13:49 +0000)] 
Only attempt early bridging if the options given to Dial() permit it.
(closes issue #10861)
Reported by: peekyb

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

18 years agoFix the AST_MODULE_INFO macro for C++ modules. The load and reload parameters
Russell Bryant [Sun, 30 Sep 2007 20:02:16 +0000 (20:02 +0000)] 
Fix the AST_MODULE_INFO macro for C++ modules.  The load and reload parameters
were in the wrong place.
(closes issue #10846, alebm)

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

18 years agoThis is a regression update that matches what I did in 84134 for AEL regressions.
Steve Murphy [Sat, 29 Sep 2007 23:00:37 +0000 (23:00 +0000)] 
This is a regression update that matches what I did in 84134 for AEL regressions.

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

18 years agoThis issue sort of closes 10786; All config files support #include with globbing...
Steve Murphy [Sat, 29 Sep 2007 21:47:53 +0000 (21:47 +0000)] 
This issue sort of closes 10786; All config files support #include with globbing (you know, *,[chars],?,{list,list},etc), so I've updated the AEL system to support this also.

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

18 years agoCorrect pronunciations of numbers for .nl (Closes issue #10837)
Tilghman Lesher [Fri, 28 Sep 2007 14:13:47 +0000 (14:13 +0000)] 
Correct pronunciations of numbers for .nl (Closes issue #10837)

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

18 years agoAvoid a deadlock with ALL of the locks in the masquerade function, not just the
Tilghman Lesher [Fri, 28 Sep 2007 05:30:22 +0000 (05:30 +0000)] 
Avoid a deadlock with ALL of the locks in the masquerade function, not just the
pairs of channels.  (Closes issue #10406)

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

18 years agoif an Agent is redirected, the base channel should actually be redirected. This...
Dwayne M. Hubbard [Thu, 27 Sep 2007 23:12:25 +0000 (23:12 +0000)] 
if an Agent is redirected, the base channel should actually be redirected.  This was causing multiple issues, especially issue 7706 and BE-160

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

18 years agoremove a todo item that has been completed
Russell Bryant [Thu, 27 Sep 2007 00:01:29 +0000 (00:01 +0000)] 
remove a todo item that has been completed

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

18 years agoavoid the weird usage of assert() in the ALSA header files that gcc 4.2 wants to...
Kevin P. Fleming [Wed, 26 Sep 2007 23:53:03 +0000 (23:53 +0000)] 
avoid the weird usage of assert() in the ALSA header files that gcc 4.2 wants to complain about

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

18 years agoI changed my mind ... I think this should be a LOG_NOTICE.
Russell Bryant [Wed, 26 Sep 2007 21:35:23 +0000 (21:35 +0000)] 
I changed my mind ... I think this should be a LOG_NOTICE.

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

18 years agoAdd a log message that was requested by the masses in the developer tutorial
Russell Bryant [Wed, 26 Sep 2007 21:15:15 +0000 (21:15 +0000)] 
Add a log message that was requested by the masses in the developer tutorial
session at Astricon.  chan_sip did not output any message when a call was
rejected because the extension was not found.  This adds a verbose message
(at verbose level 3) to note when this happens.

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