head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.11.09.05.37.20; author jnemeth; state Exp; branches; next ; commitid nfklAD0yCz3anK2H; desc @@ 1.1 log @comms/asterisk24: import asterisk-24.0.0 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 provides Voicemail services with Directory, Call Conferencing, Interactive Voice Response, Call Queuing. It has support for three-way calling, caller ID services, ADSI, SIP and H.323 (as both client and gateway). This is a Long Term Support version. It is scheduled to go to security fixes only on October 15th, 2030, and EOL on October 15th, 2031. See here for more information about Asterisk versions: https://docs.asterisk.org/About-the-Project/Asterisk-Versions/ @ text @$NetBSD: patch-include_asterisk_lock.h,v 1.1 2025/10/27 06:58:38 jnemeth Exp $ --- include/asterisk/lock.h.orig 2021-03-04 16:46:08.000000000 +0000 +++ include/asterisk/lock.h @@@@ -616,6 +616,17 @@@@ static void __attribute__((destructor)) */ #define SCOPED_CHANNELLOCK(varname, chan) SCOPED_LOCK(varname, (chan), ast_channel_lock, ast_channel_unlock) +#undef pthread_mutex_lock +#undef pthread_mutex_unlock +#undef pthread_mutex_trylock +#undef pthread_mutex_init +#undef pthread_mutex_destroy +#undef pthread_cond_init +#undef pthread_cond_destroy +#undef pthread_cond_signal +#undef pthread_cond_broadcast +#undef pthread_cond_wait +#undef pthread_cond_timedwait #ifndef __CYGWIN__ /* temporary disabled for cygwin */ #define pthread_mutex_t use_ast_mutex_t_instead_of_pthread_mutex_t #define pthread_cond_t use_ast_cond_t_instead_of_pthread_cond_t @@@@ -636,7 +647,7 @@@@ static void __attribute__((destructor)) #define gethostbyname __gethostbyname__is__not__reentrant__use__ast_gethostbyname__instead__ -#ifndef __linux__ +#if !defined(__linux__) && !defined(__DragonFly__) #define pthread_create __use_ast_pthread_create_instead__ #endif @