summaryrefslogtreecommitdiff
path: root/pjnath
AgeCommit message (Collapse)Author
2017-01-24Misc (re #1945): Fixed compile warnings on Android 64bit platforms, e.g: ↵Nanang Izzuddin
dereferencing type-punned pointer, using uninitialized var. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5544 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-23Re #1900: Reintegrated works in UWP branch to trunk.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5539 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-19Close #1919: Clear unused-variable warnings.Riza Sulistyo
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5535 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-19Re #1513: Applied the new API pj_pool_safe_release().Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5534 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-18Re #1945 (misc): Add an alias REQUESTED-ADDRESS-FAMILY (which is used in the ↵Liong Sauw Ming
RFC 6156) for REQUESTED-ADDRESS-TYPE (which is used in the draft). Change the string literal to use the RFC version. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5527 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-12Misc (re #1945): Fixed bug in NAT detect: missing address family assignment ↵Nanang Izzuddin
in socket binding (thanks Howard Chalkley for the report). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5523 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-11Fixed #1990:Nanang Izzuddin
- Added check for possibility of premature failure in pj_turn_sock_alloc() after pj_turn_session_set_server() returns PJ_SUCCESS. - Added more logs on ICE initialization progress for future debugging. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5521 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-14Re #1971: Request IPv4 relay address to an IPv6 TURN server for IPv6-IPv4 ↵Nanang Izzuddin
connectivity. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5481 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-28Re #1972: ICE initialization issues when creating a component/candidate fails.Liong Sauw Ming
Fixed ICE stuck if TURN creation fails in resolved state, assertions when trying to access other components/candidates, and crash when trying to access destroyed TURN socket. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5474 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-24Re #1971: Updated TURN session to add REQUEST-ADDRESS-FAMILY/REQ-ADDR-TYPE ↵Nanang Izzuddin
attribute in Allocate of IPv6 relay request. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5469 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-21Fix #1972: Update ICE candidate status to non-PJ_EPENDING after TURN server ↵Nanang Izzuddin
name resolution fails. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5465 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-25Fixed #1957: ICE stagnation when connectivity check failsLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5427 74dad513-b988-da41-8d7b-12977e46ad98
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