Commit Graph

15888 Commits

Author SHA1 Message Date
Tilghman Lesher
aedfb1a4e7 Blocked revisions 131482 via svnmerge
................
r131482 | tilghman | 2008-07-16 16:50:08 -0500 (Wed, 16 Jul 2008) | 9 lines

Blocked revisions 131480 via svnmerge

........
r131480 | tilghman | 2008-07-16 16:46:06 -0500 (Wed, 16 Jul 2008) | 2 lines

Apparently, in certain cases, a callno is already destroyed when iax2_destroy is called.

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@131487 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-16 21:55:56 +00:00
Brett Bryant
19700017e1 Merged revisions 131484 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r131484 | bbryant | 2008-07-16 16:54:08 -0500 (Wed, 16 Jul 2008) | 4 lines

Fixes sysinfo operator issue also fixed elsewhere in r131445.

(issue #13057)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@131486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-16 21:54:38 +00:00
Brett Bryant
c252f7f4eb Merged revisions 131445 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r131445 | bbryant | 2008-07-16 16:24:18 -0500 (Wed, 16 Jul 2008) | 9 lines

Fixes an issue with "core show sysinfo" that used the wrong operator to 
calculate the number of bytes from a sysinfo structure.
unsigned long.

(closes issue #13057)
Reported by: eliel
Patches:
      asterisk.c.patch uploaded by eliel (license 64)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@131455 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-16 21:26:13 +00:00
Russell Bryant
1d83b13558 Merged revisions 131422 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r131422 | russell | 2008-07-16 15:48:27 -0500 (Wed, 16 Jul 2008) | 15 lines

Merged revisions 131421 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131421 | russell | 2008-07-16 15:47:53 -0500 (Wed, 16 Jul 2008) | 7 lines

Always ensure that the channel's tech_pvt reference is NULL after calling the
destroy callback.
(closes issue #13060)
Reported by: jpgrayson
Patches:
      chan_iax2_tech_pvt_crash.patch uploaded by jpgrayson (license 492)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@131423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-16 20:48:49 +00:00
Mark Michelson
8d78d518bf Merged revisions 131375 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r131375 | mmichelson | 2008-07-16 15:24:12 -0500 (Wed, 16 Jul 2008) | 22 lines

Merged revisions 131369 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131369 | mmichelson | 2008-07-16 15:23:02 -0500 (Wed, 16 Jul 2008) | 14 lines

Move the init_queue call back to where it used to be (changed
Sept 12 last year). It was moved then to prevent a memory leak.
Since then, the same memory leak recurred and was fixed in a 
better way.

Now it has been found that the placement of this init_queue
call can cause problems if a realtime queue has values changed
to an empty string. The problem is that the default value
for that queue parameter would not be set.

(closes issue #13084)
Reported by: elbriga


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@131378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-16 20:24:56 +00:00
Mark Michelson
46f51575e7 Merged revisions 131361 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r131361 | mmichelson | 2008-07-16 14:57:02 -0500 (Wed, 16 Jul 2008) | 9 lines

Don't try to dereference the dbfile pointer if
we know that it's NULL.

(closes issue #13092)
Reported by: gknispel_proformatique
Patches:
      trunk_sqlite_check_vars_null.patch uploaded by gknispel (license 261)


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@131362 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-16 19:57:29 +00:00
Mark Michelson
fb892b269d Merged revisions 131358 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r131358 | mmichelson | 2008-07-16 14:37:42 -0500 (Wed, 16 Jul 2008) | 14 lines

Merged revisions 131357 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131357 | mmichelson | 2008-07-16 14:37:08 -0500 (Wed, 16 Jul 2008) | 6 lines

Apparently, "thread safety" is important, whatever
that means. :P

(Thanks Russell!)


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@131359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-16 19:39:05 +00:00
Mark Michelson
58a8d7c521 Merged revisions 131300 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r131300 | mmichelson | 2008-07-16 13:59:27 -0500 (Wed, 16 Jul 2008) | 21 lines

Merged revisions 131299 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131299 | mmichelson | 2008-07-16 13:57:34 -0500 (Wed, 16 Jul 2008) | 13 lines

Make absolutely certain that the transfer datastore
is removed from the calling channel once the caller
is finished in the queue. This could have weird con-
sequences when dialing local queue members when multiple
transfers occur on a single call.

Also fixed a memory leak that would occur when an
attended transfer occurred from a queue member.

(closes issue #13047)
Reported by: festr


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@131301 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-16 18:59:59 +00:00
Steve Murphy
0559f958e0 Merged revisions 131243 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r131243 | murf | 2008-07-16 11:59:33 -0600 (Wed, 16 Jul 2008) | 27 lines

Merged revisions 131242 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131242 | murf | 2008-07-16 11:53:43 -0600 (Wed, 16 Jul 2008) | 19 lines

(closes issue #13090)
Reported by: murf

The problem was that, esoteric as it is, because the hangerupper
context immediately preceded the std-priv-extent macro, that 
the checking code accidentally would fall from traversing hangerupper
into the std-priv-exten macro, where it would hit the hangerupper
in the 'includes', and proceed into an infinite recursion.

A small fix to traverse into the statements of the context instead
of the context solves this issue.

I also added some commented out printfs for debug, which were pretty
handy in the face of a dorky gdb.

This was a problem around since the package was first written;
but evidently pretty rare in turning up in the field.


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@131248 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-16 18:20:48 +00:00
Luigi Rizzo
accfd377e7 add missing terminator argument for ast_event_subscribe().
Without it the function will randomly walk on the stack
possibly causing a panic


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@131206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-16 15:04:25 +00:00
Tilghman Lesher
787a601357 Merged revisions 131166 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r131166 | tilghman | 2008-07-15 19:52:48 -0500 (Tue, 15 Jul 2008) | 3 lines

Fix rotate strategy
(Closes issue #13086)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@131168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-16 00:54:50 +00:00
Steve Murphy
d2d03eb22a Merged revisions 131129 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r131129 | murf | 2008-07-15 17:36:19 -0600 (Tue, 15 Jul 2008) | 21 lines


(closes issue #12960)
Reported by: mnicholson

Spent most of the day on this bug, and the
solution was so simple. Just had to find and
understand the problem.

The problem was, that the routine to copy
the existing switches, includes, and ignorepats
from the old context to the new one, wasn't
getting called when the context is already 
existent. (In other words, if AEL is adding
a new context to the mix, they get copied,
but if pbx_config already defined a context,
then the copy wasn't happening. This made
no sense, so I moved the call to copy the 
includes & etc, no matter the case.



........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@131131 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-15 23:41:22 +00:00
Russell Bryant
48b083262c Merged revisions 131072 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r131072 | russell | 2008-07-15 13:46:40 -0500 (Tue, 15 Jul 2008) | 5 lines

Fix a couple of places in res_agi where the agi_commands lock would not be
released, causing a deadlock.  (Reported by mvanbaak in #asterisk-dev,
discovered by bbryant's change to the lock tracking code to yell at you
if a thread exits with a lock still held)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@131073 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-15 18:47:12 +00:00
Tilghman Lesher
3570646e54 Merged revisions 131044 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r131044 | tilghman | 2008-07-15 13:25:34 -0500 (Tue, 15 Jul 2008) | 16 lines

Merged revisions 130959 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130959 | tilghman | 2008-07-15 12:19:13 -0500 (Tue, 15 Jul 2008) | 8 lines

astman_send_error does not need a newline appended -- the API takes care of
that for us.
(closes issue #13068)
 Reported by: gknispel_proformatique
 Patches: 
       asterisk_1_4_astman_send.patch uploaded by gknispel (license 261)
       asterisk_trunk_astman_send.patch uploaded by gknispel (license 261)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@131060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-15 18:29:31 +00:00
Michiel van Baak
ffe8eef604 Merged revisions 131013 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r131013 | mvanbaak | 2008-07-15 19:49:48 +0200 (Tue, 15 Jul 2008) | 15 lines

Merged revisions 131012 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131012 | mvanbaak | 2008-07-15 19:47:15 +0200 (Tue, 15 Jul 2008) | 7 lines

remove 4 lines of redundant code.

(closes issue #13080)
Reported by: gknispel_proformatique
Patches:
      trunk_ast_cdr_setapp.patch uploaded by gknispel (license 261)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@131014 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-15 18:00:24 +00:00
Steve Murphy
e45d4f3bf1 Merged revisions 130145 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

Merging this rev from trunk to 1.6.0 was not
simple. Why? Because we've enhanced trunk to
do a [fast] merge-and-delete operation which 
also solved problems with contexts having 
entries from different registrars.
Fast as in the amount of time the contexts
are locked down. That *is* fast, but traversing
the entire dialplan looking for priorities to
delete takes more time overall.
This particular fix involved pulling in those
enhancements from trunk, along with all the
various fixes and refinements made along the
way.

Merging all this from trunk into 1.6 involved:
a. mergetrunk6 in the stuff from 130145;
b. revert all but the prop changes
c. catalog all revisions to pbx.c since 1.6.0 was forked
   (at rev 105596).
d. catalog all revisions to pbx.c in trunk since 1.6.0
   was forked, making special note of all revs that
   were not merged into 1.6.0.
e. study each rev in trunk not applied to 1.6.0, and
   determine if it was involved in the merge_and_delete
   enhancements in trunk. 25 commits were done in 1.6.0,
   all but one (106306) was a merge from trunk.
   Trunk had 22 additional changes, of which 7 were
   involved in the merge_and_delete enhancements:
    106757
    108894
    109169
    116461
    123358
    130145
    130297
f. Go to trunk and collect patches, one by one,
   of the changes made by each rev across the
   entire source tree, using svn diff -c <num> > pfile
g. Apply each patch in order to 1.6.0, and 
   resolve all failures and compilation problems
   before proceding to the next patch.
h. test the stuff.
i. profit!


........
r130145 | murf | 2008-07-11 12:24:31 -0600 (Fri, 11 Jul 2008) | 40 lines

(closes issue #13041)
Reported by: eliel
Tested by: murf

(closes issue #12960)
Reported by: mnicholson

In this 'omnibus' fix, I **think** I solved both
the problem in 13041, where unloading pbx_ael.so
caused crashes, or incomplete removal of previous
registrar'ed entries. And I added code to completely
remove all includes, switches, and ignorepats that
had a matching registrar entry, which should
appease 12960.

I also added a lot of seemingly useless brackets
around single statement if's, which helped debug 
so much that I'm leaving them there.

I added a routine to check the correlation between
the extension tree lists and the hashtab 
tables. It can be amazingly helpful when you have
lots of dialplan stuff, and need to narrow
down where a problem is occurring. It's ifdef'd
out by default.

I cleaned up the code around the new CIDmatch code.
It was leaving hanging extens with bad ptrs, getting confused
over which objects to remove, etc. I tightened
up the code and changed the call to remove_exten
in the merge_and_delete code.

I added more conditions to check for empty context
worthy of deletion. It's not empty if there are
any includes, switches, or ignorepats present.

If I've missed anything, please re-open this bug,
and be prepared to supply example dialplan code.


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130946 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-15 13:14:07 +00:00
Tilghman Lesher
d962a11e55 Merged revisions 130890 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r130890 | tilghman | 2008-07-14 18:59:54 -0500 (Mon, 14 Jul 2008) | 16 lines

Merged revisions 130889 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130889 | tilghman | 2008-07-14 18:59:13 -0500 (Mon, 14 Jul 2008) | 8 lines

Override the callerid in all cases when the callerid is set in the user, not
just when a remote callerid is set.  Also, if not set in the user, allow the
remote CallerID to pass through.
(closes issue #12875)
 Reported by: dimas
 Patches: 
       20080714__bug12875.diff.txt uploaded by Corydon76 (license 14)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130891 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-15 00:00:34 +00:00
Mark Michelson
9766aed395 Merged revisions 130854 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r130854 | mmichelson | 2008-07-14 17:22:57 -0500 (Mon, 14 Jul 2008) | 9 lines

Fix a memory leak in the case that /dev/null cannot be
opened when running startup commands from cli.conf

(closes issue #13066)
Reported by: eliel
Patches:
      asterisk.c.patch uploaded by eliel (license 64)


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-14 22:24:01 +00:00
Mark Michelson
033a630385 Merged revisions 130794 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r130794 | mmichelson | 2008-07-14 12:54:11 -0500 (Mon, 14 Jul 2008) | 16 lines

Merged revisions 130792 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130792 | mmichelson | 2008-07-14 12:50:21 -0500 (Mon, 14 Jul 2008) | 8 lines

Add a check to the CAN_EARLY_BRIDGE macro in app_dial to
be sure there are no audiohooks present on the channels
involved. This fixed a one-way audio situation I had in
my test setup. I couldn't find any open issues that suggested
one-way audio with regards to mixmonitor (or other audiohook)
usage, though.


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130795 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-14 17:55:01 +00:00
Michiel van Baak
4a57bf3e3d Merged revisions 130744 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r130744 | mvanbaak | 2008-07-14 19:21:18 +0200 (Mon, 14 Jul 2008) | 18 lines

Merged revisions 130735 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130735 | mvanbaak | 2008-07-14 19:10:21 +0200 (Mon, 14 Jul 2008) | 10 lines

notify the user that dnsmgr refresh wont work when dnsmgr is not enabled.
Previously this command would automagically appear and disappear.
This was confusing.

(closes issue #12796)
Reported by: chappell
Patches:
      dnsmgr_refresh_3.diff uploaded by chappell (license 8)
Tested by: russell, chappell, mvanbaak

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130752 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-14 17:22:54 +00:00
Tilghman Lesher
44ab22fe7f Blocked revisions 130697 via svnmerge
........
r130697 | tilghman | 2008-07-14 10:44:07 -0500 (Mon, 14 Jul 2008) | 7 lines

Swap "static" and "const", so that "static" appears at the beginning of each
declaration (suppresses a warning).
(closes issue #13070)
 Reported by: gknispel_proformatique
 Patches: 
       asterisk_trunk_const_static.patch uploaded by gknispel (license 261)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130698 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-14 15:44:49 +00:00
Russell Bryant
0ea127b043 Merged revisions 129987 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r129987 | russell | 2008-07-11 09:22:44 -0500 (Fri, 11 Jul 2008) | 10 lines

Merged revisions 129970 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r129970 | russell | 2008-07-11 09:18:43 -0500 (Fri, 11 Jul 2008) | 2 lines

add a simple ASTOBJ_TRYWRLOCK macro ...

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130637 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-14 10:40:53 +00:00
Russell Bryant
c75d610942 Merged revisions 130635 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r130635 | russell | 2008-07-14 05:39:23 -0500 (Mon, 14 Jul 2008) | 10 lines

Merged revisions 130634 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130634 | russell | 2008-07-14 05:38:14 -0500 (Mon, 14 Jul 2008) | 2 lines

Bump up the debug level for a message.

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130636 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-14 10:40:20 +00:00
Michiel van Baak
170c05fcc4 Merged revisions 130578 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r130578 | mvanbaak | 2008-07-14 01:14:03 +0200 (Mon, 14 Jul 2008) | 15 lines

Make all sed calls Posix sed compatible.
To make sure nobody commits script-modified files we first make a backup
of asterisk.tex, run the script, generate the pdf and / or html,
and put the original asterisk.tex back.
This will guard us for the stuff that happened before that someone committed 
a locally modified asterisk.tex, with changes done by this script.

(closes issue #13062)
Reported by: mvanbaak
Patches:
      sed_without-i-v3.diff uploaded by mvanbaak (license 7)
Tested by: mvanbaak

Feedback from Corydon. Thanks for taking the time to go through this.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130582 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-13 23:20:11 +00:00
Michiel van Baak
cab0fec957 Blocked revisions 130576 via svnmerge
........
r130576 | mvanbaak | 2008-07-14 00:59:35 +0200 (Mon, 14 Jul 2008) | 9 lines

Convert chan_skinny's open-coded linked lists to the list macros

(closes issue #12956)
Reported by: DEA
Patches:
      chan_skinny-linkedlists-v2.txt uploaded by DEA (license 3)
Tested by: DEA, mvanbaak


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130577 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-13 23:01:14 +00:00
Michiel van Baak
b92a2e0e53 Merged revisions 130574 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r130574 | mvanbaak | 2008-07-14 00:50:31 +0200 (Mon, 14 Jul 2008) | 16 lines

Merged revisions 130573 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130573 | mvanbaak | 2008-07-14 00:48:51 +0200 (Mon, 14 Jul 2008) | 8 lines

fix memory leak when originate from manager cannot create a thread

(closes issue #13069)
Reported by: gknispel_proformatique
Patches:
      asterisk_trunk_action_originate.patch uploaded by gknispel (license 261)
	  Tested by: gknispel_proformatique, mvanbaak

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130575 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-13 22:53:25 +00:00
Tilghman Lesher
21e2e2de49 Merged revisions 130515 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r130515 | tilghman | 2008-07-13 12:58:47 -0500 (Sun, 13 Jul 2008) | 12 lines

Merged revisions 130514 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130514 | tilghman | 2008-07-13 12:56:10 -0500 (Sun, 13 Jul 2008) | 4 lines

Reverting 2 changesets, as it breaks incoming IAX2 calls
(Related to issue #12963)
Reported by: mvanbaak

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130516 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-13 17:59:34 +00:00
Michiel van Baak
88cbe002af Merged revisions 130479 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r130479 | mvanbaak | 2008-07-13 16:58:40 +0200 (Sun, 13 Jul 2008) | 3 lines

restore ASTERISKVERSION marker to asterisk.tex.
This got lost in commit 97634

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130480 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-13 15:00:09 +00:00
Tilghman Lesher
d7bda637b5 Merged revisions 130444 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r130444 | tilghman | 2008-07-12 21:34:32 -0500 (Sat, 12 Jul 2008) | 2 lines

Unlock list before returning

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130445 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-13 02:35:22 +00:00
Michiel van Baak
bac969582f Blocked revisions 130374 via svnmerge
................
r130374 | mvanbaak | 2008-07-12 12:26:55 +0200 (Sat, 12 Jul 2008) | 13 lines

Blocked revisions 130373 via svnmerge

........
r130373 | mvanbaak | 2008-07-12 12:25:52 +0200 (Sat, 12 Jul 2008) | 6 lines

in 1.4 the functions still have | as argument seperator.
This commit fixes the use of RAND in the ael random function.

(closes issue #13061)
Reported by: danpwi

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-12 10:28:39 +00:00
Matthew Fredrickson
6e55f169dd Merged revisions 130293 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r130293 | mattf | 2008-07-11 16:36:26 -0500 (Fri, 11 Jul 2008) | 1 line

Support new TRANSPORT definitions in libss7
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-11 21:39:48 +00:00
Mark Michelson
ec482339b7 Merged revisions 130237 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r130237 | mmichelson | 2008-07-11 15:03:55 -0500 (Fri, 11 Jul 2008) | 11 lines

Merged revisions 130236 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130236 | mmichelson | 2008-07-11 15:03:23 -0500 (Fri, 11 Jul 2008) | 3 lines

Remove redundant logic


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130238 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-11 20:04:25 +00:00
Tilghman Lesher
251abd9a17 Blocked revisions 130234 via svnmerge
........
r130234 | tilghman | 2008-07-11 14:56:34 -0500 (Fri, 11 Jul 2008) | 2 lines

Don't copy on NULL.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130235 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-11 19:57:27 +00:00
Tilghman Lesher
69c18e0bdb Blocked revisions 130232 via svnmerge
........
r130232 | tilghman | 2008-07-11 14:53:38 -0500 (Fri, 11 Jul 2008) | 2 lines

Add some debug code and add a missing release

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130233 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-11 19:54:51 +00:00
Tilghman Lesher
9b5c5f096a Merged revisions 130230 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r130230 | tilghman | 2008-07-11 14:40:55 -0500 (Fri, 11 Jul 2008) | 2 lines

Fix trunk breakage

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-11 19:45:25 +00:00
Mark Michelson
feead8b757 Merged revisions 130174 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r130174 | mmichelson | 2008-07-11 14:14:15 -0500 (Fri, 11 Jul 2008) | 15 lines

Merged revisions 130173 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130173 | mmichelson | 2008-07-11 14:13:29 -0500 (Fri, 11 Jul 2008) | 7 lines

Fix a typo in audiohook_read_frame_both.

While this change has not been proven to fix any
specific issue, it is incorrect and could cause
unforeseen problems.


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-11 19:14:50 +00:00
Tilghman Lesher
f5e6714b87 Merged revisions 130170 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r130170 | tilghman | 2008-07-11 13:52:42 -0500 (Fri, 11 Jul 2008) | 15 lines

Merged revisions 130169 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130169 | tilghman | 2008-07-11 13:51:56 -0500 (Fri, 11 Jul 2008) | 7 lines

Ensure that a destination callno of 0 will not match for frames that do not
start a dialog (new, lagrq, and ping).
(closes issue #12963)
 Reported by: russellb
 Patches: 
       chan_iax2_dup_new_fix4.patch uploaded by jpgrayson (license 492)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130171 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-11 18:53:22 +00:00
Sean Bright
2d96db5069 Merged revisions 130167 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r130167 | seanbright | 2008-07-11 14:32:26 -0400 (Fri, 11 Jul 2008) | 1 line

Missed one.  Formatting only.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-11 18:33:24 +00:00
Brett Bryant
559bbfc457 Merged revisions 130129 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r130129 | bbryant | 2008-07-11 13:09:35 -0500 (Fri, 11 Jul 2008) | 8 lines

Janitor patch to change uses of sizeof to ARRAY_LEN

(closes issue #13054)
Reported by: pabelanger
Patches:
      ARRAY_LEN.patch2 uploaded by pabelanger (license 224)
Tested by: seanbright

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-11 18:14:27 +00:00
Tilghman Lesher
05df0355d9 Merged revisions 130126 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r130126 | tilghman | 2008-07-11 12:29:24 -0500 (Fri, 11 Jul 2008) | 17 lines

Merged revisions 130102 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130102 | tilghman | 2008-07-11 11:50:42 -0500 (Fri, 11 Jul 2008) | 9 lines

Pass the devicestate from an underlying channel up through the Agent channel.
This should make the Agent always report the correct device state, even when
the underlying channel is used for other purposes.
(closes issue #12773)
 Reported by: davidw
 Patches: 
       20080710__bug12773.diff.txt uploaded by Corydon76 (license 14)
 Tested by: davidw

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-11 17:30:07 +00:00
Kevin P. Fleming
288369308e Merged revisions 130044 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r130044 | kpfleming | 2008-07-11 11:18:01 -0500 (Fri, 11 Jul 2008) | 2 lines

clean up a bunch more Zaptel-related references

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-11 16:18:54 +00:00
Kevin P. Fleming
f95462f418 Merged revisions 130040 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r130040 | kpfleming | 2008-07-11 10:57:17 -0500 (Fri, 11 Jul 2008) | 12 lines

Merged revisions 130039 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130039 | kpfleming | 2008-07-11 10:41:56 -0500 (Fri, 11 Jul 2008) | 4 lines

add support for a configuration parameter for 'inband audio during RELEASE', which is currently mandatory in libpri-1.4.4 but will become configurable in libpri-1.4.5 later today

(related to issue #13042)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130041 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-11 16:05:02 +00:00
Kevin P. Fleming
5ce44b2532 Merged revisions 129968 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r129968 | kpfleming | 2008-07-11 09:16:15 -0500 (Fri, 11 Jul 2008) | 18 lines

Merged revisions 129966 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r129966 | kpfleming | 2008-07-11 09:03:52 -0500 (Fri, 11 Jul 2008) | 5 lines

fix a flaw found while experimenting with structure alignment and padding; low-fence checking would not work properly on 64-bit platforms, because the compiler was putting 4 bytes of padding between the fence field and the allocation memory block

added a very obvious runtime warning if this condition reoccurs, so the developer who broke it can be chastised into fixing it :-)


........
r129967 | kpfleming | 2008-07-11 09:03:52 -0500 (Fri, 11 Jul 2008) | 5 lines

simplify calculation

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@129969 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-11 14:16:55 +00:00
Kevin P. Fleming
19e89b7b27 Merged revisions 129916 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r129916 | kpfleming | 2008-07-11 07:21:29 -0500 (Fri, 11 Jul 2008) | 10 lines

Merged revisions 129907 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r129907 | kpfleming | 2008-07-11 07:15:42 -0500 (Fri, 11 Jul 2008) | 2 lines

don't attempt to set user/group ownership of extracted sound files (reported on asterisk-users)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@129936 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-11 12:26:43 +00:00
Sean Bright
9b1925c172 Merged revisions 129864 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r129864 | seanbright | 2008-07-10 20:55:06 -0400 (Thu, 10 Jul 2008) | 1 line

Fix some usages of snprintf, and clarify a couple variable names.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@129865 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-11 01:01:39 +00:00
Tilghman Lesher
334b1ee95f Merged revisions 129804 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r129804 | tilghman | 2008-07-10 17:06:07 -0500 (Thu, 10 Jul 2008) | 16 lines

Merged revisions 129803 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r129803 | tilghman | 2008-07-10 16:57:05 -0500 (Thu, 10 Jul 2008) | 8 lines

Correctly deal with duplicate NEW frames (due to retransmission).  Also, fixup
the destination call number matching to be more strict and reliable.
(closes issue #12963)
 Reported by: jpgrayson
 Patches: 
       chan_iax2_dup_new_fix3.patch uploaded by jpgrayson (license 492)
 Tested by: jpgrayson, Corydon76

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@129805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-10 22:07:12 +00:00
Tilghman Lesher
54d1886d1b Merged revisions 129758 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r129758 | tilghman | 2008-07-10 16:23:23 -0500 (Thu, 10 Jul 2008) | 10 lines

Merged revisions 129741 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r129741 | tilghman | 2008-07-10 16:19:48 -0500 (Thu, 10 Jul 2008) | 2 lines

Oops

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@129764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-10 21:24:31 +00:00
Terry Wilson
0f476f87d0 Merged revisions 129738 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r129738 | twilson | 2008-07-10 15:56:20 -0500 (Thu, 10 Jul 2008) | 2 lines

Move phoneprov config files to be installed with 'make samples' so changes aren't inadvertently lost on a 'make install'

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@129739 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-10 21:05:05 +00:00
Mark Michelson
7ac7889760 Blocked revisions 129734 via svnmerge
........
r129734 | mmichelson | 2008-07-10 15:33:13 -0500 (Thu, 10 Jul 2008) | 23 lines

Removed the fn2 field from the vm_state structure.

fn2 was used in three functions. In every case, it was initialized
in the function it was used in. This meant there was no need
to have it in a malloc'd structure just taking up space. Furthermore
two of the functions it was used in were completely unnecessary since
fn2 was set to exactly the same value as the vm_state's fn string.

fn2 was a char array sized at PATH_MAX. On my system, PATH_MAX is 
4096. This equates to a 4K memory savings per vm_state allocated. 
Since there is a vm_state malloc'd for every voicemail user on 
the system, this could potentially add up nicely if there are lots 
of users. In addition, a vm_state is allocated on the stack each 
time a caller calls the VoiceMailMain application, meaning that 
there is a significant stack savings with this patch too.

Of course, a single vm_state struct still takes up approximately
20K on my system (when using IMAP storage. Without IMAP storage,
there would be about another 300 bytes fewer usage), even with 
this removal. Further optimizations are probably possible, 
but most likely not as easy as this one.


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@129735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-10 20:34:12 +00:00
Brett Bryant
f6f918d6a6 Merged revisions 129684 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r129684 | bbryant | 2008-07-10 14:13:12 -0500 (Thu, 10 Jul 2008) | 8 lines

Fixes a bug where the interface for a queue member gets reloaded as the state_interface, if a state_interface was set, on reload because the 
state_interface isn't stored in the ast_db.

(closes issue #13043)
Reported by: jvandal
Patches:
      app_queue.patch uploaded by jvandal (license 413)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@129685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-10 19:14:24 +00:00