Mark Michelson [Fri, 15 Jan 2010 20:58:24 +0000 (20:58 +0000)]
Make sure to set owner_line, ownder_func, and owner_file in ast_calloc_with_stringfields.
Asterisk would crash on startup if MALLOC_DEBUG were set in menuselect. This is because
the manager action UpdateConfig had to resize its string field allocation to set the
description. When the resize occurred, ast_copy_string would crash because we were
attempting to copy a string from a NULL pointer. Setting the strings initially makes
the code much less crashy.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240420
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Fri, 15 Jan 2010 20:58:19 +0000 (20:58 +0000)]
Make sure that the limit is N, not N - 1.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240419
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Fri, 15 Jan 2010 20:54:24 +0000 (20:54 +0000)]
Merged revisions 240414 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r240414 | tilghman | 2010-01-15 14:52:27 -0600 (Fri, 15 Jan 2010) | 15 lines
Disallow leaving more than maxmsg voicemails.
This is a possibility because our previous method assumed that no messages are
left in parallel, which is not a safe assumption. Due to the vmu structure
duplication, it was necessary to track in-process messages via a separate
structure. If at some point, we switch vmu to an ao2-reference-counted
structure, which would eliminate the prior noted duplication of structures,
then we could incorporate this new in-process structure directly into vmu.
(closes issue #16271)
Reported by: sohosys
Patches:
20100108__issue16271.diff.txt uploaded by tilghman (license 14)
20100108__issue16271__trunk.diff.txt uploaded by tilghman (license 14)
20100108__issue16271__1.6.0.diff.txt uploaded by tilghman (license 14)
Tested by: jsutton
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240415
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 15 Jan 2010 20:41:11 +0000 (20:41 +0000)]
Ensure payload type is properly checked when comparing against cached events.
(closes issue #16607)
Reported by: ddv2005
Patches:
event.patch uploaded by ddv2005 (license 769)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240411
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Sean Bright [Fri, 15 Jan 2010 18:21:50 +0000 (18:21 +0000)]
Convert a few places to use ast_calloc_with_stringfields where applicable.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240368
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 15 Jan 2010 16:51:34 +0000 (16:51 +0000)]
Update configure script for an OSP toolkit related change.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240329
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Fri, 15 Jan 2010 16:28:38 +0000 (16:28 +0000)]
Clarify RTP NAT handling a bit.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240328
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Sean Bright [Thu, 14 Jan 2010 23:13:02 +0000 (23:13 +0000)]
Plug a memory leak in res_config_ldap.
(closes issue #16257)
Reported by: nito
Patches:
issue16257_20100111.diff uploaded by seanbright (license 71)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240271
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Sean Bright [Thu, 14 Jan 2010 20:30:03 +0000 (20:30 +0000)]
If we aren't running on a machine that support CLOCK_MONOTONIC, don't load.
Group developed and tested by seanbright, Corydon76, Kobaz, and Amorsen.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240226
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Thu, 14 Jan 2010 18:03:31 +0000 (18:03 +0000)]
Fix broken call pickup
The problem was the OUTGOING flag was not getting set properly on the channel,
resulting in pickup failing as ast_read thought the call was inbound. Refer to
170393 for a more verbose description as this is the same exact change.
(closes issue #16539)
Reported by: syspert
Patches:
bug16539.patch uploaded by jpeeler (license 325)
Tested by: syspert
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240179
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Thu, 14 Jan 2010 17:34:53 +0000 (17:34 +0000)]
Similarly, ensure that matchcid is duplicated correctly when merging contexts.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240175
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Thu, 14 Jan 2010 16:52:22 +0000 (16:52 +0000)]
Ensure that the callerid is NULL when the parent is effectively NULL.
This applies only to pattern-match hints, which create exact-match
hints on the fly.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240129
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matthew Nicholson [Thu, 14 Jan 2010 16:14:35 +0000 (16:14 +0000)]
This change fixes a few bugs in the way the far max IFP was calculated that were introduced in r231692.
(closes issue #16497)
Reported by: globalnetinc
Patches:
udptl-max-ifp-fix1.diff uploaded by mnicholson (license 96)
Tested by: globalnetinc
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240078
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Leif Madsen [Thu, 14 Jan 2010 14:38:01 +0000 (14:38 +0000)]
Add documentation about how to build queues.
Add a how-to set of documentation about building queues with Asterisk.
This documentation is based on Asterisk 1.6.2 but should work on most
versions with minor modifications.
(closes issue #16237)
Reported by: lmadsen
Patches:
Building Queues (FINAL).txt uploaded by lmadsen (license 10)
Tested by: pdhales, lmadsen, cmdrwalrus
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240039
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 13 Jan 2010 23:22:56 +0000 (23:22 +0000)]
Oops, another tag error
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239997
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 13 Jan 2010 23:21:46 +0000 (23:21 +0000)]
Oops, missed a closing tag
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239996
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 13 Jan 2010 21:27:34 +0000 (21:27 +0000)]
Add the TESTTIME() dialplan function, which permits testing GotoIfTime.
Specifically, by setting TESTTIME() to a particular date and time, you
can test whether a dialplan correctly branches as was intended. This was
developed after recent questions on the -users list on how to test their
holiday dialplan logic.
(closes issue #16464)
Reported by: tilghman
Patches:
20100112__issue16464.diff.txt uploaded by tilghman (license 14)
Review: https://reviewboard.asterisk.org/r/458/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239957
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 13 Jan 2010 20:38:42 +0000 (20:38 +0000)]
Flex uses fwrite incorrectly, which breaks the build. Providing a workaround.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239920
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Wed, 13 Jan 2010 19:48:16 +0000 (19:48 +0000)]
Merged revisions 239838 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r239838 | jpeeler | 2010-01-13 13:43:33 -0600 (Wed, 13 Jan 2010) | 11 lines
Fix regression for timed out parked call returning to caller
This issue seems to have been exposed by the fix in 160390 whereby using a
masquerade prevented a crash. The new channel used in the masquerade was
not copying the macro information from the old channel.
(closes issue #15459)
Reported by: djrodman
Patches:
patch_15459.txt uploaded by mnick (license )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239839
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Leif Madsen [Wed, 13 Jan 2010 19:31:13 +0000 (19:31 +0000)]
Add more examples to extensions.conf showing how to use various
functionality and provide commonly useful features.
(closes issue #16090)
Reported by: pprindeville
Patches:
extensions.conf-bugid16090.patch#3 uploaded by pprindeville (license 347)
Tested by: tzafrir, pprindeville, lmadsen
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239834
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 13 Jan 2010 18:16:13 +0000 (18:16 +0000)]
Code previously added to ast_expr2f.c warranted a change in the source file ast_expr2.fl.
Also, made a Makefile change to ensure that the expression parser C source files get
regenerated correctly, when we need that to happen.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239797
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
David Vossel [Wed, 13 Jan 2010 17:16:58 +0000 (17:16 +0000)]
Blocked revisions 239718 via svnmerge
........
r239718 | dvossel | 2010-01-13 11:16:12 -0600 (Wed, 13 Jan 2010) | 23 lines
add silence gen to wait apps
asterisk.conf's 'transmit_silence' option existed before
this patch, but was limited to only generating silence
while recording and sending DTMF. Now enabling the
transmit_silence option generates silence during wait
times as well.
To achieve this, ast_safe_sleep has been modified to
generate silence anytime no other generators are present
and transmit_silence is enabled. Wait apps not using
ast_safe_sleep now generate silence when transmit_silence
is enabled as well.
(closes issue 0016524)
Reported by: kobaz
(closes issue 0016523)
Reported by: kobaz
Tested by: dvossel
Review: https://reviewboard.asterisk.org/r/456/
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239719
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
David Vossel [Wed, 13 Jan 2010 16:31:14 +0000 (16:31 +0000)]
add silence gen to wait apps
asterisk.conf's 'transmit_silence' option existed before
this patch, but was limited to only generating silence
while recording and sending DTMF. Now enabling the
transmit_silence option generates silence during wait
times as well.
To achieve this, ast_safe_sleep has been modified to
generate silence anytime no other generators are present
and transmit_silence is enabled. Wait apps not using
ast_safe_sleep now generate silence when transmit_silence
is enabled as well.
(closes issue #16524)
Reported by: kobaz
(closes issue #16523)
Reported by: kobaz
Tested by: dvossel
Review: https://reviewboard.asterisk.org/r/456/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239712
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Wed, 13 Jan 2010 10:45:19 +0000 (10:45 +0000)]
MAX() moved to utils.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239665
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Wed, 13 Jan 2010 10:24:23 +0000 (10:24 +0000)]
SIP Show channelstats fix - use float division to show proper stats
(closes issue #15819)
Reported by: klaus3000
Patches:
asterisk-sip-show-channelstats-trunk.txt uploaded by klaus3000 (license 65)
Tested by: klaus3000, oej
This patch is for trunk only and will be blocked in 1.6.2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239663
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
TransNexus OSP Development [Wed, 13 Jan 2010 07:02:13 +0000 (07:02 +0000)]
Updated channel variable list of osplookup application.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239625
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
TransNexus OSP Development [Wed, 13 Jan 2010 07:00:13 +0000 (07:00 +0000)]
Updated XML doc for OSP.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239624
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 12 Jan 2010 19:58:00 +0000 (19:58 +0000)]
Blank callerid and NULL callerid should not compare equal.
The second is the default state for matching CID in the dialplan (no matching)
while the first matches one particular CallerID. This is a regression.
(fixes AST-314, SWP-611)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239571
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Alec L Davis [Tue, 12 Jan 2010 18:55:54 +0000 (18:55 +0000)]
add Dialed Number Identifier (DNID) field to cdr records.
reviewboard link: https://reviewboard.asterisk.org/r/455/
Reported by: alecdavis
Tested by: alecdavis
Patch
cdr_dnid.diff2.txt uploaded by alecdavis (license 585)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239525
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Leif Madsen [Tue, 12 Jan 2010 18:22:45 +0000 (18:22 +0000)]
Note that direct T.38 is not supported.
(closes issue #16411)
Reported by: stanusr
Patches:
__20091210-sip.conf.sample-documentation.txt uploaded by lmadsen (license 10)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239520
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Sean Bright [Tue, 12 Jan 2010 17:09:12 +0000 (17:09 +0000)]
Fix crash in res_config_ldap.
We need to allocate enough room for 2 pointers, not 2 characters.
(closes issue #16397)
Reported by: bklang
Patches:
res_config_ldap.patch uploaded by applsplatz (license 949)
Tested by: applsplatz
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239473
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
David Vossel [Tue, 12 Jan 2010 16:14:41 +0000 (16:14 +0000)]
fixes text support in sdp answer
The code that handled setting 'm=text' in the sdp was not executing
in the correct order. The check to see if text was needed came after
the check to add 'm=text' to the sdp, this resulted in 'm=text' always
being set to 0 because it looked like text was never required.
(closes issue #16457)
Reported by: peterj
Patches:
textportinsdp.diff uploaded by peterj (license 951)
issue16457.diff uploaded by dvossel (license 671)
Tested by: peterj
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239427
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Tue, 12 Jan 2010 07:48:16 +0000 (07:48 +0000)]
Adding Tilghman's documentation from asterisk-dev to the actual file.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239389
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 12 Jan 2010 03:21:40 +0000 (03:21 +0000)]
Merged revisions 239307 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r239307 | tilghman | 2010-01-11 21:18:36 -0600 (Mon, 11 Jan 2010) | 8 lines
Portability and other fixes for the safe_asterisk script
(closes issue #16416)
Reported by: bklang
Patches:
safe_asterisk-compat-1.patch uploaded by bklang (license 919)
20100106__issue16416__trunk.diff.txt uploaded by tilghman (license 14)
Tested by: bklang
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239308
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 11 Jan 2010 23:53:32 +0000 (23:53 +0000)]
Add LSB headers to init scripts.
(closes issue #14864)
Reported by: lathama
Patches:
lsb-init-info-debian.diff uploaded by pkempgen (license 169)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239270
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 11 Jan 2010 23:19:51 +0000 (23:19 +0000)]
Socket level option is SOL_SOCKET, not SO_SOCKET.
(issue #16580)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239245
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 11 Jan 2010 23:00:55 +0000 (23:00 +0000)]
Permit more options in the Makefile as to startup options
(closes issue #16454)
Reported by: syspert
Patches:
20091228__issue16454__3.diff.txt uploaded by tilghman (license 14)
Tested by: syspert
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239231
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 11 Jan 2010 22:06:38 +0000 (22:06 +0000)]
Including bundle1.o breaks Tiger and Leopard
(issue #16449)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239191
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 11 Jan 2010 21:03:46 +0000 (21:03 +0000)]
Permit dates and times to be stored in timezones other than the default (typically, UTC)
(closes issue #16401)
Reported by: lordmortis
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239152
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Sean Bright [Mon, 11 Jan 2010 16:41:44 +0000 (16:41 +0000)]
Pass NULL for the ao2_callback function pointer instead of duplicating cb_true.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239114
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Sean Bright [Mon, 11 Jan 2010 16:40:23 +0000 (16:40 +0000)]
Fix ao2_callback when both OBJ_MULTIPLE and OBJ_NODATA are passed.
There is an issue which only affects trunk and the new ao2_callback OBJ_MULTIPLE
implementation. When both OBJ_MULTIPLE and OBJ_NODATA are passed, only the first
object is visited, regardless of what is returned by the specified callback. This
causes a problem when we are clearing a container, i.e.:
ao2_callback(container, OBJ_UNLINK | OBJ_NODATA | OBJ_MULTIPLE, NULL, NULL);
Only unlinks the first object. This patch resolves this.
(closes issue #16564)
Reported by: pj
Patches:
issue16564_20100111.diff uploaded by seanbright (license 71)
Tested by: pj, seanbright
Review: https://reviewboard.asterisk.org/r/457/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239113
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Sean Bright [Mon, 11 Jan 2010 16:22:09 +0000 (16:22 +0000)]
Fix spelling of 'category.'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239111
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Sun, 10 Jan 2010 19:37:30 +0000 (19:37 +0000)]
According to POSIX, the capital L modifier applies only to floating point types.
Fixes a crash on Solaris.
(closes issue #16572)
Reported by: crjw
Patches:
frame_changes.patch uploaded by crjw (license 963)
Plus several others found and fixed by me
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239074
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Alexandr Anikin [Sun, 10 Jan 2010 17:53:59 +0000 (17:53 +0000)]
add docallbacks flag in q931decode function because
when we decode received q931 packet we must do callbacks and
when we print sended q931 packet we must not.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239037
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Sun, 10 Jan 2010 06:56:36 +0000 (06:56 +0000)]
It's been long enough -- make the behavior introduced in 1.6 the default.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239000
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Sat, 9 Jan 2010 01:08:04 +0000 (01:08 +0000)]
Merged revisions 238915 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r238915 | tilghman | 2010-01-08 18:57:58 -0600 (Fri, 08 Jan 2010) | 6 lines
-1 is interpreted as an error, intead of the maximum mask.
(closes issue #16241)
Reported by: vnovy
Patches:
manager.c.patch uploaded by vnovy (license 922)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238916
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Fri, 8 Jan 2010 23:30:55 +0000 (23:30 +0000)]
Merged revisions 238834 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r238834 | jpeeler | 2010-01-08 17:28:37 -0600 (Fri, 08 Jan 2010) | 4 lines
Stop a crash when no peer is passed to masq_park_call.
(distantly related to issue #16406)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238835
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Fri, 8 Jan 2010 22:54:59 +0000 (22:54 +0000)]
Add the class actually used in the MusicOnHold start event.
(closes issue #16499)
Reported by: syspert
Patches:
mohclass.patch uploaded by syspert (license 938)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238795
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Fri, 8 Jan 2010 22:17:03 +0000 (22:17 +0000)]
Initialize variables that we attempt to free later.
(closes issue #16302)
Reported by: yahsyn
Patches:
20091124__issue16302.diff.txt uploaded by tilghman (license 14)
Tested by: yahsyn
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238754
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matthew Nicholson [Fri, 8 Jan 2010 21:04:51 +0000 (21:04 +0000)]
Added a test for ast_format_reduce_str().
(related to issue #16560)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238716
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
David Vossel [Fri, 8 Jan 2010 19:39:30 +0000 (19:39 +0000)]
fixes AUDIOHOOK_INHERIT regression
During the process of removing an audiohook from one channel
and attaching it to another the audiohook's status is updated
to DONE and then back to whatever it was previously. Typically
updating the status after setting it to DONE is not a good idea
because DONE can trigger unrecoverable audiohook destruction
events... because of this a conditional check was added to
audiohook_update_status to explicitly prevent the audiohook
from ever changing after being set to DONE. It was this check
that prevented audiohook inherit from work properly though.
Now ast_audiohook_move_by_source is treated as a special exception,
as the audiohook must be returned to its previous status after
attaching it to the new channel. This is only a safe operation
because the audiohook's lock is held the entire time, otherwise
this could cause trouble.
(closes issue #16522)
Reported by: corruptor
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238635
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matthew Nicholson [Fri, 8 Jan 2010 19:32:11 +0000 (19:32 +0000)]
Merged revisions 238629 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r238629 | mnicholson | 2010-01-08 13:20:44 -0600 (Fri, 08 Jan 2010) | 5 lines
Properly calculate the remaining space in the output string when reducing format strings.
(closes issue #16560)
Reported by: goldwein
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238630
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Fri, 8 Jan 2010 17:18:41 +0000 (17:18 +0000)]
Stop trying to find a parking space after traversing the parkinglot one time.
(closes issue #16428)
Reported by: Yasuhiro Konishi
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238583
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Richard Mudgett [Thu, 7 Jan 2010 21:24:06 +0000 (21:24 +0000)]
Fix using the wrong pointer type in do_idle_thread().
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238527
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
David Vossel [Thu, 7 Jan 2010 20:42:27 +0000 (20:42 +0000)]
fixes ast_transfer stall until hangup if called with a channel that doesn't support transfers
ast_transfer sets res to 0 if there is no technology transfer function,
but then tests for it to be negative before deciding to do an early exit.
As a result, it will will wait for an AST_CONTROL_TRANSFER message that
will never come.
(closes issue #16424)
Reported by: davidw
Patches:
Issue_16424_trunk_234134.patch uploaded by davidw (license 780)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238492
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
David Vossel [Thu, 7 Jan 2010 20:15:27 +0000 (20:15 +0000)]
Merged revisions 238411 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r238411 | dvossel | 2010-01-07 14:14:25 -0600 (Thu, 07 Jan 2010) | 10 lines
fixes crash in "scheduled_destroy" in chan_iax
A signed short was used to represent a callnumber. This is makes
it possible to attempt to access the iaxs array with a negative
index.
(closes issue #16565)
Reported by: jensvb
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238412
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
David Vossel [Thu, 7 Jan 2010 20:06:43 +0000 (20:06 +0000)]
Blocked revisions 238409 via svnmerge
........
r238409 | dvossel | 2010-01-07 14:06:00 -0600 (Thu, 07 Jan 2010) | 7 lines
Change in sip show channels display format allowing more digits for CID
(closes issue 0016459)
Reported by: Rzadzins
Patches:
chan_sip_longer_cid.patch uploaded by Rzadzins (license 953)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238410
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
David Vossel [Thu, 7 Jan 2010 20:00:31 +0000 (20:00 +0000)]
Change in sip show channels display format allowing more digits for CID
(closes issue #16459)
Reported by: Rzadzins
Patches:
chan_sip_longer_cid.patch uploaded by Rzadzins (license 953)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238405
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
David Vossel [Thu, 7 Jan 2010 18:58:23 +0000 (18:58 +0000)]
cli 'queue show' formatting fix. queue name was truncated over 12 characters
(closes issue #16078)
Reported by: RoadKill
Patches:
quequename_limit.patch uploaded by ppyy (license 906)
Tested by: dvossel
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238361
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tzafrir Cohen [Thu, 7 Jan 2010 09:14:57 +0000 (09:14 +0000)]
Document the usefulness of explicit udp:// in the register string
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238313
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 6 Jan 2010 21:45:17 +0000 (21:45 +0000)]
Merged revisions 238230 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r238230 | tilghman | 2010-01-06 15:41:55 -0600 (Wed, 06 Jan 2010) | 4 lines
Revise documentation on disposition values to the actual values used.
(closes issue #16289)
Reported by: wdoekes
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238231
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Wed, 6 Jan 2010 20:37:18 +0000 (20:37 +0000)]
Fix misreverting from 177158.
(closes issue #15725)
Reported by: shanermn
Patches:
v1-15725.patch uploaded by dimas (license 88)
Tested by: shanermn
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238181
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Wed, 6 Jan 2010 19:05:06 +0000 (19:05 +0000)]
Fix channel name comparison for bridge application.
The channel name comparison was not comparing the whole string and therefore
if one channel name was a substring of the other, the bridge would fail.
(closes issue #16528)
Reported by: telecos82
Patches:
res_features_r236843.diff uploaded by telecos82 (license 687)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238134
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
David Vossel [Wed, 6 Jan 2010 16:36:02 +0000 (16:36 +0000)]
fixes test.c compile issue when TEST_FRAMEWORK is not enabled
The ast_test_status_update() function is defined in test.h.
When TEST_FRAMEWORK is not enabled a macro is defined as a no-op
place holder for this function. The macro did not contain
the correct number of arguments. This caused a compile error.
Much thanks to wdoekes for reporting the issue and supplying the
patch!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238091
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Sean Bright [Wed, 6 Jan 2010 15:35:43 +0000 (15:35 +0000)]
Fix reading samples from format_mp3 after ast_seekstream/ast_tellstream.
There is a bug when using ast_seekstream/ast_tellstream with format_mp3 in that
the file read position is not reset before attempting to read samples. So when
we seek to determine the maximum size of the file (as in res_agi's STREAM FILE)
we weren't then resetting the file pointer so that we could properly read
samples. This patch addresses that (in a similar manner to format_wav.c).
(closes issue #15224)
Reported by: rbd
Patches:
20091230_addons_1.4_issue15224.diff uploaded by seanbright (license 71)
Tested by: rbd, seanbright
Review: https://reviewboard.asterisk.org/r/453
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238014
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 6 Jan 2010 15:19:10 +0000 (15:19 +0000)]
Merged revisions 238009 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r238009 | russell | 2010-01-06 09:18:22 -0600 (Wed, 06 Jan 2010) | 7 lines
Resolve a crash due to an ast_frame not being fully initialized.
(closes issue #16531)
Reported by: john8675309
(closes SWP-615)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238010
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 6 Jan 2010 06:53:23 +0000 (06:53 +0000)]
Whoa, duplicate setting (dead code).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237968
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
David Vossel [Tue, 5 Jan 2010 23:08:50 +0000 (23:08 +0000)]
fixes holdtime playback issue in app_queue
When reporting hold time, the number of seconds should be mod 60.
Otherwise audio playback could be something like "2 minutes 123 seconds"
rather than "2 minutes 3 seconds".
Also, the "minute" sound file is missing, so for the moment until
that file can be created the "minutes" file is used instead.
(closes issue #16168)
Reported by: nickilo
Patches:
patch-unified-trunk-rev-222176 uploaded by nickilo (license )
Tested by: nickilo, wonderg
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237920
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Tue, 5 Jan 2010 20:56:50 +0000 (20:56 +0000)]
Mismerged a bit.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237882
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
David Vossel [Tue, 5 Jan 2010 19:29:47 +0000 (19:29 +0000)]
fixes subscriptions being lost after 'module reload'
During a module reload if multiple extension configs are present,
such as both extensions.conf and extensions.ael, watchers for one
config's hints will be lost during the merging of the other config.
This happens because hint watchers are only preserved for the
current config being merged. The old context list is destroyed
after the merging takes place, meaning any watchers that were not
perserved will be removed.
Now all hints are preserved during merging regardless of what config
file is being merged. These hints are only restored if they
are present within the new context list.
(closes issue #16093)
Reported by: jlaroff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237839
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Richard Mudgett [Tue, 5 Jan 2010 18:57:29 +0000 (18:57 +0000)]
Removed unused parameters from analog_available() and sig_pri_available().
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237804
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Tue, 5 Jan 2010 18:46:19 +0000 (18:46 +0000)]
Add a missing part of the connected line work into trunk.
Part of the work done for connected line was to add an optional
argument to the 'f' option to allow for the connected party information
of the outgoing channel to be set to the argument provided. This was
overlooked during the merge of the work to trunk and is being added
back now. The CHANGES file has also been updated to note this change.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237803
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Tue, 5 Jan 2010 18:42:36 +0000 (18:42 +0000)]
Spell "aficionado" like someone who isn't stupid.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237802
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 5 Jan 2010 17:26:50 +0000 (17:26 +0000)]
Fix build of utility apps that include utils.c.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237749
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 5 Jan 2010 17:16:01 +0000 (17:16 +0000)]
Merged revisions 237697 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r237697 | russell | 2010-01-05 11:13:28 -0600 (Tue, 05 Jan 2010) | 7 lines
Change a NOTICE log message to DEBUG where it belongs.
(closes issue #16479)
Reported by: alexrecarey
(closes SWP-577)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237699
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Michiel van Baak [Tue, 5 Jan 2010 16:08:12 +0000 (16:08 +0000)]
Make CLI command 'mixmonitor start|stop <channel> work again.
(closes issue #16534)
Reported by: jlaguilar
Fix as suggested by jlaguilar in the bugreport
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237656
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 4 Jan 2010 21:48:20 +0000 (21:48 +0000)]
Merged revisions 237573 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r237573 | tilghman | 2010-01-04 15:45:46 -0600 (Mon, 04 Jan 2010) | 6 lines
Bounds checking for input string
(closes issue #16407)
Reported by: qwell
Patches:
20100104__issue16407.diff.txt uploaded by tilghman (license 14)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237574
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 4 Jan 2010 20:59:01 +0000 (20:59 +0000)]
Merged revisions 237493 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r237493 | tilghman | 2010-01-04 14:57:35 -0600 (Mon, 04 Jan 2010) | 8 lines
Regression in issue #15421 - Pattern matching
(closes issue #16482)
Reported by: wdoekes
Patches:
astsvn-16482-betterfix.diff uploaded by wdoekes (license 717)
20091223__issue16482.diff.txt uploaded by tilghman (license 14)
Tested by: wdoekes, tilghman
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237494
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 4 Jan 2010 19:03:20 +0000 (19:03 +0000)]
Oops, didn't compile (thanks, kpfleming)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237414
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 4 Jan 2010 18:42:10 +0000 (18:42 +0000)]
Further reduce the encoded blank values back to blank in the realtime API.
(closes issue #16533)
Reported by: sergee
Patches:
200100104__issue16533.diff.txt uploaded by tilghman (license 14)
Tested by: sergee
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237410
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 4 Jan 2010 18:28:28 +0000 (18:28 +0000)]
Merged revisions 237405 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r237405 | tilghman | 2010-01-04 12:19:00 -0600 (Mon, 04 Jan 2010) | 16 lines
Add a flag to disable the Background behavior, for AGI users.
This is in a section of code that relates to two other issues, namely
issue #14011 and issue #14940), one of which was the behavior of
Background when called with a context argument that matched the current
context. This fix broke FreePBX, however, in a post-Dial situation.
Needless to say, this is an extremely difficult collision of several
different issues. While the use of an exception flag is ugly, fixing all
of the issues linked is rather difficult (although if someone would like
to propose a better solution, we're happy to entertain that suggestion).
(closes issue #16434)
Reported by: rickead2000
Patches:
20091217__issue16434.diff.txt uploaded by tilghman (license 14)
20091222__issue16434__1.6.1.diff.txt uploaded by tilghman (license 14)
Tested by: rickead2000
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237406
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
David Vossel [Mon, 4 Jan 2010 16:39:11 +0000 (16:39 +0000)]
app_queue segfaults if realtime field uniqueid is NULL
(closes issue #16385)
Reported by: haakon
Patches:
app_queue.c.patch uploaded by haakon (license 880)
app_queue.c.patch_v2 uploaded by dvossel (license 671)
Tested by: haakon
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237327
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Mon, 4 Jan 2010 16:24:51 +0000 (16:24 +0000)]
Fix timeout for AGI command speech recognize.
(closes issue #16297)
Reported by: semond
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237323
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 4 Jan 2010 16:20:03 +0000 (16:20 +0000)]
Merged revisions 237318 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r237318 | tilghman | 2010-01-04 10:18:59 -0600 (Mon, 04 Jan 2010) | 3 lines
It's also possible for the Local channel to directly execute an Application.
Reviewboard: https://reviewboard.asterisk.org/r/452/
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237319
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Mon, 4 Jan 2010 07:55:30 +0000 (07:55 +0000)]
- Disable res_pktccops by default
- Add dependency in chan_mgcp that was missing
- Add a small amount of doc to the source code
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237284
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
TransNexus OSP Development [Mon, 4 Jan 2010 03:38:29 +0000 (03:38 +0000)]
1. Added reporting operator names in AuthReq.
2. Added retrieving operator names from AuthRsp and exporting them.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237250
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Sat, 2 Jan 2010 16:35:35 +0000 (16:35 +0000)]
global_contact_ha was renamed in trunk
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237213
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Sat, 2 Jan 2010 09:54:22 +0000 (09:54 +0000)]
Merged revisions 237135 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r237135 | oej | 2010-01-02 10:52:30 +0100 (Lör, 02 Jan 2010) | 2 lines
Release memory of the contact acl before unloading module
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237136
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Alexandr Anikin [Wed, 30 Dec 2009 23:51:32 +0000 (23:51 +0000)]
small q931 processing and signalling corrections
don't decode UUIE from Q931StatusMessage
clean call without callIdentifier data
don't start tcs/msd exchange procedure after call proceeding received
(closes issue #16365)
Reported by: benngard2
Tested by: may213, benngard2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237098
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Wed, 30 Dec 2009 22:30:21 +0000 (22:30 +0000)]
Add app_voicemail and say.c support for Vietnamese.
Also add an XXX comment that I'm baffled nobody has ever complained about. We
say "first message", and then we go into language-specific stuff where we
proceed to say..."first message".
(closes issue #15053)
Reported by: dinhtrung
Patches:
vietnamese.ods uploaded by dinhtrung (license 776)
app_voicemail.c.diff uploaded by dinhtrung (license 776)
(closes issue #15626)
Reported by: dinhtrung
Patches:
say.c.diff uploaded by dinhtrung (license 776)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@237050
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 30 Dec 2009 21:59:18 +0000 (21:59 +0000)]
Merged revisions 236981 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r236981 | tilghman | 2009-12-30 15:57:10 -0600 (Wed, 30 Dec 2009) | 9 lines
Don't queue frames to channels that have no means to process them.
(closes issue #15609)
Reported by: aragon
Patches:
20091230__issue16521__1.4__chan_local_only.diff.txt uploaded by tilghman (license 14)
Tested by: aragon
Review: https://reviewboard.asterisk.org/r/452/
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236982
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Wed, 30 Dec 2009 21:09:28 +0000 (21:09 +0000)]
One more LOW_MEMORY compile fix.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236902
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Wed, 30 Dec 2009 20:34:41 +0000 (20:34 +0000)]
Fix compiling with LOW_MEMORY.
Modified handle_verbose to be LOW_MEMORY aware, removed old RTP related code
in chan_sip.
(closes issue #16381)
Reported by: michael_iedema
Patches:
ast_complete_source_filename.patch uploaded by michael iedema (license 942)
modified by me
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236893
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Wed, 30 Dec 2009 20:25:58 +0000 (20:25 +0000)]
Blocked revisions 236890 via svnmerge
........
r236890 | jpeeler | 2009-12-30 14:25:11 -0600 (Wed, 30 Dec 2009) | 2 lines
Remove conflicting function definitions (asterisk.h) so LOW_MEMORY compiles.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236891
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 30 Dec 2009 17:53:29 +0000 (17:53 +0000)]
When the field is blank, don't warn about the field being unable to be coerced, just skip the column.
(closes http://lists.digium.com/pipermail/asterisk-dev/2009-December/041362.html)
Reported by Nic Colledge on the -dev list, fixed by me.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236847
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 29 Dec 2009 23:05:45 +0000 (23:05 +0000)]
Shut down the SIP session timers more gracefully, in order to prevent a possible crash.
(closes issue #16452)
Reported by: corruptor
Patches:
20091221__issue16452.diff.txt uploaded by tilghman (license 14)
Tested by: corruptor
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236802
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
TransNexus OSP Development [Tue, 29 Dec 2009 10:59:55 +0000 (10:59 +0000)]
1. Updated for OSP Toolkit 3.6.0.
2. Added service type ported number query.
3. Formated code.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236756
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Mon, 28 Dec 2009 22:09:40 +0000 (22:09 +0000)]
Allow "REMAINDER" to function properly in expressions.
(closes issue #16427)
Reported by: wdoekes
Patches:
ast16-reminder-remainder.patch uploaded by wdoekes (license 717)
Tested by: wdoekes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236713
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 28 Dec 2009 17:37:46 +0000 (17:37 +0000)]
Use recommended option, not deprecated option.
(closes issue #16515)
Reported by: ManChicken
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236667
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Sean Bright [Mon, 28 Dec 2009 15:22:54 +0000 (15:22 +0000)]
Merged revisions 236585 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r236585 | seanbright | 2009-12-28 10:12:08 -0500 (Mon, 28 Dec 2009) | 7 lines
Try a test compile to see if PTHREAD_ONCE_INIT requires extra braces.
There was conditional code (based on build platform) to optioinally wrap
PTHREAD_ONCE_INIT in braces that was removed since it is fixed in newer versions
of Solaris/OpenSolaris, but I am still running into it on Solaris 10 x86 so add
a configure-time check for it.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236613
65c4cc65-6c06-0410-ace0-
fbb531ad65f3