Commit Graph

5046 Commits

Author SHA1 Message Date
Sauw Ming 7c6147688e Re #1994 (misc): Add check in our sample alt_pjsua_aud when stopping stream (similar to alt_pjsua_vid).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5657 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-25 02:18:57 +00:00
Sauw Ming 51519471d8 Re #1993: With the update of bundled libSRTP to 2.1, external SRTP needs to be of version 2.x as well. This changeset will allow external SRTP users the option to continue using their current version 1.x.
* Also add autodetection of external SRTP version via the configure script.

Thanks to Alexander Traud for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5656 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-22 02:42:22 +00:00
Riza Sulistyo 88ada0cae7 Close #2043: Fixed pjnath-test crash due to access to an invalid callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5655 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-20 05:04:25 +00:00
Riza Sulistyo e307352851 Re #1994(misc): Fixed various warnings on VS2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5654 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-20 04:34:27 +00:00
Sauw Ming d2faa6d17a Re #1994 (misc): Fixed various warnings when using gcc/clang
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5653 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-20 02:57:26 +00:00
Sauw Ming 9b1eaa7903 Re #2022: Enable encode_decode_test() for Video Toolbox in pjmedia video codec unit tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5652 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-20 02:09:42 +00:00
Nanang Izzuddin 2965eb35bc Fix #2042: Fixed SRTP error in sending video RTP after call hold and unhold.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5651 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-19 10:21:42 +00:00
Nanang Izzuddin ab8e049fa0 Misc (re #1994): Fixed compile error in pjsua2_demo.cpp due to unrecognized 'unique_ptr'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5650 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-18 07:10:11 +00:00
Riza Sulistyo fdce1c4b1a Re #2041: Implement API to handle IP address change.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5649 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-15 05:32:08 +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
Riza Sulistyo 76ea108e47 Re #1994(misc): Fixed unguarded 'if' which might lead to double locking. Thanks to Alexander Traud for the info.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5647 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-11 10:31:03 +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
Riza Sulistyo 36588499fa Close #2040: Implement CodecParam class as a wrapper for pjmedia_codec_param.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5645 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-06 03:44:35 +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
Riza Sulistyo 087584a93f Re #2035: Don't include srtp.h on pjmedia config.h, which raise error when including PJSIP from install dir.
Thanks to Peter Koletzki for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5643 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-22 04:59:57 +00:00
Sauw Ming cc2ecbfb28 Re #1994 (misc): Prevent possible overflow in video bps calculation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5642 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-17 02:48:38 +00:00
Sauw Ming 2cd3d0a311 Fixed #2037: Add on_rx_offer2() callback for SIP invite
Thanks to Andrey Kovalenko for the suggestion and the initial version of the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5641 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-16 04:53:44 +00:00
Riza Sulistyo add2753ff5 Re #2035: Should check enough space for (MAX_TRAILER_LEN+4) before srtp_protect_rtcp().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5640 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-02 13:31:14 +00:00
Riza Sulistyo 1932df820e Fix #2035: Make sure transport SRTP buf size is sufficient before calling
srtp_protect() and srtp_protect_rtcp().



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5639 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-02 10:44:10 +00:00
Riza Sulistyo dd30c396b1 Close #2034: Add support to Python3 using PJSUA2 API.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5638 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-02 09:45:09 +00:00
Sauw Ming a6318663f0 Re #2032: Fixed assertion if using ICE without STUN server.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5637 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-02 07:19:21 +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
Nanang Izzuddin 92d73c51d5 Fix #2033: ICE must use regular nomination when communicating with lite implementations.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5634 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-28 09:43:57 +00:00
Nanang Izzuddin 4b6c5064c3 Re #2004: Update libyuv version from libyuv git master repo dated 27 July 2017, the compile errors on old gcc versions issue persists though.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5633 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-28 02:51:44 +00:00
Sauw Ming e33d5ff658 Fixed #2031: Add compile-time config for L16 codec
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5632 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-27 06:45:48 +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
Riza Sulistyo 10882ddde2 Re #2029: Support for G.729 backend implementation from bcg729.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5630 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-19 10:29:10 +00:00
Nanang Izzuddin 55e2570a9b Fix #2028: Cannot send UPDATE when call is ringing.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5629 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-19 06:10:17 +00:00
Sauw Ming 3d50dd93ed Re #1994 (misc): Fixed warning during runtime on iOS 11:
UI API called on a background thread



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5628 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-18 11:55:25 +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
Sauw Ming 328c76944e Re #1994 (misc): Suppresses implicit conversion warning (on iOS)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5626 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-18 00:43:43 +00:00
Sauw Ming fb5e38e119 Re #2022: Fixed build error on older Mac SDKs if Foundation.h is not explicitly included.
Also fix warning of unused label.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5625 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-07 10:59:25 +00:00
Nanang Izzuddin af17b763fc Misc (re #1994): Rearrange H264 default backend priority to avoid multiple H264 backends. Currently OpenH264 has higher priority than FFmpeg, and VideoToolBox (for MacOS/iOS) should be manually enabled.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5624 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-07 08:40: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
Nanang Izzuddin b267904a2e Re #1993: Updated configure script to enable AES-GCM with OpenSSL 1.1.0 after updating bundled libsrtp version.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5622 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-06 05:00:30 +00:00
Nanang Izzuddin ceae447b4f Re #2018: Added API pjmedia_transport_srtp_dtls_start_nego() to start DTLS-SRTP nego without SDP offer/answer.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5621 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-05 05:37:24 +00:00
Riza Sulistyo 2cc8271977 Fix #1968: Failure in configure-android when specifying --use-ndk-cflags with
Android NDK r13 or later.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5620 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-05 04:01:33 +00:00
Riza Sulistyo 07b997252c Fix #2026: Add option to for the SDP version to not increment when there's no
change from previous answer/offer.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5619 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-05 03:57:53 +00:00
Nanang Izzuddin 5388bd15ee Re #1993: Updated sample apps streamutil.c/vid_streamutil.c as the new libsrtp removes hex_string_to_octet_string().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5618 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-04 13:00:42 +00:00
Nanang Izzuddin 99aa30f054 Re #1993: Slight improvement on simple SRTP key generator (when PJ_HAS_SSL_SOCK is not set).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5617 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-04 11:22:39 +00:00
Riza Sulistyo cf1ee2b672 Fix #1991: Support ALSA audio device volume setting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5616 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-04 10:32:39 +00:00
Nanang Izzuddin d7395e8c6c Re #1993: Minor: cleaned up few more unused files.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5615 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-04 05:39:40 +00:00
Nanang Izzuddin 0e6af12b9e Close #1993: Updated bundled libSRTP version to 2.1.0.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5614 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-04 05:22:51 +00:00
Sauw Ming ae6a52677a Fixed #2025: crash in pjsua_destroy if there's pending outgoing TCP/TLS transmission
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5613 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-04 00:13:24 +00:00
Sauw Ming 576a3c0ae9 Fixed #2024: Crash due to uncancelled timer if there's an error in resolver's query transmit
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5612 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-04 00:06:22 +00:00
Nanang Izzuddin d24b351b7d Misc (re #1994): Updated Android pjsua2 sample app:
- print call statistics when call is disconnected
 - add template for writing log to file
 - change STUN setting, now it is disabled by default



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5611 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-30 09:24:50 +00:00
Nanang Izzuddin ad310537a4 Misc (re #1994): Fixed pjsip_inv_verify_request3() to set PJSIP_INV_SUPPORT_UPDATE flag into output param '*options' (instead of into internal var 'rem_option'). Thanks George Joseph for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5610 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-30 04:14:10 +00:00
Sauw Ming 55456d6ed7 Re #2022: Add VideoToolbox framework to ipjsua XCode project.
- Add libyuv to XCode project. Users that do not require video can safely remove this library from the project.
- Also add some privacy mic and camera usage settings in Info.plist



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5609 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-22 10:46:44 +00:00
Riza Sulistyo ab2d8674b6 Fix #2023: Crash on pjsip_dlg_create_uac() when specifying URI with valueless
header parameter.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5608 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-20 04:12:09 +00:00