asterisk/asterisk.git
11 years agoMerged revisions 115341 via svnmerge from
Joshua Colp [Tue, 6 May 2008 13:55:44 +0000 (13:55 +0000)]
Merged revisions 115341 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115341 | file | 2008-05-06 10:54:15 -0300 (Tue, 06 May 2008) | 2 lines

Add in missing argument.

........

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

11 years agoMerge refcounting of res_odbc
Tilghman Lesher [Mon, 5 May 2008 23:38:15 +0000 (23:38 +0000)]
Merge refcounting of res_odbc

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

11 years agoMerged revisions 115333 via svnmerge from
Tilghman Lesher [Mon, 5 May 2008 23:00:31 +0000 (23:00 +0000)]
Merged revisions 115333 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115333 | tilghman | 2008-05-05 17:50:31 -0500 (Mon, 05 May 2008) | 7 lines

Separate verbose output from CLI output, by using a preamble.
(closes issue #12402)
 Reported by: Corydon76
 Patches:
       20080410__no_verbose_in_rx_output.diff.txt uploaded by Corydon76 (license 14)
       20080501__no_verbose_in_rx_output__1.4.diff.txt uploaded by Corydon76 (license 14)

........

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

11 years ago#execing the same file multiple times led to warning messages saying that the same...
Mark Michelson [Mon, 5 May 2008 22:14:06 +0000 (22:14 +0000)]
#execing the same file multiple times led to warning messages saying that the same file was
being #included twice. This was due to the fact that #exec created a temporary file which
was then #included. The name of the temporary file was the name of the #exec'd file, with
the Unix timestamp and thread ID concatenated. The issue was that if multiple #exec statements
of the same file were reached in the same second, then the result was that the temporary files
would have duplicate names. To resolve this, the temporary file now has microsecond resolution
for the timestamp portion.

(closes issue #12574)
Reported by: jmls
Patches:
      12574.patch uploaded by putnopvut (license 60)
Tested by: jmls, putnopvut

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

11 years agoMerged revisions 115327 via svnmerge from
Joshua Colp [Mon, 5 May 2008 22:13:57 +0000 (22:13 +0000)]
Merged revisions 115327 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115327 | file | 2008-05-05 19:10:05 -0300 (Mon, 05 May 2008) | 2 lines

Make sure that either the main speex library contains preprocess functions or that speexdsp does. If both fail then speex stuff can not be built.

........

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

11 years agoSimplify code by using a taskprocessor for dispatching events in the Asterisk core.
Russell Bryant [Mon, 5 May 2008 22:01:56 +0000 (22:01 +0000)]
Simplify code by using a taskprocessor for dispatching events in the Asterisk core.

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

11 years agoMerged revisions 115320 via svnmerge from
Mark Michelson [Mon, 5 May 2008 21:43:21 +0000 (21:43 +0000)]
Merged revisions 115320 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115320 | mmichelson | 2008-05-05 16:41:34 -0500 (Mon, 05 May 2008) | 13 lines

Don't consider a caller "handled" until the caller is bridged with
a queue member. There was too much of an opportunity for the member
to hang up (either during a delay, announcement, or overly long
agi) between the time that he answered the phone and the time when
he actually was bridged with the caller. The consequence of this
was that if the member hung up in that interval, then proper
abandonment details would not be noted in the queue log if the caller
were to hang up at any point after the member hangup.

(closes issue #12561)
Reported by: ablackthorn

........

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

11 years agoRemove my rant, since I have now replaced the rant with code.
Russell Bryant [Mon, 5 May 2008 20:28:17 +0000 (20:28 +0000)]
Remove my rant, since I have now replaced the rant with code.

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

11 years agoMerged revisions 115312 via svnmerge from
Tilghman Lesher [Mon, 5 May 2008 20:22:08 +0000 (20:22 +0000)]
Merged revisions 115312 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115312 | tilghman | 2008-05-05 15:17:55 -0500 (Mon, 05 May 2008) | 2 lines

Reverse order, such that user configs override default selections

........

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

11 years agoMerged revisions 115308 via svnmerge from
Tilghman Lesher [Mon, 5 May 2008 19:57:28 +0000 (19:57 +0000)]
Merged revisions 115308 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115308 | tilghman | 2008-05-05 14:55:55 -0500 (Mon, 05 May 2008) | 2 lines

Err, the documentation on the return value of ast_odbc_backslash_is_escape is exactly backwards.

........

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

11 years agoMerged revisions 115304 via svnmerge from
Russell Bryant [Mon, 5 May 2008 19:50:24 +0000 (19:50 +0000)]
Merged revisions 115304 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115304 | russell | 2008-05-05 14:49:25 -0500 (Mon, 05 May 2008) | 5 lines

Avoid putting opaque="" in Digest authentication.  This patch came from switchvox.
It fixes authentication with Primus in Canada, and has been in use for a very long
time without causing problems with any other providers.
(closes issue AST-36)

........

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

11 years agoNote change for ExecIf syntax (caught by jmls on IRC)
Tilghman Lesher [Mon, 5 May 2008 19:42:36 +0000 (19:42 +0000)]
Note change for ExecIf syntax (caught by jmls on IRC)

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

11 years agoOptionally display the value of several variables within the Status command.
Tilghman Lesher [Mon, 5 May 2008 19:33:14 +0000 (19:33 +0000)]
Optionally display the value of several variables within the Status command.
(Closes issue AST-34)

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

11 years agoDocument the 'B' option of app_chanspy.
Joshua Colp [Mon, 5 May 2008 13:52:44 +0000 (13:52 +0000)]
Document the 'B' option of app_chanspy.
(closes issue #12582)
Reported by: IgorG
Patches:
      app_chanspy_B_option.diff uploaded by IgorG (license 20)

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

11 years agoclarify wording
Kevin P. Fleming [Mon, 5 May 2008 10:55:09 +0000 (10:55 +0000)]
clarify wording

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

11 years agoMerged revisions 115285 via svnmerge from
Tilghman Lesher [Mon, 5 May 2008 03:25:35 +0000 (03:25 +0000)]
Merged revisions 115285 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115285 | tilghman | 2008-05-04 22:22:25 -0500 (Sun, 04 May 2008) | 7 lines

When starting Asterisk, bug out if Asterisk is already running.
(closes issue #12525)
 Reported by: explidous
 Patches:
       20080428__bug12525.diff.txt uploaded by Corydon76 (license 14)
 Tested by: mvanbaak

........

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

11 years agoMerged revisions 115282 via svnmerge from
Joshua Colp [Sun, 4 May 2008 02:11:01 +0000 (02:11 +0000)]
Merged revisions 115282 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115282 | file | 2008-05-03 23:09:44 -0300 (Sat, 03 May 2008) | 2 lines

Expand the test function for GCC attributes so that more complex attributes are properly recognized.

........

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

11 years agoMerged revisions 115279 via svnmerge from
Joshua Colp [Sun, 4 May 2008 01:52:00 +0000 (01:52 +0000)]
Merged revisions 115279 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115279 | file | 2008-05-03 22:50:59 -0300 (Sat, 03 May 2008) | 2 lines

For my next trick I will make these work with what our autoconf header file gives us.

........

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

11 years agoMerged revisions 115276 via svnmerge from
Joshua Colp [Sun, 4 May 2008 01:45:21 +0000 (01:45 +0000)]
Merged revisions 115276 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115276 | file | 2008-05-03 22:43:26 -0300 (Sat, 03 May 2008) | 2 lines

Treat warnings as errors when checking if a GCC attribute exists. We have to do this as GCC will just ignore the attribute and pop up a warning, it won't actually fail to compile.

........

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

11 years agoapp_voicemail uses a taskprocessor for mwi notification subscriptions
Dwayne M. Hubbard [Sat, 3 May 2008 04:23:18 +0000 (04:23 +0000)]
app_voicemail uses a taskprocessor for mwi notification subscriptions

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

11 years agopbx uses a taskprocessor for device state changes
Dwayne M. Hubbard [Sat, 3 May 2008 04:12:54 +0000 (04:12 +0000)]
pbx uses a taskprocessor for device state changes

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

11 years agoapp_queue uses a taskprocessor for device state changes
Dwayne M. Hubbard [Sat, 3 May 2008 03:57:42 +0000 (03:57 +0000)]
app_queue uses a taskprocessor for device state changes

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

11 years agoA taskprocessor is an object that has a name, a task queue, and an event processing...
Dwayne M. Hubbard [Sat, 3 May 2008 03:40:32 +0000 (03:40 +0000)]
A taskprocessor is an object that has a name, a task queue, and an event processing thread.  Modules reference a taskprocessor, push tasks into the taskprocessor as needed, and unreference the taskprocessor when the taskprocessor is no longer needed.

A task wraps a callback function pointer and a data pointer and is managed internal to the taskprocessor subsystem.  The callback function is responsible for releasing task data.

Taskprocessor API
 * ast_taskprocessor_get(..) - returns a reference to a taskprocessor
 * ast_taskprocessor_unreference(..) - releases reference to a taskprocessor
 * ast_taskprocessor_push(..) - push a task into a taskprocessor queue

Check doxygen for more details

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

11 years agoBlocked revisions 115257 via svnmerge
Brett Bryant [Fri, 2 May 2008 20:26:00 +0000 (20:26 +0000)]
Blocked revisions 115257 via svnmerge

........
r115257 | bbryant | 2008-05-02 15:25:42 -0500 (Fri, 02 May 2008) | 2 lines

Add new "pri show version" command to show the libpri version for support reasons.

........

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

11 years agoMake res/snmp/agent.c build
Mark Michelson [Fri, 2 May 2008 14:51:59 +0000 (14:51 +0000)]
Make res/snmp/agent.c build

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

11 years agoMerged revisions 115196 via svnmerge from
Mark Michelson [Fri, 2 May 2008 14:28:55 +0000 (14:28 +0000)]
Merged revisions 115196 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115196 | mmichelson | 2008-05-02 09:28:19 -0500 (Fri, 02 May 2008) | 6 lines

Clarify a comment that was, well, just wrong. It turns out that
ignoring the way that macros expand. Instead, I have clarified in the
comment why the macro will work even if the scheduler id for the
task to be deleted changes during the execution of the macro.

........

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

11 years agoOkay, maybe FreeBSD will like this better.
Tilghman Lesher [Fri, 2 May 2008 02:56:39 +0000 (02:56 +0000)]
Okay, maybe FreeBSD will like this better.

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

11 years agoAdd attributes to various API calls, to help track down bugs (and remove a deprecated...
Tilghman Lesher [Fri, 2 May 2008 02:33:04 +0000 (02:33 +0000)]
Add attributes to various API calls, to help track down bugs (and remove a deprecated function)

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

11 years agoMerged revisions 115102 via svnmerge from
Tilghman Lesher [Thu, 1 May 2008 23:21:13 +0000 (23:21 +0000)]
Merged revisions 115102 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115102 | tilghman | 2008-05-01 18:20:25 -0500 (Thu, 01 May 2008) | 2 lines

Change the comment of deprecated to an actual compiler deprecation

........

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

11 years agoAdd two new console commands "pri show version" and "ss7 show version" that will...
Brett Bryant [Thu, 1 May 2008 23:09:08 +0000 (23:09 +0000)]
Add two new console commands "pri show version" and "ss7 show version" that will show the version of each library respectively.

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

11 years agoModify TIMEOUT() to be accurate down to the millisecond.
Tilghman Lesher [Thu, 1 May 2008 23:06:23 +0000 (23:06 +0000)]
Modify TIMEOUT() to be accurate down to the millisecond.
(closes issue #10540)
 Reported by: spendergrass
 Patches:
       20080417__bug10540.diff.txt uploaded by Corydon76 (license 14)
 Tested by: blitzrage

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

11 years agoMerge changes from team/russell/smdi-msg-searching
Russell Bryant [Thu, 1 May 2008 19:05:36 +0000 (19:05 +0000)]
Merge changes from team/russell/smdi-msg-searching

This commit adds some new features to the SMDI_MSG_RETRIEVE() dialplan function.
Previously, this function only allowed searching by the forwarding station.
I have added some options to allow you to also search for messages in the queue
by the message desk terminal ID, as well as the message desk number.

This originally came up as a suggestion on the asterisk-dev mailing list.

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

11 years agoMerged revisions 115017 via svnmerge from
Tilghman Lesher [Thu, 1 May 2008 19:00:18 +0000 (19:00 +0000)]
Merged revisions 115017 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115017 | tilghman | 2008-05-01 13:59:08 -0500 (Thu, 01 May 2008) | 6 lines

'#' is another reserved character for URIs that also needs to be escaped.
(closes issue #10543)
 Reported by: blitzrage
 Patches:
       20080418__bug10543.diff.txt uploaded by Corydon76 (license 14)

........

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

11 years agoAdd "read" capability to new libspeex functions in func_speex.c.
Brett Bryant [Thu, 1 May 2008 18:28:38 +0000 (18:28 +0000)]
Add "read" capability to new libspeex functions in func_speex.c.

func_speex.c is based on contributions from Switchvox.

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

11 years agoClarify the deprecation notice about Macro() to note that it will not be removed
Russell Bryant [Thu, 1 May 2008 17:28:25 +0000 (17:28 +0000)]
Clarify the deprecation notice about Macro() to note that it will not be removed
for the sake of backwards compatibility, since it is a non-trivial task to convert
existing large dialplans that depend on Macro() to use GoSub(), instead.

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

11 years agoAdd two new dialplan functions from libspeex for applying audio gain control
Brett Bryant [Thu, 1 May 2008 16:57:19 +0000 (16:57 +0000)]
Add two new dialplan functions from libspeex for applying audio gain control
and denoising to a channel, AGC() and DENOISE(). Also included, is a change
to the audiohook API to add a new function (ast_audiohook_remove) that can
remove an audiohook from a channel before it is detached.

This code is based on a contribution from Switchvox.

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

11 years agoAllow dringXrange to properly default to 10, as was done in 1.4.
Jason Parker [Thu, 1 May 2008 16:49:24 +0000 (16:49 +0000)]
Allow dringXrange to properly default to 10, as was done in 1.4.

dringXrange is a new feature that was added, and it attempted to default, but only when the option was specified.

(closes issue #12536)
Reported by: bjm
Patches:
      12536-dringXrange.diff uploaded by qwell (license 4)
Tested by: bjm

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

11 years agoAdd support for specifying the registration expiry on a per registration basis in...
Joshua Colp [Wed, 30 Apr 2008 20:51:17 +0000 (20:51 +0000)]
Add support for specifying the registration expiry on a per registration basis in the register line. This comes from a Switchvox patch. (issue AST-24)

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

11 years agoAdding new configuration options to app_queue. This adds two new values
Mark Michelson [Wed, 30 Apr 2008 19:30:41 +0000 (19:30 +0000)]
Adding new configuration options to app_queue. This adds two new values
to announce-position, "limit" and "more," as well as a new option,
announce-position-limit. For more information on the use of these options,
see CHANGES or configs/queues.conf.sample.

(closes issue #10991)
Reported by: slavon
Patches:
      app_q.diff uploaded by slavon (license 288)
Tested by: slavon, putnopvut

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

11 years agoLock around variables retrieved, and copy the values, if they stay persistent,
Tilghman Lesher [Wed, 30 Apr 2008 19:21:04 +0000 (19:21 +0000)]
Lock around variables retrieved, and copy the values, if they stay persistent,
since another thread could remove them.
(closes issue #12541)
 Reported by: snuffy
 Patches:
       bug_12156_apps.diff uploaded by snuffy (license 35)
       Several additional changes by me

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

11 years agoMerged revisions 114890 via svnmerge from
Olle Johansson [Wed, 30 Apr 2008 16:55:49 +0000 (16:55 +0000)]
Merged revisions 114890 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114890 | oej | 2008-04-30 18:23:17 +0200 (Ons, 30 Apr 2008) | 7 lines

Don't crash on bad SIP replys.
Fix created in Huntsville together with Mark M (putnopvut)

(closes issue #12363)
Reported by: jvandal
Tested by: putnopvut, oej

........

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

11 years agoMerged revisions 114891 via svnmerge from
Russell Bryant [Wed, 30 Apr 2008 16:34:24 +0000 (16:34 +0000)]
Merged revisions 114891 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114891 | russell | 2008-04-30 11:30:01 -0500 (Wed, 30 Apr 2008) | 28 lines

Merge changes from team/russell/iax2_find_callno and iax2_find_callno_1.4

These changes address a critical performance issue introduced in the latest
release.  The fix for the latest security issue included a change that made
Asterisk randomly choose call numbers to make them more difficult to guess by
attackers.  However, due to some inefficient (this is by far, an understatement)
code, when Asterisk chose high call numbers, chan_iax2 became unusable after
just a small number of calls.  On a small embedded platform, it would not be
able to handle a single call.  On my Intel Core 2 Duo @ 2.33 GHz, I couldn't
run more than about 16 IAX2 channels.  Ouch.

These changes address some performance issues of the find_callno() function
that have bothered me for a very long time.  On every incoming media frame,
it iterated through every possible call number trying to find a matching
active call.  This involved a mutex lock and unlock for each call number
checked.  So, if the random call number chosen was 20000, then every media
frame would cause 20000 locks and unlocks.  Previously, this problem was
not as obvious since Asterisk always chose the lowest call number it could.

A second container for IAX2 pvt structs has been added.  It is an astobj2
hash table.  When we know the remote side's call number, the pvt goes into
the hash table with a hash value of the remote side's call number.  Then,
lookups for incoming media frames are a very fast hash lookup instead of an
absolutely insane array traversal.

In a quick test, I was able to get more than 3600% more IAX2 channels
on my machine with these changes.

........

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

11 years agoFixes a bug where if a stream monitor thread was not created (caused from failure...
Jeff Peeler [Wed, 30 Apr 2008 16:14:43 +0000 (16:14 +0000)]
Fixes a bug where if a stream monitor thread was not created (caused from failure of opening or starting the stream) pthread_cancel was called with an invalid thread ID.

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

11 years agoMerged revisions 114880 via svnmerge from
Kevin P. Fleming [Wed, 30 Apr 2008 14:49:51 +0000 (14:49 +0000)]
Merged revisions 114880 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114880 | kpfleming | 2008-04-30 09:46:57 -0500 (Wed, 30 Apr 2008) | 2 lines

use the ARRAY_LEN macro for indexing through the iaxs/iaxsl arrays so that the size of the arrays can be adjusted in one place, and change the size of the arrays from 32768 calls to 2048 calls when LOW_MEMORY is defined

........

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

11 years agoMerged revisions 114875 via svnmerge from
Kevin P. Fleming [Wed, 30 Apr 2008 12:15:43 +0000 (12:15 +0000)]
Merged revisions 114875 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114875 | kpfleming | 2008-04-30 07:14:07 -0500 (Wed, 30 Apr 2008) | 2 lines

pay attention to *all* header files for dependency tracking, not just the local ones (inspired by r578 of asterisk-addons by tilghman)

........

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

11 years agoDocument the Incomplete application addition.
Tilghman Lesher [Wed, 30 Apr 2008 05:05:25 +0000 (05:05 +0000)]
Document the Incomplete application addition.

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

11 years agoFixes a problem where all the templates were marked as dead no matter what. The templ...
Jeff Peeler [Tue, 29 Apr 2008 22:54:14 +0000 (22:54 +0000)]
Fixes a problem where all the templates were marked as dead no matter what. The templates should only be marked as dead if a configuration file has been successfully loaded and has changes. Bug found while making API documentation for 1.6.0.

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

11 years agoPatching app_chanspy to jibe better with what is documented. This allows for
Mark Michelson [Tue, 29 Apr 2008 21:07:36 +0000 (21:07 +0000)]
Patching app_chanspy to jibe better with what is documented. This allows for
a colon-delimited list of spygroups to be specified when calling the ChanSpy application
with the 'g' option. Prior to this, you could only specify a single group when using the
'g' option.

I also have upped the maximum number of spygroups to 128 and added a #define so that this
can be easily increased or decreased later.

(closes issue #12497)
Reported by: jsmith
Patches:
      app_chanspy_multiple_groups_v2.patch uploaded by jsmith (license 15)
Tested by: atis, jvandal

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

11 years agoFix formatting
Jason Parker [Tue, 29 Apr 2008 20:05:48 +0000 (20:05 +0000)]
Fix formatting

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

11 years agoMerged revisions 114848 via svnmerge from
Mark Michelson [Tue, 29 Apr 2008 19:42:04 +0000 (19:42 +0000)]
Merged revisions 114848 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114848 | mmichelson | 2008-04-29 14:40:06 -0500 (Tue, 29 Apr 2008) | 14 lines

Use the MACRO_CONTEXT and MACRO_EXTEN channel variables instead of the channel's macrocontext
and macroexten fields. This is needed because if macros are daisy-chained, the incorrect
context and extension are placed on the new channel. I also added locking to the channel prior
to accessing these variables as noted in trunk's janitor project file.

(closes issue #12549)
Reported by: darren1713
Patches:
      app_queue.c.macroextenpatch uploaded by darren1713 (license 116)
       (with modifications from me)
Tested by: putnopvut

........

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

11 years agofix this logic to actually be correct... the fd can't be *both* -1 and an array index...
Kevin P. Fleming [Tue, 29 Apr 2008 18:58:48 +0000 (18:58 +0000)]
fix this logic to actually be correct... the fd can't be *both* -1 and an array index to be checked in rfds/efds (bug found by gcc-4.3)

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

11 years agoMake app_directory dependent on app_voicemail. This is because the function
Mark Michelson [Tue, 29 Apr 2008 18:48:26 +0000 (18:48 +0000)]
Make app_directory dependent on app_voicemail. This is because the function
which says the person's name is handled inside app_voicemail now.

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

11 years agoSince there is now a globally available function for saying someone's name, a LOT of
Mark Michelson [Tue, 29 Apr 2008 17:56:13 +0000 (17:56 +0000)]
Since there is now a globally available function for saying someone's name, a LOT of
functions in app_directory can be removed since the ODBC-specific lookups are accomplished
within app_voicemail. This change greatly reduces the amount of lines in app_directory that
were solely for the purpose of looking up a name when ODBC_STORAGE is specified for voicemail.

This commit also makes the name-saying interruptable via DTMF.

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

11 years agoFix a crash happening in app_directory. This crash would occur if a users.conf existed.
Mark Michelson [Tue, 29 Apr 2008 17:31:26 +0000 (17:31 +0000)]
Fix a crash happening in app_directory. This crash would occur if a users.conf existed.

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

11 years agoMerged revisions 114829 via svnmerge from
Jason Parker [Tue, 29 Apr 2008 17:10:55 +0000 (17:10 +0000)]
Merged revisions 114829 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114829 | qwell | 2008-04-29 12:08:55 -0500 (Tue, 29 Apr 2008) | 1 line

Change warning message to debug, since there are cases where 0 results is perfectly fine.
........

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

11 years agoMerged revisions 114823 via svnmerge from
Kevin P. Fleming [Tue, 29 Apr 2008 12:54:31 +0000 (12:54 +0000)]
Merged revisions 114823 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r114823 | kpfleming | 2008-04-29 07:53:12 -0500 (Tue, 29 Apr 2008) | 10 lines

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

........
r114822 | kpfleming | 2008-04-29 07:52:32 -0500 (Tue, 29 Apr 2008) | 2 lines

stop script from appending source code if run multiple times

........

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

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

11 years agoAdding a new option 'n' to app_chanspy. This option allows for the name of the spied-on
Mark Michelson [Mon, 28 Apr 2008 22:38:07 +0000 (22:38 +0000)]
Adding a new option 'n' to app_chanspy. This option allows for the name of the spied-on
party to be spoken instead of the channel name or number.

This was accomplished by adding a new function pointer to point to a function in app_voicemail
which retrieves the name file and plays it. This makes for an easy way that applications may play
a user's name should it be necessary. app_directory, in particular, can be simplified greatly by
this change.

This change comes as a suggestion from Switchvox, which already has this feature. AST-23

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

11 years agoFix deadlock issue in chan_zap with libss7 due to channel variables being set with...
Matthew Fredrickson [Mon, 28 Apr 2008 17:00:38 +0000 (17:00 +0000)]
Fix deadlock issue in chan_zap with libss7 due to channel variables being set with the channel pvt lock being held. #12512

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

11 years agoAdd incomplete matching to PBX code and app_dial
Tilghman Lesher [Mon, 28 Apr 2008 16:37:45 +0000 (16:37 +0000)]
Add incomplete matching to PBX code and app_dial
(closes issue #12351)
 Reported by: Corydon76
 Patches:
       20080402__pbx_incomplete__3.diff.txt uploaded by Corydon76 (license 14)
       pbx_incomplete_with_timeout.diff uploaded by fabled (license 448)
 Tested by: Corydon76, fabled

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

11 years agoUpdate autoconf logic with latest API change for libss7.
Joshua Colp [Mon, 28 Apr 2008 13:42:13 +0000 (13:42 +0000)]
Update autoconf logic with latest API change for libss7.

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

11 years agoMerged revisions 114708 via svnmerge from
Tilghman Lesher [Mon, 28 Apr 2008 04:53:20 +0000 (04:53 +0000)]
Merged revisions 114708 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114708 | tilghman | 2008-04-27 23:47:39 -0500 (Sun, 27 Apr 2008) | 5 lines

When modules are embedded, they take on a different name, without the ".so"
extension.  Specifically check for this name, when we're checking if a module
is loaded.
(Closes issue #12534)

........

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

11 years agoFix breakage caused by #12028. (Closes issue #12535)
Tilghman Lesher [Mon, 28 Apr 2008 04:30:02 +0000 (04:30 +0000)]
Fix breakage caused by #12028.  (Closes issue #12535)

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

11 years agos/chan_zap/chan_skinny/
Russell Bryant [Sun, 27 Apr 2008 22:54:33 +0000 (22:54 +0000)]
s/chan_zap/chan_skinny/

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

11 years agoMake MWI in chan_skinny event based modeled after chan_zap and chan_mgcp.
Michiel van Baak [Sun, 27 Apr 2008 15:17:18 +0000 (15:17 +0000)]
Make MWI in chan_skinny event based modeled after chan_zap and chan_mgcp.

(closes issue #12214)
Reported by: DEA
Patches:
      chan_skinny-vm-events-v3.txt uploaded by DEA (license 3)
  Tested by: DEA and me

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

11 years agoMerged revisions 114695 via svnmerge from
Sean Bright [Sun, 27 Apr 2008 01:28:32 +0000 (01:28 +0000)]
Merged revisions 114695 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114695 | seanbright | 2008-04-26 21:26:15 -0400 (Sat, 26 Apr 2008) | 5 lines

When we don't explicitly pass a path to the --with-tds configure option, we
may end up finding tds.h in /usr/local/include instead of /usr/include.  If
this happens, the grep that looks for the version (from tdsver.h) will fail
and we'll have some problems during the build.

........

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

11 years agoUnleak reference
Tilghman Lesher [Sat, 26 Apr 2008 15:08:51 +0000 (15:08 +0000)]
Unleak reference

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

11 years agoMerged revisions 114689 via svnmerge from
Tilghman Lesher [Sat, 26 Apr 2008 13:17:19 +0000 (13:17 +0000)]
Merged revisions 114689 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114689 | tilghman | 2008-04-26 08:15:21 -0500 (Sat, 26 Apr 2008) | 6 lines

Clicking forward without selecting a message leaves an errant .lock file.
(closes issue #12528)
 Reported by: pukepail
 Patches:
       patch.diff uploaded by pukepail (license 431)

........

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

11 years agoAdd 'sip qualify peer <peer>' command (with AMI SIPqualifypeer)
Tilghman Lesher [Sat, 26 Apr 2008 02:48:56 +0000 (02:48 +0000)]
Add 'sip qualify peer <peer>' command (with AMI SIPqualifypeer)
(closes issue #12524)
 Reported by: ctooley
 Patches:
       sip_qualify_peer.diff.2 uploaded by ctooley (license 136)
       some modifications for trunk by Corydon76
 Tested by: Corydon76

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

11 years agoAdding a new option, 'B' to app_chanspy. This option allows the spy to
Mark Michelson [Fri, 25 Apr 2008 22:24:32 +0000 (22:24 +0000)]
Adding a new option, 'B' to app_chanspy. This option allows the spy to
barge on the call. It is like the existing whisper option, except that
it allows the spy to talk to both sides of the conversation on which
he is spying.

This feature has existed in Switchvox, and this merges the functionality
into Asterisk.

(AST-32)

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

11 years agoLock the channel around datastore access
Russell Bryant [Fri, 25 Apr 2008 22:04:46 +0000 (22:04 +0000)]
Lock the channel around datastore access

(closes issue #12527)
Reported by: mnicholson
Patches:
      pbx_lua4.diff uploaded by mnicholson (license 96)

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

11 years agoMerged revisions 114673 via svnmerge from
Russell Bryant [Fri, 25 Apr 2008 22:00:35 +0000 (22:00 +0000)]
Merged revisions 114673 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114673 | russell | 2008-04-25 16:54:40 -0500 (Fri, 25 Apr 2008) | 3 lines

Use consistent logic for checking to see if a call number has been chosen yet.
Also, remove some redundant logic I recently added in a fix.

........

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

11 years agoWhitespace changes only
Tilghman Lesher [Fri, 25 Apr 2008 20:20:10 +0000 (20:20 +0000)]
Whitespace changes only

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

11 years agoOops, this isn't necessarily AGI that is forking anymore
Tilghman Lesher [Fri, 25 Apr 2008 19:39:26 +0000 (19:39 +0000)]
Oops, this isn't necessarily AGI that is forking anymore

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

11 years agoMerged revisions 114662 via svnmerge from
Mark Michelson [Fri, 25 Apr 2008 19:33:27 +0000 (19:33 +0000)]
Merged revisions 114662 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114662 | mmichelson | 2008-04-25 14:32:02 -0500 (Fri, 25 Apr 2008) | 4 lines

Move the unlock of the spyee channel to outside the start_spying() function so that
the channel is not unlocked twice when using whisper mode.

........

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

11 years agoMerge app_pickupchan with app_directed_pickup, for AST-27.
Jason Parker [Fri, 25 Apr 2008 18:32:22 +0000 (18:32 +0000)]
Merge app_pickupchan with app_directed_pickup, for AST-27.

Initially, this was to be a new feature, with a patch from Switchvox,
 but after discussions, it was noted that this feature already existed in trunk.

The resulting discussions ended in a comment that was along the lines of
 "the patch provided here is a lot smaller than what is already in trunk,
 because it doesn't create a new application and duplicate existing code"

It was decided that these two applications could be easily merged to reduce
 code duplication.  SO, that's what this does.

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

11 years agoThis patch allows for forwarding a message with a "comment" attachment
Mark Michelson [Fri, 25 Apr 2008 18:18:30 +0000 (18:18 +0000)]
This patch allows for forwarding a message with a "comment" attachment
if using IMAP storage for voicemail. The comment will be recorded and attached
as a second attachment in addition to the original message. This will be invoked
if you choose to prepend a message the way you would with file or ODBC storage

(closes issue #12028)
Reported by: jaroth
Patches:
      forward_with_comment_v2.patch uploaded by jaroth (license 50)
Tested by: jaroth

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

11 years agoMerge code from team/russell/parking_updates
Russell Bryant [Fri, 25 Apr 2008 18:18:27 +0000 (18:18 +0000)]
Merge code from team/russell/parking_updates

Add some additional features to the core park_call_full() function, and expose
them as options to the Park() application.  The functionality being added is the
ability to specify a custom return extension/context/priority, a custom timeout,
and a couple of options.  The options are to play ringing instead of MOH to the
parked caller, and to randomize parking spot selection.

(code inspired by the patch in AST-17, code from switchvox)

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

11 years agoFix a memory leak and protect against potential dereferences of a NULL
Mark Michelson [Fri, 25 Apr 2008 16:25:17 +0000 (16:25 +0000)]
Fix a memory leak and protect against potential dereferences of a NULL
pointer.

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

11 years agoBlocked revisions 114649 via svnmerge
Tilghman Lesher [Fri, 25 Apr 2008 15:58:36 +0000 (15:58 +0000)]
Blocked revisions 114649 via svnmerge

........
r114649 | tilghman | 2008-04-25 10:53:52 -0500 (Fri, 25 Apr 2008) | 6 lines

Reference documentation files that actually exist.
(closes issue #12516)
 Reported by: linuxmaniac
 Patches:
       diff_rev114611.patch uploaded by linuxmaniac (license 472)

........

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

11 years agoSpeaking of building...
Sean Bright [Fri, 25 Apr 2008 13:56:05 +0000 (13:56 +0000)]
Speaking of building...

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

11 years agoPass the hangup cause all the way to the calling app/channel.
Michiel van Baak [Thu, 24 Apr 2008 22:16:48 +0000 (22:16 +0000)]
Pass the hangup cause all the way to the calling app/channel.

(closes issue #11328)
Reported by: rain
Patches:
      20071207__pass_cause_in_hangup_control_frame.diff.txt uploaded by Corydon76 (license 14)
brought up-to-date to trunk by me

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

11 years agoHey look, it builds.
Joshua Colp [Thu, 24 Apr 2008 22:11:46 +0000 (22:11 +0000)]
Hey look, it builds.
(closes issue #12519)
Reported by: falves11

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

11 years agoMerged revisions 114632 via svnmerge from
Mark Michelson [Thu, 24 Apr 2008 21:35:39 +0000 (21:35 +0000)]
Merged revisions 114632 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114632 | mmichelson | 2008-04-24 16:35:08 -0500 (Thu, 24 Apr 2008) | 11 lines

Re-invite RTP during a masquerade so that, for instance, an AMI
redirect of two channels which are natively bridged will preserve audio
on both channels. This prevents a problem with Asterisk not re-inviting
due to one of the channels having being a zombie.

(closes issue #12513)
Reported by: mneuhauser
Patches:
      asterisk-1.4-114602_restore-RTP-on-fixup.patch uploaded by mneuhauser (license 425)

........

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

11 years agoMerged revisions 114628 via svnmerge from
Mark Michelson [Thu, 24 Apr 2008 20:43:52 +0000 (20:43 +0000)]
Merged revisions 114628 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114628 | mmichelson | 2008-04-24 15:43:03 -0500 (Thu, 24 Apr 2008) | 8 lines

Output of channel variables when eventwhencalled=vars was set
was being truncated two characters. This patch corrects the
problem.

(closes issue #12493)
Reported by: davidw

........

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

11 years agoMerged revisions 114624 via svnmerge from
Mark Michelson [Thu, 24 Apr 2008 20:06:06 +0000 (20:06 +0000)]
Merged revisions 114624 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114624 | mmichelson | 2008-04-24 15:04:24 -0500 (Thu, 24 Apr 2008) | 10 lines

Resolve a deadlock in chan_local by releasing the channel lock
temporarily.

(closes issue #11712)
Reported by: callguy
Patches:
      11712.patch uploaded by putnopvut (license 60)
Tested by: acunningham

........

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

11 years agoMerged revisions 114621 via svnmerge from
Tilghman Lesher [Thu, 24 Apr 2008 19:54:57 +0000 (19:54 +0000)]
Merged revisions 114621 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114621 | tilghman | 2008-04-24 14:53:36 -0500 (Thu, 24 Apr 2008) | 4 lines

Ensure that when we set the accountcode, it actually shows up in the CDR.
(Fix for AMI Originate)
(Closes issue #12007)

........

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

11 years agoFix DST calculation, and fix bug in calculation of whether conf has started yet or not
Tilghman Lesher [Thu, 24 Apr 2008 19:24:31 +0000 (19:24 +0000)]
Fix DST calculation, and fix bug in calculation of whether conf has started yet or not
(Closes issue #12292)
 Reported by: DEA
 Patches:
       app_meetme-rt-dst-sched-fix.txt uploaded by DEA (license 3)

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

11 years agoMerged revisions 51989 via svnmerge from
Jason Parker [Thu, 24 Apr 2008 16:47:01 +0000 (16:47 +0000)]
Merged revisions 51989 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #12496)
Reported by: daniele
Patches:
      misdn-moh-1.6.0-beta7.1.patch uploaded by daniele (license 471)
Tested by: daniele

Technically, I didn't use the patch above except to find out what revision to merge - but it's the same thing as this revision.

........
r51989 | crichter | 2007-01-24 06:57:22 -0600 (Wed, 24 Jan 2007) | 1 line

added fix from #8899
........

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

11 years agoMerged revisions 114608 via svnmerge from
Russell Bryant [Thu, 24 Apr 2008 15:56:55 +0000 (15:56 +0000)]
Merged revisions 114608 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114608 | russell | 2008-04-24 10:55:21 -0500 (Thu, 24 Apr 2008) | 4 lines

Fix a silly mistake in a change I made yesterday that caused chan_iax2 to blow
up very quickly.
(issue #12515)

........

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

11 years agoMerged revisions 114603 via svnmerge from
Olle Johansson [Thu, 24 Apr 2008 14:59:05 +0000 (14:59 +0000)]
Merged revisions 114603 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114603 | oej | 2008-04-24 16:55:18 +0200 (Tor, 24 Apr 2008) | 3 lines

Only have one max-forwards header in outbound REFERs.
Discovered in the Asterisk SIP Masterclass in Orlando. Thanks Joe!

........

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

11 years agoChange a verbose message to debug.
Russell Bryant [Thu, 24 Apr 2008 14:55:21 +0000 (14:55 +0000)]
Change a verbose message to debug.
(closes issue #12514)

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

11 years agoMerged revisions 114600 via svnmerge from
Russell Bryant [Wed, 23 Apr 2008 22:53:20 +0000 (22:53 +0000)]
Merged revisions 114600 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114600 | russell | 2008-04-23 17:18:12 -0500 (Wed, 23 Apr 2008) | 6 lines

Improve some broken cookie parsing code.  Previously, manager login over HTTP
would only work if the mansession_id cookie was first.  Now, the code builds
a list of all of the cookies in the Cookie header.  This fixes a problem
observed by users of the Asterisk GUI.
(closes AST-20)

........

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

11 years agoMerged revisions 114597 via svnmerge from
Russell Bryant [Wed, 23 Apr 2008 20:53:05 +0000 (20:53 +0000)]
Merged revisions 114597 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114597 | russell | 2008-04-23 15:49:18 -0500 (Wed, 23 Apr 2008) | 10 lines

Fix an issue that caused getting the correct next channel to not always work.
Also, remove setting the amount of time to wait for a digit from 5 seconds back
down to 1/10 of a second.  I believe this was so the beep didn't get played over
and over really fast, but a while back I put in another fix for that issue.

(closes issue #12498)
Reported by: jsmith
Patches:
      app_chanspy_channel_walk.trunk.patch uploaded by jsmith (license 15)

........

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

11 years agoMerged revisions 114594 via svnmerge from
Jason Parker [Wed, 23 Apr 2008 18:33:28 +0000 (18:33 +0000)]
Merged revisions 114594 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114594 | qwell | 2008-04-23 13:28:44 -0500 (Wed, 23 Apr 2008) | 8 lines

Fix reload/unload for res_musiconhold module.

(closes issue #11575)
Reported by: sunder
Patches:
      M11575_14_rev3.diff uploaded by junky (license 177)
      bug11575_trunk.diff.txt uploaded by jamesgolovich (license 176)

........

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

11 years agoMerged revisions 114591 via svnmerge from
Russell Bryant [Wed, 23 Apr 2008 18:01:00 +0000 (18:01 +0000)]
Merged revisions 114591 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114591 | russell | 2008-04-23 12:55:31 -0500 (Wed, 23 Apr 2008) | 5 lines

Store the manager session ID explicitly as 4 byte ID instead of a ulong.  The
mansession_id cookie is coded to be limited to 8 characters of hex, and this
could break logins from 64-bit machines in some cases.
(inspired by AST-20)

........

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

11 years agoMerged revisions 114587 via svnmerge from
Russell Bryant [Wed, 23 Apr 2008 17:18:29 +0000 (17:18 +0000)]
Merged revisions 114587 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114587 | russell | 2008-04-23 12:16:32 -0500 (Wed, 23 Apr 2008) | 2 lines

Fix find_callno_locked() to actually return the callno locked in some more cases.

........

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

11 years agoMerged revisions 114584 via svnmerge from
Olle Johansson [Wed, 23 Apr 2008 16:53:34 +0000 (16:53 +0000)]
Merged revisions 114584 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114584 | oej | 2008-04-23 18:51:41 +0200 (Ons, 23 Apr 2008) | 2 lines

Add 502 support for both directions, not only one...  (see r114571)

........

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

11 years agoMerged revisions 114579 via svnmerge from
Joshua Colp [Wed, 23 Apr 2008 14:55:03 +0000 (14:55 +0000)]
Merged revisions 114579 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114579 | file | 2008-04-23 11:54:11 -0300 (Wed, 23 Apr 2008) | 4 lines

Instead of stopping dialplan execution when SayNumber attempts to say a large number that it can not print out a message informing the user and continue on.
(closes issue #12502)
Reported by: bcnit

........

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

11 years agoRound 2 of IMAP_STORAGE app_voicemail.c fixes:
Mark Michelson [Wed, 23 Apr 2008 00:58:49 +0000 (00:58 +0000)]
Round 2 of IMAP_STORAGE app_voicemail.c fixes:

This fixes a bug that was thought to be fixed already.

app_voicemail, if using IMAP_STORAGE, has a problem because
the IMAP header files include syslog.h, which define LOG_WARNING
and LOG_DEBUG to be different than what Asterisk uses for those
same macros. This was "fixed" in the past by including all the
IMAP header files prior to including asterisk.h. This fix worked...
unless you were to try to compile with MALLOC_DEBUG. MALLOC_DEBUG
prepends the inclusion of astmm.h to every file, which means that no
matter what order the includes are in in app_voicemail, the unexpected
values for LOG_WARNING and LOG_DEBUG will be in place.

The action taken for this fix was to define AST_LOG_* macros in addition
to the LOG_* macros already defined. These new macros are used in app_voicemail.c,
logger.h, and astobj.h right now, and their use will be encouraged in the future.

In consideration of those who have written third-party modules which use
the LOG_* macros, these will NOT be removed from the source, however future use
of these macros is discouraged.

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

11 years agoRound 1 of IMAP_STORAGE-related app_voicemail changes
Mark Michelson [Wed, 23 Apr 2008 00:40:30 +0000 (00:40 +0000)]
Round 1 of IMAP_STORAGE-related app_voicemail changes

This makes IMAP_STORAGE include the proper headers if you
have specified the "system" option for --with-imap when running
the configure script and your IMAP-related headers exist in
/usr/include/c-client.

This change is due to a hasty merge of a 1.4 change I made.

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