summaryrefslogtreecommitdiff
path: root/pjnath
AgeCommit message (Collapse)Author
2016-07-18Misc (re #1928): Fixed possible stuck issue in pjnath-test caused by ↵Nanang Izzuddin
blocking recvfrom() upon concurrent socket events. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5388 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-15Re #1933: Handle link-local address that cause the test to fail.Riza Sulistyo
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5387 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-15Re #1933: Updated pjnath sess_auth.c test to use loopback address on IPv6.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5385 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-13Re #1942:Nanang Izzuddin
- Reverted back r5375, otherwise retrying next server will not work as it is using the ALLOCATING -> RESOLVED. - Don't set state to RESOLVED when pj_stun_session_send_msg() fails to avoid infinite loop, simply return the error code and let application destroy the TURN client session (which is already done by TURN socket). - Handle allocation error when delayed allocation fails (otherwise TURN client session may never get destroyed?). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5380 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-04Fix #1942: TURN socket should not start TURN allocation in state ↵Nanang Izzuddin
PJ_TURN_STATE_RESOLVED when previous state is already PJ_TURN_STATE_ALLOCATING. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5375 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-29Misc (re #1928): Fixed various compile warnings.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5366 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-29Re #1928: Avoid assertion when using STUN on NAT64.Riza Sulistyo
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5363 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-28Re #422: IPv6 support for NAT detectLiong Sauw Ming
Add API pj_stun_detect_nat_type2() git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5359 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-21Re #1933: Update pjnath-test for IPv6 support.Riza Sulistyo
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5350 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-20Close #1927: IPv6 support in DNS SRV:Nanang Izzuddin
- support DNS A and AAAA resolution for each target in DNS SRV record - support fallback to DNS A and DNS AAAA resolution when DNS SRV record is not available - support IPv6 nameservers. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5349 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-13Re #422: Enable IPv6 in ICE transport in pjsua-lib:Nanang Izzuddin
- currently only IPv6 host candidate will be generated, still not sure whether IPv6 NAT is really used in real world - if the account enables IPv6 media and the host has IPv4 address, ICE will generate IPv4+IPv6 candidates, it should be very useful in NAT64 environment, and should not add delay in ICE nego in IPv6 only environment (note: candidate check pair must have same IP address family). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5342 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-08Re #422: Omit IPv6 link-local address in gathering ICE candidate.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5340 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-08Re #422: Added IPv6 support to PJNATH, changes:Nanang Izzuddin
- Deprecated 'pj_ice_strans_cfg.af', if set, the value will be ignored, address family setting is now specified via transport setting, i.e: 'pj_ice_strans_cfg.stun_tp/turn_tp'. - Deprecated 'pj_ice_strans_cfg.stun/turn', for backward compatibility, this field value will be checked if 'pj_ice_strans_cfg.stun_tp_cnt/turn_tp_cnt' is set to zero. - Added 'pj_ice_strans_stun_cfg' & 'pj_ice_strans_stun_cfg' and the corresponding 'pj_ice_strans_stun/turn_cfg_default()' - Added 'pj_ice_strans_cfg.stun_tp/turn_tp' as replacement of 'pj_ice_strans_cfg.stun/turn', it is now an array so app can have multiple STUN/TURN transports. - Added macro PJ_ICE_MAX_STUN/TURN to specify maximum number of STUN/TURN transports in each ICE component in compile-time. - Miscellaneous: fixed socket number limit in concurrency test in pjnath-test, updated pjsua_media.c to use new 'pj_ice_strans_cfg' setting. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5339 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-20Re #1922: Replace IPv4 specific APIs as per Apple's recommendationsLiong Sauw Ming
https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html#//apple_ref/doc/uid/TP40010220-CH213-SW27 git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5311 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-13Re #1917 (misc): Fixed memory leak in pj_stun_sock_start() if ↵Liong Sauw Ming
pj_getaddrinfo() fails git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5296 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-09Fixed #1913: Add callback for address change notification from STUN keep aliveLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5282 74dad513-b988-da41-8d7b-12977e46ad98
2016-01-05Re #1903: Fix crash when cleaning STUN response cache.Riza Sulistyo
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5233 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-30Re #1882 (misc): Fixed potential out-of-bound array access in ice_session.Liong Sauw Ming
Thanks to Dusan Klinec for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5221 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-16Re #1882 (misc): Check for duplicate entry when building list of ICE host ↵Riza Sulistyo
candidate. Thanks to Dusan Klenic for the original patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5215 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-01Misc (re #1882): Added include header guard to pjnath.h.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5203 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-01Fix #1891: Also match base address in find local candidate after receiving ↵Nanang Izzuddin
ICE check response. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5184 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-21Re #1881: Add filters file.Riza Sulistyo
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5181 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-25Re #1881: Fixed compile warnings on VS2015 about declaration hides previous ↵Nanang Izzuddin
declaration. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5170 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-21Re #1881: Add Visual Studio 2015 support.Riza Sulistyo
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5168 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-07Fixed #1877: Race condition between stopping ICE and sending data in ICE ↵Liong Sauw Ming
stream transport git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5151 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-14Fixed #1869: Destroy STUN session when cleaning up STUN server resolutionLiong Sauw Ming
Thanks to Itay Bianco for the patch git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5133 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-15Fixed #1844: Replaced assertion check of component ID range with normal check.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5070 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-06Misc (re #1782): Fixed various compile warnings on MSVC.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5045 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-27Re #1828: Fixed misc compile warnings (on iOS).Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5035 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-03Fixed #1818: Fixed destruction of locked mutex (thanks to Denis Poltorak for ↵Liong Sauw Ming
the Helgrind report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4987 74dad513-b988-da41-8d7b-12977e46ad98
2015-02-13Fixed #1815: Race condition of STUN transaction destructionLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4983 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-01Misc (re #1751): fixed printing value issue when using %02X format. (Thanks ↵Riza Sulistyo
Itay Bianco for the report). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4910 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-21Misc (re #1751): fixed occasional failure in pjsip-test & pjnath-test caused ↵Nanang Izzuddin
by resource leak. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4898 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-20Fixed #1780: Bug: STUN string attribute has zero lengthBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4895 74dad513-b988-da41-8d7b-12977e46ad98
2014-08-19Re #1751: fixed miscellaneous gcc warningsBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4890 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-04Misc (re #1630): Fixing warnings about variable set but not used with recent gccBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4728 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-04Re #1519 (commited to SVN trunk): Add lib target to build system to enable ↵Liong Sauw Ming
building the library only (without the executables) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4727 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-29Fix #1726: Added check in assertion line for transmitting STUN message ↵Nanang Izzuddin
without incrementing retransmission count. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4717 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-23Misc (re #1630): Fixed symbols that should not be exported (thanks Tzafrir ↵Nanang Izzuddin
Cohen for the patch). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4713 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-23Misc (re #1630): Fixed GCC build warnings (thanks Tzafrir Cohen for the patch).Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4712 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-23Fixed #1713: Enable building the libraries as shared libraries/DLLs for GNU ↵Benny Prijono
targets git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4656 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-14Re #1630 (misc): Prevent retransmit timer cancellation during retransmission ↵Liong Sauw Ming
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: http://svn.pjsip.org/repos/pjproject/trunk@4652 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-24Re #1630 (misc): Use the right compiler and flags to compile C++ (.cpp) filesLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4637 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-23Fixed #1707: Add support for paralel buildLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4632 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-08Re #1703 General bug fixes: fixed some wrong null checking orderBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4615 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-08Re #1703: fixing general bugs. First installment: correct handling of ↵Benny Prijono
snprintf return value git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4613 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-01Fixed #1674: Deadlock when third party media employs external lock and ICE ↵Liong Sauw Ming
is active git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4606 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-25Fix #1700: Added PJ_ICE_CAND_TYPE_MAX to represent the number ICE candidate ↵Nanang Izzuddin
types. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4602 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-03Fix #1695: use pj_ice_sess_send_data() only when state is RUNNING.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4585 74dad513-b988-da41-8d7b-12977e46ad98
2013-08-12Misc (re #1630): Fixed bug of overlapping dst & src buffer for strcpy() in ↵Nanang Izzuddin
ice_session.c, reported to cause crash on iOS7. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4582 74dad513-b988-da41-8d7b-12977e46ad98