Commit Graph

492 Commits

Author SHA1 Message Date
Riza Sulistyo 5ac9104514
Expand tab to spaces and remove $Id$ (#3292) 2022-11-22 16:26:54 +07:00
Riza Sulistyo 74569f926a
Fix build warning and error for UWP (#3276)
* Fix build warning and error for UWP

* Include in6_addr.h directly on UWP
2022-10-27 10:47:21 +07:00
orbea c804b31f85
Fix build fail on alpine linux (with musl libc) : no execinfo.h (#3263)
The execinfo.h header is GNU specific and is not available with musl.

Gentoo Issue: https://bugs.gentoo.org/867343

Co-authored-by: jimying <yingqw.js@gmail.com>
2022-10-17 13:32:23 +08:00
Nanang Izzuddin edb884c713
Change PJ_ACTIVESOCK_TCP_IPHONE_OS_BG default to 0, because app gets killed on iOS 16 when using VoIP socket. (#3253) 2022-09-27 15:01:22 +07:00
Benny Prijono c03ab41ed5
Documentation fixes for docs.pjsip.org v2.0 project (#3202)
* Improve robustness of sample apps. Fixing crash in aviplay

* Changes in documentation

* Add first pjsua2 hello world sample (from PJSUA2 guide)

* Fix doxygen documentation for docs.pjsip.org v2

* Add make clean-doc target

* Replace Trac ticket URL with GitHub issues URL

* Remove pjsip-book because the correct one is in pjproject_docs
2022-08-09 06:16:16 +07:00
jimying de56dda311
Add new api pj_sock_socketpair() (#3179)
* Add new api pj_sock_socketpair()
2022-08-08 08:36:48 +07:00
Benny Prijono 5604238bf5
EPOLLIN bug, epoll ioqueue refactoring and other bug fixes/enhancements to ioqueue (#3188)
* Minor: fixed warning about unused static function when the test is disabled

* Part of #3188: Add support for pj_ioqueue_create2(), ioqueue_add_to_set2(), ioqueue_remove_from_set2()

* #3188: fixing epoll ioqueue EPOLLIN problem, added pj_ioqueue_create2(), ioqueue_add_to_set2(), and ioqueue_remove_from_set2() functions, and added more unit tests

* Continuing #3188: porting t oWindows/Visual Studio

* More #3188: minor fixes

* More #3188: minor fix on Windows to remove runtime warnings

* More #3188: clearer documentation comments

* More #3188: do not check for EXCLUSIVE support if disable_exclusive is set, and added clarification about EPOLLERR flags removal

* More #3188: clarification about unregistration test in ioq_udp.c
2022-07-27 10:38:02 +07:00
bennylp 24201b0983 Add pj_log_set/get_indent() API to allow threads to synchronize log indentation 2022-07-18 08:58:09 +07:00
jimying cbc2051d7b
Set thread display name (#3156) 2022-07-06 09:15:58 +08:00
sauwming 0cdd34c1e0
Patch to improve epoll implementation (#3121) 2022-06-06 11:41:35 +08:00
Davy Durham 156950f32a
honoring __aarch64__ (clang's macro) as being equivalent to _M_ARM64 (MSVC's macro) to properly detect arm64 when compiling under clang (not using autoconf). This is necessary for multiarch builds. (#3017) 2022-05-04 09:13:45 +08:00
Nanang Izzuddin a575041ac3
Fix warnings related to <pj/limits.h> (#3089) 2022-04-29 14:45:10 +07:00
Riza Sulistyo 947bc1ee6d
Merge pull request from GHSA-rwgw-vwxg-q799
* Prevent potential infinite loop when parsing WAV format file

* Check if subchunk is negative.

* Fix and add checks

* Change data type from pj_ssize_t to long.

* Modify check

* Fix leak file descriptor and modify check on wav_playlist

* Move overflow/underflow check to pj_file_setpos()

* Use macro to simplify check

* modification based on comments

* Remove unnecessary casting

* Modification based on comments
2022-04-25 12:54:19 +08:00
Riza Sulistyo 94886d72d5
Deprecate PJ_ENABLE_EXTRA_CHECK macro (#3008)
* Deprecate PJ_ENABLE_EXTRA_CHECK macro

* Modification based on comments
2022-03-08 10:27:46 +07:00
nanangizz 4a5b55b6a2 Changed version to 2.12-dev 2022-02-24 16:16:49 +07:00
nanangizz 99660f6add Changed version to 2.12 2022-02-24 14:54:38 +07:00
Andreas Wehrmann c4bad5df14
do not #define snprintf and vsnprintf on Visual Studio 2015 and newer (#2971) 2022-02-11 09:12:23 +08:00
sauwming 74c0309d80
Race condition between Apple SSL destroy and event callback (#2825) 2022-02-09 17:02:49 +08:00
Nanang Izzuddin 639e7dc7e6
Add Oboe audio device backend for Android (#2707) 2022-02-08 13:58:29 +08:00
Riza Sulistyo 313d536c28
Implement verify callback to TLS connection (#2962) 2022-02-08 11:15:38 +08:00
sauwming 986d7fc198
Fix build failure when PJ_POOL_DEBUG is enabled (#2947) 2022-01-18 13:40:50 +08:00
Nanang Izzuddin c6e238d2a3
Avoid memory bloat on ICE restart (#2903) 2021-12-15 09:05:20 +07:00
Riza Sulistyo 6ca06f63ec
Fix some doc warning (#2879) 2021-11-10 09:57:40 +07:00
Nanang Izzuddin cb97e86f9f
Add a new ioqueue API pj_ioqueue_clear_key() (#2810) 2021-09-23 08:57:25 +07:00
Riza Sulistyo 661a8cef67
Add support to windows on ARM build (#2807)
* Add support to ARM64 configuration for win32 build

* Add changes notes to webrtc and webrtc_aec3 third party sources

* Remove reference to libwebrtc_aec3 from libpjproject. Add reference it manually if libwebrtc_aec3 is needed.

* Fix build error on Release configuration.
2021-08-30 10:39:48 +07:00
sauwming 5c1fa437cc
Add checks and assertion if PJSIP string length is negative (#2783) 2021-08-09 11:11:32 +08:00
Nanang Izzuddin 8813fe2520 Re #2760: Fix documentation of pj_grp_lock_create(), group lock reference counter is initialized with zero instead of one (thanks to Cameron Pickett for the report). 2021-07-08 13:47:10 +07:00
Riza Sulistyo 801484823c Changed version to 2.11-dev 2021-03-17 15:51:36 +07:00
Riza Sulistyo 842b4ba27d Changed version to 2.11 2021-03-17 14:34:46 +07:00
Nanang Izzuddin 2a0095175f
Supporting mingw-w64 (#2598) 2020-12-10 15:50:56 +07:00
Riza Sulistyo c6e9af5f5a
Server Name Indication on TLS doesn't allow IP literal. (#2539)
* Server Name Indication on TLS doesn't allow IP literal.

* moved hostname check to SSL backend.

* Remove unwanted changes to the file.
2020-10-12 14:23:43 +07:00
sauwming fb8a7772ef
Apple SSL backend using Network framework (#2482) 2020-09-29 11:31:01 +08:00
Nanang Izzuddin 0157ddcda3
Update default setting for CFHost for getaddrinfo: from enabled to disabled. (#2526) 2020-09-29 10:05:09 +07:00
Riza Sulistyo 40dd48d109
Modify timer_id check on cancel() (#2463)
* modify timer_id check on cancel().

* modification based on comments.
2020-07-09 17:47:24 +07:00
sauwming 95c29aa1d2
Avoid undefinition of standard macros s_addr and s6_addr (#2423) 2020-05-06 09:38:26 +08:00
Alexey Kuznetsov 741bb0ced8
Dispatch semaphores on Darwin (#2351) (#2411)
Dispatch semaphore is a more modern semaphore implementation on Apple
platforms. Apple claims it is more efficient. A call down to kernel is
only needed when the calling thread needs to be blocked.

Dispatch semaphores work in sandboxed Mac apps, but POSIX semaphores
don't.
2020-04-30 16:03:31 +08:00
sauwming 558922fc3f
Suppressed various compilation warnings (#2410)
Such as:
- conversion from string literal to 'char *' warning
- format-truncation warning

Co-authored-by: nanangizz <nanang@teluu.com>
2020-04-29 15:11:26 +08:00
Riza Sulistyo 7224dd44b5
Add thread locking callback when using OpenSSL. (#2336)
* Add thread locking callback when using OpenSSL.

* Don't use ssl socket's pool.

* move clear thread callback method using pj_atexit().

* revert unecessary changes and define new var as static.

* modification based on comments on PR.

* Add cleanup when initialization fail.

* Don't uninstall the thread callback if pj_atexit() fail.
2020-04-29 12:51:39 +07:00
sauwming 98f70c210f
Add more CI tests on Ubuntu and Mac (#2329) 2020-03-10 16:45:54 +08:00
Nanang Izzuddin 4fa33725bd Add TLS proto for TLS 1.3 2020-02-21 18:07:04 +07:00
mingteluu c8927c65de Changed version to 2.10-dev 2020-02-14 17:08:22 +07:00
mingteluu e5943ba8ea Changed version to 2.10 2020-02-14 16:47:41 +07:00
Riza Sulistyo dd627bc809 Close #2249: Use sorted linked list for timer implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6099 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-06 06:17:53 +00:00
Sauw Ming a49822da70 Fixed #2225: Timer heap refactoring
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6058 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-03 02:10:45 +00:00
Nanang Izzuddin 3029598af6 Close #2217: Omit deprecated IPv6 addresses from ICE candidates.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6045 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-26 09:32:14 +00:00
Nanang Izzuddin 3fd1a9ab6c Changed version to 2.9-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6031 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-13 10:41:49 +00:00
Nanang Izzuddin 598ff92e45 Changed version to 2.9
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6029 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-13 08:56:16 +00:00
Riza Sulistyo 765e804fda Close #1017: TURN TLS transport implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6004 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-24 03:32:17 +00:00
Nanang Izzuddin 754372cdab Close #2179: Wipe out memory used for storing SSL keys before released.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5990 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-15 02:43:01 +00:00
Nanang Izzuddin 10e1d23c37 Re #1298: Updated PJLIB to use PJ_ERROR consistently.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5980 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-09 04:35:41 +00:00