summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsua-lib
AgeCommit message (Collapse)Author
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-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-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 #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-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-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-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-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 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-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-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-05Fixed #1902:Nanang Izzuddin
- Crash when endpoint has multiple worker threads and SIP TCP transport is disconnected during incoming call handling. - Deprecated pjsip_dlg_create_uas(), replaced by pjsip_dlg_create_uas_and_inc_lock(). - Serialized transaction state notifications (of 'terminated' and 'destroyed') in case of transport error. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5241 74dad513-b988-da41-8d7b-12977e46ad98
2016-01-05Re #1882 (misc): Crash when answering call with reason field is set. Thanks ↵Riza Sulistyo
to Dan Wright for the report. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5232 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-30Re #1882 (misc): Add checking before calling pj_strncpy(), to make it more ↵Liong Sauw Ming
robust and consistent with the other two checks below. Note that without the check, it should be safe, but the buffer could point to one byte after the buffer, even though the string length is zero. Thanks to Dusan Klinec for the proposed patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5224 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-24Misc (re #1882): Fixed bug STUN still being used in media transport UDP & ↵Nanang Izzuddin
ICE after STUN is disabled in account config (media_stun_use == PJSUA_STUN_USE_DISABLED). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5217 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-03Fix #1899: Updated pjsua behaviour to re-create stream even when SDP ↵Nanang Izzuddin
direction attribute is inactive, as long as media port is not zero. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5205 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-08Fixed #1873: iOS application getting killed after pjsua fail to release a ↵Liong Sauw Ming
disconnected transport git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5188 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-02Close #1892: Add pjsua/pjsua2 callback ↵Nanang Izzuddin
on_call_tx_offer()/Call::onCallTxOffer() to notify incoming re-INVITE without offer. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5185 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-17Re #1882 (misc): Related to r4852 and r4857, fixed problem in reopening ↵Liong Sauw Ming
sound device after setting it to null device Thanks to Fredrik Hansson for the report and patch git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5179 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-07-31Fixed #1873: Only reset account transport pointer after a successful ↵Nanang Izzuddin
unregistration. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5143 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-14Re #1864: fixed assert and crash when remote remove and add back media lines ↵Nanang Izzuddin
in SDP: - reverted back r5124 (of this ticket) and r4373 (of #1626) - applied another fix for #1626 as in described in the ticket desc - also fixed a related add/remove media issue: - we send an offer with 2 audio and 1 video in SDP - remote answers with only 1 audio in SDP - when we send a re-offer/re-INVITE, we have 5 media lines in our SDP (3 audio + 2 video, note 1 audio and 1 video are disabled) - call settings are actually maintained (2 active audio + 1 active video), just better to avoid the additional disabled media. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5135 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-07-13Fixed #1867: Add pjsua callback to notify when STUN resolution completesLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5131 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-06Close #1865: Start NAT type detection after first STUN server resolution ↵Nanang Izzuddin
succeeds to avoid blocked main thread when STUN server is down. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5127 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-03Re #1861: Changed pjsua API for setting the orientation using a more generic ↵Liong Sauw Ming
API, pjsua_vid_dev_set_setting() instead git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5125 74dad513-b988-da41-8d7b-12977e46ad98
2015-07-01Fixed #1864: Assertion in PJSIP when remote remove and add back media lines ↵Liong Sauw Ming
in the SDP Thanks to Brian Walker for the report and patch testing. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5124 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-25Re #1861: Initial implementation of video orientation supportLiong Sauw Ming
- Utility to resize and rotate video frame - Support for iOS + sample - pjsua API to set video device's orientation git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5118 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-20Fixed #1854:Nanang Izzuddin
- Hangup the call immediately when there is no active media, this is only for initial INVITE. - Stop media and destroy media transport properly upon any error. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5099 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-19Re #1850(misc) : Mistype param when calling pjmedia_vid_dev_stream_set_cap. ↵Riza Sulistyo
The param passed is suppose to be pjmedia_vid_dev_hwnd. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5098 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-15Fixed #1852: Assertion due to premature destroy of dialog when media channel ↵Liong Sauw Ming
init fails during incoming call git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5096 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-15Fixed #1848: SDP failed to be created when provisional media has been clearedLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5094 74dad513-b988-da41-8d7b-12977e46ad98
2015-05-08Close #1850: Updated pjsua_vid_preview_start() to ignore any errors upon ↵Nanang Izzuddin
starting an already existed preview, just print a log, also apply the specified window handle. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5088 74dad513-b988-da41-8d7b-12977e46ad98