summaryrefslogtreecommitdiff
path: root/comms/asterisk18/patches/patch-at
diff options
context:
space:
mode:
authorjnemeth <jnemeth>2010-12-15 03:22:43 +0000
committerjnemeth <jnemeth>2010-12-15 03:22:43 +0000
commitf57263ed3f43c5751f46f0e07b0a576c17c5a9c5 (patch)
tree3d0853b135d1850fb31980488515f5cb91535195 /comms/asterisk18/patches/patch-at
parentc65e86e7567899305cecd327c321e51332849845 (diff)
downloadpkgsrc-f57263ed3f43c5751f46f0e07b0a576c17c5a9c5.tar.gz
Import Asterisk 1.8.1:
Asterisk is a complete PBX in software. It provides all of the features you would expect from a PBX and more. Asterisk does voice over IP in three protocols, and can interoperate with almost all standards-based telephony equipment using relatively inexpensive hardware. Asterisk 1.8 is a long term support version (i.e. it will be supported for four years with an additional year of security only fixes). See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions What's new: Asterisk 1.8 is the next major release series of Asterisk. The release of Asterisk 1.8.0 would not have been possible without the support and contributions of the community. Since Asterisk 1.6.2, we've had over 500 reporters, more than 300 testers and greater than 200 developers contributed to this release. You can find a summary of the work involved with the 1.8.0 release in the sumary: http://svn.asterisk.org/svn/asterisk/tags/1.8.0/asterisk-1.8.0-summary.txt A short list of available features includes: * Secure RTP * IPv6 Support in the SIP channel driver * Connected Party Identification Support * Calendaring Integration * A new call logging system, Channel Event Logging (CEL) * Distributed Device State using Jabber/XMPP PubSub * Call Completion Supplementary Services support * Advice of Charge support * Much, much more! A full list of new features can be found in the CHANGES file. http://svn.digium.com/view/asterisk/branches/1.8/CHANGES?view=markup For a full list of changes in the current release candidate, please see the ChangeLog: http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-1.8.0 ----- The Asterisk Development Team has announced the release of Asterisk 1.8.1. The release of Asterisk 1.8.1 resolves several issues reported by the community and would have not been possible without your participation. Thank you! The following is a sample of the issues resolved in this release: * Fix issue when using directmedia. Asterisk needs to limit the codecs offered to just the ones that both sides recognize, otherwise they may end up sending audio that the other side doesn't understand. (Closes issue #17403. Reported, patched by one47. Tested by one47, falves11) * Resolve issue where Party A in an analog 3-way call would continue to hear ringback after party C answers. (Patched by rmudgett) * Fix playback failure when using IAX with the timerfd module. (Closes issue #18110. Reported, tested by tpanton. Patched by jpeeler) * Fix problem with qualify option packets for realtime peers never stopping. The option packets not only never stopped, but if a realtime peer was not in the peer list multiple options dialogs could accumulate over time. (Closes issue #16382. Reported by lftsy. Tested by zerohalo. Patched by jpeeler) * Fix issue where it is possible to crash Asterisk by feeding the curl engine invalid data. (Closes issue #18161. Reported by wdoekes. Patched by tilghman) For a full list of changes in this release, please see the ChangeLog: http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-1.8.1
Diffstat (limited to 'comms/asterisk18/patches/patch-at')
-rw-r--r--comms/asterisk18/patches/patch-at49
1 files changed, 49 insertions, 0 deletions
diff --git a/comms/asterisk18/patches/patch-at b/comms/asterisk18/patches/patch-at
new file mode 100644
index 00000000000..ea88e183f0a
--- /dev/null
+++ b/comms/asterisk18/patches/patch-at
@@ -0,0 +1,49 @@
+$NetBSD: patch-at,v 1.1.1.1 2010/12/15 03:22:45 jnemeth Exp $
+
+--- utils/extconf.c.orig 2010-06-10 08:15:45.000000000 +0000
++++ utils/extconf.c
+@@ -790,6 +790,10 @@ static void __attribute__((destructor))
+ #include "libkern/OSAtomic.h"
+ #endif
+
++#if defined(HAVE_SYS_ATOMIC_H)
++#include <sys/atomic.h>
++#endif
++
+ /*! \brief Atomically add v to *p and return * the previous value of *p.
+ * This can be used to handle reference counts, and the return value
+ * can be used to generate unique identifiers.
+@@ -803,12 +807,18 @@ AST_INLINE_API(int ast_atomic_fetchadd_i
+ #elif defined(HAVE_OSX_ATOMICS) && (SIZEOF_INT == 4)
+ AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
+ {
+- return OSAtomicAdd32(v, (int32_t *) p);
++ return OSAtomicAdd32(v, (int32_t *) p) - v;
+ })
+ #elif defined(HAVE_OSX_ATOMICS) && (SIZEOF_INT == 8)
+ AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
+ {
+- return OSAtomicAdd64(v, (int64_t *) p);
++ return OSAtomicAdd64(v, (int64_t *) p) - v;
++})
++#elif defined(HAVE_SYS_ATOMIC_H)
++AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
++{
++ return atomic_add_int_nv((unsigned int *)p, v) - v;
++})
+ #elif defined (__i386__) || defined(__x86_64__)
+ AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
+ {
+@@ -850,6 +860,12 @@ AST_INLINE_API(int ast_atomic_dec_and_te
+ AST_INLINE_API(int ast_atomic_dec_and_test(volatile int *p),
+ {
+ return OSAtomicAdd64( -1, (int64_t *) p) == 0;
++})
++#elif defined(HAVE_SYS_ATOMIC_H)
++AST_INLINE_API(int ast_atomic_dec_and_test(volatile int *p),
++{
++ return atomic_dec_uint_nv((unsigned int *)p) == 0;
++})
+ #else
+ AST_INLINE_API(int ast_atomic_dec_and_test(volatile int *p),
+ {