Commit Graph

1204 Commits

Author SHA1 Message Date
mingteluu e5943ba8ea Changed version to 2.10 2020-02-14 16:47:41 +07:00
Nanang Izzuddin 645a057b99 Misc (re #2210): Reverting r6133 as it is reported to cause crash on OpenSSL 1.0.x, and OpenSSL docs explicitly prohibit freeing SSL_SESSION after SSL_free(). Thanks Peter Koletzki for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6148 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-31 09:55:43 +00:00
Nanang Izzuddin 113cada9e8 Misc (re #2210): Fixed compile warnings in PJLIB timer unit test.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6146 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-30 07:52:51 +00:00
Nanang Izzuddin dd7073c14d Misc (re #2210): Fixed memory leak in OpenSSL initialization due to unfreed SSL_SESSION object. The leak should only be occurred once in library lifetime. Thanks to Kim Daeyoung for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6133 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-10 08:02:54 +00:00
Sauw Ming d1ee4a6350 Re #2210 (misc): Fixed memory leak when getting certificate info in OpenSSL
Thanks to Florian Kretschmer for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6104 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-12 09:01:41 +00:00
Riza Sulistyo bf74f883e6 Re #2249: Fixed warning on pjlib-test.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6100 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-06 07:17:01 +00: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
Riza Sulistyo 9db76e8883 Fix #2244: Prevent continuous memory allocation when getting raw certificate on TLS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6091 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-11 14:26:12 +00:00
Nanang Izzuddin 617fdfd262 Re #2237: Updated SSL socket to use group lock in scheduling timer.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6082 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-30 06:50:32 +00:00
Nanang Izzuddin ac00a60f99 Misc (re #2210): Fixed compile errors on MinGW.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6079 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-26 11:15:24 +00:00
Riza Sulistyo 7eda469219 Fix #2235: UDP transport restart might not get called when replace_udp_socket() fails.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6077 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-24 15:34:33 +00:00
Nanang Izzuddin db368d6cc0 Re #2225: Fixed compile errors in timer on MSVC2005.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6067 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-09 08:41:53 +00:00
Sauw Ming 4dbeb68ec2 Re #2225: Fixed incorrect pool to be released in pjlib timer test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6059 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-03 03:17:44 +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
Riza Sulistyo ed08f5bbcb Fixed #2221: When using Openssl as TLS backend, close notify alert is not sent before closing the connection.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6054 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-28 12:02:50 +00:00
Riza Sulistyo 8a15cf5dce Re #2220: Fixed the use of sk_X509_NAME_new macro. It might lead to build failure or runtime crash. Thanks to Peter Koletzki for the fix.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6053 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-28 09:32:26 +00:00
Sauw Ming a190e94028 Fixed #2220: Add list of trusted root CA for OpenSSL
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6052 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-23 04:53:05 +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
Riza Sulistyo 2c5dc72dd5 Re #2210 (misc): Minor patch for SSL error message. Thanks to George Joseph for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6034 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-01 05:41:29 +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
Nanang Izzuddin 5bcd75aec9 Misc (re #2147): Fixed warnings in SSL socket: redefinition of typedef 'pj_ssl_sock_t' and unused 'get_pem'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6022 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-11 02:03:02 +00:00
Sauw Ming d8360bff05 Fixed #2204: Add OpenSSL remote certificate chain info
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6014 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-29 03:49:23 +00:00
Sauw Ming d059927e63 Fixed #2203: Failure to set minimum SSL version when OpenSSL 1.1 is used
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6006 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-27 03:54:27 +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
Riza Sulistyo 26d59020b3 Close #2201: Restart UDP transport after replace_udp_socket fail when sending data.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6003 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-23 17:47:55 +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
Riza Sulistyo 1c5e96c7c7 Close #2193: Buffered read data on SSL socket might not immediately get read after handshake is complete.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5975 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-02 10:18:26 +00:00
Nanang Izzuddin 4ad9acd150 Fixed #2191:
- Stricter double timer entry scheduling prevention.
 - Integrate group lock in SIP transport, e.g: for add/dec ref, for timer scheduling.
 


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5971 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-23 08:42:45 +00:00
Sauw Ming 70af7c08a5 Fixed #2190: Crash in ioqueue post completion if callback is not set
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5970 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-16 04:08:04 +00:00
Riza Sulistyo f3aa0eaff2 Re #2180: Added ssl_sock_imp_common.h/c to PJLIB VS2015 project (excluded for build).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5966 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-11 12:15:09 +00:00
Sauw Ming cff4487def Fixed #2185: Darwin (Mac OS & iOS) native SSL backend
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5957 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-25 01:33:12 +00:00
Sauw Ming 8736f50552 Re #2160: Fixed assertion in pjlib test due to uninitialized ioqueue op keys.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5953 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-15 10:22:11 +00:00
Nanang Izzuddin c798c7b615 Re #2180: Added ssl_sock_imp_common.h/c to PJLIB MSVC2005 project (excluded for build).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5951 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-12 05:44:14 +00:00
Nanang Izzuddin 68506e2c11 Misc (re #2147): Updated SSL socket test to include host part in HTTPS request URI, otherwise most likely it will get 400 response.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5950 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-11 10:38:55 +00:00
Sauw Ming fd7a5912ce Re #2180: Suppress warning of unreferenced function parameters
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5941 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-05 07:04:31 +00:00
Sauw Ming 34111553e8 Re #2180: Fixed incorrect early return in pj_ssl_sock_renegotiate()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5940 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-05 06:56:39 +00:00
Sauw Ming 6b9212dcb4 Fixed #2180: Refactoring SSL socket backend implementations
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5938 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-04 09:47:25 +00:00
Nanang Izzuddin 765535c742 Re #2150: Fixed crash in SIP TLS transport after TCP socket accept error, e.g: after wakeup from background on iOS. Thanks Marcus Froeschl for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5936 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-26 03:40:57 +00:00
Nanang Izzuddin 16a91c8740 Close #2178: Added check in get_cn_from_gen_name() for empty general name string input.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5935 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-26 03:06:39 +00:00
Nanang Izzuddin b4a85b0509 Re #2176: Removed pop_freelist() + push_freelist() after remove_node() as they are not only unnecessary, they cause problem.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5934 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-13 06:51:09 +00:00
Nanang Izzuddin dc56508b63 Re #2176: added timer stress test into pjlib-test.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5933 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-13 06:41:34 +00:00
Riza Sulistyo 4e965d2ad1 Close #2174: Fix out of bound error when enabling GnuTLS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5929 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-09 09:15:11 +00:00
Nanang Izzuddin c0687a6c70 Fixed #2172: Avoid double reference counter decrements in timer in the scenario of race condition between pj_timer_heap_cancel() and pj_timer_heap_poll().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5927 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-08 09:07:47 +00:00
Riza Sulistyo f56014a118 Re #2147 (misc): Include unicode_win32.c on the build configuration for windows (mingw). Without it, the build will fail when enabling PJMEDIA_WMME_DEV_USE_MMDEVICE_API. Thanks to Niclas Larsson for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5924 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-13 10:03:36 +00:00
Sauw Ming c80b56d1ef Fixed #2160: stuck issue in ioqueue when detaching UDP media transport
- Fixed transport_udp so it won't call another read operation when being stopped.
 - Add robustness checks (assertion) in ioqueue recv, recvfrom, and accept to prevent the same op key being used twice. 



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5907 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-07 04:34:01 +00:00
Riza Sulistyo e5bc0e68b9 Close #2150: Add new callback to notify when accept operation fails on TLS
listener.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5885 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-18 12:07:50 +00:00
Riza Sulistyo ea92c3b7d6 Changed version to 2.8-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5881 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-05 09:07:16 +00:00
Riza Sulistyo 67a79f0375 Changed version to 2.8
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5879 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-05 03:40:41 +00:00
Sauw Ming ec44810dbd Fixed #2140: Timestamp clock issue when device is asleep in iOS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5865 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-23 04:42:29 +00:00
Sauw Ming 3ca4d3c731 Re #2091: Fixed crash in pj_ioqueue_poll() when iterating keys with closed sockets, which because of r5778, is now set to PJ_INVALID_SOCKET
Note: the crash will happen in PJ_FD_ISSET(h->fd, ...)



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5849 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-01 08:05:16 +00:00
Riza Sulistyo 251afd83dd Re #484: Fix compile warning of unused method.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5836 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 11:04:49 +00:00
Nanang Izzuddin 83e6b40788 Re #2129: Fixed compile warning on iOS of 'unused function grp_lock_dec_ref_dump()' when PJ_GRP_LOCK_DEBUG is not set.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5835 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 10:08:53 +00:00
Riza Sulistyo 696a919a31 Close #2070: Print IPv6 addresses with brackets.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5833 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 07:15:08 +00:00
Nanang Izzuddin 1ed75a4aa6 Fix #2129: Updated pj_grp_lock_dump() to avoid infinite recursion.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5829 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-20 07:21:32 +00:00
Riza Sulistyo 6844393258 Close #484: Allow to use binary certificate in TLS transport.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5821 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-15 14:09:23 +00:00
Nanang Izzuddin d71ccf5445 Misc (re #2059): Fixed compile error on MinGW "Including <winsock2.h> after <winsock.h> is unsupported" (thanks Thibault Groisil for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5815 74dad513-b988-da41-8d7b-12977e46ad98
2018-06-29 02:49:04 +00:00
Riza Sulistyo 09a206cfbb Re #2059 (misc):
- Fix warning when using LibreSSL.
- Fix error build when using OpenSSL with './config no-dh' option.
- Fix error build when using OpenSSL with './config no-deprecated' option.
- Modification to r5787.
Thanks to Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5797 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-29 03:07:05 +00:00
Riza Sulistyo 2ea2222b16 Fixed #2112: pjsip initializes EECDH incorrectly when linked with OpenSSL
1.1.0x.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5787 74dad513-b988-da41-8d7b-12977e46ad98
2018-05-07 15:13:49 +00:00
Sauw Ming 16b8584f7d Re #2091:
* Fix possible multiple socket closes and querying already-closed sockets.
* Also prevent possible exception if replace_udp_sock() fails.
If replace_udp_sock() fails, then key->fd will have already been closed. So when calling pj_ioqueue_unregister(key), it will attempt to close the socket again. This may (but not always) result in an exception, which seems to happen when the socket descriptor has been reused by another app.

Explanation: EXC_GUARD exception happens when you try to close a file descriptor that you don't own.

Stack trace:
Exception Type:  EXC_GUARD
Exception Subtype: GUARD_TYPE_FD
Exception Message: CLOSE on file descriptor 11 (guarded with 0x08fd4dbfade2dead)
Exception Note:  SIMULATED (this is NOT a crash) requested by (null)
Triggered by Thread:  7

Thread 7 Crashed:
0   libsystem_kernel.dylib          0x0000000183b09224 close + 8
1   0x00000001031b5b58 pj_sock_close + 12
2   0x00000001031b1d58 pj_ioqueue_unregister + 120
3   0x000000010313b018 udp_destroy + 44
4   0x0000000103138bf8 destroy_transport + 220
5   0x000000010313942c pjsip_tpmgr_destroy + 132
6   0x0000000103133a40 pjsip_endpt_destroy + 244
7   0x000000010315a1b8 pjsua_destroy2 + 2640



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5778 74dad513-b988-da41-8d7b-12977e46ad98
2018-04-06 06:11:36 +00:00
Riza Sulistyo 111322c0e1 Re #2059 (misc): Don't include test app (exe) when building for Android.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5761 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-27 05:35:03 +00:00
Nanang Izzuddin 8dc264454d Close #2101:
- set atomic's mutex to NULL in atomic destroy
 - added few sanity checks to the atomic functions.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5758 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-26 10:33:50 +00:00
Nanang Izzuddin 1108232740 Fixed #2099: Fixed SSL socket (OpenSSL backend), when sending buffer is full, any further send operation should be rejected immediately without writing to OpenSSL SSL BIO.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5751 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-06 08:44:18 +00:00
Riza Sulistyo 0be14c8181 Fix #2091: On iOS11, replace_udp_sock() might fail and lead to unusable UDP transport.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5737 74dad513-b988-da41-8d7b-12977e46ad98
2018-02-15 13:57:11 +00:00
Nanang Izzuddin c777dd8c89 Re #2082: For MSVC backward compatibility, set PJ_SSL_SOCK_IMP to PJ_SSL_SOCK_IMP_OPENSSL by default when PJ_HAS_SSL_SOCK is set.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5732 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-24 03:42:35 +00:00
Sauw Ming 8efbf21031 Re #2082: Minor fix of incorrect function definitions
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5730 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-24 01:10:42 +00:00
Riza Sulistyo 6f7a8b0fbf Close #2083: Fix build error when building using LibreSSL.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5726 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-17 11:15:34 +00:00
Sauw Ming c4279ec635 Re #2082: Initial implementation of GnuTLS support.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5725 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-15 08:52:29 +00:00
Sauw Ming 5a2e2bf613 Fixed #2079: Crash in pjsip due to race condition in account's keep alive timer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5720 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-08 03:20:34 +00:00
Nanang Izzuddin 9353a01e78 Misc (re #2059): Configurable number of socket options (PJ_MAX_SOCKOPT_PARAMS macro).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5719 74dad513-b988-da41-8d7b-12977e46ad98
2018-01-05 09:48:31 +00:00
Sauw Ming cfe26bd049 Re #2074: Revert the default sample Android setting to use separate worker threads, since it doesn't seem to fix the problem.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5715 74dad513-b988-da41-8d7b-12977e46ad98
2017-12-18 03:42:18 +00:00
Nanang Izzuddin fb12b9497c Fixed #2074: Introduced compile time setting PJSUA_SEPARATE_WORKER_FOR_TIMER to allow separate polling for timer events and network events.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5712 74dad513-b988-da41-8d7b-12977e46ad98
2017-12-12 07:44:09 +00:00
Riza Sulistyo a5ffdfbd43 Re #2062: Remove related files from Visual Studio projects.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5709 74dad513-b988-da41-8d7b-12977e46ad98
2017-12-04 09:30:47 +00:00
Sauw Ming a39e60661e Re #2071: Specify socktype hint when calling getaddrinfo, to reduce the number of addresses returned.
Thanks to Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5707 74dad513-b988-da41-8d7b-12977e46ad98
2017-12-04 01:28:40 +00:00
Riza Sulistyo 054ae59549 Close #2067: Fix linker error when building as dll on VS2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5701 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-22 06:59:47 +00:00
Sauw Ming 5b52b9b2e8 Re #2062: Remove deprecated Linux kernel implementation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5692 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-13 06:06:25 +00:00
Sauw Ming 3785e35cf0 Changed version to 2.7.1-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5685 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-08 03:47:34 +00:00
Sauw Ming 0c548deeff Changed version to 2.7.1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5683 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-08 03:03:22 +00:00
Riza Sulistyo 37f0826f9f Closed #2056: Add validity checking for numeric header values.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5682 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-08 02:58:18 +00:00
Nanang Izzuddin f5900e790d Fix #2055:
- Updated active socket to avoid double ioqueue key unregistration.
- Updated ioqueue to avoid double ioq key unregistration (select & epoll only, winnt & uwp does not seem to be affected).
- Added check for potential 'negative' ioqueue->count.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5680 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-03 06:54:54 +00:00
Riza Sulistyo 8438c3eab6 Re #2045 (misc): Fix various warning raised from using clang 4.0.1. Thanks to
Alexander Traud for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5678 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-01 04:55:29 +00:00
Sauw Ming 54b3ab3544 Changed version to 2.7-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5663 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-25 09:24:08 +00:00
Sauw Ming f5a1fbfc84 Changed version to 2.7
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5661 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-25 04:20:21 +00:00
Riza Sulistyo e58d5bfec9 Re #1994(misc): Fix warning on VS2015 when enabling video, opus, webrtc ec.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5659 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-25 02:58:42 +00:00
Nanang Izzuddin 075ed502b7 Close #2044: Compile time setting for QoS using IP_TOS/IPV6_TCLASS on Darwin OS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5658 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-25 02:25:39 +00:00
Riza Sulistyo 98015a8d0b Re #1994(misc): Avoid calling SSL_shutdown() if handshake wasn't completed otherwise OpenSSL 1.0.2f and newer version will complain. Thanks to Peter Koletzki for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5648 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-14 05:03:45 +00:00
Sauw Ming 6327086923 Re #1994 (misc): Fixed various warnings thrown by GCC 6.3. Thanks to Alexander Traud for the info.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5646 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-08 11:16:09 +00:00
Nanang Izzuddin bbde0fbf9a Fix #2039: Updated pj_sockaddr_in_set_str_addr() to use pj_getaddrinfo() instead of pj_gethostbyname(), just as used by pj_sockaddr_set_str_addr() for IPv6 address resolution.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5644 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-04 04:12:50 +00:00
Sauw Ming e34fa7ed5e Fixed #2032: NAT64 support for IPv4 interoperability
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5636 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-02 02:51:59 +00:00
Nanang Izzuddin 494f58b07d Misc (re #1994): Fixed compile warnings on MSVC 2005 & 2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5635 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-01 07:49:34 +00:00
Sauw Ming 67265de3cb Fixed #2030: Improve error handling in OpenSSL socket
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5631 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-27 06:07:54 +00:00
Nanang Izzuddin 299f743edf Close #2027: Fixed assertion in pj_gethostip() when system hostname is empty.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5627 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-18 11:49:04 +00:00
Nanang Izzuddin c259fa68b2 Close #1999: Support OpenSSL 1.1.0 with backward compatibility setting turned of (no deprecated APIs).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5623 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-07 02:52:44 +00:00
Riza Sulistyo c4c272b566 Re #1994(misc): Method pj_hash_calc_tolower() might return a different hash
value. Thanks to Fredrik Hansson for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5600 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-05 07:27:45 +00:00
Riza Sulistyo 5339d9f98a Fixed #2019: Conflict with 'isblank' when using g++ 5.4.0. Thanks to Ken Mastro
for the report and suggested fix.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5599 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-05 03:31:18 +00:00
Nanang Izzuddin edcedb569a Re #2018: Initial version of DTLS-SRTP implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5597 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-03 09:22:34 +00:00
Sauw Ming 24460462e3 Re #1994 (misc): Remove unnecessary include file of engine.h in OpenSSL socket implementation. This will allow the usage of OpenSSL compiled with no-engine option.
Thanks to Marcus Froeschl for pointing it out.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5591 74dad513-b988-da41-8d7b-12977e46ad98
2017-05-22 02:58:31 +00:00
Sauw Ming 62fc956061 Fixed #2015: Add multicast option in streamutil sample app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5590 74dad513-b988-da41-8d7b-12977e46ad98
2017-05-09 02:39:08 +00:00
Riza Sulistyo 48228a9345 Fix #2006: Fix android build failed using NDK r14 caused by by the removal of android_alarm.h.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5574 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-29 05:07:47 +00:00
Riza Sulistyo 154238bfe0 Re #1994 (misc): Fix linker error on Visual Studio when using OpenSSL 1.1 or newer.
Thanks to Sean Bright for the report and patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5566 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-09 04:41:45 +00:00
Riza Sulistyo 6e2f999842 Re #1994 (misc): Prevent crash on pj_ssl_get_info() triggered by an error on ioqueue_on_read_complete().
Thanks to Alexander Traud for the report and suggested fix.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5565 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-09 03:36:10 +00:00
Riza Sulistyo 90eb224f16 Re #1994: Prevent overflow on pj_generate_unique_string() for android.
Thanks to Esed Alihodzic for the report and patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5563 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-07 03:28:56 +00:00
Sauw Ming 394279af15 Re #1994 (misc): Make the log's sender and thread width a compile-time configurable setting.
Thanks to Richard Mudgett for the suggestion.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5554 74dad513-b988-da41-8d7b-12977e46ad98
2017-02-20 00:57:15 +00:00
Nanang Izzuddin a8d4778494 Changed version to 2.6-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5552 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-26 03:47:58 +00:00
Nanang Izzuddin 6708aa8be6 Changed version to 2.6
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5550 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-26 02:29:59 +00:00
Nanang Izzuddin 84ad7a0244 Misc (re #1945): Fixed compile warnings on Android 64bit platforms, e.g: dereferencing type-punned pointer, using uninitialized var.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5544 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-24 05:41:05 +00:00
Nanang Izzuddin 8e9b1a9d42 Misc (re #1945): Automatically define macro PJ_ANDROID=1 on Android platforms (previously should be defined manually via config_site_sample.h or config_site.h).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5543 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-24 05:36:50 +00:00
Nanang Izzuddin 1b25ccaf76 Re #1900: Merged changes from trunk.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5538 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-23 04:18:59 +00:00
Nanang Izzuddin de3d744c2e Close #1932: Support OpenSSL 1.1.0.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5537 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-23 03:34:17 +00:00
Nanang Izzuddin 7d9a05c9a3 Re #1513: Applied the new API pj_pool_safe_release().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5534 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-19 07:41:25 +00:00
Nanang Izzuddin 377e5d4550 Close #1513: Added pj_pool_safe_release() API.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5533 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-19 06:10:15 +00:00
Nanang Izzuddin 101b72f638 Re #1900: Merged changes from trunk.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5532 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-18 10:55:35 +00:00
Sauw Ming ddbcae1896 Re #1945 (misc): move default setting of number of supported video device format to pjmedia-videodev config instead of config_site_sample, since not everybody will use the sample.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5524 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-17 00:50:09 +00:00
Riza Sulistyo e03e14b7f1 Re 1989: Implement pj_strtok()/pj_strtok() as a replacement to strtok().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5520 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-11 04:38:29 +00:00
Riza Sulistyo bb71b914d6 Re #1975:
- Change autoconf detection in r5483 to compile time check.
- Don't use tls1_ec_nid2curve_id()/tls1_ec_curve_id2nid() since they are not public API.
Thanks to Alexander Traud for the suggestions.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5517 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-10 09:17:07 +00:00
Nanang Izzuddin 04d4620359 Re #1900: Miscelaneous updates, e.g: enable/disable WMME/WASAPI automatically based on active platform, cosmetics.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5515 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-28 09:27:40 +00:00
Nanang Izzuddin c551b147fc Re #1900: More merged from trunk (r5512 mistakenly contains merged changes in third-party dir only).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5513 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-28 03:40:07 +00:00
Nanang Izzuddin f4e3ed6a2e Misc (re #1945): Fixed various compile warnings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5501 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-19 03:01:55 +00:00
Nanang Izzuddin 6c47f59bc8 Re #1900: Updated project files for target platform version configuration, it is configurable via property sheet build/vs/pjproject-vs14-common-config.props.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5497 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-09 13:43:07 +00:00
Sauw Ming ce5f04ad5a Fixed #1984: Remove the implementation of PJ_HASH_USE_OWN_TOLOWER
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5494 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-07 03:24:16 +00:00
Sauw Ming 812618e1f8 Fixed #1979: Add support to parse address string with scope ID
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5485 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-17 04:38:25 +00:00
Sauw Ming b247753f80 Re #1975: Add autoconf detection of OpenSSL elliptic curve and sigalg support
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5483 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-16 05:53:23 +00:00
Sauw Ming 6264b9ee43 Re #1961: Fallback to CLOCK_MONOTONIC if /dev/alarm is not found, or getting ANDROID_ALARM_ELAPSED_REALTIME fails.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5482 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-15 02:23:38 +00:00
Sauw Ming 4d0ef2547b Re #1945 (misc): Disable local host resolution (PJ_GETHOSTIP_DISABLE_LOCAL_RESOLUTION) for macOS as well (instead of for iOS only).
Please refer to #1342 for more details.

Thanks to Jeff Anderson for the report and the fix.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5480 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-14 03:23:51 +00:00
Sauw Ming 121e46bb8c Fixed #1975: Add support to select elliptic curve and signature algorithm for TLS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5472 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-27 07:58:01 +00:00
Riza Sulistyo 8afc25ab08 Re #1900:
- Modify some project files for x64 build.
- Add some files/folder to the global ignore list.
- Disable PJ_OS_HAS_CHECK_STACK as default.
- Use ip_helper_generic.c which provides implementation to pj_enum_ip_interface() and pj_enum_ip_route(). 



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5470 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-26 07:16:01 +00:00
Nanang Izzuddin 3e8a70aeab Misc (re #1945): Avoid calling memchr() or memcpy() with NULL pointer (thanks Kal from the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5468 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-24 03:22:46 +00:00
Riza Sulistyo 568ba7a2e5 Re #1969: Fix crash on using an already destroyed SSL socket.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5459 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-13 09:02:50 +00:00
Riza Sulistyo a9bd0fd451 Re #1945 (misc): Use localtime_r() instead of localtime() (if available) since localtime() is not thread safe.
This fixes a data race in pj_time_decode() which is called from multiple threads.
Thanks to Kal (b17 c0de) for the patch.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5458 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-13 04:32:29 +00:00
Nanang Izzuddin 0db777a6cc Re #1961: Updated Android pj_gettimestamp() implementation to use ANDROID_ALARM_ELAPSED_REALTIME.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5457 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-10 08:20:54 +00:00
Nanang Izzuddin 6f96a93a9b Fix #1961: Updated Android timestamp to use CLOCK_BOOTTIME (or ANDROID_ALARM_ELAPSED_REALTIME for older NDK version), to avoid suspended clock when CPU is in deep sleep.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5447 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-06 04:05:02 +00:00
Riza Sulistyo b1490d57d8 Re #1964: Implement QoS for darwin OS which supports SO_NET_SERVICE_TYPE.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5445 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-05 09:52:39 +00:00
Riza Sulistyo 88044b49a5 Re #1963: Implement QoS for IPv6 for platform that supports IPV6_TCLASS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5444 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-05 09:07:17 +00:00
Nanang Izzuddin 23ed970882 Re #1900: Fixed crash in destroying UDP socket after being initialized but not used (for sending/receiving).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5439 74dad513-b988-da41-8d7b-12977e46ad98
2016-09-26 07:57:54 +00:00
Nanang Izzuddin 5a3047399a Misc (re #1945): Added PJ_HAS_IPV6 in pj_dump_config(), thanks Alexei Gradinari for the suggestion, also updated the year in copyright line.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5421 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-18 08:04:37 +00:00
Nanang Izzuddin b977d2fdb0 Fixed #1953: Skip IPv6 socket in resolver on system without IPv6 support.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5420 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-17 04:29:17 +00:00
Sauw Ming dadfcb7557 Re #1945 (misc): Set IPv6 sockets to be IPv6 only
Auto-detect in configure script if this option is supported, and if yes, Set IPv6 sockets to be IPv6 only.

Thanks to Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5403 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-02 08:35:28 +00:00
Sauw Ming 55cfb7f4ab Changed version to 2.5.5-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5396 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-21 07:18:06 +00:00
Sauw Ming f996f75514 Changed version to 2.5.5
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5394 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-21 03:28:11 +00:00
Riza Sulistyo b95f9dfd42 Re #1928: Change the cipher on pjlib-test since DES_CBC_SHA might not be
supported on newer openssl.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5381 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-13 11:03:01 +00:00
Nanang Izzuddin 928b27f6fb Misc (re #1928): Reverted back some dirty changes in r5376 about address info indexing.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5377 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-05 13:21:31 +00:00
Nanang Izzuddin 8388e64845 Misc (re #1928): pj_getaddrinfo() is better to return error when no address is found, some codes in the library seem to expect pj_getaddrinfo() to behave this way.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5376 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-05 12:53:20 +00:00
Nanang Izzuddin 1889a7a954 Re #1930: Fixing stuck issue or server socket not closed after an incoming connection fails, e.g: due to no shared cipher, and timer heap is not set.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5367 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-29 06:23:20 +00:00
Sauw Ming 1f9e6d9f34 Re #1930: Revert back the change to comment do_handshake() in on_accept_complete() committed in r5343.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5344 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-15 01:59:14 +00:00
Sauw Ming 882bbf656d Re #1930: Fixed race condition when more than one thread try to close the same activesock.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5343 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-14 10:28:19 +00:00
Sauw Ming 5283ca4581 Close #1930: Race condition in OpenSSL socket
A workaround to solve the race condition based on ticket #985.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5338 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-08 02:55:24 +00:00
Riza Sulistyo 4bcf7379e2 Changed version to 2.5.1-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5334 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-02 10:33:50 +00:00
Riza Sulistyo 68ec5c49b3 Changed version to 2.5.1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5332 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-02 07:36:05 +00:00
Riza Sulistyo 92a8451488 Re 1917(misc): Fix silly mistake on r5330.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5331 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-01 10:34:12 +00:00
Riza Sulistyo 806e030aae Re #1917(misc): Fix failed purity_test() on pjlib-test since getaddrinfo() might return multiple addrinfo.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5330 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-01 10:05:22 +00:00
Riza Sulistyo 9bbd5af8be Re #1917 (misc): Fix failed pjlib-test when built using Visual Studio 2015 caused by defined EINVAL with different string error.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5328 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-31 08:11:48 +00:00
Nanang Izzuddin e350feef33 Misc (re #1917): Disable ALSA audio device backend on BB10 in config_site_sample.h.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5320 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-25 12:31:47 +00:00
Nanang Izzuddin d24cb4dc6b Fix #1925: pj_getaddrinfo() should invoke getaddrinfo() even when IP address is inputted, except on Windows Mobile platforms (see #458).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5319 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-25 08:38:49 +00:00
Sauw Ming 2cdf297769 Re #1917 (misc): Suppress empty-body warning and "logical not is only applied to the left hand side of this comparison" warning
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5317 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-25 06:33:26 +00:00
Riza Sulistyo 8d70225a1c Re #1917(misc): Fix tpipv6.h not found when enabling IPv6 on Visual Studio.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5312 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-20 07:19:26 +00:00
Sauw Ming 3733338bc1 Re #1922: Replace IPv4 specific APIs as per Apple's recommendations
https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html#//apple_ref/doc/uid/TP40010220-CH213-SW27



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5311 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-20 04:17:00 +00:00
Nanang Izzuddin d5083ec7f8 Re #1900: Various fixes in sock_uwp.cpp, mostly about error/exception handlings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5298 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-17 08:51:14 +00:00
Sauw Ming 7af79a2ddc Re #1917 (misc): Fixed pj_getaddrinfo()'s CFHost version (such as on iOS) which may return truncated IP address if (af == PJ_AF_UNSPEC) and the address is of IPv6 family.
Thanks to Johan Lantz for the fix.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5295 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-13 01:24:03 +00:00
Nanang Izzuddin df67f9a06f Changed version to 2.5-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5294 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-11 08:58:37 +00:00
Nanang Izzuddin afa08c8dae Changed version to 2.5
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5292 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-11 07:05:03 +00:00
Riza Sulistyo 39391e025b Misc (re #1882): Fixed buffer size not sufficient when setting cipher list.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5285 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-10 06:32:30 +00:00
Riza Sulistyo 77b7415ecf Fixed #1912: Build Error on Alpine linux (musl libc).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5277 74dad513-b988-da41-8d7b-12977e46ad98
2016-04-13 06:24:48 +00:00
Riza Sulistyo 97359dea42 Re #1909: Fixed crash related to r5264.
- pj_generate_unique_string() expecting the user to specify the slen of the output string, this will lead to assert on pj_strncpy() if not set
- modify PJ_GUID_STRING_LENGTH to 36



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5272 74dad513-b988-da41-8d7b-12977e46ad98
2016-04-01 02:34:48 +00:00
Sauw Ming 46c6578883 Fixed #1909: GUID implementation for Android.
Thanks to Johan Lantz for the contribution.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5264 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-17 02:56:27 +00:00
Nanang Izzuddin 31c9c139fd Re #1900:
- Works on UWP socket & ioqueue.
 - Media transport UDP: cancel any pending send on detach, otherwise there is possibility that send buffer is already freed by application (stream) when the send op starts.
 - Ioqueue common abs: rename 'generic' as it seems to be a keyword in C++/CX, fixed #if/#endif possition in ioqueue_init_key().
 - pjsua GUI app: fixed thread registration status check.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5256 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-11 04:17:32 +00:00
Riza Sulistyo 4660ce3230 Re: #1900:
- Add new property file (pjproject-vs14-api-def.props) to define the API used
- Add ioqueue specific to uwp using winRT networking API
- Add uwp GUI sample APP using Voip architecture
- Add async activation for wasapi dev



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5254 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-07 23:15:34 +00:00
Nanang Izzuddin a2eac68457 Misc (re #1882): Updated ioqueue epoll related vars in build config, e.g: update 'ac_linux_poll' value, introduce PJ_HAS_LINUX_EPOLL flag (thanks George Joseph for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5247 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-25 04:54:17 +00:00
Riza Sulistyo f748884498 Misc (Re #1882): Add raw certificate information to pj_ssl_cert_info data. Thanks to Peter Koletzki for the suggestion.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5238 74dad513-b988-da41-8d7b-12977e46ad98
2016-01-27 09:55:13 +00:00
Sauw Ming 3811a7bf42 Re #1882 (misc): Add checks as ssocket_cli and state_cli can be NULL
Thanks to Dusan Klinec for the original patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5231 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-31 10:28:19 +00:00
Sauw Ming e7469c2232 Re #1882 (misc): Add assertion checks in pj_strncpy() and pj_strncpy_with_null(). When max is negative, it may go undetected and cause crash since it will be cast to an unsigned when calling pj_memcpy().
Thanks to Dusan Klinec for the suggestion.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5229 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-31 05:06:03 +00:00
Sauw Ming ce2ce483a8 Re #1882 (misc): Fixed incorrect sizeof argument when using pj_bzero() and pj_memcpy() in ssl_sock_ossl.c
Thanks to Dusan Klinec for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5220 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-30 03:40:16 +00:00
Nanang Izzuddin cdb73f16ce Misc (re #1882): Fixed wrong specifier used in ssl_sock_ossl.c (should be 'PJ_DEF' instead of 'PJ_DECL').
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5216 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-23 04:33:42 +00:00
Sauw Ming 2d446d8810 Fixed #1901: crash when async_cnt is set to a value greater than one for SIP TLS transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5214 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-11 04:59:56 +00:00
Riza Sulistyo e67887e55e Re #1900: Initial implementation with pjsua cli/telnet sample app.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5210 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-10 01:58:38 +00:00
Nanang Izzuddin 0c9dd1d3d0 Re #1894: Fixed high socket descriptor check in ioqueue select, it should be against FD_SETSIZE instead of PJ_IOQUEUE_MAX_HANDLES, as PJ_IOQUEUE_MAX_HANDLES can be lower than FD_SETSIZE.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5196 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-06 11:36:06 +00:00
Nanang Izzuddin af48998e29 Close #1894: Improve ioqueue performance on multithreadeded environment.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5194 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-06 04:18:46 +00:00
Riza Sulistyo 5a5522dc6e Re #1881: Add filters file.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5181 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-21 05:25:04 +00:00
Nanang Izzuddin 88358fd268 Re #1881: Fixed compile warnings on VS2015 about declaration hides previous declaration.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5170 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-25 08:45:46 +00:00
Riza Sulistyo bcfe1aea76 Re #1881: Add Visual Studio 2015 support.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5168 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-21 14:58:04 +00:00
Riza Sulistyo 984e351df8 Changed version to 2.4.5-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5164 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-12 05:28:43 +00:00
Riza Sulistyo 49bac29e12 Changed version to 2.4.5
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5160 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-12 02:39:26 +00:00
Sauw Ming a223ba3e84 Fixed #1874: Truncated IPv6 address during address lookup on iOS
Thanks to Brian Walker for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5146 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-05 06:31:45 +00:00
Sauw Ming 93efad4c9b Fixed #1861: Add support for video capture orientation on Android
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5138 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-30 06:23:35 +00:00
Sauw Ming 80467f5ebc Fixed #1862: Crash on iOS when destroying an activesock and creating a new one at the same time
Thanks to Itay Bianco for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5119 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-25 08:53:02 +00:00
Sauw Ming a717a79328 Re #1843 (misc): Fixed target machine auto-detection for Windows 64 platform when using Visual Studio
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5093 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-14 06:06:27 +00:00
Sauw Ming 0d9345ea53 Re #1843 (misc): Fixed incorrect memcpy size in sock_common (thanks to Richard Mudgett for the patch and Joshua Colp for the report)
If an IPv6 UDP transport is configured with a link-local address, say fe80::21c:c0ff:fe4e:1a9e%eth0, which is an invalid format for an IPv6 address, it may cause crash. The invalid format causes pjproject to use an incorrect size parameter with memcpy().



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5092 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-12 01:56:29 +00:00
Nanang Izzuddin d6596d91ab Close #1849: Enabled multiple TLS certificate chains (RSA+ECC+DSA) for server socket.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5087 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-07 04:48:19 +00:00
Nanang Izzuddin a862f11212 Misc (re #1843): Fixed compile warnings on pjlib SSL socket with BoringSSL backend (thanks Alexander Traud for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5083 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-05 06:41:17 +00:00
Riza Sulistyo 98babafa48 Re #1843: Enable OpenSSL to use legacy certificates(1024 bit root certificate) send by server.
This is supported on OpenSSL 1.0.2. Thanks to Alexander Traud for the patch.
 


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5080 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-27 08:05:31 +00:00
Sauw Ming 9331c0893b Fixed #1846: Update to use 'HIGH' ciphers as default in OpenSSL
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5078 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-23 10:18:52 +00:00
Sauw Ming 3ba6b97f46 Fixed #1845: Add support if OpenSSL library has more than 100 cipher suites
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5076 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-23 02:42:49 +00:00
Sauw Ming fd4d53641c Re #1843:
Support compilation with OpenSSL without OpenSSLv3 support

Thanks to Alexander Traud for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5074 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-22 03:43:00 +00:00
Sauw Ming 26d4eef986 Changed version to 2.4-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5064 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-13 05:11:35 +00:00
Sauw Ming fa7b335659 Changed version to 2.4
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5062 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-13 02:45:03 +00:00
Riza Sulistyo 24ca01f0df Misc (re #1782): Fixed build error when using PJ_POOL_DEBUG=1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5061 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-10 13:19:47 +00:00
Nanang Izzuddin d2a76eb70b Misc (re #1782): Suppress compile warnings on MSVC.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5060 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-10 11:47:48 +00:00
Sauw Ming 2b79e65eb9 Re #1782 (misc): Fixed activesock's lock msg w.r.t iOS background to be more precise.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5044 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-02 06:44:08 +00:00
Sauw Ming 6f19425c22 Re #1782 (misc): Prevent build error if using another ioqueue backend (such as epoll) or if using PJ_CONFIG_MAXIMUM_SIZE on platforms that do not support setting FD_SETSIZE
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5042 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-01 07:50:23 +00:00
Sauw Ming e67656d494 Fixed #1827: Video port's clock thread may get stuck during format change event
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5012 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-22 07:50:28 +00:00
Sauw Ming 833a87f30b Fixed #1821: Remove unnecessary locking in pjsip transaction and add new API to create a group lock with handler in a single atomic instruction
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4992 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-06 06:09:22 +00:00
Sauw Ming da1192b073 Re #1782 (misc): Suppress Helgrind's warning about possible data race when doing ioq select.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4991 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-06 06:04:21 +00:00
Sauw Ming 10c3fbbdd7 Re #1782 (misc): Fixed unitialized mutex owner variable when creating mutex
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4990 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-05 04:12:16 +00:00
Nanang Izzuddin 0629361e85 Misc (re #1782): Enabled G722 in config_site_sample.h for iOS and Android platforms.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4984 74dad513-b988-da41-8d7b-12977e46ad98
2015-02-26 04:00:44 +00:00
Nanang Izzuddin 869db13381 Close #1810: Adding CA path support into SSL socket.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4973 74dad513-b988-da41-8d7b-12977e46ad98
2015-01-15 06:55:02 +00:00
Riza Sulistyo a60233729f Re #1782 (misc): Change assert check of ssl_state to non assert check on OpenSSL wrapper implementation.
(thanks to Joshua Colp for the suggestion)



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4972 74dad513-b988-da41-8d7b-12977e46ad98
2015-01-05 04:34:17 +00:00
Riza Sulistyo 24bae56fbc Re #1806: Implement SSL/TLS setting to set protocol operation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4968 74dad513-b988-da41-8d7b-12977e46ad98
2014-12-18 04:40:35 +00:00
Sauw Ming 22cb947ee3 Fixed #1792: Create generic JNI OnLoad function
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4927 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-23 04:13:40 +00:00
Nanang Izzuddin e16386431d Changed version to 2.3-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4915 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-03 11:18:02 +00:00
Nanang Izzuddin 6bed9637fb Changed version to 2.3
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4913 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-03 08:39:58 +00:00
Nanang Izzuddin 69a713c7ff Misc (#1751): Change default sound device on Android to use Android JNI (due to stuck issue with OpenSL ES).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4912 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-02 07:10:39 +00:00
Riza Sulistyo 4baa476078 Misc (re #1751): fixed printing value issue when using %02X format. (Thanks Itay Bianco for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4910 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-01 06:32:50 +00:00
Riza Sulistyo 736ab2a480 Misc (re #1751): Avoid confusion caused by double variable declaration. (Thanks Itay Bianco for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4905 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-26 05:14:13 +00:00
Nanang Izzuddin f609626e3a Misc (re #1751): Suppress compile warnings of OpenSSL deprecation on MacOSX.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4901 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-22 01:44:29 +00:00
Benny Prijono 2ccd237527 Misc re #1751: disable one pjlib-test entry on socket address parsing
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4894 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-20 06:15:23 +00:00
Benny Prijono d1803e61dd Re #1751: fixed miscellaneous gcc warnings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4890 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-19 00:54:34 +00:00
Riza Sulistyo 4d41dda2ab Re #1765:
- Fixed unnecessary white-space error
 - Limiting log message to servers
 - Adding SSL_OP_SINGLE_ECDH_USE optionally
 - OpenSSL could be built without elliptic curve support, or too old



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4871 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-07 06:40:01 +00:00
Benny Prijono 1d55a26625 Closed #1775: Changing OpenSSL default method from TLSv1 to SSLv23 to enable enable AES-GCM cipher suites in default (thanks Alexander Traud for the patch).
Also fixed a bug in SIP TLS transport (sip_transport_tls.c). According to [https://trac.pjsip.org/repos/browser/pjproject/trunk/pjsip/include/pjsip/sip_transport_tls.h#L94 sip_transport_tls.h:94], when PJSIP_SSL_UNSPECIFIED_METHOD is set as method, PJSIP_SSL_DEFAULT_METHOD will be used. But the implementation uses PJ_SSL_SOCK_PROTO_DEFAULT instead of PJSIP_SSL_DEFAULT_METHOD. Currently this is fine because both resolve to TLSv1, but the patch will break it.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4869 74dad513-b988-da41-8d7b-12977e46ad98
2014-07-02 18:57:53 +00:00
Nanang Izzuddin 6cbe3651b5 Fix #1773: Added group lock to SIP transport to avoid race condition between transport callback and destroy.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4862 74dad513-b988-da41-8d7b-12977e46ad98
2014-06-19 09:42:02 +00:00
Riza Sulistyo caef1f2398 Re #1771: Implement run-time configuration to set specific socket option.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4860 74dad513-b988-da41-8d7b-12977e46ad98
2014-06-19 05:07:12 +00:00
Benny Prijono 5d4eec623f Misc (re #1751): fixed error when retrieving SSL error. Thanks Vittorio Giovara for the patch
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4858 74dad513-b988-da41-8d7b-12977e46ad98
2014-06-06 10:08:47 +00:00
Benny Prijono d085d2f425 Misc (re #1751): invalidate timer entry for every cancel() scenario to avoid assertion next time the entry is scheduled if cancellation fails (thanks Johan Lantz for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4855 74dad513-b988-da41-8d7b-12977e46ad98
2014-06-04 09:23:10 +00:00
Nanang Izzuddin 2364977192 Misc (re #1751): Fixed AF_INET should be PJ_AF_INET in sock_common.c (thanks Lars Helgeson for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4850 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-23 09:26:34 +00:00
Sauw Ming 4400a234d1 Fixed #1765: Add PFS support
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4832 74dad513-b988-da41-8d7b-12977e46ad98
2014-05-02 10:20:14 +00:00
Sauw Ming 37e8cd9fb1 Fixed #1763: Add pj_ssl_cipher_id() API
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4829 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-30 08:21:28 +00:00
Riza Sulistyo 6163e7409e Changed version to 2.2.1-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4797 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-14 10:01:50 +00:00
Riza Sulistyo 7339542beb Changed version to 2.2.1
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4795 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-14 06:58:10 +00:00
Nanang Izzuddin 9aedf941bc Re #1745 (Shared lib on MinGW): Fixed multiple definition of pj_time_decode/encode().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4784 74dad513-b988-da41-8d7b-12977e46ad98
2014-03-10 08:58:49 +00:00
Benny Prijono 5ed3ec85d3 Changed version to 2.2-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4769 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-27 04:47:59 +00:00
Benny Prijono 9c89d08b3a Changed version to 2.2
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4764 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-27 02:13:25 +00:00
Nanang Izzuddin 797a52d3dc Re #1680: Fixed compile warnings on VS2005 for x64/win64 config.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4761 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-24 09:02:44 +00:00
Nanang Izzuddin 1d865bcd8d Misc (re #1630): Fixed missing PJ_DECL on pj_run_app() and bad type casts in WMME audio dev (thanks Louis Solomon for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4760 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-24 08:49:40 +00:00
Benny Prijono 241474d94d Misc (re #1630): Fixing warnings about variable set but not used with recent gcc
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4728 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-04 10:13:56 +00:00
Sauw Ming 4bf06e69fa Re #1519 (commited to SVN trunk): Add lib target to build system to enable building the library only (without the executables)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4727 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-04 07:39:55 +00:00
Nanang Izzuddin 3537c545df Misc (re #1630): Fixed some more typos in the codes.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4724 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-31 08:52:09 +00:00
Nanang Izzuddin 93252d7e89 Misc (re #1630): Fixed symbols that should not be exported (thanks Tzafrir Cohen for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4713 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-23 08:13:11 +00:00
Nanang Izzuddin 288461dd42 Misc (re #1630): Fixed GCC build warnings (thanks Tzafrir Cohen for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4712 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-23 08:09:29 +00:00
Sauw Ming f33813f793 Closed #1723: Merging pjsua2 branch into trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4704 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-16 05:30:46 +00:00
Nanang Izzuddin 70bde3b601 Re #1519: Misc fixes in pjsua2:
- Changed AccountConfig::toPj() signature, because a pjsua_acc_config instance should not be copied/assigned to another pjsua_acc_config instance as it contains list.
 - Fixed assertion in Endpoint destructor caused by access to pjlib mutex after pjlib is destroyed.
 - Changed VS2005 sample_debug project to allow debugging C++ code such as pjsua2_demo.cpp.
 - Compile warnings on VS2005.
 - Fixed SWIG python unit test.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4692 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-13 11:44:51 +00:00
Nanang Izzuddin 8ccd01859a Re #1516: Avoid duplicated LDFLAGS in pjlib-test, which may raise linking errors (e.g: on Android).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4689 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-13 01:16:10 +00:00
Benny Prijono f912318dd8 Fixed #1713: Enable building the libraries as shared libraries/DLLs for GNU targets
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4656 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-23 07:13:40 +00:00
Nanang Izzuddin 20838ee07c Re #1519: Minor update on PJ_UINT64() macro for GCC compiler. "LLU" is not recognized by C preproc on mingw/msys.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4654 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-22 10:18:08 +00:00
Benny Prijono a6bcf96f7f Re #1519: added pj_strtof() to convert string to float in PJLIB, as part of pjsua2 persistent API development
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4642 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-06 07:41:40 +00:00
Benny Prijono f673a6ef92 Re #1519: Major change in pjsua2.i and etc after actual test in Python:
- Major changes in SWIG interface file (pjsua2.i). 
    - The "ignore" and "unignore" approach caused link error with vector (duplicate symbols because SWIG generates two identical vector functions in the wrapper) so it cannot be used (tried with many combinations and still doesn't work).
    - So scrap that, and now we use "importing" approach, where needed symbols must be listed in symbols.lst file, then use importsym.py to import the symbol declarations to symbols.i. Then include symbols.i in pjsua.i
    - Due to the way importsym.py work, some macros and naked constants need to be placed into a named enumeration, for example:
       - #define PJ_SUCCESS 0  ==> enum pj_constants_ { PJ_SUCCESS=0 }; [types.h]
       - enum { PJMEDIA_VID_DEFAULT_CAPTURE_DEV = -1 } ==> enum pjmedia_vid_dev_std_index { PJMEDIA_VID_DEFAULT_CAPTURE_DEV = -1 }; [videodev.h]
    - Makefile was changed so that symbols.i would be generated if symbols.lst has changed
 - Added "make install" and "make uninstall" targets for swig. Only implemented on Python. This will install to user's lib dir so doesn't need sudo.
 - Deleted approachX.hpp files
 - Added libVersion() method to Endpoint along with Version struct.
 - Fix pjsua2.i to make exception (or redirection?) works in Python
 - Add polling and worker thread related API:
    - PJSUA-LIB: pjsua_register_worker_thread(), pjsua_stop_worker_threads()
    - Endpoint: libRegisterWorkerThread(), libStopWorkerThreads(), libHandleEvents();



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4639 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-01 07:11:48 +00:00
Sauw Ming fc1fb24b87 Re #1630 (misc): Use the right compiler and flags to compile C++ (.cpp) files
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4637 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-24 07:12:39 +00:00
Sauw Ming fdd63c3b60 Fixed #1707: Add support for paralel build
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4632 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-23 06:39:47 +00:00
Sauw Ming 1afe01bf0f Re #1630 (misc):
Fixed os_darwinos.h (however, if PJ_AUTOCONF is defined, this file should not be used)



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4626 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-21 07:04:38 +00:00
Sauw Ming ab249ac0e5 Re #1630 (misc):
Fixed compiler warnings. Thanks to Mark Michelson for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4624 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-21 06:37:30 +00:00
Benny Prijono 58dba631ff Re #1703: fixing general bugs. First installment: correct handling of snprintf return value
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4613 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-08 09:08:13 +00:00
Sauw Ming eecf85e11c Re #1697: Add device info in pj_get_sys_info() and set default clock rate for iPhone 5 running iOS7 to 44100Hz
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4610 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-03 10:26:14 +00:00