Commit Graph

15307 Commits

Author SHA1 Message Date
Tilghman Lesher
a12adeaa22 Merged revisions 115334 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r115334 | tilghman | 2008-05-05 18:00:31 -0500 (Mon, 05 May 2008) | 15 lines

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/branches/1.6.0@115335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-05 23:01:22 +00:00
Joshua Colp
0ed86b307e Merged revisions 115328 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r115328 | file | 2008-05-05 19:13:57 -0300 (Mon, 05 May 2008) | 10 lines

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/branches/1.6.0@115331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-05 22:17:05 +00:00
Mark Michelson
cd04c3207d Merged revisions 115329 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r115329 | mmichelson | 2008-05-05 17:14:06 -0500 (Mon, 05 May 2008) | 15 lines

#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/branches/1.6.0@115330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-05 22:14:42 +00:00
Russell Bryant
57a35ae1b3 Blocked revisions 115324 via svnmerge
........
r115324 | russell | 2008-05-05 17:01:56 -0500 (Mon, 05 May 2008) | 2 lines

Simplify code by using a taskprocessor for dispatching events in the Asterisk core.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@115326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-05 22:02:27 +00:00
Mark Michelson
cb62c9cba8 Merged revisions 115321 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r115321 | mmichelson | 2008-05-05 16:43:21 -0500 (Mon, 05 May 2008) | 21 lines

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/branches/1.6.0@115322 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-05 21:44:04 +00:00
Russell Bryant
b46f8226e1 Merged revisions 115315 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r115315 | russell | 2008-05-05 15:28:17 -0500 (Mon, 05 May 2008) | 2 lines

Remove my rant, since I have now replaced the rant with code.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@115316 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-05 20:28:37 +00:00
Tilghman Lesher
c8753fb014 Merged revisions 115309 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r115309 | tilghman | 2008-05-05 14:57:28 -0500 (Mon, 05 May 2008) | 10 lines

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/branches/1.6.0@115310 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-05 19:58:25 +00:00
Russell Bryant
9a981dfa35 Merged revisions 115305 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r115305 | russell | 2008-05-05 14:50:24 -0500 (Mon, 05 May 2008) | 13 lines

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/branches/1.6.0@115306 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-05 19:50:43 +00:00
Tilghman Lesher
dfb7b247c0 Merged revisions 115302 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r115302 | tilghman | 2008-05-05 14:42:36 -0500 (Mon, 05 May 2008) | 2 lines

Note change for ExecIf syntax (caught by jmls on IRC)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@115303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-05 19:43:35 +00:00
Joshua Colp
6e9f6a36e5 Blocked revisions 115290 via svnmerge
........
r115290 | file | 2008-05-05 10:52:44 -0300 (Mon, 05 May 2008) | 6 lines

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/branches/1.6.0@115291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-05 13:53:26 +00:00
Kevin P. Fleming
b00df35ba7 Merged revisions 115288 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r115288 | kpfleming | 2008-05-05 05:55:09 -0500 (Mon, 05 May 2008) | 2 lines

clarify wording

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@115289 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-05 10:55:40 +00:00
Tilghman Lesher
87dfc2f6f8 Merged revisions 115286 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r115286 | tilghman | 2008-05-04 22:25:35 -0500 (Sun, 04 May 2008) | 15 lines

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/branches/1.6.0@115287 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-05 03:26:35 +00:00
Joshua Colp
b4ca837667 Merged revisions 115283 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r115283 | file | 2008-05-03 23:11:01 -0300 (Sat, 03 May 2008) | 10 lines

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/branches/1.6.0@115284 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-04 02:12:12 +00:00
Joshua Colp
7ccc4fe461 Merged revisions 115280 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r115280 | file | 2008-05-03 22:52:00 -0300 (Sat, 03 May 2008) | 10 lines

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/branches/1.6.0@115281 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-04 01:53:02 +00:00
Joshua Colp
a33ad4ebf0 Merged revisions 115277 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r115277 | file | 2008-05-03 22:45:21 -0300 (Sat, 03 May 2008) | 10 lines

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/branches/1.6.0@115278 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-04 01:47:11 +00:00
Dwayne M. Hubbard
a03eef2580 block voicemail mwi notification subscriptions taskprocessor
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@115275 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-03 04:25:24 +00:00
Dwayne M. Hubbard
14251c61ed block pbx taskprocessor
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@115273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-03 04:19:40 +00:00
Dwayne M. Hubbard
84997860ed block app_queue taskprocessor
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@115271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-03 04:04:18 +00:00
Dwayne M. Hubbard
643898e91b blocked taskprocessors
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@115269 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-03 03:51:55 +00:00
Mark Michelson
e85fbb0aad Blocked revisions 115199 via svnmerge
........
r115199 | mmichelson | 2008-05-02 09:51:59 -0500 (Fri, 02 May 2008) | 3 lines

Make res/snmp/agent.c build


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@115200 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-02 14:55:24 +00:00
Mark Michelson
78673e20fc Merged revisions 115197 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r115197 | mmichelson | 2008-05-02 09:28:55 -0500 (Fri, 02 May 2008) | 14 lines

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/branches/1.6.0@115198 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-02 14:29:49 +00:00
Tilghman Lesher
940eb5779e Blocked revisions 115159 via svnmerge
........
r115159 | tilghman | 2008-05-01 21:56:39 -0500 (Thu, 01 May 2008) | 2 lines

Okay, maybe FreeBSD will like this better.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@115160 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-02 02:57:30 +00:00
Tilghman Lesher
e6ea155b9a Blocked revisions 115157 via svnmerge
........
r115157 | tilghman | 2008-05-01 21:33:04 -0500 (Thu, 01 May 2008) | 2 lines

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/branches/1.6.0@115158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-02 02:34:53 +00:00
Tilghman Lesher
23d923acc3 Merged revisions 115104 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r115104 | tilghman | 2008-05-01 18:21:13 -0500 (Thu, 01 May 2008) | 10 lines

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/branches/1.6.0@115107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-01 23:22:02 +00:00
Brett Bryant
5d1b5862a6 Blocked revisions 115078 via svnmerge
........
r115078 | bbryant | 2008-05-01 18:09:08 -0500 (Thu, 01 May 2008) | 2 lines

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/branches/1.6.0@115079 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-01 23:09:33 +00:00
Tilghman Lesher
560342760a Blocked revisions 115076 via svnmerge
........
r115076 | tilghman | 2008-05-01 18:06:23 -0500 (Thu, 01 May 2008) | 7 lines

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/branches/1.6.0@115077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-01 23:07:51 +00:00
Russell Bryant
d518bd9091 Blocked revisions 115021 via svnmerge
........
r115021 | russell | 2008-05-01 14:05:36 -0500 (Thu, 01 May 2008) | 9 lines

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/branches/1.6.0@115022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-01 19:05:56 +00:00
Tilghman Lesher
335111dd89 Merged revisions 115018 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r115018 | tilghman | 2008-05-01 14:00:18 -0500 (Thu, 01 May 2008) | 14 lines

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/branches/1.6.0@115020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-01 19:01:06 +00:00
Brett Bryant
25ea5b5dea Blocked revisions 114977 via svnmerge
........
r114977 | bbryant | 2008-05-01 13:28:38 -0500 (Thu, 01 May 2008) | 4 lines

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/branches/1.6.0@114979 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-01 18:29:02 +00:00
Russell Bryant
7c57c0816f Merged revisions 114931 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r114931 | russell | 2008-05-01 12:28:25 -0500 (Thu, 01 May 2008) | 4 lines

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/branches/1.6.0@114932 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-01 17:28:45 +00:00
Brett Bryant
c64f4ac817 Blocked revisions 114926 via svnmerge
........
r114926 | bbryant | 2008-05-01 11:57:19 -0500 (Thu, 01 May 2008) | 5 lines

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.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@114928 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-01 16:58:30 +00:00
Jason Parker
76e257a8f9 Merged revisions 114922 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r114922 | qwell | 2008-05-01 11:49:24 -0500 (Thu, 01 May 2008) | 10 lines

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/branches/1.6.0@114923 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-01 16:52:07 +00:00
Joshua Colp
87b670f1ff Blocked revisions 114912 via svnmerge
........
r114912 | file | 2008-04-30 17:51:17 -0300 (Wed, 30 Apr 2008) | 2 lines

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/branches/1.6.0@114913 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-30 20:51:45 +00:00
Russell Bryant
9f1ccdbea3 Add the dlinkedlists implementation from trunk
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@114909 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-30 20:20:46 +00:00
Mark Michelson
fe72ca1329 Make 1.6.0 compile
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@114908 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-30 20:17:20 +00:00
Mark Michelson
a3e1649a9a Blocked revisions 114906 via svnmerge
........
r114906 | mmichelson | 2008-04-30 14:30:41 -0500 (Wed, 30 Apr 2008) | 12 lines

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/branches/1.6.0@114907 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-30 19:31:19 +00:00
Tilghman Lesher
b7444c2679 Blocked revisions 114904 via svnmerge
........
r114904 | tilghman | 2008-04-30 14:21:04 -0500 (Wed, 30 Apr 2008) | 8 lines

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/branches/1.6.0@114905 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-30 19:21:41 +00:00
Olle Johansson
71c72192ea Merged revisions 114899 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r114899 | oej | 2008-04-30 18:55:49 +0200 (Ons, 30 Apr 2008) | 15 lines

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/branches/1.6.0@114900 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-30 17:06:18 +00:00
Russell Bryant
567cb9a041 Merged revisions 114892 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r114892 | russell | 2008-04-30 11:34:24 -0500 (Wed, 30 Apr 2008) | 36 lines

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/branches/1.6.0@114893 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-30 16:41:33 +00:00
Jeff Peeler
d4f34710bf Merged revisions 114888 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r114888 | jpeeler | 2008-04-30 11:14:43 -0500 (Wed, 30 Apr 2008) | 3 lines

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/branches/1.6.0@114889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-30 16:15:36 +00:00
Kevin P. Fleming
ced1cda76c Merged revisions 114884 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r114884 | kpfleming | 2008-04-30 09:49:51 -0500 (Wed, 30 Apr 2008) | 10 lines

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/branches/1.6.0@114886 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-30 14:55:16 +00:00
Kevin P. Fleming
483c30870a Merged revisions 114876 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r114876 | kpfleming | 2008-04-30 07:15:43 -0500 (Wed, 30 Apr 2008) | 10 lines

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/branches/1.6.0@114877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-30 12:17:08 +00:00
Jeff Peeler
d868e4643c Merged revisions 114866 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r114866 | jpeeler | 2008-04-29 17:54:14 -0500 (Tue, 29 Apr 2008) | 2 lines

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/branches/1.6.0@114867 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-29 22:55:13 +00:00
Mark Michelson
a4bfe4880e Blocked revisions 114857 via svnmerge
........
r114857 | mmichelson | 2008-04-29 16:07:36 -0500 (Tue, 29 Apr 2008) | 15 lines

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/branches/1.6.0@114858 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-29 21:09:07 +00:00
Mark Michelson
ec4819f368 Merged revisions 114849 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r114849 | mmichelson | 2008-04-29 14:42:04 -0500 (Tue, 29 Apr 2008) | 22 lines

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/branches/1.6.0@114850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-29 19:42:43 +00:00
Kevin P. Fleming
d5b5113743 bug is not present in this branch
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@114846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-29 19:04:09 +00:00
Mark Michelson
75bb9a755a Blocked revisions 114841 via svnmerge
........
r114841 | mmichelson | 2008-04-29 13:48:26 -0500 (Tue, 29 Apr 2008) | 4 lines

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/branches/1.6.0@114843 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-29 18:49:38 +00:00
Mark Michelson
b47f8fc35d Blocked revisions 114834 via svnmerge
........
r114834 | mmichelson | 2008-04-29 12:56:13 -0500 (Tue, 29 Apr 2008) | 8 lines

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/branches/1.6.0@114835 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-29 17:56:37 +00:00
Mark Michelson
a78efc7fcd Blocked revisions 114832 via svnmerge
........
r114832 | mmichelson | 2008-04-29 12:31:26 -0500 (Tue, 29 Apr 2008) | 3 lines

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/branches/1.6.0@114833 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-29 17:32:41 +00:00
Jason Parker
fff476985f Merged revisions 114830 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r114830 | qwell | 2008-04-29 12:10:55 -0500 (Tue, 29 Apr 2008) | 9 lines

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/branches/1.6.0@114831 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-29 17:11:57 +00:00