]>
git.ipfire.org Git - thirdparty/asterisk.git/log
Paul Belanger [Wed, 23 Jun 2010 20:37:06 +0000 (20:37 +0000)]
Merged revisions 272252 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r272252 | pabelanger | 2010-06-23 16:35:45 -0400 (Wed, 23 Jun 2010) | 8 lines
Correct manager variable 'EventList' case.
(closes issue #17520)
Reported by: kobaz
Patches:
manager.patch uploaded by kobaz (license 834)
Tested by: lmadsen
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@272253
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Terry Wilson [Wed, 23 Jun 2010 18:41:35 +0000 (18:41 +0000)]
Merged revisions 272146 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r272146 | twilson | 2010-06-23 13:39:20 -0500 (Wed, 23 Jun 2010) | 2 lines
Don't start the sla thread unless we realy need it
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@272149
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Terry Wilson [Wed, 23 Jun 2010 17:28:35 +0000 (17:28 +0000)]
Merged revisions 272109 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r272109 | twilson | 2010-06-23 12:21:40 -0500 (Wed, 23 Jun 2010) | 12 lines
Make sure reload updates SLA config
Even if there are no stations or trunks defined, we need to start the sla
thread to make sure we get the reload event. Also, when doing a reload we need
to remove the existing trunks and stations or they end up hanging around.
(closes issue #16818)
Reported by: mbonin
Patches:
sla_reload.patch uploaded by twilson (license 396)
Tested by: twilson
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@272124
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
David Vossel [Tue, 22 Jun 2010 22:14:15 +0000 (22:14 +0000)]
Merged revisions 272014 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r272014 | dvossel | 2010-06-22 17:11:50 -0500 (Tue, 22 Jun 2010) | 5 lines
fixes issue with 'dialplan remove extension blah' segfaulting with tab completion
(closes issue #17440)
Reported by: kobaz
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@272015
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Matthew Nicholson [Tue, 22 Jun 2010 17:37:26 +0000 (17:37 +0000)]
Merged revisions 271903 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r271903 | mnicholson | 2010-06-22 12:35:17 -0500 (Tue, 22 Jun 2010) | 15 lines
Merged revisions 271902 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r271902 | mnicholson | 2010-06-22 12:31:57 -0500 (Tue, 22 Jun 2010) | 8 lines
Decrease the module ref count in sip_hangup when SIP_DEFER_BYE_ON_TRANSFER is set. This is necessary to keep the ref count correct.
(closes issue #16815)
Reported by: rain
Patches:
chan_sip-unref-fix.diff uploaded by rain (license 327) (modified)
Tested by: rain
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@271904
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 22 Jun 2010 16:30:30 +0000 (16:30 +0000)]
Merged revisions 271867 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r271867 | russell | 2010-06-22 11:28:03 -0500 (Tue, 22 Jun 2010) | 7 lines
Resolve some errors that occur on a graceful shutdown.
Don't Finalize() if Initialize() did not succeed. This resulted in an error
about trying to Finalize() an invalid handle.
Also trim some trailing whitespace while in the area.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@271869
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
David Vossel [Tue, 22 Jun 2010 15:49:41 +0000 (15:49 +0000)]
Merged revisions 271831 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r271831 | dvossel | 2010-06-22 10:46:22 -0500 (Tue, 22 Jun 2010) | 10 lines
fixes attended transfer behavior when both transferee and transferer hung up
If both the transferer and transferee of a attended transfer hangup before
the new channel picks up, the new channel should be hung up as well as it
has no endpoint to talk to. This mirrors the expected behavior used in 1.4.
(closes issue #17444)
Reported by: corruptor
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@271832
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Matthew Nicholson [Tue, 22 Jun 2010 15:00:11 +0000 (15:00 +0000)]
Merged revisions 271762 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r271762 | mnicholson | 2010-06-22 09:54:58 -0500 (Tue, 22 Jun 2010) | 15 lines
Merged revisions 271761 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r271761 | mnicholson | 2010-06-22 09:49:36 -0500 (Tue, 22 Jun 2010) | 9 lines
Allow users to specify a port for dundi peers.
(closes issue #17056)
Reported by: klaus3000
Patches:
dundi-peerport-patch-trunk.txt uploaded by klaus3000 (license 65)
Tested by: klaus3000
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@271763
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Matthew Nicholson [Tue, 22 Jun 2010 13:05:16 +0000 (13:05 +0000)]
Merged revisions 271690 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r271690 | mnicholson | 2010-06-22 07:58:28 -0500 (Tue, 22 Jun 2010) | 18 lines
Merged revisions 271689 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r271689 | mnicholson | 2010-06-22 07:52:27 -0500 (Tue, 22 Jun 2010) | 8 lines
Modify chan_sip's packet generation api to automatically calculate the Content-Length. This is done by storing packet content in a buffer until it is actually time to send the packet, at which time the size of the packet is calculated. This change was made to ensure that the Content-Length is always correct.
(closes issue #17326)
Reported by: kenner
Tested by: mnicholson, kenner
Review: https://reviewboard.asterisk.org/r/693/
........
This change also adds an ast_str_copy_string() function (similar to ast_copy_string), that copies one ast_str into another, properly handling embedded nulls.
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@271691
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Mon, 21 Jun 2010 20:48:10 +0000 (20:48 +0000)]
Merged revisions 271554 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r271554 | jpeeler | 2010-06-21 15:46:53 -0500 (Mon, 21 Jun 2010) | 14 lines
Merged revisions 271552 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r271552 | jpeeler | 2010-06-21 15:37:47 -0500 (Mon, 21 Jun 2010) | 7 lines
Do not use sizeof to calculate size of a heap allocated character array.
Change left out from 271399.
(closes issue #16053)
Reported by: diLLec
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@271555
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Fri, 18 Jun 2010 21:33:57 +0000 (21:33 +0000)]
Merged revisions 271483 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r271483 | jpeeler | 2010-06-18 16:32:09 -0500 (Fri, 18 Jun 2010) | 18 lines
Merged revisions 271399 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r271399 | jpeeler | 2010-06-18 14:28:24 -0500 (Fri, 18 Jun 2010) | 11 lines
Fix crash when parsing some heavily nested statements in AEL on reload.
Due to the recursion used when compiling AEL in gen_prios, all the stack space
was being consumed when parsing some AEL that contained nesting 13 levels deep.
Changing a few large buffers to be heap allocated fixed the crash, although I
did not test how many more levels can now be safely used.
(closes issue #16053)
Reported by: diLLec
Tested by: jpeeler
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@271484
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Fri, 18 Jun 2010 18:40:34 +0000 (18:40 +0000)]
Merged revisions 269307 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r269307 | rmudgett | 2010-06-09 11:54:38 -0500 (Wed, 09 Jun 2010) | 12 lines
Eliminate deadlock potential in dahdi_fixup().
Calling dahdi_indicate() within dahdi_fixup() while the owner pointers are
in a potentially inconsistent state is a potentially bad thing in
principle.
However, calling dahdi_indicate() when the channel private lock is already
held can cause a deadlock if the PRI lock is needed because
dahdi_indicate() will also get the channel private lock. The pri_grab()
function assumes that the channel private lock is held once to avoid
deadlock.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@271338
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Paul Belanger [Thu, 17 Jun 2010 00:32:06 +0000 (00:32 +0000)]
Merged revisions 271089 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r271089 | pabelanger | 2010-06-16 20:30:51 -0400 (Wed, 16 Jun 2010) | 5 lines
option w[(secs)] incorrectly capitalized in xmldoc
(closes issue #17516)
Reported by: karlfife
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@271090
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Paul Belanger [Wed, 16 Jun 2010 21:19:39 +0000 (21:19 +0000)]
Merged revisions 270987 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r270987 | pabelanger | 2010-06-16 17:17:39 -0400 (Wed, 16 Jun 2010) | 11 lines
Merged revisions 270979 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r270979 | pabelanger | 2010-06-16 17:10:05 -0400 (Wed, 16 Jun 2010) | 4 lines
Fixed typo in macro-page
Reported to #asterisk-dev by a student of jsmith.
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@270997
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Wed, 16 Jun 2010 21:11:28 +0000 (21:11 +0000)]
Merged revisions 270981 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r270981 | qwell | 2010-06-16 16:10:48 -0500 (Wed, 16 Jun 2010) | 11 lines
Merged revisions 270980 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r270980 | qwell | 2010-06-16 16:10:09 -0500 (Wed, 16 Jun 2010) | 4 lines
Need to lock the agent chan before access its internal bits.
Pointed out by russellb on asterisk-dev mailing list.
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@270982
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Matthew Nicholson [Wed, 16 Jun 2010 20:41:40 +0000 (20:41 +0000)]
Merged revisions 270974 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r270974 | mnicholson | 2010-06-16 15:34:31 -0500 (Wed, 16 Jun 2010) | 8 lines
Set sin_family to AF_INET when doing lookups, also reset sin_port the first time the ip address changes.
(closes issue #17496)
Reported by: ManChicken
(closes issue #15827)
Reported by: DennisD
Patches:
dnsmgr_15827.patch uploaded by chappell (license 8)
Tested by: DennisD, gentlec, damage, wimpy
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@270975
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Paul Belanger [Wed, 16 Jun 2010 18:50:11 +0000 (18:50 +0000)]
Merged revisions 270936 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r270936 | pabelanger | 2010-06-16 14:43:22 -0400 (Wed, 16 Jun 2010) | 8 lines
MSG_OOB flag on HANGUP packet removed.
Per Tilghman's request on IRC (#asterisk-bugs).
(closes issue #17506)
Reported by: brycebaril
Tested by: pabelanger, tilghman
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@270937
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
David Vossel [Wed, 16 Jun 2010 17:37:38 +0000 (17:37 +0000)]
Merged revisions 270867 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r270867 | dvossel | 2010-06-16 12:36:51 -0500 (Wed, 16 Jun 2010) | 28 lines
Merged revisions 270866 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r270866 | dvossel | 2010-06-16 12:35:29 -0500 (Wed, 16 Jun 2010) | 22 lines
fixes chan_iax2 race condition
There is code in chan_iax2.c that attempts to guarantee that only a single
active thread will handle a call number at a time. This code works once
the thread is added to an active_list of threads, but we are not currently
guaranteed that a newly activated thread will enter the active_list immediately
because it is left up to the thread to add itself after frames have been
queued to it. This means that if two frames come in for the same call number
at the same time, it is possible for them to grab two separate threads because
the first thread did not add itself to the active_list fast enough. This
causes some pretty complex problems.
This patch resolves this race condition by immediately adding an activated
thread to the active_list within the network thread and only depending on
the thread to remove itself once it is done processing the frames queued to
it. By doing this we are guaranteed that if another frame for the same call
number comes in at the same time, that this thread will immediately be found
in the active_list of threads.
Review: https://reviewboard.asterisk.org/r/720/
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@270868
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Paul Belanger [Wed, 16 Jun 2010 15:07:15 +0000 (15:07 +0000)]
Merged revisions 270801 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r270801 | pabelanger | 2010-06-16 11:05:11 -0400 (Wed, 16 Jun 2010) | 9 lines
Update formatting for channelvariables.tex
(closes issue #17511)
Reported by: klaus3000
Patches:
channelvariables.tex-patch.txt uploaded by klaus3000 (license 65)
Tested by: pabelanger
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@270802
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Terry Wilson [Tue, 15 Jun 2010 22:16:52 +0000 (22:16 +0000)]
Merged revisions 270658 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r270658 | twilson | 2010-06-15 15:18:04 -0500 (Tue, 15 Jun 2010) | 20 lines
Make contactdeny apply to src ip when nat=yes
chan_sip's "contactdeny" feature screens the "to be registered contact".
In case of nat=yes it should not use the address information from the
Contact header (which is not used at all for routing), but the source
IP address of the request.
Thus, if nat=yes and a client sends a request from a denied IP address
(e.g. by spoofing the src-IP address) it can bypass the screening.
This commit makes contactdeny apply to the src ip when nat=yes instead.
(closes issue #17276)
Reported by: klaus3000
Patches:
patch-asterisk-trunk-contactdeny.txt uploaded by klaus3000 (license 65)
Tested by: klaus3000
Review: [full review board URL with trailing slash]
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@270693
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 15 Jun 2010 18:27:32 +0000 (18:27 +0000)]
Merged revisions 270584 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r270584 | tilghman | 2010-06-15 13:26:26 -0500 (Tue, 15 Jun 2010) | 12 lines
Merged revisions 270583 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r270583 | tilghman | 2010-06-15 13:25:12 -0500 (Tue, 15 Jun 2010) | 5 lines
Variables have always been case-sensitive, so we should not be removing case-insensitive matches.
Bug reported via the -dev list. See
http://lists.digium.com/pipermail/asterisk-dev/2010-June/044510.html
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@270585
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Leif Madsen [Tue, 15 Jun 2010 12:53:22 +0000 (12:53 +0000)]
Merged revisions 270443 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r270443 | lmadsen | 2010-06-15 07:51:37 -0500 (Tue, 15 Jun 2010) | 9 lines
Merged revisions 270442 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r270442 | lmadsen | 2010-06-15 07:47:03 -0500 (Tue, 15 Jun 2010) | 1 line
Move information about zonemessages into the [zonemessages] section.
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@270444
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Paul Belanger [Mon, 14 Jun 2010 21:35:52 +0000 (21:35 +0000)]
Merged revisions 270332 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r270332 | pabelanger | 2010-06-14 17:33:55 -0400 (Mon, 14 Jun 2010) | 21 lines
Merged revisions 270331 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r270331 | pabelanger | 2010-06-14 17:31:59 -0400 (Mon, 14 Jun 2010) | 14 lines
Properly play first file in sort list.
When using sort=alpha we would always skip the first file
in the list first time through. We now check for that
properly.
(closes issue #17470)
Reported by: pabelanger
Patches:
sort.aplha.patch uploaded by pabelanger (license 224)
Tested by: lmadsen
Review: https://reviewboard.asterisk.org/r/703/
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@270333
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Paul Belanger [Sat, 12 Jun 2010 18:57:21 +0000 (18:57 +0000)]
Merged revisions 270079 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r270079 | pabelanger | 2010-06-12 14:55:47 -0400 (Sat, 12 Jun 2010) | 9 lines
Merged revisions 270078 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r270078 | pabelanger | 2010-06-12 14:54:20 -0400 (Sat, 12 Jun 2010) | 2 lines
Fix typo in example
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@270080
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Fri, 11 Jun 2010 18:32:13 +0000 (18:32 +0000)]
Merged revisions 269976 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r269976 | tilghman | 2010-06-11 13:31:14 -0500 (Fri, 11 Jun 2010) | 15 lines
Merged revisions 269960 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r269960 | tilghman | 2010-06-11 13:23:05 -0500 (Fri, 11 Jun 2010) | 8 lines
For SpeeX, 0 bits remaining is valid and does not need an emitted warning.
(closes issue #15762)
Reported by: nblasgen
Patches:
issue15672.patch uploaded by pabelanger (license 224)
Tested by: nblasgen
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@269977
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Paul Belanger [Thu, 10 Jun 2010 20:35:06 +0000 (20:35 +0000)]
Merged revisions 269889 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r269889 | pabelanger | 2010-06-10 16:30:44 -0400 (Thu, 10 Jun 2010) | 8 lines
Remove ASTBINDIR variable
(closes issue #17031)
Reported by: pabelanger
Patches:
Makefile.ASTBINDIR.v2.patch uploaded by pabelanger (license 224)
Tested by: pabelanger, tilghman
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@269894
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Thu, 10 Jun 2010 19:50:35 +0000 (19:50 +0000)]
Merged revisions 269822 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r269822 | mmichelson | 2010-06-10 14:34:03 -0500 (Thu, 10 Jun 2010) | 25 lines
Merged revisions 269821 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r269821 | mmichelson | 2010-06-10 14:30:12 -0500 (Thu, 10 Jun 2010) | 19 lines
Fix potential crash when writing raw SLIN audio on a PLC-enabled channel.
The issue here was that the frame created when adjusting for PLC had no offset
to its audio data. If this frame were translated to another format prior to
being sent out an RTP socket, all went well because the translation code would
put an appropriate offset into the frame. However, if the SLIN audio were not
translated before being sent out the RTP socket, bad things would happen.
Specifically, the ast_rtp_raw_write makes the assumption that the frame has
at least enough of an offset that it can accommodate an RTP header. This was
not the case. As such, data was being written prior to the allocation, likely
corrupting the data the memory allocator had written. Thus when the time came
to free the data, all hell broke loose. ....Well, Asterisk crashed at least.
The fix was just what one would expect. Offset the data in the frame by a reasonable
amount. The method I used is a bit odd since the data in the frame is 16 bit integers
and not bytes. I left a big ol' comment about it. This can be improved on if someone
is interested. I was more interested in getting the crash resolved.
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@269823
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Thu, 10 Jun 2010 17:19:33 +0000 (17:19 +0000)]
Merged revisions 269749 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r269749 | mmichelson | 2010-06-10 12:14:38 -0500 (Thu, 10 Jun 2010) | 5 lines
Add documentation explaining PLC in Asterisk.
Review: https://reviewboard.asterisk.org/r/688/
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@269758
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 10 Jun 2010 13:18:39 +0000 (13:18 +0000)]
Merged revisions 269711 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r269711 | russell | 2010-06-10 08:17:51 -0500 (Thu, 10 Jun 2010) | 2 lines
Fix an off by one error that caused a unit test to occasionally crash.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@269714
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Thu, 10 Jun 2010 08:16:44 +0000 (08:16 +0000)]
Merged revisions 269636 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r269636 | tilghman | 2010-06-10 03:15:45 -0500 (Thu, 10 Jun 2010) | 16 lines
Merged revisions 269635 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r269635 | tilghman | 2010-06-10 02:52:34 -0500 (Thu, 10 Jun 2010) | 9 lines
Ensure restartable system calls can restart (BSD signal semantics)
This eliminates the annoying <beep> on the console.
(closes issue #17477)
Reported by: jvandal
Patches:
20100610__issue17477.diff.txt uploaded by tilghman (license 14)
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@269637
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 9 Jun 2010 22:20:09 +0000 (22:20 +0000)]
Merged revisions 269497 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r269497 | russell | 2010-06-09 17:19:20 -0500 (Wed, 09 Jun 2010) | 9 lines
Merged revisions 269495 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r269495 | russell | 2010-06-09 17:18:37 -0500 (Wed, 09 Jun 2010) | 2 lines
Don't stop Asterisk if chan_oss fails to register 'Console' (due to another channel driver already claiming it).
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@269502
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 9 Jun 2010 21:13:30 +0000 (21:13 +0000)]
Merged revisions 269417 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r269417 | russell | 2010-06-09 16:11:43 -0500 (Wed, 09 Jun 2010) | 6 lines
Resolve an invalid memory read on an event.
Valgrind pointed out that attempting to get an IE value from an event that has
no IEs produces an invalid memory read past the end of the event. Thanks to
mmichelson for pointing the problem out to me and then testing the fix.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@269418
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Paul Belanger [Wed, 9 Jun 2010 17:34:38 +0000 (17:34 +0000)]
Merged revisions 269346 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r269346 | pabelanger | 2010-06-09 13:32:52 -0400 (Wed, 09 Jun 2010) | 19 lines
Merged revisions 269334 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r269334 | pabelanger | 2010-06-09 13:24:53 -0400 (Wed, 09 Jun 2010) | 12 lines
Fix Debian init script to not use -c.
When using the init script as-is currently, it could cause issues on Debian
such as high CPU usage. This fix has worked for several people so I'm
implementing the change. We now handle color displays properly.
(closes issue #16784)
Reported by: pabelanger
Patches:
20100530__issue16784__2.diff.txt uploaded by tilghman (license 14)
Tested by: pabelanger, tilghman
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@269347
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
David Vossel [Wed, 9 Jun 2010 15:13:55 +0000 (15:13 +0000)]
Merged revisions 269271 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r269271 | dvossel | 2010-06-09 10:09:25 -0500 (Wed, 09 Jun 2010) | 15 lines
fixes crash in moh when cachertclasses flag is used
The result for moh_register was not verified to guarantee
the mohclass as added to the container.
(closes issue #16993)
Reported by: dmitri
Patches:
res_musiconhold_rtclass2.patch uploaded by dmitri (license 1001)
moh_crash2.diff uploaded by dvossel (license 671)
Tested by: dmitri
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@269272
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Matthew Nicholson [Tue, 8 Jun 2010 18:51:19 +0000 (18:51 +0000)]
Merged revisions 269083 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r269083 | mnicholson | 2010-06-08 13:50:45 -0500 (Tue, 08 Jun 2010) | 9 lines
Don't pass null to manager_event()
(closes issue #17087)
Reported by: bklang
Patches:
app-fax-null-sprintf1.diff uploaded by mnicholson (license 96)
Tested by: bklang
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@269084
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Sean Bright [Tue, 8 Jun 2010 15:45:57 +0000 (15:45 +0000)]
Merged revisions 269007 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r269007 | seanbright | 2010-06-08 11:39:52 -0400 (Tue, 08 Jun 2010) | 18 lines
Merged revisions 269006 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r269006 | seanbright | 2010-06-08 11:28:49 -0400 (Tue, 08 Jun 2010) | 11 lines
Reduce startup time for cdr_tds with large CDR tables.
Since we are just checking for table existence, add a WHERE clause that will
return no rows but will raise an error if the table doesn't exist.
(closes issue #17380)
Reported by: kkwong
Patches:
issue17380-01.patch uploaded by seanbright (license 71)
Tested by: kkwong
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@269010
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 8 Jun 2010 15:41:45 +0000 (15:41 +0000)]
Merged revisions 269008 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r269008 | russell | 2010-06-08 10:41:23 -0500 (Tue, 08 Jun 2010) | 5 lines
Ensure CONFIG_FLAGS makes it into the build rules when doing out of tree builds.
(closes issue #16685)
Reported by: pprindeville
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@269009
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Leif Madsen [Tue, 8 Jun 2010 15:23:49 +0000 (15:23 +0000)]
Merged revisions 268988 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r268988 | lmadsen | 2010-06-08 10:23:20 -0500 (Tue, 08 Jun 2010) | 8 lines
Update note in sip.conf.sample.
Update note in sip.conf.sample about externip and externhost with STUN.
(closes issue #16323)
Reported by: klaus3000
Patches:
sip.conf.sample-patch.txt uploaded by klaus3000 (license 65)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268990
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 8 Jun 2010 06:58:22 +0000 (06:58 +0000)]
Merged revisions 268933 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r268933 | tilghman | 2010-06-08 01:57:24 -0500 (Tue, 08 Jun 2010) | 2 lines
Release list lock before returning on error.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268934
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 7 Jun 2010 22:59:52 +0000 (22:59 +0000)]
Merged revisions 268817 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r268817 | tilghman | 2010-06-07 17:47:13 -0500 (Mon, 07 Jun 2010) | 9 lines
Mailbox list would previously grow at each reload, containing duplicates.
Also, optimize the allocation of mailboxes to avoid additional memory structures.
(closes issue #16320)
Reported by: Marquis
Patches:
20100525__issue16320.diff.txt uploaded by tilghman (license 14)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268819
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Mon, 7 Jun 2010 22:13:04 +0000 (22:13 +0000)]
Fix some chan_oss build system problems (these changes were already in trunk).
This is what caused a bunch of tests to fail on 1.6.2. They expected a console
channel driver, but chan_oss was failing to load.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268815
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 7 Jun 2010 19:00:37 +0000 (19:00 +0000)]
Merged revisions 268653,268731 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r268653 | tilghman | 2010-06-07 12:14:40 -0500 (Mon, 07 Jun 2010) | 2 lines
Avoid unloading res_smdi twice.
(closes issue #17237)
Reported by: pabelanger
........
r268731 | tilghman | 2010-06-07 13:59:27 -0500 (Mon, 07 Jun 2010) | 4 lines
Event well was going dry.
(issue #17234)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268732
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Paul Belanger [Mon, 7 Jun 2010 17:36:39 +0000 (17:36 +0000)]
Merged revisions 268690 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r268690 | pabelanger | 2010-06-07 13:34:45 -0400 (Mon, 07 Jun 2010) | 11 lines
Set threshold for silence detection defaults to 256
(closes issue #15685)
Reported by: david_s5
Patches:
dsp-silence-threshold-init.diff uploaded by dant (license 670)
issue15685.patch.v5 uploaded by pabelanger (license 224)
Tested by: danti
Review: https://reviewboard.asterisk.org/r/670/
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268691
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Sun, 6 Jun 2010 05:31:11 +0000 (05:31 +0000)]
Merged revisions 268534 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r268534 | tilghman | 2010-06-06 00:29:50 -0500 (Sun, 06 Jun 2010) | 8 lines
Take advantage of variable substitution already in the Makefile to specify the correct location for files in init.d.
(closes issue #16979)
Reported by: jw-asterisk
(issue #15691)
Reported by: itamarjp
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268535
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Sun, 6 Jun 2010 00:38:16 +0000 (00:38 +0000)]
Merged revisions 268495 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r268495 | tilghman | 2010-06-05 19:37:30 -0500 (Sat, 05 Jun 2010) | 2 lines
Finally track down and eliminate the "FRACK! warnings from chan_iax2".
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268496
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Sat, 5 Jun 2010 17:56:55 +0000 (17:56 +0000)]
Merged revisions 268456 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r268456 | tilghman | 2010-06-05 12:55:28 -0500 (Sat, 05 Jun 2010) | 14 lines
Fix crash in DTMF detection.
What I did not originally see in my previous commit was that even though the
next digit could be detected before the previous was considered ended, the
detection of the next digit effectively ends the detection of the previous.
Therefore, the length moves in lockstep with the digit, and no separate counter
is needed for the length alone.
(closes issue #17371)
Reported by: alecdavis
(closes issue #17474)
Reported by: kenner
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268457
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Sat, 5 Jun 2010 17:28:23 +0000 (17:28 +0000)]
Merged revisions 268454 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r268454 | tilghman | 2010-06-05 12:27:12 -0500 (Sat, 05 Jun 2010) | 5 lines
Verify event is not NULL before attempting to lower its usecount.
(closes issue #17234)
Reported by: mav3rick
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268455
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Sat, 5 Jun 2010 02:52:20 +0000 (02:52 +0000)]
Merged revisions 268321 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r268321 | tilghman | 2010-06-04 21:51:34 -0500 (Fri, 04 Jun 2010) | 10 lines
Merged revisions 268320 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r268320 | tilghman | 2010-06-04 21:49:52 -0500 (Fri, 04 Jun 2010) | 3 lines
Rest In Peace
http://www.outandaboutnewspaper.com/article/4061
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268322
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 4 Jun 2010 21:42:58 +0000 (21:42 +0000)]
Get rid of warning when the console is configured without logger levels
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268204
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 4 Jun 2010 21:21:10 +0000 (21:21 +0000)]
Merged revisions 266735 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r266735 | tilghman | 2010-06-01 13:02:24 -0500 (Tue, 01 Jun 2010) | 7 lines
Don't register functions until the last possible point, so they're not unloaded unnecessarily.
(closes issue #15996)
Reported by: junky
Patches:
sdmi_wait.diff uploaded by junky (license 177)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268147
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Fri, 4 Jun 2010 20:43:27 +0000 (20:43 +0000)]
Merged revisions 268127 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r268127 | tilghman | 2010-06-04 15:42:27 -0500 (Fri, 04 Jun 2010) | 9 lines
Merged revisions 268126 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r268126 | tilghman | 2010-06-04 15:41:24 -0500 (Fri, 04 Jun 2010) | 2 lines
AC_CONFIG_SUBDIRS has a bad side-effect on cross-compiles.
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268128
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Fri, 4 Jun 2010 19:40:42 +0000 (19:40 +0000)]
Merged revisions 268051 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r268051 | tilghman | 2010-06-04 14:40:00 -0500 (Fri, 04 Jun 2010) | 13 lines
Merged revisions 268050 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r268050 | tilghman | 2010-06-04 14:38:57 -0500 (Fri, 04 Jun 2010) | 6 lines
Build menuselect with the build environment's compiler, not the host (target)'s compiler.
(closes issue #17464)
Reported by: pprindeville
Tested by: tilghman
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268052
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Fri, 4 Jun 2010 16:33:10 +0000 (16:33 +0000)]
Merged revisions 267972 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r267972 | tilghman | 2010-06-04 11:31:25 -0500 (Fri, 04 Jun 2010) | 9 lines
Merged revisions 267971 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r267971 | tilghman | 2010-06-04 11:27:02 -0500 (Fri, 04 Jun 2010) | 2 lines
As-fixiate the build process
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267973
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Fri, 4 Jun 2010 03:23:20 +0000 (03:23 +0000)]
Merge fail.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267888
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Fri, 4 Jun 2010 03:22:11 +0000 (03:22 +0000)]
Merged revisions 267862,267877 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r267862 | tilghman | 2010-06-03 21:58:55 -0500 (Thu, 03 Jun 2010) | 5 lines
As signed linear audio data is accessed as 16-bit values, certain processors require the values to be aligned in memory.
(closes issue #16912)
Reported by: michaelevdokimov
........
r267877 | tilghman | 2010-06-03 22:20:47 -0500 (Thu, 03 Jun 2010) | 8 lines
As signed linear audio data is accessed as 16-bit values, certain processors require the values to be aligned in memory.
(closes issue #16912)
Reported by: michaelevdokimov
Patches:
asterisk.patch uploaded by michaelevdokimov (license 997)
Tested by: michaelevdokimov
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267883
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Fri, 4 Jun 2010 01:41:25 +0000 (01:41 +0000)]
Merged revisions 263724,267819 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r263724 | tilghman | 2010-05-17 18:49:15 -0500 (Mon, 17 May 2010) | 8 lines
Cache sound tarfiles in a common directory, such that a clean reinstall does not force a re-download of the tarballs.
(closes issue #15370)
Reported by: pprindeville
Patches:
asterisk-trunk-bugid15370.patch uploaded by pprindeville (license 347)
Tested by: pprindeville, tilghman, seanbright
........
r267819 | tilghman | 2010-06-03 20:36:46 -0500 (Thu, 03 Jun 2010) | 2 lines
If there's a default, turn it on, even when the option isn't specified.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267820
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Fri, 4 Jun 2010 01:22:45 +0000 (01:22 +0000)]
Merged revisions 267775 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r267775 | tilghman | 2010-06-03 20:20:17 -0500 (Thu, 03 Jun 2010) | 14 lines
Merged revisions 267759 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r267759 | tilghman | 2010-06-03 20:16:26 -0500 (Thu, 03 Jun 2010) | 7 lines
Make the default install path appear to be /usr on Linux, instead of /usr/local.
Also, reorganize the options, so that they're more alphabetical.
(closes issue #17013)
Reported by: klaus3000
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267787
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Thu, 3 Jun 2010 19:51:06 +0000 (19:51 +0000)]
Merged revisions 267669 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r267669 | tilghman | 2010-06-03 14:46:42 -0500 (Thu, 03 Jun 2010) | 8 lines
Handle OOM errors more gracefully.
(closes issue #17084)
Reported by: falves11
Patches:
issue17084_162_A.diff uploaded by falves11 (license 374)
Tested by: falves11
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267670
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Leif Madsen [Thu, 3 Jun 2010 18:54:21 +0000 (18:54 +0000)]
Merged revisions 267624 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r267624 | lmadsen | 2010-06-03 13:53:24 -0500 (Thu, 03 Jun 2010) | 7 lines
Update UPGRADE.txt and CHANGE for CDR functionality changes.
Updated the UPGRADE.txt and CHANGES file stating that CDR records will not be explicity
written unless cdr.conf exists and is configured.
(closes issue #17373)
Reported by: wdoekes
Tested by: pabelanger
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267625
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Richard Mudgett [Thu, 3 Jun 2010 18:44:26 +0000 (18:44 +0000)]
Merged revisions 267622 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r267622 | rmudgett | 2010-06-03 13:38:00 -0500 (Thu, 03 Jun 2010) | 1 line
Make compile again.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267623
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 3 Jun 2010 17:32:04 +0000 (17:32 +0000)]
Merged revisions 267537 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r267537 | russell | 2010-06-03 12:31:41 -0500 (Thu, 03 Jun 2010) | 2 lines
Don't stop Asterisk if chan_usbradio isn't configured.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267538
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Thu, 3 Jun 2010 17:26:29 +0000 (17:26 +0000)]
Add fields back to ast_translator for ABI reasons.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267527
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Thu, 3 Jun 2010 17:21:06 +0000 (17:21 +0000)]
Merged revisions 267492 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r267492 | mmichelson | 2010-06-03 12:09:11 -0500 (Thu, 03 Jun 2010) | 6 lines
Remove unnecessary code relating to PLC.
The logic for handling generic PLC is now handled in ast_write in
channel.c instead of in translation code.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267507
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 3 Jun 2010 17:06:15 +0000 (17:06 +0000)]
Merged revisions 267490 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r267490 | russell | 2010-06-03 12:05:30 -0500 (Thu, 03 Jun 2010) | 2 lines
Remove a line that was killing Asterisk on startup.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267491
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 3 Jun 2010 14:48:55 +0000 (14:48 +0000)]
Merged revisions 267445 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r267445 | russell | 2010-06-03 09:48:09 -0500 (Thu, 03 Jun 2010) | 2 lines
Comment out a rule that likes to run implicitly unnecessarily, breaking builds
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267446
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 2 Jun 2010 22:46:58 +0000 (22:46 +0000)]
Merged revisions 267352 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r267352 | russell | 2010-06-02 17:46:37 -0500 (Wed, 02 Jun 2010) | 7 lines
try to fix some random chan_h323 compilation failures
After some debugging, the random chan_h323 build failures appear to be due
to complications introduced by some chan_h323 specific build stuff getting
triggered during a clean. Simplify this by moving the h323 clean commands
down into channels/makefile.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267353
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 2 Jun 2010 21:44:26 +0000 (21:44 +0000)]
Merged revisions 267305 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r267305 | russell | 2010-06-02 16:44:06 -0500 (Wed, 02 Jun 2010) | 2 lines
Fix a build error on mac.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267306
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 2 Jun 2010 21:42:41 +0000 (21:42 +0000)]
Merged revisions 267303 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r267303 | russell | 2010-06-02 16:41:54 -0500 (Wed, 02 Jun 2010) | 6 lines
Ensure the -Wno-strict-aliasing flag makes it, even if ASTCFLAGS has been specified.
When ASTCFLAGS was specified with the make command, Makefile.rules was using
the specified value from the command line and not the one here, making it so this
flag would go missing.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267304
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 2 Jun 2010 18:57:02 +0000 (18:57 +0000)]
Merged revisions 267138 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r267138 | russell | 2010-06-02 13:53:38 -0500 (Wed, 02 Jun 2010) | 4 lines
Add a CLI command that blocks until Asterisk has fully booted.
Review: https://reviewboard.asterisk.org/r/684/
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267139
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Wed, 2 Jun 2010 17:31:52 +0000 (17:31 +0000)]
Merged revisions 267065 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r267065 | jpeeler | 2010-06-02 12:29:35 -0500 (Wed, 02 Jun 2010) | 12 lines
Fix infinite loop when loading codec speex
This changes the sample slinear frame data to contain non-zero data so that
translation calculations for speex works when preprocessing and VAD is turned
on. The encoder expects samples to be returned, but when attempted with the
mentioned two options and silent sample frames everything was discarded.
(closes issue #17240)
Reported by: seandarcy
Review: https://reviewboard.asterisk.org/r/682/
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267073
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Paul Belanger [Wed, 2 Jun 2010 17:29:14 +0000 (17:29 +0000)]
Merged revisions 267041 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r267041 | pabelanger | 2010-06-02 13:25:05 -0400 (Wed, 02 Jun 2010) | 14 lines
Merged revisions 267009 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r267009 | pabelanger | 2010-06-02 13:14:37 -0400 (Wed, 02 Jun 2010) | 7 lines
Cleanup error/warning messages in AEL2 parser
(closes issue #16684)
Reported by: Silmaril
Patches:
patch_ael2_logmsg.diff uploaded by Silmaril (license 979)
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@267062
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Paul Belanger [Wed, 2 Jun 2010 13:34:09 +0000 (13:34 +0000)]
Merged revisions 266877 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r266877 | pabelanger | 2010-06-02 09:32:22 -0400 (Wed, 02 Jun 2010) | 10 lines
pthread_join to assure the thread is really gone
(closes issue #15465)
Reported by: fnordian
Patches:
bridging.patch uploaded by fnordian (license 110)
Tested by: lmadsen, fnordian, peterh
Review: https://reviewboard.asterisk.org/r/679/
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@266878
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 1 Jun 2010 16:42:03 +0000 (16:42 +0000)]
Merged revisions 266682 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r266682 | tilghman | 2010-06-01 11:41:00 -0500 (Tue, 01 Jun 2010) | 16 lines
Eliminate stale manager events after a set interval, even if AMI clients don't query for them.
Actions (or failures to act) by external clients should not cause memory leaks
in Asterisk, especially when those continued leaks could cause Asterisk to
misbehave later.
(closes issue #17234)
Reported by: mav3rick
Patches:
20100510__issue17234.diff.txt uploaded by tilghman (license 14)
20100517__issue17234__trunk.diff.txt uploaded by tilghman (license 14)
Tested by: mav3rick, davidw
(closes issue #17365)
Reported by: davidw
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@266683
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 1 Jun 2010 15:20:14 +0000 (15:20 +0000)]
Merged revisions 266592 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r266592 | tilghman | 2010-06-01 10:18:59 -0500 (Tue, 01 Jun 2010) | 18 lines
Merged revisions 266585 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r266585 | tilghman | 2010-06-01 10:17:46 -0500 (Tue, 01 Jun 2010) | 11 lines
Prevent CLI prompt from distorting output of lines shorter than the prompt.
Uses the VT100 method of clearing the line from the cursor position to the
end of the line: Esc-0K
(closes issue #17160)
Reported by: coolmig
Patches:
20100531__issue17160.diff.txt uploaded by tilghman (license 14)
Tested by: coolmig
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@266598
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Paul Belanger [Mon, 31 May 2010 16:07:27 +0000 (16:07 +0000)]
Fix typo in documentation
(closes issue #17395)
Reported by: pabelanger
Patches:
res_agi.c.patch uploaded by pabelanger (license 224)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@266570
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Sun, 30 May 2010 04:45:25 +0000 (04:45 +0000)]
Merged revisions 266438 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r266438 | tilghman | 2010-05-29 23:44:28 -0500 (Sat, 29 May 2010) | 9 lines
Merged revisions 266437 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r266437 | tilghman | 2010-05-29 23:43:28 -0500 (Sat, 29 May 2010) | 2 lines
Reverting patch and reopening issue #16784, as patch breaks color display.
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@266439
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Fri, 28 May 2010 20:55:47 +0000 (20:55 +0000)]
Merged revisions 266337 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r266337 | tilghman | 2010-05-28 15:53:04 -0500 (Fri, 28 May 2010) | 1 line
Only report swap on platforms which can examine those statistics
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@266338
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
David Vossel [Fri, 28 May 2010 17:57:40 +0000 (17:57 +0000)]
Merged revisions 266292 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r266292 | dvossel | 2010-05-28 12:55:38 -0500 (Fri, 28 May 2010) | 9 lines
fixes crash when creation of UDPTL fails
(closes issue #17264)
Reported by: falves11
Patches:
issue_17264_reviewboard_fix.diff uploaded by dvossel (license 671)
issue_17264_1.6.2_reviewboard_fix.diff uploaded by dvossel (license 671)
Tested by: falves11
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@266293
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 26 May 2010 21:19:49 +0000 (21:19 +0000)]
Merged revisions 266146 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r266146 | tilghman | 2010-05-26 16:17:46 -0500 (Wed, 26 May 2010) | 21 lines
Merged revisions 266142 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r266142 | tilghman | 2010-05-26 16:11:44 -0500 (Wed, 26 May 2010) | 14 lines
Use sigaction for signals which should persist past the initial trigger, not signal.
If you call signal() in a Solaris signal handler, instead of just resetting
the signal handler, it causes the signal to refire, because the signal is not
marked as handled prior to the signal handler being called. This effectively
causes Solaris to immediately exceed the threadstack in recursive signal
handlers and crash.
(closes issue #17000)
Reported by: rmcgilvr
Patches:
20100526__issue17000.diff.txt uploaded by tilghman (license 14)
Tested by: rmcgilvr
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@266154
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
David Vossel [Wed, 26 May 2010 18:37:11 +0000 (18:37 +0000)]
Merged revisions 266006 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r266006 | dvossel | 2010-05-26 13:32:51 -0500 (Wed, 26 May 2010) | 8 lines
fixes failed SIP Directed pickup resulting in dead channel
(closes issue #17339)
Reported by: one47
Patches:
sip_magic_pickup2 uploaded by one47 (license 23)
Tested by: one47, dvossel
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@266007
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 26 May 2010 16:31:37 +0000 (16:31 +0000)]
Merged revisions 265923 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r265923 | tilghman | 2010-05-26 11:23:28 -0500 (Wed, 26 May 2010) | 14 lines
Merged revisions 265910 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r265910 | tilghman | 2010-05-26 11:21:00 -0500 (Wed, 26 May 2010) | 7 lines
Not finding rows in the DB does not rise to the level of a warning.
(closes issue #17062)
Reported by: drookie
Patches:
20100525__issue17062.diff.txt uploaded by tilghman (license 14)
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265959
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 26 May 2010 16:15:40 +0000 (16:15 +0000)]
Merged revisions 265894 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r265894 | tilghman | 2010-05-26 11:14:48 -0500 (Wed, 26 May 2010) | 8 lines
Construct socket name, according to the Postgres docs, and document as such.
(closes issue #17392)
Reported by: dps
Patches:
20100525__issue17392.diff.txt uploaded by tilghman (license 14)
Tested by: dps
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265895
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Wed, 26 May 2010 15:52:55 +0000 (15:52 +0000)]
Recorded merge of revisions 265842 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r265842 | mmichelson | 2010-05-26 09:41:55 -0500 (Wed, 26 May 2010) | 9 lines
Re-enable "always" option for videosupport option in sip.conf.
(closes issue #17016)
Reported by: twilson
Patches:
17016.patch uploaded by mmichelson (license 60)
Tested by: devmod
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265890
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 26 May 2010 00:33:49 +0000 (00:33 +0000)]
Merged revisions 265747 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r265747 | tilghman | 2010-05-25 19:29:40 -0500 (Tue, 25 May 2010) | 8 lines
Use configure to determine the prefixes and include directories properly.
This ensures cross-platform compatibility, even among Linux distributions,
which don't always put headers in the same place.
(closes issue #17391)
Reported by: loloski
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265748
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Tue, 25 May 2010 21:05:54 +0000 (21:05 +0000)]
Merged revisions 265698 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r265698 | mmichelson | 2010-05-25 15:59:04 -0500 (Tue, 25 May 2010) | 12 lines
Properly use peer's outboundproxy for outbound REGISTERs.
The logic used in transmit_register to get the outboundproxy for a peer
was flawed since this value would be overridden shortly afterwards when
create_addr was called.
In addition, this also fixes some logic used when parsing users.conf so
that the peer name is placed in the internally-generated register string
so that an outboundproxy set in the Asterisk GUI will be used for outbound
REGISTERs.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265699
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
David Vossel [Tue, 25 May 2010 17:15:59 +0000 (17:15 +0000)]
fixes build issue with zaptel
(closes issue
0017394 )
Reported by: aragon
Patches:
half_buffer_fix.diff uploaded by dvossel (license 671)
Tested by: aragon
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265615
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Matthew Nicholson [Tue, 25 May 2010 17:06:04 +0000 (17:06 +0000)]
Merged revisions 265611 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r265611 | mnicholson | 2010-05-25 12:00:11 -0500 (Tue, 25 May 2010) | 15 lines
Merged revisions 265610 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r265610 | mnicholson | 2010-05-25 11:48:19 -0500 (Tue, 25 May 2010) | 8 lines
Don't mark the cdr records of unanswered queue calls with "NOANSWER". This restores the behavior prior to r258670.
(closes issue #17334)
Reported by: jvandal
Patches:
queue-cdr-fixes1.diff uploaded by mnicholson (license 96)
Tested by: aragon, jvandal
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265612
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Terry Wilson [Mon, 24 May 2010 23:52:48 +0000 (23:52 +0000)]
Merged revisions 265320,265467 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r265320 | twilson | 2010-05-24 14:06:40 -0500 (Mon, 24 May 2010) | 14 lines
Add the FullyBooted AMI event
It is possible to connect to the manager interface before all Asterisk modules
are loaded. To ensure that an application does not send AMI actions that might
require a module that has not yet loaded, the application can listen for the
FullyBooted manager event. It will be sent upon connection if all modules have
been loaded, or as soon as loading is complete. The event:
Event: FullyBooted
Privilege: system,all
Status: Fully Booted
Review: https://reviewboard.asterisk.org/r/639/
........
r265467 | twilson | 2010-05-24 17:21:58 -0500 (Mon, 24 May 2010) | 1 line
Merge the rest of the FullyBooted patch
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265521
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Mon, 24 May 2010 22:07:11 +0000 (22:07 +0000)]
Merged revisions 265451 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r265451 | mmichelson | 2010-05-24 17:05:15 -0500 (Mon, 24 May 2010) | 8 lines
Print openh323 log to the Asterisk console.
(closes issue #17109)
Reported by: under
Patches:
logstream.diff uploaded by under (license 914)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265452
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Mon, 24 May 2010 21:47:04 +0000 (21:47 +0000)]
Merged revisions 265449 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r265449 | mmichelson | 2010-05-24 16:44:30 -0500 (Mon, 24 May 2010) | 11 lines
Allow type=user SIP endpoints to be loaded properly from realtime.
(closes issue #16021)
Reported by: Guggemand
Patches:
realtime-type-fix.patch uploaded by Guggemand (license 897)
(altered by me slightly to avoid ref leaks)
Tested by: Guggemand
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265450
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
David Vossel [Mon, 24 May 2010 19:30:45 +0000 (19:30 +0000)]
Merged revisions 265273 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r265273 | dvossel | 2010-05-24 11:10:09 -0500 (Mon, 24 May 2010) | 2 lines
fixes segfault when using generic plc
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265364
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Terry Wilson [Mon, 24 May 2010 18:32:16 +0000 (18:32 +0000)]
Blocked revisions 265317 via svnmerge
........
r265317 | twilson | 2010-05-24 13:21:20 -0500 (Mon, 24 May 2010) | 15 lines
Calendaring support for Exchange Server 2007+ via EWS
This commit adds support for calendaring with Exchange Server 2007+ via
Exchange Web Services. Full write support and for querying attendees. Many
thanks to Jan Kaláb for the feature.
(closes issue #17022)
Reported by: pitel
Patches:
res_calendar_ews.c uploaded by pitel (license 1008)
Tested by: pitel, twilson
Review: https://reviewboard.asterisk.org/r/557/
Review: https://reviewboard.asterisk.org/r/668/
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265319
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 24 May 2010 18:30:00 +0000 (18:30 +0000)]
Merged revisions 265316 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r265316 | tilghman | 2010-05-24 13:19:08 -0500 (Mon, 24 May 2010) | 7 lines
On systems with a LOT of RAM, a signed integer sometimes printed negative.
(closes issue #16837)
Reported by: jlpedrosa
Patches:
20100504__issue16837.diff.txt uploaded by tilghman (license 14)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265318
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Fri, 21 May 2010 21:57:24 +0000 (21:57 +0000)]
Fix memory hogging behavior of app_queue.
From reviewboard:
This review request is for the patch on issue 17081.
A user reported that he saw increasing numbers of allocations stemming
from app_queue.c when he would run the "queue show" CLI command. The
user reported that he was using approximately 40 realtime queues and
as he ran the CLI command more and more, the memory usage would shoot up.
As it turns out, there was a memory leak and a separate usage of memory
that, while not really a leak, was very irresponsible.
Both memory problems can be attributed to the function init_queue(). When
the "queue show" command is run, all realtime queues have the init_queue()
function called on the in-memory queue. The idea is to place the queue in
its default state and then overwrite options specified in the realtime backend
as we read them.
The first problem, the memory leak, had to do with the fact that the string
field for the name of the first periodic announcement file was being re-created
every time init_queue was called. This patch corrects the behavior by only
calling ast_str_create if the memory has not already been allocated.
The other problem is a bit more complicated. The majority of the strings
in the call_queue structure were changed to use the ast_string_fields API
for 1.6.0 and beyond. init_queue resets all string fields on the queue to
their default values. Then, later in the realtime queue loading process,
these string fields are set to their configured values.
For those unfamiliar with string fields, frequent resizing of a string like
this is not what the string fields API is designed for. The result of this
constant resizing is that as the queue gets loaded, eventually space for
the string runs out and so a new memory pool, at twice the size of the
previously allocated one, is created for the string fields. The reporter
of issue 17081 wrote a script that ran the "queue show" CLI command 2100
times. By the end, each of his 40 queues was taking about a megabyte of
memory apiece just for their string fields.
My fix for this problem is to revert the call_queue structure from using
string fields. In my patch here, I have moved the queue back to using
fixed-sized buffers. I ran the script provided by the reporter of 17081
and determined that I no longer saw the steadily-increasing memory usage
that I had seen before applying the patch.
(closes issue #17081)
Reported by: wliegel
Patches:
17081v2.patch uploaded by mmichelson (license 60)
Tested by: wliegel, mmichelson
Review: https://reviewboard.asterisk.org/r/651/
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265172
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Fri, 21 May 2010 21:10:04 +0000 (21:10 +0000)]
Merged revisions 265090 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r265090 | mmichelson | 2010-05-21 16:08:51 -0500 (Fri, 21 May 2010) | 15 lines
Merged revisions 265089 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r265089 | mmichelson | 2010-05-21 15:59:14 -0500 (Fri, 21 May 2010) | 8 lines
Don't hang up on a queue caller if the file we attempt to play does not exist.
This also fixes a documentation mistake in file.h that made my original attempt
to correct this problem not work correctly.
(closes issue #17061)
Reported by: RoadKill
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265091
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Fri, 21 May 2010 20:38:46 +0000 (20:38 +0000)]
Merged revisions 265087 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r265087 | mmichelson | 2010-05-21 15:38:14 -0500 (Fri, 21 May 2010) | 7 lines
Be sure to set the sin_family on the proxy when allocating.
(closes issue #17157)
Reported by: stuarth
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265088
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Fri, 21 May 2010 16:55:11 +0000 (16:55 +0000)]
Merged revisions 265000 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r265000 | mmichelson | 2010-05-21 11:54:21 -0500 (Fri, 21 May 2010) | 9 lines
Merged revisions 264999 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r264999 | mmichelson | 2010-05-21 11:53:53 -0500 (Fri, 21 May 2010) | 3 lines
Fix grammatical error in comment.
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@265001
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Fri, 21 May 2010 16:53:30 +0000 (16:53 +0000)]
Merged revisions 264997 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r264997 | mmichelson | 2010-05-21 11:44:27 -0500 (Fri, 21 May 2010) | 38 lines
Merged revisions 264996 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r264996 | mmichelson | 2010-05-21 11:28:34 -0500 (Fri, 21 May 2010) | 32 lines
Allow ast_safe_sleep to defer specific frames until after the sleep has concluded.
From reviewboard
Background:
A Digium customer discovered a somewhat odd bug. The setup is that parties A
and B are bridged, and party A places party B on hold. While party B is
listening to hold music, he mashes a bunch of DTMF. Party A takes party
B off hold while this is happening, but party B continues to hear hold
music. I could reproduce this about 1 in 5 times.
The issue:
When DTMF features are enabled and a user presses keys, the channel that
the DTMF is streamed to is placed in an ast_safe_sleep for 100 ms, the
duration of the emulated tone. If an AST_CONTROL_UNHOLD frame is read
from the channel during the sleep, the frame is dropped. Thus the
unhold indication is never made to the channel that was originally placed
on hold.
The fix:
Originally, I discussed with Kevin possible ways of fixing the specific
problem reported. However, we determined that the same type of problem
could happen in other situations where ast_safe_sleep() is used. Using
autoservice as a model, I modified ast_safe_sleep_conditional() to
defer specific frame types so they can be re-queued once the sleep has
finished. I made a common function for determining if a frame should
be deferred so that there are not two identical switch blocks to
maintain.
Review: https://reviewboard.asterisk.org/r/674/
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@264998
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Richard Mudgett [Thu, 20 May 2010 23:34:33 +0000 (23:34 +0000)]
Merged revisions 264828 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r264828 | rmudgett | 2010-05-20 18:29:43 -0500 (Thu, 20 May 2010) | 13 lines
Merged revisions 264820 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r264820 | rmudgett | 2010-05-20 18:23:21 -0500 (Thu, 20 May 2010) | 6 lines
ast_callerid_parse() had a path that left name uninitialized.
Several callers of ast_callerid_parse() do not initialize the name
parameter before calling thus there is the potential to use an
uninitialized pointer.
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@264829
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Thu, 20 May 2010 22:24:16 +0000 (22:24 +0000)]
Merged revisions 264779 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r264779 | tilghman | 2010-05-20 17:23:32 -0500 (Thu, 20 May 2010) | 8 lines
Let ExtensionState resolve dynamic hints.
(closes issue #16623)
Reported by: tilghman
Patches:
20100116__issue16623.diff.txt uploaded by tilghman (license 14)
Tested by: lmadsen
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@264783
65c4cc65 -6c06-0410-ace0-
fbb531ad65f3