summaryrefslogtreecommitdiff
path: root/pjsip
AgeCommit message (Collapse)Author
2016-07-15Re #1928 (misc): Re #1878 (Compile time option for TCP/TLS transport to not ↵Liong Sauw Ming
create a listener) When not creating a TLS listener, still call pj_ssl_sock_set_certificate(), since it will later still be used by clients. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5386 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-14Misc (re #1928): Cleaned up STUN transport config setup for ICE in pjsua.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5384 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-14Misc (re #1928): Print explicit log message about PJSUA ignoring IPv6 STUN ↵Nanang Izzuddin
server. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5383 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-14Misc (re #1928): Use host IP for SIP UDP transport address when STUN ↵Nanang Izzuddin
resolution fails to avoid zero address. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5382 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-30Fixed #1929: Fixed memory leak when using sip_auth_client since it's also ↵Liong Sauw Ming
used by other components, such as sip_dialog, publishc, and pjsua_im. Application should use the new API pjsip_auth_clt_deinit() to release the pool. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5373 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-29Re #1926: Fixed bug of premature app callback invocation in DNS A+AAAA ↵Nanang Izzuddin
resolution when DNS A record is available in the cache. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5369 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-24Fix #1938: Wrong registration renewal flag info in PJSUA registration ↵Nanang Izzuddin
callback when unregistration fails. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5356 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-22Fix #1936: Reset 'regc->has_tsx' when the sending fails.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5353 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-21Fix #1935: Avoid shallow-cloning header in SIP registration client as when ↵Nanang Izzuddin
sending REGISTER message is done asynchronously via DNS SRV resolution, pjsip_regc may get destroyed prematurely and some data allocated by pjsip_regc pool (e.g: Contact header) will become invalid too before the sending process is completed. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5352 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-21Close #1934: Add reference counting APIs to event subscription.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5351 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-16Re #1928 (misc): Fixed missing the conversion of AccountMwiConfig in ↵Liong Sauw Ming
AccountConfig::toPj() Thanks to Žarko Coklin for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5346 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: 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-06-08Close #1930: Race condition in OpenSSL socketLiong Sauw Ming
A workaround to solve the race condition based on ticket #985. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5338 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-08Close #1926: Support IPv6 address resolution without DNS resolver.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5337 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-07Re #1929: Avoid memory pool growing when doing re-Registration.Riza Sulistyo
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5336 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-01Re #1923: Added check for call availability before processing delayed ↵Nanang Izzuddin
answer, as call may have been disconnected after call is answered with 200 from on_incoming_call() callback but media fails to start. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5329 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-31Misc (re #1917): Print warning (instead of returning error) in creating SIP ↵Nanang Izzuddin
UDP transport IPv6 with STUN enabled. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5327 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-31Re #1918:Nanang Izzuddin
- Fixed issue of cannot make/receive call after previous call initialization fails due to STUN error, reproducing steps: 1. Configure an account with acc->cfg.media_stun_use set PJSUA_STUN_RETRY_ON_FAILURE. 2. Start pjsua with STUN servers A and B configured. On startup, both STUN servers A and B are available, so PJSIP will use STUN server A 3. Both STUN server A and B become unavailable 4. Make an outgoing call. 5. Pjsua first tries with STUN server A, fails 6. Pjsua then retry with STUN server B, still fails 7. PJSIP then aborts the call with error (which is desired!) 8. Both STUN server A and B become available again 9. User tries to dial or receive an incoming call, but cannot because the last STUN server status is stored and used in making/receiving call without retrying to resolve STUN server. - Fixed deadlock issues. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5326 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-31Re #1917: Related to ticket #1311, sets the factory on transports created as ↵Liong Sauw Ming
a result of an accept as well. Thanks to George Joseph for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5325 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-30Misc (re #1917): Reset media provisional count in adding video after media ↵Nanang Izzuddin
initialization fails. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5324 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-27Re #1923: Delay call-hangup triggered from simulated onIncomingCall() to ↵Riza Sulistyo
avoid assertion. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5323 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-26Re #1921: Fixed wrong checks in determining IPv6 transport typesLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5322 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-25Re #1917 (misc): Suppress empty-body warning and "logical not is only ↵Liong Sauw Ming
applied to the left hand side of this comparison" warning git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5317 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-25Fix #1924: Put check whether dialog has been registered to pjsip UA before ↵Nanang Izzuddin
calling pjsip_ua_unregister_dlg() to avoid assertion. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5316 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-24Fix #1923: Delay call-answer triggered from simulated onIncomingCall() to ↵Nanang Izzuddin
avoid assertion. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5314 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-19Fixed #1921: Add support to handle IPv6 transports in pjsua_transport API ↵Liong Sauw Ming
and transport keep alive Also: - add more detailed transport info for TCP and TLS transport - fixed pjsua sample app which tries to get IPv4 local address from IPv6 transport. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5308 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-19Re #1918: Fixed continous looping when trying to resolve STUN server due to ↵Riza Sulistyo
lock handling. Also move the unusable server to the least prioritize to be chosen on the fallback process. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5307 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-13Fixed #1918: Add API to update STUN servers and option to retry STUN for ↵Liong Sauw Ming
media on failure git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5297 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-10Fixed #1914: onCreateMediaTransport() callback might not be called on PJSUA2.Riza Sulistyo
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5288 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-10Misc (re #1882): Fixed build warning on Android: narrowing conversion of ↵Nanang Izzuddin
long uint to long int. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5287 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-10Close #1915: Added API pjsip_udp_transport_start2() that can create both ↵Nanang Izzuddin
IPv4 and IPv6 SIP UDP transports. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5284 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-09Fixed #1914: Ignore STUN error after pjstun_get_mapped_addr2().Riza Sulistyo
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5283 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-04-20Re #1882 (misc): Removed stripping of '[]' from pvalue header parameters.Liong Sauw Ming
The stripping of '[]' from header parameters causes issues if something (like a port) occurrs after the final ']'. '[2001:a::b]' will correctly parse to '2001:a::b' '[2001:a::b]:8080' will correctly parse to '2001:a::b' but the scanner is left with ':8080' and parsing stops with a syntax error. Thanks to Anthony Messina and George Joseph for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5280 74dad513-b988-da41-8d7b-12977e46ad98
2016-04-20Re #1882 (misc): Removed extraneous (and possibly inaccurate) log when ↵Liong Sauw Ming
subscribing/unsubscribing presence in pjsua_pres git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5279 74dad513-b988-da41-8d7b-12977e46ad98
2016-04-19Re #1882 (misc): Add implementation to call Endpoint::onSelectAccount() callbackLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5278 74dad513-b988-da41-8d7b-12977e46ad98
2016-04-11Re #1882 (misc): Incorrect use of pjsip_VIA_PARAM_SPEC on sip_parser.c. ↵Riza Sulistyo
Thanks to George Joseph for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5275 74dad513-b988-da41-8d7b-12977e46ad98
2016-04-06Fixed #1911: Callback onCallSdpCreated() (pjsua2) doesn't modify the SDPLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5274 74dad513-b988-da41-8d7b-12977e46ad98
2016-04-04Re #1908: Implement new API to open speaker only in pjsua/pjsua2.Riza Sulistyo
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5273 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-03Fixed #1905: assertion in call redirectionLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5252 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-03Re #1882 (misc): Fixed Rseq to start from 1 (instead of from 0).Liong Sauw Ming
According to RFC 3262: ... MUST include an RSeq header field. The value of the header field for the first reliable provisional response in a transaction MUST be between 1 and 2**31 - 1. Thanks to Marcus Froeschl for the report. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5250 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-29Re #1882 (misc): Various IPv6 fixes:Liong Sauw Ming
- For contact rewrite feature, when contact address is IPv6, it shouldn't be replaced with IPv4 address - If tp_type is already of type IPv6, adding it with PJSIP_TRANSPORT_IPV6 will result in an invalid transport type - Add check if pj_getaddrinfo() returns zero address. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5249 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-25Fix #1311: Updated pjsip_tpmgr_acquire_transport2() to look up from ↵Nanang Izzuddin
transport hash table (instead of always create a new one) when transport selector is set to TCP/TLS listener (thanks George Joseph for the patch). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5246 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-23Misc (#1882): Fixed compile error on VS2005 due to double semicolons.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5245 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-22Misc (re #1882): Updated log level (from 1 or 2 to 3) for some error ↵Nanang Izzuddin
messages that are transient, recoverable, or handled with return codes (thanks George Joseph for the patch). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5244 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-19Misc (Re #1882): When finding a dialog, use normal check for the dialog id ↵Riza Sulistyo
instead an assertion check. Thanks for Andrey Kovalenko for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5243 74dad513-b988-da41-8d7b-12977e46ad98