Commit Graph

5340 Commits

Author SHA1 Message Date
Sauw Ming 6814d38f53 Re #2185: Darwin SSL backend
* Security framework availability will be automatically detected for Mac OS and iOS, and if found, Darwin SSL will be the default SSL backend.
* OpenSSL availability will still be checked regardless of the above result, as it may be needed for DTLS.
* Add configure option --disable-darwin-ssl to disable the automatic detection



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5959 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-26 07:25:57 +00:00
Sauw Ming 6fcec7b8eb Re #2185: Add Security framework to ipjsua sample app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5958 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-25 08:04:15 +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
Nanang Izzuddin f01387d5aa Misc (re #2147): Add info and checks about Extra Audio Device supporting mono channel only.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5956 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-21 08:46:13 +00:00
Nanang Izzuddin 063e244d49 Fix #2184: PJSUA2 cannot switch from null audio device.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5955 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-20 03:23:34 +00:00
Nanang Izzuddin 63be4785a5 Fix #2183: Fixed bug of dialog not destroyed on late media scenario: pjsua_call_on_incoming() should decrement dialog session counter when media channel is not initialized.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5954 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-19 08:24:57 +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 ecdbbe998e Misc (re #2147): Updated SVN property svn:eol-style to native for Java sample app (avoid rejection in merging patch from Linux on Windows).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5952 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-13 11:02:50 +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 a97f2c453b Fixed #2182: Prevent crash in unpublishing presence when deleting account
Note that this fix only covers the account deletion scenario. It doesn't prevent the race condition between deleting account in publish_cb and accessing the publish session itself, which should be solved using a locking mechanism.

Thanks to Bogdan Bogdan Chifor for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5949 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 09:29:09 +00:00
Sauw Ming 2c8710a584 Re #2181: Fixed assertion in darwin_dev pj_assert(frame->size >= stream->frame_size);
But the problem itself is caused by video port, which passes the wrong frame size when the video capture is passive.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5948 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 09:22:21 +00:00
Nanang Izzuddin 151c0d526a Re #2181: Fixed unreleased pool when disconnecting ports in video conference.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5947 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 07:02:23 +00:00
Sauw Ming 7a070560a2 Re #2147 (misc): Contact params update when modifying account
The current contact params updates are not applied when calling pjsua_call_modify(). Updating contact header can be quite complicated so a simpler workaround is to trigger account registration first (the same solution is used to update force_contact).

Thanks to Lars Olsson for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5946 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 05:22:49 +00:00
Nanang Izzuddin fa49fd0872 Re #2181: Fixed assertion due to removing an invalid port from video conference in pjsua_vid_stop_stream().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5945 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 03:22:19 +00:00
Nanang Izzuddin 4d8a81b318 Re #2181: Fixed build error when PJMEDIA_HAS_VIDEO is set to zero.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5944 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 02:57:45 +00:00
Sauw Ming 93d1de1092 Re #2147 (misc): missed !VideoToolbox deinit in r5942
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5943 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 02:57:22 +00:00
Sauw Ming 0261784a9e Re #2147 (misc): Fixed assertion in simpleua sample for not creating event manager.
Also add support for VideoToolbox codec.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5942 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-08 02:53:51 +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
Nanang Izzuddin eafc04d5bf Re #2181: Initial version of video conference implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5939 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-05 06:23:02 +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 3feefb6a09 Re #2147: Added logging and explicit SIP error code for assertions in SIP message verification.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5937 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-28 09:09:42 +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
Nanang Izzuddin 906b9a6460 Fixed #2177: Updated configure-android script for NDK r17, r18, r19.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5932 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-11 03:43:51 +00:00
Sauw Ming 5031c72a22 Fixed #2175: Make sure that last ACK has been sent before retransmitting it.
Also update the doc that the callback can now be called more than once.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5931 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-21 08:48:02 +00:00
Sauw Ming 2c62b847f2 Re #2173: Fixed assertion caused by PJMEDIA_SDP_EMISSINGCONN, if incoming INVITE contains unsupported media (such as video when PJSIP is built without video).
The assertion happens in:
pjsip_inv_verify_request3: Assertion `(status=pjmedia_sdp_validate(l_sdp))==PJ_SUCCESS' failed.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5930 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-21 03:56:53 +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
Riza Sulistyo fe7079db9d Close #2173: On PJSUA2, application will not be notified when when SDP nego fails due to unsupported codec.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5928 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-08 09:43:21 +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
Sauw Ming cfd58588f6 Re #2147 (misc): set wholeMsg string of SipTxData to the whole message instead of the whole buffer.
Thanks to Michael Loeffler for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5926 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-03 00:56:58 +00:00
Nanang Izzuddin 8c76e17145 Close #2171:
- Apply returned frame quality filter in OpenH264 decoder (drop the frame if decoder returns dsRefLost dsNoParamSets, dsDepLayerLost).
 - Only publish keyframe missing event when decoder returns non-dsErrorFree (was always publishing the event when no frame is returned, while decoder may return dsErrorFree and no frame returned, e.g: when decoding parameter sets).
 - Added a bit more logs for debugging.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5925 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-17 03:46:35 +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
Nanang Izzuddin 7fdb4bf16d Re #2168:
- Added a new PJSUA callback on_media_event().
 - Added audio device error handling into PJSUA2.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5923 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-13 06:57:23 +00:00
Riza Sulistyo 8c190227f5 Close #2170: When using pjsua2 API, Re-INVITE with no SDP will be responded with 488 response.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5922 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-12 15:36:17 +00:00
Riza Sulistyo df4f51bab1 Close #2169: Update invite options when receiving INVITE provisional response with Allow UPDATE header.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5921 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-12 13:50:22 +00:00
Nanang Izzuddin eb94374bc8 Close #2168: Added media event for audio device error.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5920 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-12 07:16:46 +00:00
Sauw Ming 3a633fecc0 Fixed #2166: Possible buffer overread if RTCP packet length is invalid
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5919 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-04 02:25:52 +00:00
Sauw Ming aef92670e1 Fixed #2165: Support video only call in pjsua
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5918 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-04 02:16:47 +00:00
Sauw Ming cc44fb2875 Fixed #2164: Subscription may get terminated when NOTIFY is challenged
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5917 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-28 04:01:28 +00:00
Sauw Ming 12669335c6 Re #2147 (misc): Fixed incorrect typecast in Speex resampler. Thanks to Sebastian Marek for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5916 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-26 00:57:54 +00:00
Nanang Izzuddin 4957180b34 Misc (re #2147): Removed 'experimental' word for Speex resampling.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5915 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-23 10:06:51 +00:00
Nanang Izzuddin e18f103391 Misc (re #2147): Invalid media direction (dir=NONE) when receiving first video event PJMEDIA_EVENT_FMT_CHANGED (thanks Giorgio Alfarano for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5914 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-22 10:11:25 +00:00
Nanang Izzuddin f43b6cb0aa Fix #2163:
- Frame rate calculation is now done using temporary variable, instead of using stream decoding channel state directly.
 - Added condition for applying calculated frame rate: it must be greater than zero.
 - Fixed frame rate comparison to use float, was using integer which might get overflow on 32 bit integer platforms.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5913 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-22 03:33:42 +00:00
Sauw Ming 673948c847 Re #2159: Replace std::mutex with PJSIP's own pj_mutex_t, since std::mutex is only available starting C++11
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5912 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-22 02:39:29 +00:00
Riza Sulistyo cdbb718e10 Close #2162: If transport restart fail, don't proceed with updating contact on IP change process.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5911 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-21 10:08:04 +00:00
Nanang Izzuddin 627f5d8b8c Misc (re #2147): pjmedia_transport_media_stop() should not be called before pjmedia_stream_destroy(), otherwise RTCP BYE, DTMF 'End' flag, etc cannot be sent (thanks Lauri Vänskä for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5910 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-21 08:39:45 +00:00