Commit Graph

5253 Commits

Author SHA1 Message Date
Nanang Izzuddin 94fe7a3a2c Fix #2144: Updated PJSUA media update to work on call->media directly (previously on call->media_prov). Note that at this point (i.e: after SDP nego), PJSUA won't revert media state (back to before SDP nego) on any media update failure.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5871 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-31 03:15:23 +00:00
Riza Sulistyo 0d6e7d6037 Re #2141: Fix variable declaration misplacement.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5870 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-28 07:05:43 +00:00
Riza Sulistyo 2c3e39b2f5 Close #2141: Add TCP initial receive timeout for server connection.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5869 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-28 05:42:25 +00:00
Sauw Ming 7db2028ec2 Re #2103:
A couple of improvements:
- Now initialize both video port's renderer AND capture buffer
- Support RGB format as well.

Known limitation: YUV currently only supports I420 and YV12
 


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5868 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-28 02:00:05 +00:00
Sauw Ming 657df2b09e Re #2103: Darwin's capture device is passive, thus the video port's clock will fetch the frames much earlier than when the device is ready, getting zero frames and resulting in green screen on the remote side.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5867 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-23 04:48:03 +00:00
Sauw Ming 34de9fcee0 Re #2103: Move the black screen initialization of the renderer to pjmedia_vid_port_start() instead
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5866 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-23 04:45:13 +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 4fcfc942d8 Fixed #2139: Fix potentially incorrect buffer allocation for video port renderer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5864 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-21 08:06:43 +00:00
Nanang Izzuddin ee896a31ad Misc (re #2059): Fixed crash in pjsua2 sample app (perhaps due to access to invalid MyCall instance).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5863 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-21 07:23:25 +00:00
Nanang Izzuddin f654c5aa08 Close #2103: Initiate video port frame buffer with black for I420 & YV12 formats.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5862 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-20 05:30:01 +00:00
Nanang Izzuddin 62927ef6d3 Fix #2138:
- Updated ICE STUN & host candidates generation to be more forgiving on errors, i.e: continue gathering candidates using any available data instead of returning error.
 - Added more logs for debugging.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5861 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-16 02:56:52 +00:00
Nanang Izzuddin d641faa661 Re #2096: Fixed some compile warnings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5860 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-16 02:39:36 +00:00
Nanang Izzuddin 3aa78d85f3 Re #2135:
- Enabled DTLS in automated tests on desktop platforms.
 - Added some test variants, e.g: 64 bit mobile platforms, video, IPv6, in automated tests.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5859 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-16 02:37:29 +00:00
Nanang Izzuddin 5c8b34c348 Re #2135: Disabled a couple of tests in tsx_destroy_test() that rely on TCP connect timeout, as the timeout delay may vary among OSes.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5858 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-16 01:00:04 +00:00
Nanang Izzuddin 893cd9d20b Re #2096: Fixed bug of r5855, SRTP encode_sdp() should not reset bypass_srtp flag in reoffer/answer scenario.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5857 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-15 10:52:28 +00:00
Nanang Izzuddin 833fa97e90 Misc (re #2059): False error/exception returned by IP change Endpoint::handleIpChange() on Android, it returns error "Address already in use" immediately while a retry attempt is scheduled (i.e: param.restartLisDelay is set to non-zero). Thanks Christian Scheid for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5856 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-15 03:00:18 +00:00
Nanang Izzuddin 952ddfb355 Re #2096: Answer with one SRTP keying only when offered both (thanks Wei-Wei for the feedback).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5855 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-15 02:44:53 +00:00
Riza Sulistyo 8f4661df4c Re #2070: Missed silly mistake on log formatting.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5854 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-06 04:14:06 +00:00
Sauw Ming 808e9375ae Re #2096: re r5852, fixed assertion in pj_sockaddr_cp() because the address can actually be zero if we haven't received any packets
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5853 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-03 09:21:51 +00:00
Sauw Ming b6721dc614 Re #2096: DTLS updates
- Fix assertion when DTLS tries to attach transport, but the ICE transport's source RTP address hasn't been updated.
- Fix DTLS transport attachment in dtls_media_start() which misses rtcp-mux checking, causing rtcp-mux to be disabled.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5852 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-03 02:33:28 +00:00
Riza Sulistyo 6f1f14dd3b Fixed #2137: Race condition in 183 re-transmission can result in a deadlock.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5851 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-01 09:22:26 +00:00
Sauw Ming fd5674b334 Fixed #2136: Increase default ICE password length as mandated by the RFC
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5850 74dad513-b988-da41-8d7b-12977e46ad98
2018-08-01 08:34:19 +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
Nanang Izzuddin 87862fcd81 Re #2135: Updated 'pjsip-test' to adapt to the recent library changes.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5848 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-30 02:32:25 +00:00
Nanang Izzuddin 2d8776016d Re #2096:
- Updated DTLS-SRTP to ignore stray packet after DTLS nego has been completed.
 - Added few debugging logs.
 - Fixed false SSL error.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5847 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-27 06:16:26 +00:00
Sauw Ming 1db5b2167d Re #2059 (misc): List ALSA audio device even if it fails to open
If an ALSA audio device cannot be opened for recording and playback, it may mean that they are temporarily busy (such as currently being used by another app), so we should still list it.

Thanks to Tobias Schneider for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5846 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-27 02:58:41 +00:00
Nanang Izzuddin 5852395694 Re #2096:
- Added new error code for sending RTP/RTCP failure when DTLS-SRTP nego is in progress.
 - When sending RTP/RTCP fails, only print error message once for consecutive same errors.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5845 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 07:19:39 +00:00
Nanang Izzuddin 4635f7ab51 Close #2135: Update some failing scripts to skip TCP transport in pjsua app instantiation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5844 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 03:37:08 +00:00
Sauw Ming e98553fbcb Re #2126: Create thread when creating the event manager, which is required for video. Also add more doc about this in pjmedia_event_mgr.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5843 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 03:20:03 +00:00
Sauw Ming 8caccfe4f2 Re #2126: re 5841: move the event manager creation and destruction in pjsua_media instead
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5842 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 03:05:10 +00:00
Sauw Ming 1070fd13ea Re #2126: re: r5825, create pjmedia_event_mgr when initializing audio subsystem.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5841 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 02:50:06 +00:00
Sauw Ming ce2667ccd8 Re #2133: Add log when skipping the IPv4 STUN resolution
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5840 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-26 00:15:17 +00:00
Sauw Ming 71392a7ddc Fixed #2133: Skip IPv4 STUN resolution if account is using NAT64
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5839 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-25 23:56:39 +00:00
Nanang Izzuddin 5ddf559756 Close #2132: Updated pjsua_acc_find_for_incoming() to use weighted score algo in selecting account, where transport type match has higher priority.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5838 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-25 09:58:37 +00:00
Sauw Ming e79dfe5c05 Re #2126: Fixed missing conversion of rtcpFbConfig from and to pjsua account config
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5837 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-24 00:29:48 +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 070dece2e9 Close #2036: Support DTMF via SIP INFO.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5834 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 07:32:54 +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
Riza Sulistyo 8dcaa4496d Re #2126: Add rtcp_fb.h and rtcp_fb.c to pjmedia project file for VS2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5832 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 07:03:57 +00:00
Sauw Ming 2cfde147cc Fixed #2131: Incorrect Opus fmtp settings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5831 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 06:35:57 +00:00
Nanang Izzuddin ad7d4fe0d4 Fixed #2130: Fixed issue of re-INVITE not sent for non-registering accounts on IP change scenario.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5830 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-23 02:19:22 +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
Sauw Ming f5b93b5f5a Fixed #2128: Add feature to allow responding incoming INVITE/re-INVITE asynchronously and set the SDP answer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5828 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-20 02:19:41 +00:00
Nanang Izzuddin d0b08f08ae Re #2126: Added rtcp_fb.c to Makefile and fixed compile warnings on gcc.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5827 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-19 07:25:17 +00:00
Nanang Izzuddin c31c095c49 Close #2127: Replaced DNS resolver mutex with group lock.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5826 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-17 10:49:57 +00:00
Nanang Izzuddin f61de805c8 Re #2126: Implemented incoming RTCP-FB handling, i.e: parse and notify application via PJMEDIA event framework.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5825 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-17 08:11:17 +00:00
Nanang Izzuddin 4028a34cd9 Re #2096: Fixed silly mistake of missing a comma in r5823.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5824 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-16 08:04:02 +00:00
Nanang Izzuddin 8ebab77c7f Re #2096:
- For better interoperability, check remote support for DTLS-SRTP by inspecting SDP a=fingerprint availability instead of UDP/TLS/SRTP/SAVP.
 - Bailout DTLS-SRTP when SDP a=fingerprint is not available.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5823 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-16 07:35:52 +00:00
Riza Sulistyo b34ad8be7f Close #2038: Review pjsua app sample about pjsua_call_info usage.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5822 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-15 14:29:50 +00:00