summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsua-lib
AgeCommit message (Collapse)Author
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
2015-05-05Re #1848: Fix failed to create SDP which lead to crash caused by rejected ↵Riza Sulistyo
HOLD request. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5082 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-08Re #1782 (misc): (trivial)Fixed typo in logLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5053 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-07Misc (re #1782): Check if capturer is opened when getting window ↵Riza Sulistyo
information. On slow devices (iPhone 3GS) the capturer might not be opened when the format changed is requested. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5049 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-07Misc (re #1782): Fixed SIP error code not set properly when there's an error ↵Riza Sulistyo
in initializing media channel. Thanks to Roman Kublin for the report. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5048 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-19Re #1825: Implement new on_reg_started2 callbackRiza Sulistyo
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4999 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-18Re #1823 (PJSUA2 Video API): Add Pjsua2 Video Window API and Pjsua API to ↵Liong Sauw Ming
set output window git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4996 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-17Re #1786: Add support to specify output window as well for video preview param.Liong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4995 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-02Fixed #1817: Automatically send BYE when sending CANCEL for INVITE is ↵Liong Sauw Ming
unsuccessful. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4986 74dad513-b988-da41-8d7b-12977e46ad98
2015-03-02Fixed #1816: Restart media transport on following forked media.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4985 74dad513-b988-da41-8d7b-12977e46ad98
2015-02-11Close #1814: Add audio frame preview callbacks.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4982 74dad513-b988-da41-8d7b-12977e46ad98
2015-02-11Fixed #1813: Problem with media reinitialisation when using ICELiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4980 74dad513-b988-da41-8d7b-12977e46ad98
2015-01-23Re #1782 (misc): Fixed inaccurate TX packet loss percentage and stats ↵Liong Sauw Ming
calculation. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4977 74dad513-b988-da41-8d7b-12977e46ad98
2015-01-22Re #1797: Fixes assert if 422 response is received (thanks to Brian Walker ↵Liong Sauw Ming
for the report) If 422 is received, INVITE will be automatically retried, but the provisional media has been cleaned up. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4976 74dad513-b988-da41-8d7b-12977e46ad98
2015-01-19Fixed #1811: contact_use_src_port and TLS server certificate verification ↵Liong Sauw Ming
issue (thanks to Viktor Krikun for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4974 74dad513-b988-da41-8d7b-12977e46ad98
2014-11-28Misc (re #1782): Fixed bug of missing SIP header "Supported: outbound, path" ↵Nanang Izzuddin
after a registration failure (thanks Mateusz Olejnik for the report). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4965 74dad513-b988-da41-8d7b-12977e46ad98
2014-11-25Fix #1804: Call should use local IP in Via sent-by when the account is not ↵Nanang Izzuddin
using STUN. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4963 74dad513-b988-da41-8d7b-12977e46ad98
2014-11-04Close #1802: Configurable randomized value range for auto re-registration ↵Nanang Izzuddin
interval. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4957 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-31Fixed #1797: Clean up provisional media is executed when there is an ongoing ↵Riza Sulistyo
SDP negotiation. Scenario: 1. re-invite got 491, state tsx changed to completed 2. cleanup prov med executed 3. re-invite again with video 4. timer tsx to shift tsx no 1, from completed -> terminated trigger provisional cleanup 5. provisional video transport in no 3 got cleanup git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4956 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-27Fix #1801:Nanang Izzuddin
- put error check in re-registration attempt in pjsua_acc_modify(), - updated pjsua_acc_modify() docs about its behavior regarding unregistration and re-registration. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4955 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-17Fixed #1797: Clean up provisional media after re-invite/updateLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4948 74dad513-b988-da41-8d7b-12977e46ad98
2014-10-16Misc (re #1782): Fixed unregistration sent twice when calling ↵Riza Sulistyo
pjsua_acc_modify with reg_uri is blank. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4947 74dad513-b988-da41-8d7b-12977e46ad98