asterisk/asterisk.git
12 years agoBuild the logrotate script according to paths
Tilghman Lesher [Thu, 24 Jul 2008 05:21:00 +0000 (05:21 +0000)]
Build the logrotate script according to paths
(Closes issue #13147)

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

12 years agoOptionally install logrotate file
Tilghman Lesher [Thu, 24 Jul 2008 04:51:42 +0000 (04:51 +0000)]
Optionally install logrotate file
(Closes issue #13148)

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

12 years ago(closes issue #13144)
Steve Murphy [Wed, 23 Jul 2008 22:03:48 +0000 (22:03 +0000)]
(closes issue #13144)
Reported by: murf
Tested by: murf
For: J. Geis

The 'data' field in the ast_exten struct was being
'moved' from the current dialplan to the replacement
dialplan. This was not good, as the current dialplan
could have problems in the time between the change
and when the new dialplan is swapped in.

So, I modified the merge_and_delete code to strdup
the 'data' field (the args to the app call), and
then it's freed as normal.

I improved a few messages; I added code to limit
the number of calls to the context_merge_incls_swits_igps_other_registrars()
to one per context. I don't think having it called
multiple times per context was doing anything bad,
but it was inefficient.

I hope this fixes the problems Mr. Geiss was noting in
asterisk-users, see
http://lists.digium.com/pipermail/asterisk-users/2008-July/215634.html

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

12 years agoMerged revisions 133295 via svnmerge from
Jason Parker [Wed, 23 Jul 2008 21:50:20 +0000 (21:50 +0000)]
Merged revisions 133295 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r133295 | qwell | 2008-07-23 16:49:03 -0500 (Wed, 23 Jul 2008) | 1 line

inbandrelease is gone - it's now inbanddisconnect
........

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

12 years agoBlocked revisions 133237 via svnmerge
Kevin P. Fleming [Wed, 23 Jul 2008 21:05:39 +0000 (21:05 +0000)]
Blocked revisions 133237 via svnmerge

........
r133237 | kpfleming | 2008-07-23 16:05:22 -0500 (Wed, 23 Jul 2008) | 2 lines

revert an optimization that broke ABI... thanks russell!

........

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

12 years agoFix issue where tcp in sip is enabled by default, despite what it says in the config...
Brett Bryant [Wed, 23 Jul 2008 20:33:22 +0000 (20:33 +0000)]
Fix issue where tcp in sip is enabled by default, despite what it says in the config sample file. Also fix "sip show settings" for tcp connections.

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

12 years agoMerged revisions 133169 via svnmerge from
Mark Michelson [Wed, 23 Jul 2008 19:48:03 +0000 (19:48 +0000)]
Merged revisions 133169 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r133169 | mmichelson | 2008-07-23 14:39:47 -0500 (Wed, 23 Jul 2008) | 12 lines

As suggested by seanbright, the PSEUDO_CHAN_LEN in
app_chanspy should be set at load time, not at compile
time, since dahdi_chan_name is determined at load time.

Also changed the next_unique_id_to_use to have the
static qualifier.

Also added the dahdi_chan_name_len variable so that
strlen(dahdi_chan_name) isn't necessary. Thanks to
seanbright for the suggestion.

........

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

12 years agoMerged revisions 133104 via svnmerge from
Mark Michelson [Wed, 23 Jul 2008 19:07:56 +0000 (19:07 +0000)]
Merged revisions 133104 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r133104 | mmichelson | 2008-07-23 14:06:16 -0500 (Wed, 23 Jul 2008) | 5 lines

Zap/pseudo is ten characters, but DAHDI/pseudo is
twelve. The strncmp call in next_channel should
account for this.

........

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

12 years agoMerged revisions 133101 via svnmerge from
Mark Michelson [Wed, 23 Jul 2008 18:58:37 +0000 (18:58 +0000)]
Merged revisions 133101 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r133101 | mmichelson | 2008-07-23 13:57:17 -0500 (Wed, 23 Jul 2008) | 6 lines

Update the "last" channel in next_channel in app_chanspy so
that the same pseudo channel isn't constantly returned.

related to issue #13124

........

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

12 years agoMerged revisions 133038 via svnmerge from
Mark Michelson [Wed, 23 Jul 2008 17:54:03 +0000 (17:54 +0000)]
Merged revisions 133038 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r133038 | mmichelson | 2008-07-23 12:50:01 -0500 (Wed, 23 Jul 2008) | 7 lines

Small cleanup. Move the declaration of the DAHDI_SPANINFO
variable to the block where it is used. This allows one
less #ifdef HAVE_PRI to clutter things up.

Thanks to Tzafrir for pointing this out on #asterisk-dev

........

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

12 years agoYet another conversion of '|' to ','
Tilghman Lesher [Wed, 23 Jul 2008 17:20:43 +0000 (17:20 +0000)]
Yet another conversion of '|' to ','
(closes issue #13137)
 Reported by: eliel
 Patches:
       chan_iax2trunk-IAXPEER.patch uploaded by eliel (license 64)

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

12 years agoAdd logrotate script for Asterisk
Tilghman Lesher [Wed, 23 Jul 2008 17:14:56 +0000 (17:14 +0000)]
Add logrotate script for Asterisk
(closes issue #13085)
 Reported by: pabelanger
 Patches:
       logrotate uploaded by pabelanger (license 224)

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

12 years agoBlocked revisions 132974 via svnmerge
Mark Michelson [Wed, 23 Jul 2008 17:07:08 +0000 (17:07 +0000)]
Blocked revisions 132974 via svnmerge

........
r132974 | mmichelson | 2008-07-23 12:05:04 -0500 (Wed, 23 Jul 2008) | 4 lines

Fix building of chan_dahdi when HAVE_PRI is not
defined.

........

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

12 years agouse correct function name... please compile with --enable-dev-mode
Kevin P. Fleming [Wed, 23 Jul 2008 16:38:28 +0000 (16:38 +0000)]
use correct function name... please compile with --enable-dev-mode

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

12 years agoMerged revisions 132872 via svnmerge from
Kevin P. Fleming [Wed, 23 Jul 2008 16:30:18 +0000 (16:30 +0000)]
Merged revisions 132872 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132872 | kpfleming | 2008-07-23 06:52:18 -0500 (Wed, 23 Jul 2008) | 2 lines

minor optimization for stringfields: when a field is being set to a larger value than it currently contains and it happens to be the most recent field allocated from the currentl pool, it is possible to 'grow' it without having to waste the space it is currently using (or potentially even allocate a new pool)

........

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

12 years agoMerged revisions 132826 via svnmerge from
Christian Richter [Wed, 23 Jul 2008 12:07:15 +0000 (12:07 +0000)]
Merged revisions 132826 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132826 | crichter | 2008-07-23 13:37:50 +0200 (Mi, 23 Jul 2008) | 1 line

another Fix because of r119585, this commit has broken high frequented BRI Ports, there was a possibility that a channel, that was marked as in_use would be reused later, the corresponding port could got stuck then. So it is recommended to upgrade for chan_misdn users.
........

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

12 years agoremove bogus property that is breaking automerges
Kevin P. Fleming [Wed, 23 Jul 2008 11:40:16 +0000 (11:40 +0000)]
remove bogus property that is breaking automerges

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

12 years agoWell, the content of a channel variable may be longer than the size of a pointer...
Olle Johansson [Wed, 23 Jul 2008 08:13:07 +0000 (08:13 +0000)]
Well, the content of a channel variable may be longer than the size of a pointer...
Thanks, eliel!

Reported by: eliel
Patches:
      chan_siptrunk.SIPPEER.patch uploaded by eliel (license 64)
(closes issue #13135)

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

12 years agoMerged revisions 132777 via svnmerge from
Mark Michelson [Tue, 22 Jul 2008 22:17:09 +0000 (22:17 +0000)]
Merged revisions 132777 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........

Allow Spiraled INVITEs to work correctly within Asterisk.

Prior to this change, a spiraled INVITE would cause a 482
Loop Detected to be sent to the caller. With this change,
if a potential loop is detected, the Request-URI is inspected
to see if it has changed from what was originally received. If
pedantic mode is on, then this inspection is fully RFC 3261
compliant. If pedantic mode is not on, then a string comparison
is used to test the equality of the two R-URIs.

This has been tested by using OpenSER to rewrite the R-URI
and send the INVITE back to Asterisk.

(closes issue #7403)
Reported by: stephen_dredge

Modified:
    branches/1.4/channels/chan_sip.c

........

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

12 years agocorrect fix made in r132777... the code *did* compile in dev-mode, as long as libpri...
Kevin P. Fleming [Tue, 22 Jul 2008 22:14:37 +0000 (22:14 +0000)]
correct fix made in r132777... the code *did* compile in dev-mode, as long as libpri was installed and enabled

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

12 years agoBlocked revisions 132787 via svnmerge
Kevin P. Fleming [Tue, 22 Jul 2008 22:11:12 +0000 (22:11 +0000)]
Blocked revisions 132787 via svnmerge

........
r132787 | kpfleming | 2008-07-22 17:11:01 -0500 (Tue, 22 Jul 2008) | 5 lines

fix up namespace pollution for dahdi_chan_mode enum

correct registration of AMI actions in chan_dahdi; in zap-only mode, only register the Zap flavors of the actions (and use Zap prefixes for headers and acks), but in dahdi+zap mode, register both Zap and DAHDI flavors of actions

........

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

12 years agoBlocked revisions 132784 via svnmerge
Kevin P. Fleming [Tue, 22 Jul 2008 22:09:54 +0000 (22:09 +0000)]
Blocked revisions 132784 via svnmerge

........
r132784 | kpfleming | 2008-07-22 17:09:37 -0500 (Tue, 22 Jul 2008) | 2 lines

add rules to create preprocessor output... useful for debugging macros

........

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

12 years agoMerged revisions 132713 via svnmerge from
Tilghman Lesher [Tue, 22 Jul 2008 21:53:40 +0000 (21:53 +0000)]
Merged revisions 132713 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r132713 | tilghman | 2008-07-22 16:19:39 -0500 (Tue, 22 Jul 2008) | 10 lines

Merged revisions 132711 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r132711 | tilghman | 2008-07-22 16:14:10 -0500 (Tue, 22 Jul 2008) | 2 lines

Fixes for AST-2008-010 and AST-2008-011

........

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

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

12 years agoGet chan_dahdi to compile in devmode
Mark Michelson [Tue, 22 Jul 2008 21:52:24 +0000 (21:52 +0000)]
Get chan_dahdi to compile in devmode

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

12 years agoMerged revisions 132712 via svnmerge from
Kevin P. Fleming [Tue, 22 Jul 2008 21:21:56 +0000 (21:21 +0000)]
Merged revisions 132712 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132712 | kpfleming | 2008-07-22 16:17:23 -0500 (Tue, 22 Jul 2008) | 6 lines

ensure that if any alarms exist at channel creation time, they are handled identically to if they occurred later, so that later alarm clearing will work properly and 'make sense'

(closes issue #12160)
Reported by: tzafrir

........

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

12 years agoMerged revisions 132704 via svnmerge from
Kevin P. Fleming [Tue, 22 Jul 2008 20:54:07 +0000 (20:54 +0000)]
Merged revisions 132704 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132704 | kpfleming | 2008-07-22 15:49:41 -0500 (Tue, 22 Jul 2008) | 2 lines

make AST_C_COMPILE_CHECK able to print a 'pretty' description of what it is doing

........

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

12 years agoMerged revisions 132645 via svnmerge from
Olle Johansson [Tue, 22 Jul 2008 20:46:11 +0000 (20:46 +0000)]
Merged revisions 132645 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132645 | oej | 2008-07-22 22:10:26 +0200 (Tis, 22 Jul 2008) | 9 lines

The most common question on the #asterisk iRC channel and on mailing lists
seems to be in regards to an error message when retransmit fails. This
is frequently misunderstood as a failure of Asterisk, not a failure of
the network to reach the other party.

This document tries to assist the Asterisk user in sorting out these
issues by explaining the logic and pointing at some possible
causes. Hopefully, we will get other questions now :-)

........

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

12 years agoMerged revisions 132641 via svnmerge from
Kevin P. Fleming [Tue, 22 Jul 2008 19:59:10 +0000 (19:59 +0000)]
Merged revisions 132641 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132641 | kpfleming | 2008-07-22 14:49:11 -0500 (Tue, 22 Jul 2008) | 2 lines

use renamed libpri API call for controlling this feature (was improperly named before)

........

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

12 years agoMerged revisions 132571 via svnmerge from
Kevin P. Fleming [Mon, 21 Jul 2008 22:51:16 +0000 (22:51 +0000)]
Merged revisions 132571 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132571 | kpfleming | 2008-07-21 17:45:16 -0500 (Mon, 21 Jul 2008) | 2 lines

teach chan_dahdi how to find the D-channel on BRI spans, and don't attempt to use channel 24 as a D-channel on spans of unexpected sizes

........

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

12 years agoAdd autocompletion to "iax2 set debug peer".
Brett Bryant [Mon, 21 Jul 2008 22:49:08 +0000 (22:49 +0000)]
Add autocompletion to "iax2 set debug peer".

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

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

12 years agoUpdate configuration files to add missing options for jingle, gtalk,
Brett Bryant [Mon, 21 Jul 2008 21:12:51 +0000 (21:12 +0000)]
Update configuration files to add missing options for jingle, gtalk,
manager.conf, and features.conf.

(closes issue #13128)
Reported by: caio1982
Patches:
      missing_options1.diff uploaded by caio1982 (license 22)

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

12 years ago(Step 2 of 2)
Tilghman Lesher [Mon, 21 Jul 2008 21:00:47 +0000 (21:00 +0000)]
(Step 2 of 2)

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

12 years agoOptionally build integer-based routines for FSK tone decoding (but default
Tilghman Lesher [Mon, 21 Jul 2008 20:59:03 +0000 (20:59 +0000)]
Optionally build integer-based routines for FSK tone decoding (but default
to the more accurate float-based routines).
(Closes issue #11679)
(Step 1 of 2)

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

12 years agoFix a bug where SENDTEXTSTATUS isn't set properly when it isn't
Brett Bryant [Mon, 21 Jul 2008 20:54:09 +0000 (20:54 +0000)]
Fix a bug where SENDTEXTSTATUS isn't set properly when it isn't
supported on a channel (yet _another_ useful patch by eliel).

(closes issue #13081)
Reported by: eliel
Patches:
      app_sendtext.c.patch uploaded by eliel (license 64)
Tested by: eliel

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

12 years agoAdd "iax2 set debug peer" command and remove deprecated iax2 debug
Brett Bryant [Mon, 21 Jul 2008 17:55:04 +0000 (17:55 +0000)]
Add "iax2 set debug peer" command and remove deprecated iax2 debug
commands that conflicted with adding new features to the newer debug
commaands.

(closes issue #13103)
Reported by: mvanbaak
Patches:
      2008071901__issue13103_iax2_set_debug_peer.diff uploaded by
mvanbaak (license 7)
Tested by: bbryant, mvanbaak

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

12 years agoFix bug where ast_parse_arg would inadvertantly enable sip tcp when parsing a tcpbind...
Brett Bryant [Mon, 21 Jul 2008 17:42:45 +0000 (17:42 +0000)]
Fix bug where ast_parse_arg would inadvertantly enable sip tcp when parsing a tcpbindaddr if it was disabled.

(closes issue #13117)
Reported by: pj

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

12 years agoFix an issue in iax2 where a call that's been rejected still kept an open channel...
Brett Bryant [Mon, 21 Jul 2008 17:22:02 +0000 (17:22 +0000)]
Fix an issue in iax2 where a call that's been rejected still kept an open channel on the side that attempted to make the call (not the side of the
call that rejected the call). Changes were load tested and also approved by Russell.

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

12 years agomake buffers config option (chan_dahdi.conf) parsing safer and added logging in case...
Jeff Peeler [Mon, 21 Jul 2008 15:33:13 +0000 (15:33 +0000)]
make buffers config option (chan_dahdi.conf) parsing safer and added logging in case of failure

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

12 years agoRemove libresample from the Asterisk source tree. It is now available in its
Russell Bryant [Mon, 21 Jul 2008 14:47:41 +0000 (14:47 +0000)]
Remove libresample from the Asterisk source tree.  It is now available in its
own repository, and must be installed like any other library for Asterisk to
use.  The two modules that require it are codec_resample and app_jack.

To install libresample:

$ svn co http://svn.digium.com/svn/libresample/trunk libresample
$ cd libresample
$ ./configure
$ make
$ sudo make install

This code is currently in our own repository because the build system did not
include the appropriate targets for building a dynamic library or for installing
the library.

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

12 years agoEnable higher quality resampling, as it doesn't have a noticeable performance
Russell Bryant [Mon, 21 Jul 2008 13:51:05 +0000 (13:51 +0000)]
Enable higher quality resampling, as it doesn't have a noticeable performance
impact on my machine ..

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

12 years agoMerged revisions 132311 via svnmerge from
Kevin P. Fleming [Sat, 19 Jul 2008 16:46:33 +0000 (16:46 +0000)]
Merged revisions 132311 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132311 | kpfleming | 2008-07-19 11:45:52 -0500 (Sat, 19 Jul 2008) | 2 lines

grant a license exception to allow distribution of Asterisk binaries that use the UW IMAP Toolkit (which is licensed under a non-GPL-compatible license)

........

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

12 years agofix a couple of comments in sqlite resource driver.
Michiel van Baak [Sat, 19 Jul 2008 10:46:12 +0000 (10:46 +0000)]
fix a couple of comments in sqlite resource driver.

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

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

12 years agoFixes problem where manager users loaded from users.conf would be
Brett Bryant [Fri, 18 Jul 2008 22:19:56 +0000 (22:19 +0000)]
Fixes problem where manager users loaded from users.conf would be
removed early (before the routine to load the configuration was
finished) because a variable wasn't initialized.

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

12 years agoRussell pointed out that using ast_strdupa() within a loop like this is
Tilghman Lesher [Fri, 18 Jul 2008 20:57:47 +0000 (20:57 +0000)]
Russell pointed out that using ast_strdupa() within a loop like this is
probably not a good idea, as we might run out of stack space.  Therefore,
changing this over to use the ast_str infrastructure for buffers is
probably a good idea.

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

12 years agoFix trunk devmode
Tilghman Lesher [Fri, 18 Jul 2008 20:41:02 +0000 (20:41 +0000)]
Fix trunk devmode

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

12 years ago updateconfig is not uri decoding variables,values from the GET url
Pari Nannapaneni [Fri, 18 Jul 2008 20:14:05 +0000 (20:14 +0000)]
 updateconfig is not uri decoding variables,values from the GET url

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

12 years agoMerged revisions 132112 via svnmerge from
Tilghman Lesher [Fri, 18 Jul 2008 19:09:39 +0000 (19:09 +0000)]
Merged revisions 132112 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132112 | tilghman | 2008-07-18 14:06:10 -0500 (Fri, 18 Jul 2008) | 6 lines

Fix for Taiwanese number syntax
(closes issue #12319)
 Reported by: CharlesWang
 Patches:
       saynumber-tw-1.4.18.1.patch uploaded by CharlesWang (license 444)

........

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

12 years agoMerged revisions 132107 via svnmerge from
Tilghman Lesher [Fri, 18 Jul 2008 18:50:37 +0000 (18:50 +0000)]
Merged revisions 132107 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132107 | tilghman | 2008-07-18 13:47:50 -0500 (Fri, 18 Jul 2008) | 6 lines

Textual clarification
(closes issue #13106)
 Reported by: flefoll
 Patches:
       config.c.br14.120173.patch-unknown-directive uploaded by flefoll (license 244)

........

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

12 years agoMake sure we break the poll so that messages queued will be sent on the SS7 when...
Matthew Fredrickson [Fri, 18 Jul 2008 18:50:00 +0000 (18:50 +0000)]
Make sure we break the poll so that messages queued will be sent on the SS7 when using CLI commands for blocking and blocking of CICs and linksets.

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

12 years agoFix magic Revision keywords in hashtab.c and change cdr_radius.c to use
Brett Bryant [Fri, 18 Jul 2008 17:55:41 +0000 (17:55 +0000)]
Fix magic Revision keywords in hashtab.c and change cdr_radius.c to use
the same keyword as the other files (patch by eliel).

(closes issue #13104)
Reported by: eliel
Patches:
      revision.patch uploaded by eliel (license 64)

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

12 years agoBlocked revisions 132042 via svnmerge
Tilghman Lesher [Fri, 18 Jul 2008 17:39:18 +0000 (17:39 +0000)]
Blocked revisions 132042 via svnmerge

........
r132042 | tilghman | 2008-07-18 12:33:42 -0500 (Fri, 18 Jul 2008) | 3 lines

Spinlock within the destroy, to allow a scheduled job to continue, if it's
waiting on the mutex which the destroy thread has.

........

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

12 years agoMerged revisions 131988 via svnmerge from
Tilghman Lesher [Fri, 18 Jul 2008 17:10:34 +0000 (17:10 +0000)]
Merged revisions 131988 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131988 | tilghman | 2008-07-18 12:10:01 -0500 (Fri, 18 Jul 2008) | 2 lines

Oops

........

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

12 years agoMerged revisions 131985 via svnmerge from
Tilghman Lesher [Fri, 18 Jul 2008 16:48:18 +0000 (16:48 +0000)]
Merged revisions 131985 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131985 | tilghman | 2008-07-18 11:46:23 -0500 (Fri, 18 Jul 2008) | 2 lines

Preserve ABI compatibility with last change

........

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

12 years agoMerged revisions 131970 via svnmerge from
Tilghman Lesher [Fri, 18 Jul 2008 16:33:56 +0000 (16:33 +0000)]
Merged revisions 131970 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131970 | tilghman | 2008-07-18 11:30:31 -0500 (Fri, 18 Jul 2008) | 2 lines

Make the ast_assert call within ast_sched_del report something useful.

........

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

12 years agoMerged revisions 131921 via svnmerge from
Kevin P. Fleming [Fri, 18 Jul 2008 16:16:12 +0000 (16:16 +0000)]
Merged revisions 131921 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131921 | kpfleming | 2008-07-18 11:15:41 -0500 (Fri, 18 Jul 2008) | 2 lines

remove the dlfcn compatibility stuff, because no platforms that Asterisk currently runs on it use it, and it doesn't build anyway

........

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

12 years agoMerged revisions 131915 via svnmerge from
Brett Bryant [Fri, 18 Jul 2008 15:38:22 +0000 (15:38 +0000)]
Merged revisions 131915 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131915 | bbryant | 2008-07-18 10:34:42 -0500 (Fri, 18 Jul 2008) | 4 lines

Fix a bug in blind transfers where the BLINDTRANSFER variable isn't always set to the other end of the blind transfer.

(closes issue #12586)

........

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

12 years agoAdd configuration option to chan_dahdi.conf to allow buffering policy and number...
Jeff Peeler [Thu, 17 Jul 2008 22:40:00 +0000 (22:40 +0000)]
Add configuration option to chan_dahdi.conf to allow buffering policy and number of buffers to be configured per channel. Syntax:

buffers=<num of buffers>,<policy>

Where the number of buffers is some non-negative integer and the policy is either "full", "half", or "immediate".

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

12 years agoDocument that the duration of dtmf may be passed to
Mark Michelson [Thu, 17 Jul 2008 21:26:41 +0000 (21:26 +0000)]
Document that the duration of dtmf may be passed to
the SendDTMF application. Also correct the default
pause between digits.

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

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

12 years agoMerged revisions 131790 via svnmerge from
Tilghman Lesher [Thu, 17 Jul 2008 20:37:14 +0000 (20:37 +0000)]
Merged revisions 131790 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131790 | tilghman | 2008-07-17 15:35:44 -0500 (Thu, 17 Jul 2008) | 7 lines

Revert part of issue #5620 (revision 6965) as it appears that it was in error.
This should fix talk call progress on analog lines.
(closes issue #12178)
 Reported by: michael-fig
 Patches:
       20080717__bug12178.diff.txt uploaded by Corydon76 (license 14)

........

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

12 years agoFix memory leaks
Tilghman Lesher [Thu, 17 Jul 2008 18:36:34 +0000 (18:36 +0000)]
Fix memory leaks
(closes issue #13099)
 Reported by: gknispel_proformatique
 Patches:
       res_config_sqlite_leak_on_error.patch uploaded by gknispel (license 261)

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

12 years agoFix a memory leak in register_group_feature when attempting to register
Brett Bryant [Thu, 17 Jul 2008 18:14:42 +0000 (18:14 +0000)]
Fix a memory leak in register_group_feature when attempting to register
a feature without specifying a group or feature to register.

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

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

12 years agoFix memory leak.
Tilghman Lesher [Thu, 17 Jul 2008 15:45:25 +0000 (15:45 +0000)]
Fix memory leak.
(Closes issue #13096)
Reported by gknispel_proformatique

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

12 years agoInstead of attempting to pass through AST_EVENT_DEVICE_STATE, use DEVICE_STATE_CHANGE
Russell Bryant [Thu, 17 Jul 2008 14:46:29 +0000 (14:46 +0000)]
Instead of attempting to pass through AST_EVENT_DEVICE_STATE, use DEVICE_STATE_CHANGE
instead.  DEVICE_STATE is a state change on one server, and DEVICE_STATE_CHANGE is
the "real" state of that device across all servers sharing state.  This would have
only been a problem with distributed device state.

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

12 years agoChange several 'core' commands to be 'dialplan' commands (with appropriate
Tilghman Lesher [Thu, 17 Jul 2008 14:00:27 +0000 (14:00 +0000)]
Change several 'core' commands to be 'dialplan' commands (with appropriate
deprecation, of course)
(closes issue #13016)
 Reported by: caio1982
 Patches:
       dialplan_globals6.diff uploaded by caio1982 (license 22)

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

12 years ago(closes issue #13089)
Steve Murphy [Wed, 16 Jul 2008 23:53:02 +0000 (23:53 +0000)]
(closes issue #13089)
Reported by: murf

Most of this bug was already fixed by Tilghman before
I opened it; Many thanks to Tilghman for his fix
in svn version 125794. That fix cleared up some of the
fields in the lock_info.

This commit changes the address that is stored for the
lock in the lock_info struct, so that it is the same
as that passed into the locking macros. This makes
searching for a lock_info (as in log_show_lock())
by its lock addr possible. The lock_addr field is
infinitely more useful if it is the same as what
is 'publicly' available outside the lock_info code.

Many thanks to kpfleming, putnopvut, and Russell for their
invaluable insights earlier today.

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

12 years agoJanitor project: convert free to ast_free
Brett Bryant [Wed, 16 Jul 2008 22:28:01 +0000 (22:28 +0000)]
Janitor project: convert free to ast_free

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

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

12 years agoMerged revisions 131491 via svnmerge from
Brett Bryant [Wed, 16 Jul 2008 22:17:36 +0000 (22:17 +0000)]
Merged revisions 131491 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r131491 | bbryant | 2008-07-16 17:17:07 -0500 (Wed, 16 Jul 2008) | 6 lines

Fix a bug in iax2 registration that allowed peers to register with
case-insensitive names (user_cmp_cb and peer_cmp_cb are now both
case-sensitive).

(closes issue #13091)

........

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

12 years agoFixes sysinfo operator issue also fixed elsewhere in r131445.
Brett Bryant [Wed, 16 Jul 2008 21:54:08 +0000 (21:54 +0000)]
Fixes sysinfo operator issue also fixed elsewhere in r131445.

(issue #13057)

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

12 years agoBlocked revisions 131480 via svnmerge
Tilghman Lesher [Wed, 16 Jul 2008 21:50:08 +0000 (21:50 +0000)]
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/trunk@131482 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoFixes an issue with "core show sysinfo" that used the wrong operator to
Brett Bryant [Wed, 16 Jul 2008 21:24:18 +0000 (21:24 +0000)]
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/trunk@131445 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 131421 via svnmerge from
Russell Bryant [Wed, 16 Jul 2008 20:48:27 +0000 (20:48 +0000)]
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/trunk@131422 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 131369 via svnmerge from
Mark Michelson [Wed, 16 Jul 2008 20:24:12 +0000 (20:24 +0000)]
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/trunk@131375 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoDon't try to dereference the dbfile pointer if
Mark Michelson [Wed, 16 Jul 2008 19:57:02 +0000 (19:57 +0000)]
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/trunk@131361 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 131357 via svnmerge from
Mark Michelson [Wed, 16 Jul 2008 19:37:42 +0000 (19:37 +0000)]
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/trunk@131358 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 131299 via svnmerge from
Mark Michelson [Wed, 16 Jul 2008 18:59:27 +0000 (18:59 +0000)]
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/trunk@131300 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 131242 via svnmerge from
Steve Murphy [Wed, 16 Jul 2008 17:59:33 +0000 (17:59 +0000)]
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/trunk@131243 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd missing terminator to ast_event_subscribe to fix a crash.
Russell Bryant [Wed, 16 Jul 2008 15:08:22 +0000 (15:08 +0000)]
Add missing terminator to ast_event_subscribe to fix a crash.
(from rev 131206 in the 1.6.0 branch)

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

12 years agoFix rotate strategy
Tilghman Lesher [Wed, 16 Jul 2008 00:52:48 +0000 (00:52 +0000)]
Fix rotate strategy
(Closes issue #13086)

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

12 years ago(closes issue #12960)
Steve Murphy [Tue, 15 Jul 2008 23:36:19 +0000 (23:36 +0000)]
(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/trunk@131129 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoFix a couple of places in res_agi where the agi_commands lock would not be
Russell Bryant [Tue, 15 Jul 2008 18:46:40 +0000 (18:46 +0000)]
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/trunk@131072 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 130959 via svnmerge from
Tilghman Lesher [Tue, 15 Jul 2008 18:25:34 +0000 (18:25 +0000)]
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/trunk@131044 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoFix memory leak in app_queue when a device state is changed but it isn't
Brett Bryant [Tue, 15 Jul 2008 18:14:02 +0000 (18:14 +0000)]
Fix memory leak in app_queue when a device state is changed but it isn't
a member of any queue.

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

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

12 years agoMerged revisions 131012 via svnmerge from
Michiel van Baak [Tue, 15 Jul 2008 17:49:48 +0000 (17:49 +0000)]
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/trunk@131013 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdditional option for videosupport (always) that disables the optimization to
Tilghman Lesher [Tue, 15 Jul 2008 16:20:35 +0000 (16:20 +0000)]
Additional option for videosupport (always) that disables the optimization to
fail to setup video RTP if the two endpoints will not support it.  This assists
with call files and certain transfers to ensure that if two video phones are
ever connected, they will always share a video feed.

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

12 years agoMerged revisions 130889 via svnmerge from
Tilghman Lesher [Mon, 14 Jul 2008 23:59:54 +0000 (23:59 +0000)]
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/trunk@130890 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoFix a memory leak in the case that /dev/null cannot be
Mark Michelson [Mon, 14 Jul 2008 22:22:57 +0000 (22:22 +0000)]
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/trunk@130854 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 130792 via svnmerge from
Mark Michelson [Mon, 14 Jul 2008 17:54:11 +0000 (17:54 +0000)]
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/trunk@130794 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 130735 via svnmerge from
Michiel van Baak [Mon, 14 Jul 2008 17:21:18 +0000 (17:21 +0000)]
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/trunk@130744 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agofree memory used by the x11 grabber when closing it.
Luigi Rizzo [Mon, 14 Jul 2008 16:50:54 +0000 (16:50 +0000)]
free memory used by the x11 grabber when closing it.

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

12 years agouse ast_pthread_create_detached_background() instead of redoing
Luigi Rizzo [Mon, 14 Jul 2008 16:50:24 +0000 (16:50 +0000)]
use ast_pthread_create_detached_background() instead of redoing
it with separate calls

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

12 years agoSwap "static" and "const", so that "static" appears at the beginning of each
Tilghman Lesher [Mon, 14 Jul 2008 15:44:07 +0000 (15:44 +0000)]
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/trunk@130697 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 130634 via svnmerge from
Russell Bryant [Mon, 14 Jul 2008 10:39:23 +0000 (10:39 +0000)]
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/trunk@130635 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMake all sed calls Posix sed compatible.
Michiel van Baak [Sun, 13 Jul 2008 23:14:03 +0000 (23:14 +0000)]
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/trunk@130578 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoConvert chan_skinny's open-coded linked lists to the list macros
Michiel van Baak [Sun, 13 Jul 2008 22:59:35 +0000 (22:59 +0000)]
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/trunk@130576 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 130573 via svnmerge from
Michiel van Baak [Sun, 13 Jul 2008 22:50:31 +0000 (22:50 +0000)]
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/trunk@130574 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 130514 via svnmerge from
Tilghman Lesher [Sun, 13 Jul 2008 17:58:47 +0000 (17:58 +0000)]
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/trunk@130515 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agorestore ASTERISKVERSION marker to asterisk.tex.
Michiel van Baak [Sun, 13 Jul 2008 14:58:40 +0000 (14:58 +0000)]
restore ASTERISKVERSION marker to asterisk.tex.
This got lost in commit 97634

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

12 years agoUnlock list before returning
Tilghman Lesher [Sun, 13 Jul 2008 02:34:32 +0000 (02:34 +0000)]
Unlock list before returning

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

12 years agoBlocked revisions 130373 via svnmerge
Michiel van Baak [Sat, 12 Jul 2008 10:26:55 +0000 (10:26 +0000)]
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/trunk@130374 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agonot needed here
Kevin P. Fleming [Fri, 11 Jul 2008 22:23:55 +0000 (22:23 +0000)]
not needed here

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