Riza Sulistyo
5c97c41263
Close #2161 : Avoid deadlock triggered by incoming message when transport is being shutdown.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5909 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-21 08:22:34 +00:00
Sauw Ming
0d71a76ab2
Re #2147 (misc): Add pjmedia_transport_media_stop() to streamutil sample app, for good practice since we now require media transport to be started since #2097
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5908 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-07 23:28: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
Sauw Ming
8fdc6ca3b3
Re #2147 (misc): Put back the printing of contact_rewrite_method, which is missing due to r5833
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5906 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-06 01:30:56 +00:00
Sauw Ming
1b03b7ae74
Re #2147 (misc): Fixed assertion in streamutil sample for not creating event manager
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5905 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-05 09:36:47 +00:00
Sauw Ming
3b60912a4a
Fixed #2159 : Add synchronization for Endpoint::libRegisterThread()
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5904 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-05 02:40:54 +00:00
Sauw Ming
ac7e0e618f
Re #2157 : Clear the callback rtp_cb2() when detaching transport
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5903 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-05 00:55:21 +00:00
Sauw Ming
91358a9135
Re #2147 (misc): Removed null video device declaration, which has no implementation
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5902 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-05 00:47:05 +00:00
Nanang Izzuddin
2bdc03bf22
Misc (re #2147 ): Assertion in pj_sockaddr_cp() when pjmedia_transport_attach() is called with rem_rtcp zero initialized (thanks Lauri Vänskä for the report).
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5901 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-02 06:45:58 +00:00
Sauw Ming
0f846fedff
Re #2147 (misc): Fixed account modification lock codec setting
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5900 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-18 05:32:22 +00:00
Nanang Izzuddin
47eec2b367
Close #2158 :
...
- Added OnCallTransferRequestParam.newCall to allow application to instantiate a new Call for the new outgoing call in transfer scenario.
- Also added OnCallReplacedParam.newCall mainly for informational purpose (that app should instantiate new Call for replace scenario).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5899 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-17 04:38:39 +00:00
Sauw Ming
2de667c542
Re #2157 : Minor change: prioritize rtp_cb2() and add more robustness
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5898 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-17 00:52:26 +00:00
Sauw Ming
1b030ecdb7
Fixed #2157 : Update media transport adapter sample
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5897 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-16 12:03:21 +00:00
Nanang Izzuddin
c468861746
Fix #2156 : Fixed object slicing issue in AudioDevInfo/VideoDevInfo by replacing MediaFormatVector with MediaFormatVideoVector and MediaFormatAudioVector.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5896 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-08 05:04:13 +00:00
Sauw Ming
6349c51844
Re #2147 (misc): Change Android libpjsua2.so target directory according to the target architecture
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5895 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-03 02:38:26 +00:00
Riza Sulistyo
aedbbbbdb9
Re #2147 (misc): Call pj_bzero() to frame_out to avoid undefined value for
...
bit_info. Thanks to Sai Krishna for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5894 74dad513-b988-da41-8d7b-12977e46ad98
2018-10-02 07:13:16 +00:00
Sauw Ming
78f35d34ff
Re #2155 : Fixed incorrect parameter passed to pjsua_call_cleanup_flag()
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5893 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-26 10:29:37 +00:00
Sauw Ming
36784ecc34
Fixed #2155 : Cleanup call setting flag before sending reinvite on IP change
...
This changeset also clears PJSUA_CALL_UNHOLD flag after calling pjsua_call_set_hold/hold2()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5892 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-26 05:58:47 +00:00
Sauw Ming
42e5ee52e1
Re #2147 (misc): Fixed build error of undefined reference to `pjmedia_srtp_enum_crypto' if PJMEDIA_HAS_SRTP is disabled.
...
Thanks to Alexei Gradinari for the patch
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5891 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-26 00:56:51 +00:00
Sauw Ming
1dc36f9a74
Re #2147 (misc): Add assertion in pjmedia_port_info_init() to prevent division by zero.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5890 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-24 02:45:20 +00:00
Nanang Izzuddin
5a4bab3e56
Re #2150 : Added native SSL error code in SIP TLS accept failure callback.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5889 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-21 08:29:12 +00:00
Riza Sulistyo
2814a6f384
Re #2150 : Add local address to pjsip_tls_on_accept_fail_param.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5888 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-19 10:43:00 +00:00
Nanang Izzuddin
b02d7b6b01
Close #2152 : Updated video stream to delay video frame decoding, the minimum delay is configurable via PJMEDIA_VID_STREAM_DECODE_MIN_DELAY_MSEC.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5887 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-19 08:26:41 +00:00
Riza Sulistyo
9968e46140
Close #2151 : Call tp_drop_data_cb() when there is PJSIP_EMISSINGHDR or PJSIP_EINVALIDSTATUS error on incoming message.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5886 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-18 12:45:47 +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
Sauw Ming
99db1094f6
Fixed #2149 : Add option to disable transport connection reuse via the setting pjsip_tpselector.disable_connection_reuse
...
Thanks to Joshua Colp for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5884 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-14 01:27:32 +00:00
Sauw Ming
cb1f07cbac
Fixed #2148 : Add parsing support for the OAuth 2.0 authentication mechanism
...
Thanks to Joshua Colp for the patch submission.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5883 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-07 02:56:38 +00:00
Sauw Ming
a0bf9103e8
Re #2147 (misc): Fix incorrect call state info on incoming call in PJSUA2
...
In PJSUA2, due to ticket #1916 , on_incoming_call() can be called earlier, during on_create_media_transport().
At this time, call->inv->state is still INV_STATE_NULL (instead of INV_STATE_INCOMING).
This patch only fixes the call info, but doesn't change the invite state itself.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5882 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-06 10:20:24 +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
Riza Sulistyo
ec69079d6d
Close #2145 : Don't rearrange media when sending re-INVITE with
...
PJSUA_CALL_REINIT_MEDIA.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5878 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-04 15:12:58 +00:00
Riza Sulistyo
cb888bda8e
Re #2049 (misc): Add local RTP/RTCP address information to MediaTransportInfo.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5877 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-04 14:57:07 +00:00
Sauw Ming
8267dc98f9
Re #2100 : Fixed the incorrect string comparisons
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5876 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-04 02:25:34 +00:00
Sauw Ming
d68a5a9753
Re #2100 : Fix the optimization part of r5872, which didn't work since we don't preserve the old strings.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5875 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-04 02:16:02 +00:00
Sauw Ming
fdca1bd954
Re #2059 (misc): re r5873, add more comment in the code.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5874 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-03 07:45:04 +00:00
Sauw Ming
fdcece45bf
Re #2059 (misc): Add log for error info when Darwin capture session fails to start running or encounters an error during runtime.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5873 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-03 07:36:46 +00:00
Sauw Ming
6d35e02662
Re #2100 : Fixed duplication of crypto names and keys to use pj_strdup(). Otherwise, when the account/global config's input strings are modified (or deallocated) after being passed to PJSIP, then the crypto name matching will fail and we will generate error: PJMEDIA_SRTP_ENOTSUPCRYPTO
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5872 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-03 07:13:40 +00:00
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