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

18 years agoFix building chan_misdn under dev-mode. (please run the configure script
Russell Bryant [Wed, 26 Sep 2007 20:50:09 +0000 (20:50 +0000)] 
Fix building chan_misdn under dev-mode.  (please run the configure script
with --enable-dev-mode so this doesn't happen again ...)

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

18 years agoRemove unused 4k of memory on the program stack (closes issue #10827)
Tilghman Lesher [Wed, 26 Sep 2007 18:35:56 +0000 (18:35 +0000)] 
Remove unused 4k of memory on the program stack (closes issue #10827)

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

18 years agojmls pointed out that unsetting the group and setting the group to the blank string...
Tilghman Lesher [Tue, 25 Sep 2007 14:13:25 +0000 (14:13 +0000)] 
jmls pointed out that unsetting the group and setting the group to the blank string aren't quite the same.

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

18 years agoIn the source, keys are relative to the datadir, not varlib (which is the same
Tilghman Lesher [Mon, 24 Sep 2007 17:22:08 +0000 (17:22 +0000)] 
In the source, keys are relative to the datadir, not varlib (which is the same
in most cases, but it's good to be accurate).
Closes issue #10811

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

18 years agoOops. Removed the unworkable workaround. This note should never have been in the...
Tilghman Lesher [Mon, 24 Sep 2007 16:37:52 +0000 (16:37 +0000)] 
Oops.  Removed the unworkable workaround.  This note should never have been in the release.

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

18 years agoMaking change to group splitting, as discussed on the -dev list. The main
Tilghman Lesher [Mon, 24 Sep 2007 15:17:06 +0000 (15:17 +0000)] 
Making change to group splitting, as discussed on the -dev list.  The main
effect of this will be to permit Set(GROUP([cat])=), i.e. unsetting a group.

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

18 years agofixed round_robin group dial method, this never worked well on BRI Ports (2 channels)
Christian Richter [Mon, 24 Sep 2007 07:54:18 +0000 (07:54 +0000)] 
fixed round_robin group dial method, this never worked well on BRI Ports (2 channels)

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

18 years agoThis closes issue #10788 -- The exact same fixes are made here for the first arg...
Steve Murphy [Sat, 22 Sep 2007 19:39:16 +0000 (19:39 +0000)] 
This closes issue #10788 -- The exact same fixes are made here for the first arg in the for(arg1; arg2; arg3) {} statement, as were done for the 3rd arg. It can now be an assignment that will embedded in a Set() app, or a macro call, or an app call.

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

18 years agoThis closes issue #10788 -- the 3rd arg in the for statement is now wrapped in Set...
Steve Murphy [Sat, 22 Sep 2007 16:41:43 +0000 (16:41 +0000)] 
This closes issue #10788 -- the 3rd arg in the for statement is now wrapped in Set() only if there's an '=' in that string. Otherwise, if it begins with '&', then a Macro call is generated; otherwise it is made into an app call. A bit more accomodating, keeps the new guys happy, and the guys with ael-1 code should be happy, too

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

18 years agogcc 4.2 has a new set of warnings dealing with cosnt pointers. This set of
Russell Bryant [Fri, 21 Sep 2007 14:37:20 +0000 (14:37 +0000)] 
gcc 4.2 has a new set of warnings dealing with cosnt pointers.  This set of
changes gets all of Asterisk (minus chan_alsa for now) to compile with gcc 4.2.
(closes issue #10774, patch from qwell)

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

18 years agoFix video under certain circumstances. It would have been possible for the formats...
Joshua Colp [Fri, 21 Sep 2007 13:34:32 +0000 (13:34 +0000)] 
Fix video under certain circumstances. It would have been possible for the formats on the channel to not contain the video format.
(closes issue #10782)
Reported by: cwhuang

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

18 years agoWhen daemonizing, don't change working directory to "/". It makes it not be
Russell Bryant [Thu, 20 Sep 2007 21:16:48 +0000 (21:16 +0000)] 
When daemonizing, don't change working directory to "/".  It makes it not be
able to do a core dump when not running as uid=root.
(closes issue #10766, xrg)

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

18 years agoChange safe_asterisk to explicitly ask for /bin/bash, as it uses bashisms.
Russell Bryant [Thu, 20 Sep 2007 21:01:20 +0000 (21:01 +0000)] 
Change safe_asterisk to explicitly ask for /bin/bash, as it uses bashisms.
(closes issue #10772, reported by culrich)

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

18 years agoIf # is pressed after dialing an extension in DISA, stop trying to collect more digits.
Jason Parker [Thu, 20 Sep 2007 17:09:14 +0000 (17:09 +0000)] 
If # is pressed after dialing an extension in DISA, stop trying to collect more digits.

(issue #10754)
Reported by: atis
Patches:
      app_disa.c.branch.patch uploaded by atis (license 242)
      app_disa.c.trunk.patch uploaded by atis (license 242)

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

18 years agoMake sure the minimum T1 timer value is obeyed in all cases.
Joshua Colp [Thu, 20 Sep 2007 16:25:30 +0000 (16:25 +0000)] 
Make sure the minimum T1 timer value is obeyed in all cases.
(closes issue #10768)
Reported by: flefoll
Patches:
      chan_sip.c.trunk.83071.retrans-patch uploaded by flefoll (license 244)
      chan_sip.c.br14.83070.retrans-patch uploaded by flefoll (license 244)

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

18 years agoFix a minor spelling error.
Joshua Colp [Thu, 20 Sep 2007 16:17:24 +0000 (16:17 +0000)] 
Fix a minor spelling error.
(closes issue #10769)
Reported by: flefoll
Patches:
      chan_sip.c.trunk.83071.inita-patch uploaded by flefoll (license 244)
      chan_sip.c.br14.83070.inita-patch uploaded by flefoll (license 244)

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

18 years agoThe System() and TrySystem() applications can take a substantial amount of
Russell Bryant [Wed, 19 Sep 2007 19:50:48 +0000 (19:50 +0000)] 
The System() and TrySystem() applications can take a substantial amount of
time to execute while not servicing the channel.  So, put the channel in
autoservice while the command is being executed.
(closes issue #10726, reported by mnicholson)

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

18 years agoUsing curl can take a substantial amount of time, so the channel should be
Russell Bryant [Wed, 19 Sep 2007 19:34:25 +0000 (19:34 +0000)] 
Using curl can take a substantial amount of time, so the channel should be
autoserviced while waiting for it to complete.
(closes issue #10725, reported by mnicholson)

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

18 years agoWhen handling a reload of chan_iax2, don't use an ao2_callback() to POKE all
Russell Bryant [Wed, 19 Sep 2007 19:13:29 +0000 (19:13 +0000)] 
When handling a reload of chan_iax2, don't use an ao2_callback() to POKE all
peers.  Instead, use an iterator.  By using an iterator, the peers container
is not locked while the POKE is being done.  It can cause a deadlock if the
peers container is locked because poking a peer will try to lock pvt structs,
while there is a lot of other code that will hold a pvt lock when trying to
go lock the peers container.
(reported to me directly by Loic Didelot.  Thank you for the debug info!)

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

18 years agoFix up another potential race condition. Do the loop decrementing use count
Russell Bryant [Wed, 19 Sep 2007 15:10:14 +0000 (15:10 +0000)] 
Fix up another potential race condition.  Do the loop decrementing use count
on events with the eventq protected from being changed.
(reported on IRC by Ivan)

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

18 years agoProtect the CDR record from modification by pbx_exec so that the application data...
Joshua Colp [Wed, 19 Sep 2007 13:47:59 +0000 (13:47 +0000)] 
Protect the CDR record from modification by pbx_exec so that the application data contains the Queue data.
(closes issue #10761)
Reported by: snar
Patches:
      app-queue-mixmonitor.patch uploaded by snar (license 245)

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

18 years ago(closes issue #10760)
Joshua Colp [Wed, 19 Sep 2007 13:18:22 +0000 (13:18 +0000)] 
(closes issue #10760)
Reported by: dimas
Patches:
      chan_sip.patch uploaded by dimas (license 88)
Read in subscribecontext option in general to be the default.

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

18 years agoremoved comment which violates the coding guidelines.
Christian Richter [Wed, 19 Sep 2007 09:32:42 +0000 (09:32 +0000)] 
removed comment which violates the coding guidelines.

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

18 years agoadded 'astdtmf' option to allow configuring the asterisk dtmf detector instead of...
Christian Richter [Wed, 19 Sep 2007 09:31:55 +0000 (09:31 +0000)] 
added 'astdtmf' option to allow configuring the asterisk dtmf detector instead of the mISDN_dsp ones. also added the patch from irroot #10190, so that dtmf tones detected by the asterisk detector are passed outofband to asterisk, to make any use of dtmf tones at all.

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

18 years agoChange the description of app_flash to note how it can be a useful tool instead
Russell Bryant [Wed, 19 Sep 2007 00:19:49 +0000 (00:19 +0000)] 
Change the description of app_flash to note how it can be a useful tool instead
of just saying that it is generally a worthless feature.
(Thanks to Jim Van Meggelen for pointing it out and providing the proposed text)

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

18 years agoInitialize a variable to NULL to make the world happy.
Joshua Colp [Tue, 18 Sep 2007 23:41:02 +0000 (23:41 +0000)] 
Initialize a variable to NULL to make the world happy.

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

18 years agoAdd a new patch to handle interrupting the fgets() call when using FastAGI.
Russell Bryant [Tue, 18 Sep 2007 22:42:27 +0000 (22:42 +0000)] 
Add a new patch to handle interrupting the fgets() call when using FastAGI.
This version of the patch maintains the original behavior of the code when
not using FastAGI.
(closes issue #10553)
Reported by: juggie
Patches:
      res_agi_fgets-4.patch uploaded by juggie (license 24)
      res_agi_fgets_1.4svn.patch uploaded by juggie (license 24)
  Slight mods by me
Tested by: juggie, festr

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

18 years agoCorrected patch applied in revision r82887.
Doug Bailey [Tue, 18 Sep 2007 21:49:32 +0000 (21:49 +0000)] 
Corrected patch applied in revision r82887.

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

18 years agoFixed a bug where http manager sessions prevented the eventq from being cleaned out...
Doug Bailey [Tue, 18 Sep 2007 21:10:14 +0000 (21:10 +0000)] 
Fixed a bug where http manager sessions prevented the eventq from being cleaned out because http manager sessions do not have a valid file descriptor.

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

18 years agoFix a memory leak that can occur on systems under higher load. The issue is
Russell Bryant [Tue, 18 Sep 2007 20:56:43 +0000 (20:56 +0000)] 
Fix a memory leak that can occur on systems under higher load.  The issue is
that when events are appended to the master event queue, they use the number
of active sessions as a use count so it will know when all active sessions
at the time the event happened have consumed it.  However, the handling of
the number of sessions was not properly synchronized, so the use count was
not always correct, causing an event to disappear early, or get stuck in
the event queue for forever.

(closes issue #9238, reported by bweschke, patch from Ivan, modified by me)

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

18 years agoMoving the logic for handling an empty membername to the create_member function so...
Mark Michelson [Tue, 18 Sep 2007 20:09:02 +0000 (20:09 +0000)] 
Moving the logic for handling an empty membername to the create_member function so that there is a common place
where this occurs instead of being spread out to several different places.

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

18 years agothere is no need for conditional logic to select ->interface or ->membername, snince...
Kevin P. Fleming [Tue, 18 Sep 2007 18:59:52 +0000 (18:59 +0000)] 
there is no need for conditional logic to select ->interface or ->membername, snince ->membername will always be populated

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

18 years agoWhen copying the contents from the wildcard peer, do a deep copy instead of
Russell Bryant [Tue, 18 Sep 2007 16:31:01 +0000 (16:31 +0000)] 
When copying the contents from the wildcard peer, do a deep copy instead of
shallow copy so that it doesn't crash when beging destroyed.
(closes issue #10546, patch by me)

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

18 years agoCorrect the allowexternaldomains option in SIP sample config.
Jason Parker [Tue, 18 Sep 2007 15:28:21 +0000 (15:28 +0000)] 
Correct the allowexternaldomains option in SIP sample config.

Issue 10753

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

18 years agoPut a memset in ast_localtime() instead of a couple places in app_voicemail
Russell Bryant [Mon, 17 Sep 2007 20:16:25 +0000 (20:16 +0000)] 
Put a memset in ast_localtime() instead of a couple places in app_voicemail
to prevent the problem everywhere instead of just a couple of places.
(related to issue #10746)

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