asterisk/asterisk.git
11 years agoMake format_vorbis_ogg compile on OpenBSD
Michiel van Baak [Tue, 7 Oct 2008 20:15:27 +0000 (20:15 +0000)]
Make format_vorbis_ogg compile on OpenBSD

(closes issue #13639)
Reported by: mvanbaak
Patches:
      2008100700_oggsupportOBSD.diff.txt uploaded by mvanbaak (license 7)
      2008100700_oggsupportOBSD-configurescript.diff.txt uploaded by mvanbaak (license 7)
Tested by: mvanbaak

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

11 years agomake this work on OpenBSD
Michiel van Baak [Tue, 7 Oct 2008 19:26:09 +0000 (19:26 +0000)]
make this work on OpenBSD

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

11 years agoMake sure the configs on OpenBSD are in /etc/asterisk by default
Michiel van Baak [Tue, 7 Oct 2008 18:53:34 +0000 (18:53 +0000)]
Make sure the configs on OpenBSD are in /etc/asterisk by default

(closes issue #13641)
Reported by: jtodd

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

11 years agouse pkill instead of killall to be more portable
Michiel van Baak [Tue, 7 Oct 2008 18:00:48 +0000 (18:00 +0000)]
use pkill instead of killall to be more portable

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

11 years agoThis was flawed. The issue that I was trying to address was addressed by
Sean Bright [Tue, 7 Oct 2008 18:00:14 +0000 (18:00 +0000)]
This was flawed.  The issue that I was trying to address was addressed by
adding the imapsecret alias for imappassword.  Will rethink this one and
give it another shot on a rainy day TBD.

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

11 years agofix wording as pointed out by Corydon
Michiel van Baak [Tue, 7 Oct 2008 17:49:23 +0000 (17:49 +0000)]
fix wording as pointed out by Corydon

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

11 years agoAllow people to select the old console behavior of white text on a black
Tilghman Lesher [Tue, 7 Oct 2008 17:44:32 +0000 (17:44 +0000)]
Allow people to select the old console behavior of white text on a black
background, by using the startup flag '-B'.

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

11 years agoMerged revisions 147193 via svnmerge from
Sean Bright [Tue, 7 Oct 2008 16:52:02 +0000 (16:52 +0000)]
Merged revisions 147193 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r147193 | seanbright | 2008-10-07 12:48:30 -0400 (Tue, 07 Oct 2008) | 2 lines

Make 'imapsecret' an alias to 'imappassword' in voicemail.conf.

........

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

11 years agoOr not.
Sean Bright [Tue, 7 Oct 2008 16:44:00 +0000 (16:44 +0000)]
Or not.

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

11 years agoThere was a boo-boo in TFOT that is causing some confusion on the mailing lists
Sean Bright [Tue, 7 Oct 2008 16:40:24 +0000 (16:40 +0000)]
There was a boo-boo in TFOT that is causing some confusion on the mailing lists
so include 'imapsecret' as an alias to 'imappassword' (and print a little notice
nudging users toward the right option name).

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

11 years agoExplicitly setting these fields to NULL was done because I wasn't sure if they would...
Jeff Peeler [Tue, 7 Oct 2008 16:04:45 +0000 (16:04 +0000)]
Explicitly setting these fields to NULL was done because I wasn't sure if they would be NULL otherwise. Since they will be set automatically, removing.

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

11 years agoIf we encounter something in mailbox options that we don't grok, then
Sean Bright [Tue, 7 Oct 2008 14:59:33 +0000 (14:59 +0000)]
If we encounter something in mailbox options that we don't grok, then
spit out a warning instead of just silently ignoring it.

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

11 years agoMake sure to compare the correct number of characters when special-casing
Sean Bright [Tue, 7 Oct 2008 12:01:36 +0000 (12:01 +0000)]
Make sure to compare the correct number of characters when special-casing
our DAHDI operator mode stuff.  Technically, it would work fine, as 'DAH'
is currently unique amongst our channel technologies, but as Jared points
out:

  <@jsmith> Sure... as long as the technology starts whith DAH.... but
            it could be DAHDOO!

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

11 years agoIndependent change from branch issue8824 that is not part of COLP. (-r142574 rmudgett)
Richard Mudgett [Tue, 7 Oct 2008 02:02:39 +0000 (02:02 +0000)]
Independent change from branch issue8824 that is not part of COLP. (-r142574 rmudgett)

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

11 years agoA blind transfer to the parking thread would cause a segfault because copy_request...
Terry Wilson [Tue, 7 Oct 2008 00:02:19 +0000 (00:02 +0000)]
A blind transfer to the parking thread would cause a segfault because copy_request accesses dst->data w/o being able to tell whether it is proerly initialized

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

11 years agoUpdate documentation; AST_THREADSTORAGE() in trunk only takes a single
Tilghman Lesher [Mon, 6 Oct 2008 23:21:02 +0000 (23:21 +0000)]
Update documentation; AST_THREADSTORAGE() in trunk only takes a single
argument.

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

11 years agoAll ODBC parts can now use either unixodbc or iodbc.
Michiel van Baak [Mon, 6 Oct 2008 23:14:33 +0000 (23:14 +0000)]
All ODBC parts can now use either unixodbc or iodbc.
This allows for the ODBC parts to work on OpenBSD as well.

99.99% of the work is done by seanbright (bow, bow) and I actually
did nothing but test and yell at him that it still didn't work :)

Thanks for helping out !

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

11 years agoSimilar to r143204, masquerade the channel in the case of Park being called from...
Jeff Peeler [Mon, 6 Oct 2008 23:08:21 +0000 (23:08 +0000)]
Similar to r143204, masquerade the channel in the case of Park being called from AGI.

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

11 years agoMvanbaak said this was needed to compile on OpenBSD, so put it in the OpenBSD section.
Jeff Peeler [Mon, 6 Oct 2008 22:59:58 +0000 (22:59 +0000)]
Mvanbaak said this was needed to compile on OpenBSD, so put it in the OpenBSD section.

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

11 years agoThis commit squashes together three commits because the wrong approach was originally...
Jeff Peeler [Mon, 6 Oct 2008 22:26:25 +0000 (22:26 +0000)]
This commit squashes together three commits because the wrong approach was originally used. (One of the commits was only one line.)

1) r143204:
The main change here was to masquerade the channel if the channel that was to be parked was running a PBX on it. The PBX thread can then maintain full control of the channel (the zombie) as it expects to while allowing the parking thread full control of the real (parked) channel.

2) r143270:
Changed park_call_full to hold the parkinglot lock a little longer, which protects the parkeduser struct from being freed out from underneath. Made sure that the parking extension is added to the parking context while holding the lock thereby ensuring that there are no spurious warnings from removal attempts when a hangup occurs while the parking lot is being announced.

3) r143475: (the one liner)
compare peer and chan instead of looking at the parked user (pu), which could have possibly already have been freed by the parking thread

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

11 years agofix some comment placement
Jeff Peeler [Mon, 6 Oct 2008 22:08:40 +0000 (22:08 +0000)]
fix some comment placement

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

11 years agoExplicitly set args in park_call_exec NULL so in the case of no options being passed...
Jeff Peeler [Mon, 6 Oct 2008 22:03:01 +0000 (22:03 +0000)]
Explicitly set args in park_call_exec NULL so in the case of no options being passed in, there
 is no garbage attempted to be used. Also, do not set args to unknown value again if there are
 no options passed in.

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

11 years agomake aescrypt.c compile on OpenBSD again
Michiel van Baak [Mon, 6 Oct 2008 21:18:13 +0000 (21:18 +0000)]
make aescrypt.c compile on OpenBSD again

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

11 years agoMerged revisions 146799 via svnmerge from
Tilghman Lesher [Mon, 6 Oct 2008 21:09:05 +0000 (21:09 +0000)]
Merged revisions 146799 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r146799 | tilghman | 2008-10-06 15:52:04 -0500 (Mon, 06 Oct 2008) | 8 lines

  Dialplan functions should not actually return 0, unless they have modified the
  workspace.  To signal an error (and no change to the workspace), -1 should be
  returned instead.
  (closes issue #13340)
   Reported by: kryptolus
   Patches:
         20080827__bug13340__2.diff.txt uploaded by Corydon76 (license 14)
........

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

11 years agoPretty-print a couple configure options
Sean Bright [Mon, 6 Oct 2008 17:32:02 +0000 (17:32 +0000)]
Pretty-print a couple configure options

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

11 years agoMerged revisions 146711 via svnmerge from
Tilghman Lesher [Mon, 6 Oct 2008 16:52:14 +0000 (16:52 +0000)]
Merged revisions 146711 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r146711 | tilghman | 2008-10-06 11:51:21 -0500 (Mon, 06 Oct 2008) | 9 lines

  Check whether an extension exists in the _call method, rather than the _alloc
  method, because we need to evaluate the callerid (since that data affects
  whether an extension exists).
  (closes issue #13343)
   Reported by: efutch
   Patches:
         20080915__bug13343.diff.txt uploaded by Corydon76 (license 14)
   Tested by: efutch
........

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

11 years agoMerged revisions 146643 via svnmerge from
Kevin P. Fleming [Mon, 6 Oct 2008 16:03:37 +0000 (16:03 +0000)]
Merged revisions 146643 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r146643 | kpfleming | 2008-10-06 10:57:49 -0500 (Mon, 06 Oct 2008) | 8 lines

  ensure that the private structure for pseudo channels is created without 'leaking' configuration data from other configured channels

  (closes issue #13555)
  Reported by: jeffg
  Patches:
        issue_13555.patch uploaded by kpfleming (license 421)
  Tested by: jeffg
........

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

11 years agoThis commit introduces a change to how the "joinempty"
Mark Michelson [Mon, 6 Oct 2008 15:29:56 +0000 (15:29 +0000)]
This commit introduces a change to how the "joinempty"
and "leavewhenempty" options are configured in queues.conf.

Instead of using vague terms like "yes," "no," "loose," and
"strict," we now accept a comma-separated list of values
to determine when to consider a member available.

Extended details can be found in the queues.conf.sample
file. Note also that the above four referenced values are
still accepted for backwards-compatibility, but are mapped
internally to the new method of representing the option.

AST-105

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

11 years agoMake NOISY_BUILD work for the calls to cp in utils/Makefile
Sean Bright [Mon, 6 Oct 2008 00:36:37 +0000 (00:36 +0000)]
Make NOISY_BUILD work for the calls to cp in utils/Makefile

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

11 years agoQuote arguments to cp so we can handle spaces in our paths.
Sean Bright [Mon, 6 Oct 2008 00:21:49 +0000 (00:21 +0000)]
Quote arguments to cp so we can handle spaces in our paths.

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

11 years agoMake this build on my mac.
Russell Bryant [Sun, 5 Oct 2008 22:11:30 +0000 (22:11 +0000)]
Make this build on my mac.

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

11 years agoRecorded merge of revisions 146448 via svnmerge from
Jason Parker [Sun, 5 Oct 2008 21:21:03 +0000 (21:21 +0000)]
Recorded merge of revisions 146448 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r146448 | qwell | 2008-10-05 16:17:44 -0500 (Sun, 05 Oct 2008) | 1 line

  Fix silly formatting.
........

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

11 years agoThis is far from optimal, but I just found a FreeBSD system without
Sean Bright [Sun, 5 Oct 2008 01:59:14 +0000 (01:59 +0000)]
This is far from optimal, but I just found a FreeBSD system without
md5 installed on it.  So look around for all of the different binaries
that we could possibly use.  I'd wager this gets completely replaced
by someone else in less than 24 hours... :)

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

11 years agoFix a bug with the last item in CLI history getting duplicated when
Sean Bright [Sat, 4 Oct 2008 16:20:31 +0000 (16:20 +0000)]
Fix a bug with the last item in CLI history getting duplicated when
read from the .asterisk_history file (and subsequently being duplicated
when written).  We weren't checking the result of fgets() which meant
that we read the same line twice before feof() actually returned non-
zero.

Also, stop writing out an extra blank line between each item in the
history file, fix a minor off-by-one error, and use symbolic constants
rather than a hardcoded integer.

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

11 years agoAdd ability to remotely reboot snom phones. Also cleaned up and
Sean Bright [Sat, 4 Oct 2008 01:54:44 +0000 (01:54 +0000)]
Add ability to remotely reboot snom phones.  Also cleaned up and
reorganized sip_notify.conf.sample a bit as well.  Tested snom
reboot on snom 360 and verified snom-check-cfg worked as well.

(closes issue #13601)
Reported by: mjc
Tested by: seanbright

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

11 years agoBlocked revisions 146244 via svnmerge
Sean Bright [Fri, 3 Oct 2008 22:54:57 +0000 (22:54 +0000)]
Blocked revisions 146244 via svnmerge

........
r146244 | seanbright | 2008-10-03 18:51:22 -0400 (Fri, 03 Oct 2008) | 6 lines

Change some preprocessor macros to struct definitions so that we get
app_rpt to build with DAHDI.

(closes issue #13576)
Reported by: blitzrage

........

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

11 years agoremove superfluous reference counting operations in manage_parkinglot since ao2_inter...
Jeff Peeler [Fri, 3 Oct 2008 22:40:59 +0000 (22:40 +0000)]
remove superfluous reference counting operations in manage_parkinglot since ao2_interator_next increments the ref count automatically

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

11 years agoResolve a subtle bug where we would never successfully be able to get
Sean Bright [Fri, 3 Oct 2008 22:10:18 +0000 (22:10 +0000)]
Resolve a subtle bug where we would never successfully be able to get
the first item in the CLI entry list.  This was preventing '!' from
showing up in either 'help' or in tab completion.

(closes issue #13578)
Reported by: mvanbaak

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

11 years agoBlocked revisions 146129 via svnmerge
Jeff Peeler [Fri, 3 Oct 2008 20:49:17 +0000 (20:49 +0000)]
Blocked revisions 146129 via svnmerge

........
r146129 | jpeeler | 2008-10-03 15:44:22 -0500 (Fri, 03 Oct 2008) | 7 lines

(closes issue #13425)
Reported by: mdu113
Tested by: mdu113

Similar to r143204, masquerade the channel in the case of Park being called from AGI.

........

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

11 years agodocument meetme schedule changes (related to issue #11040)
Tilghman Lesher [Fri, 3 Oct 2008 18:30:39 +0000 (18:30 +0000)]
document meetme schedule changes (related to issue #11040)

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

11 years agoput a note in CHANGES about the cli_cleanup done during AstriDevCon
Michiel van Baak [Fri, 3 Oct 2008 17:36:30 +0000 (17:36 +0000)]
put a note in CHANGES about the cli_cleanup done during AstriDevCon

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

11 years agoThe dialing API should inherit datastores as well as variables
Terry Wilson [Fri, 3 Oct 2008 17:35:37 +0000 (17:35 +0000)]
The dialing API should inherit datastores as well as variables

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

11 years agoThe 'P' command for ExternalIVR was also added in 1.6.0
Russell Bryant [Thu, 2 Oct 2008 19:30:45 +0000 (19:30 +0000)]
The 'P' command for ExternalIVR was also added in 1.6.0

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

11 years agoTCP support for ExternalIVR went in to 1.6.1, not 1.6.0
Russell Bryant [Thu, 2 Oct 2008 19:27:37 +0000 (19:27 +0000)]
TCP support for ExternalIVR went in to 1.6.1, not 1.6.0

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

11 years agofix the 'meetme list', 'meetme list concise', 'meetme list $confno' and 'meetme list...
Michiel van Baak [Thu, 2 Oct 2008 18:02:26 +0000 (18:02 +0000)]
fix the 'meetme list', 'meetme list concise', 'meetme list $confno' and 'meetme list $confno concise' CLI commands

(closes issue #13586)
Reported by: john8675309
Help and feedback from eliel, thanks!

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

11 years agoPermit the syntax and synopsis fields to be set (for func_odbc).
Tilghman Lesher [Thu, 2 Oct 2008 17:16:54 +0000 (17:16 +0000)]
Permit the syntax and synopsis fields to be set (for func_odbc).

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

11 years agomake this compile under devmode again
Michiel van Baak [Thu, 2 Oct 2008 16:42:30 +0000 (16:42 +0000)]
make this compile under devmode again

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

11 years agoBlocked revisions 145839 via svnmerge
Tilghman Lesher [Thu, 2 Oct 2008 16:40:32 +0000 (16:40 +0000)]
Blocked revisions 145839 via svnmerge

........
  r145839 | tilghman | 2008-10-02 11:39:56 -0500 (Thu, 02 Oct 2008) | 4 lines

  Backport support for some of the keyword modifications used in 1.6 (while warning that
  some options aren't really supported) and add some warning messages.  Some credit to
  oej, who was complaining in #asterisk-dev.
........

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

11 years agoThis is much cleaner, methinks.
Sean Bright [Thu, 2 Oct 2008 15:28:48 +0000 (15:28 +0000)]
This is much cleaner, methinks.

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

11 years agoMerged revisions 145751 via svnmerge from
Tilghman Lesher [Thu, 2 Oct 2008 15:17:16 +0000 (15:17 +0000)]
Merged revisions 145751 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r145751 | tilghman | 2008-10-02 10:13:21 -0500 (Thu, 02 Oct 2008) | 3 lines

  Some sanity checks that may have led to prior crashes, found by codefreeze-lap
  (murf) on IRC.  Also some cleanup of incorrectly-used constants.
........

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

11 years agoTry a test compile using the GMime library. Some distros install gmime-config
Sean Bright [Wed, 1 Oct 2008 23:48:16 +0000 (23:48 +0000)]
Try a test compile using the GMime library.  Some distros install gmime-config
in the base package instead of the -devel package.  Now we print a notice and
disable GMime support instead of bombing during the main compilation.

(closes issue #13583)
Reported by: arkadia

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

11 years agoAdd schedule extensions to app_meetme. In addition, the reporter found a
Tilghman Lesher [Wed, 1 Oct 2008 23:02:25 +0000 (23:02 +0000)]
Add schedule extensions to app_meetme.  In addition, the reporter found a
problem within strptime(3), which we are correcting here with ast_strptime().
(closes issue #11040)
 Reported by: DEA
 Patches:
       20080910__bug11040.diff.txt uploaded by Corydon76 (license 14)
 Tested by: DEA

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

11 years agoOkay, this should really do it now. While I did manage
Mark Michelson [Wed, 1 Oct 2008 22:23:50 +0000 (22:23 +0000)]
Okay, this should really do it now. While I did manage
to fix blind transfers with my last commit here, I also
caused an unwanted side-effect. That is, only the first
priority of the 'h' extension would be executed when
a blind transfer occurred instead of all priorities.

Essentially, my last commit corrected the return value
of ast_bridge_call. However, the implementation still
was not 100% correct. Now it is.

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

11 years agoif (!(x) == 0) is the same as
Mark Michelson [Wed, 1 Oct 2008 21:33:11 +0000 (21:33 +0000)]
if (!(x) == 0) is the same as
if (x).

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

11 years agoThe logic surrounding the return value of ast_spawn_extension
Mark Michelson [Wed, 1 Oct 2008 21:06:26 +0000 (21:06 +0000)]
The logic surrounding the return value of ast_spawn_extension
within ast_bridge_call was reversed.

This problem was observed when a blind transfer placed from
the callee channel of a test call failed.

While the problem I am solving here is exactly the same
as what was reported in issue #13584, the difference is
that this fix I am applying is trunk-only. Issue #13584
was reported against the 1.4 branch, and my tests
of 1.4's blind transfers appear to work fine.

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

11 years agoMerged revisions 145479 via svnmerge from
Leif Madsen [Wed, 1 Oct 2008 17:26:20 +0000 (17:26 +0000)]
Merged revisions 145479 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r145479 | lmadsen | 2008-10-01 13:18:30 -0400 (Wed, 01 Oct 2008) | 6 lines

  Update the realtime_pgsql.sql script to create the setinterfacevar column.

  (closes issue #13549)
  Reported by: fiddur
........

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

11 years agoInitializing buffer prevents a segfault when arguments are incomplete.
Tilghman Lesher [Wed, 1 Oct 2008 15:44:06 +0000 (15:44 +0000)]
Initializing buffer prevents a segfault when arguments are incomplete.
(closes issue #13471)
 Reported by: alecdavis
 Patches:
       20080916__bug13471.diff.txt uploaded by Corydon76 (license 14)
 Tested by: alecdavis

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

11 years agoToo many times have I mistyped the word
Mark Michelson [Wed, 1 Oct 2008 14:44:12 +0000 (14:44 +0000)]
Too many times have I mistyped the word
'install' as 'isntall'

Now this typo shall no longer be a problem since
'make isntall' just builds the 'install' target.

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

11 years agotabs to spaces
Russell Bryant [Wed, 1 Oct 2008 12:29:18 +0000 (12:29 +0000)]
tabs to spaces

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

11 years ago(closes issue #13337)
Jeff Peeler [Tue, 30 Sep 2008 22:21:19 +0000 (22:21 +0000)]
(closes issue #13337)
Reported by: pj
Tested by: pj

Set transport to SIP_TRANSPORT_UDP mode if not specified which fixes calls to get_transport returning UNKNOWN.

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

11 years agoAdd support for call pickup on Snom phones. Asterisk now includes a magic
Russell Bryant [Tue, 30 Sep 2008 21:32:53 +0000 (21:32 +0000)]
Add support for call pickup on Snom phones.  Asterisk now includes a magic
call-id in the dialog-info event package used with extension state subscriptions
on Snom phones.  Then, when the phone sends an INVITE with Replaces for the
special callid, Asterisk will perform a pickup on the extension that was
subscribed to.

The original code on this issue was submitted by xylome.  However, contributions
have been made by (at least) mgernoth and pkempgen.  The final patch was written
by seanbright, and includes the necessary logic to allow this work in a
technology independent way.

(closes issue #5014)
Reported by: xylome
Patches:
      issue5014-trunk.diff uploaded by seanbright (license 71)

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

11 years ago* Miscellaneous formatting changes to make v1.4 and trunk
Richard Mudgett [Tue, 30 Sep 2008 21:00:54 +0000 (21:00 +0000)]
*  Miscellaneous formatting changes to make v1.4 and trunk
more merge compatible in the mISDN area.

channels/chan_misdn.c
*  Eliminated redundant code in cb_events() EVENT_SETUP

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

11 years agoMerge the cli_cleanup branch.
Michiel van Baak [Sun, 28 Sep 2008 23:32:14 +0000 (23:32 +0000)]
Merge the cli_cleanup branch.

This work is done by lmadsen, junky and mvanbaak
during AstriDevCon.

This is the second audit the CLI got, and
this time lmadsen made sure he had _ALL_ modules
loaded that have CLI commands in them.

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

11 years agoChange several improper "sizeof" to "strlen", as sizeof in that context would
Tilghman Lesher [Sun, 28 Sep 2008 21:39:07 +0000 (21:39 +0000)]
Change several improper "sizeof" to "strlen", as sizeof in that context would
incorrectly use the size of a pointer, rather than the length of a string.
(Closes issue #13574)

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

11 years agorename chandup() and clarify its usage
Kevin P. Fleming [Sun, 28 Sep 2008 17:08:12 +0000 (17:08 +0000)]
rename chandup() and clarify its usage

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

11 years agoremove incorrect comment
Kevin P. Fleming [Sat, 27 Sep 2008 16:17:43 +0000 (16:17 +0000)]
remove incorrect comment

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

11 years agofix bugs caused by r144949 when MALLOC_DEBUG is defined
Kevin P. Fleming [Sat, 27 Sep 2008 16:10:33 +0000 (16:10 +0000)]
fix bugs caused by r144949 when MALLOC_DEBUG is defined

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

11 years agoMerged revisions 144924-144925 via svnmerge from
Kevin P. Fleming [Sat, 27 Sep 2008 15:52:56 +0000 (15:52 +0000)]
Merged revisions 144924-144925 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r144924 | kpfleming | 2008-09-27 10:00:48 -0500 (Sat, 27 Sep 2008) | 6 lines

  improve header inclusion process in a few small ways:

    - it is no longer necessary to forcibly include asterisk/autoconfig.h; every module already includes asterisk.h as its first header (even before system headers), which serves the same purpose
    - astmm.h is now included by asterisk.h when needed, instead of being forced by the Makefile; this means external modules will build properly against installed headers with MALLOC_DEBUG enabled
    - simplify the usage of some of these headers in the AEL-related stuff in the utils directory
........
  r144925 | kpfleming | 2008-09-27 10:13:30 -0500 (Sat, 27 Sep 2008) | 2 lines

  fix some minor issues with rev 144924
........

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

11 years agofix a couple of CLI commands that did not have a help description.
Michiel van Baak [Sat, 27 Sep 2008 00:49:24 +0000 (00:49 +0000)]
fix a couple of CLI commands that did not have a help description.

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

11 years agoUpdate documentation to include default setting. This is for you jtodd!
Joshua Colp [Fri, 26 Sep 2008 23:12:13 +0000 (23:12 +0000)]
Update documentation to include default setting. This is for you jtodd!

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

11 years agoBlocked revisions 144758 via svnmerge
Mark Michelson [Fri, 26 Sep 2008 22:15:40 +0000 (22:15 +0000)]
Blocked revisions 144758 via svnmerge

........
r144758 | mmichelson | 2008-09-26 17:14:59 -0500 (Fri, 26 Sep 2008) | 7 lines

This patch was applied to 1.4 but it completely
does not apply since the "found" pointer is not
passed in to this function. If this is going to
be backported, it needs to be done differently or
a deeper backport needs to be done.

........

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

11 years ago(closes issue #13564)
Steve Murphy [Fri, 26 Sep 2008 18:02:06 +0000 (18:02 +0000)]
(closes issue #13564)
Reported by: mnicholson
Patches:
      pbx_lua9.diff uploaded by mnicholson (license 96)

Many thanks to Matt for his upgrade to the lua dialplan
option!

the Description from the bug:

This patch adds a stack trace to errors encountered while executing lua extensions. The patch also handles out of memory errors reported by lua.

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

11 years agoMerged revisions 144677 via svnmerge from
Steve Murphy [Fri, 26 Sep 2008 17:50:35 +0000 (17:50 +0000)]
Merged revisions 144677 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r144677 | murf | 2008-09-26 11:47:13 -0600 (Fri, 26 Sep 2008) | 12 lines

(closes issue #13563)
Reported by: mnicholson
Patches:
      found1.diff uploaded by mnicholson (license 96)

This patch was mainly meant to apply to trunk and 1.6.x,
but I'm applying it to 1.4 also, which should be a perfectly
harmless fix to the vast majority of users who are not using
external switches, but the few who might be affected
will not have to go to the pain of filing a bug report.

........

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

11 years agoMatt suggests we remove utils/build-extensions-conf.lua, as per bug 12961, it is...
Steve Murphy [Fri, 26 Sep 2008 16:51:30 +0000 (16:51 +0000)]
Matt suggests we remove utils/build-extensions-conf.lua, as per bug 12961, it is no longer necessary.

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

11 years ago(closes issue #13557)
Steve Murphy [Thu, 25 Sep 2008 22:21:28 +0000 (22:21 +0000)]
(closes issue #13557)
Reported by: nickpeirson

The user attached a patch, but the license is not yet
recorded. I took the liberty of finding and replacing
ALL index() calls with strchr() calls, and that
involves more than just main/pbx.c;

chan_oss, app_playback, func_cut also had calls
to index(), and I changed them out. 1.4 had no
references to index() at all.

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

11 years ago(closes issue #13559)
Steve Murphy [Thu, 25 Sep 2008 21:54:11 +0000 (21:54 +0000)]
(closes issue #13559)
Reported by: mnicholson
Patches:
      pbx_lua8.diff uploaded by mnicholson (license 96)

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

11 years agoI added a little verbage to hashtab for the hashtab_destroy func.
Steve Murphy [Thu, 25 Sep 2008 21:18:12 +0000 (21:18 +0000)]
I added a little verbage to hashtab for the hashtab_destroy func.
It was pretty sparsely documented.

This update fleshes out the pbx_lua module, to
add the switch statements to the extensions in the
extensions.lua file, as well as removing them when
the module is unloaded.

Many thanks to Matt Nicholson for his fine
contribution!

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

11 years ago(closes issue #13558)
Steve Murphy [Thu, 25 Sep 2008 17:51:11 +0000 (17:51 +0000)]
(closes issue #13558)
Reported by: mnicholson

Considering that the example extensions.lua used nothing but ["12345"] notation,
and that the resulting error message:

[Sep 24 17:01:16] ERROR[12393]: pbx_lua.c:1204 exec: Error executing lua extension: attempt to call a nil value

is not very informative as to the nature of the problem, I think this bug
fix is a big win!

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

11 years agoBlocked revisions 144420 via svnmerge
Steve Murphy [Thu, 25 Sep 2008 16:21:54 +0000 (16:21 +0000)]
Blocked revisions 144420 via svnmerge

I am pushing this up to trunk and beyond, because I am not
certain that this bug will happen in the same way in
trunk and 1.6.x. If someone can document this problem
in 1.6.x or trunk, I can revert this block and push the
change up.

........
r144420 | murf | 2008-09-25 10:12:14 -0600 (Thu, 25 Sep 2008) | 25 lines

(closes issue #12101)
Reported by: MVF
Tested by: neutrino88, urzedo, murf, thiagofernandes

Many thanks to neutrino88 for this patch, which
solves a problem whereby channels get a CANCEL
request, respond to it properly, but end up
in a hung state, infinitely being rescheduled.
This fix is a bit crude, in that catches the
problem at a rather late phase, but it may
prevent infinite rescheduling problems that
might still arise.

It might have been better to find out why,
in the course of protocol handling, the channel
was not destroyed, but we leave that to
future generations.

Many thanks to urzedo and thiagofernandes for
their work in verifying that the patch code
indeed is being executing, and averting the
problem.

........

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

11 years agoRecorded merge of revisions 144356 via svnmerge from
Tilghman Lesher [Thu, 25 Sep 2008 01:46:13 +0000 (01:46 +0000)]
Recorded merge of revisions 144356 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r144356 | tilghman | 2008-09-24 20:44:47 -0500 (Wed, 24 Sep 2008) | 6 lines

  Backport Hebrew language to voicemail.
  (closes issue #13155)
   Reported by: greenfieldtech
   Patches:
         voicemail-hebrew-patch-1.4-SVN.c.patch uploaded by greenfieldtech (license 369)
........

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

11 years agoBlanch the 404 error message for those with no sense of humor
Doug Bailey [Wed, 24 Sep 2008 22:05:44 +0000 (22:05 +0000)]
Blanch the 404 error message for those with no sense of humor

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

11 years agoMerged revisions 144238 via svnmerge from
Christian Richter [Wed, 24 Sep 2008 08:42:55 +0000 (08:42 +0000)]
Merged revisions 144238 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r144238 | crichter | 2008-09-24 10:20:52 +0200 (Mi, 24 Sep 2008) | 1 line

improved helptext of misdn_set_opt.
........

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

11 years agoCreate a 'hashcompat' option that permits the results of a CURL() able to be
Tilghman Lesher [Wed, 24 Sep 2008 06:43:05 +0000 (06:43 +0000)]
Create a 'hashcompat' option that permits the results of a CURL() able to be
passed directly into the HASH() function.  Requested via the -users list, and
committed at Astricon in the Code Zone.

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

11 years agoFix a conflict in flag values
Mark Michelson [Tue, 23 Sep 2008 23:33:33 +0000 (23:33 +0000)]
Fix a conflict in flag values

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

11 years agoMerged revisions 144066 via svnmerge from
Steve Murphy [Tue, 23 Sep 2008 16:52:32 +0000 (16:52 +0000)]
Merged revisions 144066 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r144066 | murf | 2008-09-23 10:41:49 -0600 (Tue, 23 Sep 2008) | 29 lines

(closes issue #13489)
Reported by: DougUDI
Tested by: murf

(closes issue #13490)
Reported by: seanbright
Tested by: murf

(closes issue #13467)
Reported by: edantie
Tested by: murf, edantie, DougUDI

This crash happens because we are unsafely handling old pointers.
The channel whose cdr is being handled, has been hung up and
destroyed already. I reorganized the code a bit, and tried not
to lose the fork-cdr-chain concepts of the previous code.
I now verify that the 'previous' channel (the channel we
had when the bridge was started), still exists, by looking it up
by name in the channel list. I also do not try to reset the
CDR's of channels involved in bridges.

Testing shows it solves the crash problem, and should not
negatively impact previous fixes involving CDR's generated
during/after blind transfers. (The reason we need to reset
the CDR's on the "beginning" channels in the first place).

........

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

11 years agoWhen a promiscuous redirect contained both a user and
Mark Michelson [Tue, 23 Sep 2008 15:37:00 +0000 (15:37 +0000)]
When a promiscuous redirect contained both a user and
host portion in the Contact URI and specifies a
transport, the parsing done in parse_moved_contact
resulted in a malformed URI.

This commit fixes the parsing so that a proper
Dial string may be formed when the forwarded
call is placed.

(closes issue #13523)
Reported by: mattdarnell
Patches:
      13523v2.patch uploaded by putnopvut (license 60)
Tested by: mattdarnell

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

11 years agoBlocked revisions 143964 via svnmerge
Steve Murphy [Tue, 23 Sep 2008 14:26:32 +0000 (14:26 +0000)]
Blocked revisions 143964 via svnmerge

........
r143964 | murf | 2008-09-23 08:22:10 -0600 (Tue, 23 Sep 2008) | 21 lines

In at least one machine, we noted that the timestr
was not getting set in the STMT; it was coming out,
usually, as binary garbage to an mssql server.
These changes fixed the problem. The only thing
I can venture forth as a guess, is that the pointer
is being stored in the interface, not a copy of the
string. Because we ripped the build process into a
subroutine, the timestr became a temp. stack variable,
and between the time the STMT got built and the
time it was executed on the server, the string being
pointed to was damaged. At any rate, even if this
theory is false, and some mechanism was at fault,
this fix worked reliably where it didn't before.

Why this bug didn't bite last week, I have no idea.
This change basically defines the timestr buffer
in the calling function, extending the life of the
buffer to cover both the STMT's building and
processing to the server.

I AM BLOCKING THIS FIX FROM TRUNK, because we
tested out a trunk release, and it is working
fine.
........

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

11 years agoMerged revisions 143903 via svnmerge from
Sean Bright [Mon, 22 Sep 2008 22:50:07 +0000 (22:50 +0000)]
Merged revisions 143903 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r143903 | seanbright | 2008-09-22 18:49:00 -0400 (Mon, 22 Sep 2008) | 8 lines

Use the advertised header size in .au files instead of just assuming they
are 24 bytes (the minimum).

(closes issue #13450)
Reported by: jamessan
Patches:
      pcm-header.diff uploaded by jamessan (license 246)

........

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

11 years agofix privacymanager example so it shows how to use the
Michiel van Baak [Sun, 21 Sep 2008 09:53:01 +0000 (09:53 +0000)]
fix privacymanager example so it shows how to use the
PRIVACYMRGSTATUS variable

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

11 years agodocument the new context argument for privacymanager
Michiel van Baak [Sun, 21 Sep 2008 09:31:54 +0000 (09:31 +0000)]
document the new context argument for privacymanager
so people can do pattern matching on the input

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

11 years agofix privacy documentation. We no longer do priority jumping +101
Michiel van Baak [Sun, 21 Sep 2008 09:27:08 +0000 (09:27 +0000)]
fix privacy documentation. We no longer do priority jumping +101

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

11 years agomake 'module unload chan_skinny.so' actually work.
Michiel van Baak [Sat, 20 Sep 2008 10:39:20 +0000 (10:39 +0000)]
make 'module unload chan_skinny.so' actually work.

(closes issue #13524)
Reported by: wedhorn
Patches:
      unload.diff uploaded by wedhorn (license 30)
  With small tweak by me to prevent a crash

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

11 years agoMerged revisions 143736 via svnmerge from
Sean Bright [Sat, 20 Sep 2008 00:52:20 +0000 (00:52 +0000)]
Merged revisions 143736 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r143736 | seanbright | 2008-09-19 20:50:10 -0400 (Fri, 19 Sep 2008) | 9 lines

Make vmail.cgi work with mailboxes defined in users.conf, too.

(closes issue #13187)
Reported by: netvoice
Patches:
      20080911__bug13187.diff.txt uploaded by Corydon76 (license 14)
      (Slightly modified to take alchamist's comments on mantis into account)
Tested by: msales, alchamist, seanbright

........

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

11 years agoThis blocks 143674 from trunk; it appears to already done in trunk, since ast_odbc_di...
Steve Murphy [Fri, 19 Sep 2008 21:41:39 +0000 (21:41 +0000)]
This blocks 143674 from trunk; it appears to already done in trunk, since ast_odbc_direct_execute creates a new stmt for each attempt.

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

11 years agoWe should only unsubscribe to the device state event
Mark Michelson [Fri, 19 Sep 2008 15:43:28 +0000 (15:43 +0000)]
We should only unsubscribe to the device state event
subscription if we have previously subscribed. Otherwise
a segfault will occur.

(closes issue #13476)
Reported by: jonnt
Patches:
      13476.patch uploaded by putnopvut (license 60)
Tested by: jonnt

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

11 years agoMerged revisions 143534 via svnmerge from
Steve Murphy [Thu, 18 Sep 2008 23:41:33 +0000 (23:41 +0000)]
Merged revisions 143534 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r143534 | murf | 2008-09-18 16:11:51 -0600 (Thu, 18 Sep 2008) | 1 line

A micro-fix, in sip_park_thread, where d is freed before the func is done using it.
........

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

11 years agoBlocked revisions 143475 via svnmerge
Jeff Peeler [Thu, 18 Sep 2008 21:02:02 +0000 (21:02 +0000)]
Blocked revisions 143475 via svnmerge

........
r143475 | jpeeler | 2008-09-18 16:01:23 -0500 (Thu, 18 Sep 2008) | 1 line

compare peer and chan instead of looking at the parked user (pu), which could have possibly already have been freed by the parking thread
........

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

11 years agoMerged revisions 143404 via svnmerge from
Tilghman Lesher [Wed, 17 Sep 2008 20:57:58 +0000 (20:57 +0000)]
Merged revisions 143404 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r143404 | tilghman | 2008-09-17 15:55:47 -0500 (Wed, 17 Sep 2008) | 6 lines

  When callerid is blank, we want to use "unknown caller" in those cases, too.
  (closes issue #13486)
   Reported by: tomo1657
   Patches:
         20080917__bug13486.diff.txt uploaded by Corydon76 (license 14)
........

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

11 years agoIf attempting to free a NULL pointer when MALLOC_DEBUG
Mark Michelson [Wed, 17 Sep 2008 20:25:40 +0000 (20:25 +0000)]
If attempting to free a NULL pointer when MALLOC_DEBUG
is set, don't bother searching for a region to free, just
immediately exit.

This has the dual benefit of suppressing a warning message
about freeing memory at (nil) and of optimizing the free()
replacement by not having to do any futile searching for
the proper region to free.

(closes issue #13498)
Reported by: pj
Patches:
      13498.patch uploaded by putnopvut (license 60)
Tested by: pj

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

11 years agoMerged revisions 143337 via svnmerge from
Mark Michelson [Wed, 17 Sep 2008 18:26:35 +0000 (18:26 +0000)]
Merged revisions 143337 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r143337 | mmichelson | 2008-09-17 13:24:15 -0500 (Wed, 17 Sep 2008) | 6 lines

Allow for "G.729" if offered in an SDP even though
it is not RFC 3551 compliant. Some Cisco switches
will send this in an SDP, and it doesn't hurt to
be able to accept this.

........

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