Sauw Ming
dc2989d9c1
Fixed #1818 : Fixed destruction of locked mutex (thanks to Denis Poltorak for the Helgrind report)
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4987 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-03 02:41:27 +00:00
Sauw Ming
7e067e0ca7
Fixed #1815 : Race condition of STUN transaction destruction
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4983 74dad513-b988-da41-8d7b-12977e46ad98
2015-02-13 11:34:26 +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
Nanang Izzuddin
2af6664626
Misc (re #1751 ): fixed occasional failure in pjsip-test & pjnath-test caused by resource leak.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4898 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-21 03:43:11 +00:00
Benny Prijono
30b3ed7079
Fixed #1780 : Bug: STUN string attribute has zero length
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4895 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-20 10:35:29 +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
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
bd187283ee
Fix #1726 : Added check in assertion line for transmitting STUN message without incrementing retransmission count.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4717 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-29 06:33:38 +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
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
Sauw Ming
f68beb9682
Re #1630 (misc): Prevent retransmit timer cancellation during retransmission of STUN request.
...
This is related to ticket #1620 : Fix the calculation of transmission count during retransmission of STUN request. If mod_count is set to PJ_FALSE, retransmit timer shouldn't be cancelled.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4652 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-14 09:36:05 +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
Benny Prijono
6e2e6e27e6
Re #1703 General bug fixes: fixed some wrong null checking order
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4615 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-08 11:14:42 +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
a179899278
Fixed #1674 : Deadlock when third party media employs external lock and ICE is active
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4606 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-01 05:00:57 +00:00
Nanang Izzuddin
1c3e8fbdf1
Fix #1700 : Added PJ_ICE_CAND_TYPE_MAX to represent the number ICE candidate types.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4602 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-25 04:57:26 +00:00
Nanang Izzuddin
264ace7579
Fix #1695 : use pj_ice_sess_send_data() only when state is RUNNING.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4585 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-03 03:08:32 +00:00
Nanang Izzuddin
9e2e5ad78a
Misc (re #1630 ): Fixed bug of overlapping dst & src buffer for strcpy() in ice_session.c, reported to cause crash on iOS7.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4582 74dad513-b988-da41-8d7b-12977e46ad98
2013-08-12 11:28:33 +00:00
Nanang Izzuddin
ec90a69ac3
Fix #1691 : Apply group lock mechanism in NAT detect to avoid deadlock.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4573 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-24 08:06:59 +00:00
Nanang Izzuddin
d24fad9ff9
Fix #1685 : When TURN destroy is requested in state RESOLVING, pending the destroy until resolver callback is invoked.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4551 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-05 08:00:06 +00:00
Nanang Izzuddin
69498fb477
Close #1681 :
...
- Added compile-time settings PJMEDIA_TRANSPORT_SO_RCVBUF_SIZE and PJMEDIA_TRANSPORT_SO_SNDBUF_SIZE. The default values are both 64 KB when PJMEDIA_HAS_VIDEO is set, otherwise just zero (socket buffer size uses OS default). The settings will be applied to media transport UDP and ICE.
- Also added run-time settings so_sndbuf_size and so_rcvbuf_size into ICE stream transport, STUN socket, and TURN socket. Default values are all zero.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4538 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-19 09:06:55 +00:00
Riza Sulistyo
25b575b336
Re #1680 : Add initial support for Win64
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4537 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-19 06:47:43 +00:00
Sauw Ming
d4f0ba486a
Re #1616 : Fixed assertion trying to release group lock when STUN transaction is already destroyed in the callback
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4413 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-05 06:29:15 +00:00
Riza Sulistyo
152b642843
Misc (re #1559 ): fixed compile errors/warnings on MSVC
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4412 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-05 03:12:32 +00:00
Nanang Izzuddin
414d34ca74
Misc (re #1559 ): fixed compile errors/warnings on Symbian platform.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4411 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-04 04:34:38 +00:00
Riza Sulistyo
bd537010a1
Re #1617 : added concur_test.c to visual studio pjnath_test project
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4372 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-27 05:36:26 +00:00
Benny Prijono
6357137c68
Re #1617 : prevent TURN session from sending anything once it is in deallocating state
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4368 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-21 21:53:28 +00:00
Benny Prijono
199d0148bb
Re #1624 : fixed representation in ICE to make it more IPv6 ready
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4365 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-21 18:06:51 +00:00
Benny Prijono
e00cbe02e9
Fixed #1617 : major synchronization fixes in PJNATH with incorporation of group lock to avoid deadlock and crashes due to race conditions
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4360 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-21 11:26:35 +00:00
Benny Prijono
349d800c4d
Fixed #1621 : Handle the case when ICE session cannot create valid checklist
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4357 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-19 20:05:59 +00:00
Sauw Ming
462e6c18f5
Fixed #1620 : Fix the calculation of transmission count during retransmission of STUN request
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4352 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-19 14:37:28 +00:00
Nanang Izzuddin
82d1fee083
Re #1610 : Workaround for crash in sess_on_send_msg() callback
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4344 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-08 07:33:23 +00:00
Nanang Izzuddin
a2174066e7
Close #1602 : configurable local port range for ICE transport.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4343 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-07 09:35:34 +00:00
Benny Prijono
919fff2d5f
Re #1610 : workaround for crash in on_data_sent()
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4324 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-18 07:52:51 +00:00
Benny Prijono
b5c51b65ae
Fixed #1610 : Workaround for reported crash on stun_sock's on_data_recvfrom() callback
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4321 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-17 09:45:32 +00:00
Nanang Izzuddin
12c4fdce15
Fix #1604 : crash caused by double destructions in ICE stream transport.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4314 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-11 04:10:08 +00:00
Sauw Ming
6abce2c0b8
Re #1559 : Fix dependencies when running parallel make (thanks Shaun Ruffell for the patch)
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4308 74dad513-b988-da41-8d7b-12977e46ad98
2012-12-13 06:37:05 +00:00
Sauw Ming
dfda40baee
Fixed #1577 : assertion when TURN session is already destroyed
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4207 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-17 12:45:39 +00:00
Benny Prijono
752983a236
Fixed #1554 : Assertion in ICE when STUN resolution yields a same address as one of the host candidate and there is only one host candidate exists (thanks Claudio De Angelis for the report)
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4205 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-14 12:49:36 +00:00
Benny Prijono
6ae8f2d479
Fixed #1552 : Possible crash if media transport stop() is called on ICE transport while ICE is not created (thanks Iliya Prince for the fix)
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4203 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-12 06:39:36 +00:00
Benny Prijono
9fefe7a4bf
Fixed #1551 : Assertion in TURN code when shutdown or destroy is called more than once (thanks Guilherme Balena Versiani for the report)
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4201 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-09 08:18:58 +00:00
Nanang Izzuddin
1e42a67b06
Re: Added compile-time setting PJNATH_STUN_SOFTWARE_NAME to specify SOFTWARE attribute for STUN sessions.
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4199 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-05 10:52:55 +00:00
Nanang Izzuddin
3bb260a28d
Fix #1547 :
...
- Added PJMEDIA_MAX_MRU to specify maximum packet size in receiving direction.
- Added max_pkt_size into pj_turn_sock_cfg, default is PJ_TURN_MAX_PKT_LEN.
- Fixed hardcoded MTU settings in media transport SRTP.
- Added MIN_CHUNKS_PER_FRM constant in video stream.
Notes:
- PJMEDIA_MAX_MTU & PJMEDIA_MAX_MRU to specify max packet size for TX and RX dir.
- For ICE media transport, TURN session limits outgoing packet size to PJ_TURN_MAX_PKT_LEN (the size of internal buffer for inserting TURN overheads).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4197 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-05 07:26:29 +00:00
Benny Prijono
8534076c29
Re #1548 : Crash due to racing condition in timer when call is disconnected quickly (thanks Joshua Colp for the report!)
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4196 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-05 07:02:50 +00:00
Benny Prijono
fe9bf3079b
Fixed #1512 : added Option to continue ICE operation even when STUN resolution fails
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4133 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-21 14:00:17 +00:00
Benny Prijono
28d3c56283
Re #1474 : Merged all changes from 1.12 - HEAD (from the 1.x branch)
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3999 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-30 07:10:13 +00:00
Benny Prijono
0269c8e42f
Fixed #1399 : Assertion failure if unable to resolve TURN server
...
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3844 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-24 15:03:43 +00:00