summaryrefslogtreecommitdiff
path: root/pjsip
AgeCommit message (Collapse)Author
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
2016-02-18Misc (Re #1882): Add compile time option (PJMEDIA_HAS_DTMF_FLASH) to ↵Riza Sulistyo
enable/disable DTMF flash as specified in rfc2833. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5242 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-02-04Misc (re #1882): Added exception catch in Call destructor.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5240 74dad513-b988-da41-8d7b-12977e46ad98
2016-01-27Misc (Re #1882): When server sends blank realm on the Authentication ↵Riza Sulistyo
challanges, the stack doesn't include the realm param. And hence, the server will reject the request. This patch will include the blank realm on the next request. Thanks to Keith Hanaway for the report. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5237 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-31Re #1882 (misc): close socket on error after calling pj_sock_getsockname() ↵Liong Sauw Ming
as it was closed above on error after calling get_published_name() Thanks to Dusan Klinec for the patch git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5230 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-31Re #1882 (misc): Use cred->cnonce instead of cnonce when calling ↵Liong Sauw Ming
pjsip_auth_create_digest(), since cnonce can be null Thanks to Dusan Klinec for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5227 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-30Re #1882 (misc): Moved checking of header count earlier when parsing generic ↵Liong Sauw Ming
array header in sip_parser. Thanks to Dusan Klinec for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5223 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-30Re #1882 (misc): Fixed missing comma in timer names string array. Thanks to ↵Liong Sauw Ming
Dusan Klinec for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5218 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-11Fixed #1901: crash when async_cnt is set to a value greater than one for SIP ↵Liong Sauw Ming
TLS transport git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5214 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-10Re #1882 (misc): Removed unnecessary callback setting for TLS listenersLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5212 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-09Re #1882 (misc): Fixed uninitialized mainThreadOnly variable in UaConfigLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5209 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-08Re #1882 (misc): Fixed bug in SipTransaction::fromPj(pjsip_transaction &) ↵Liong Sauw Ming
which do not copy the state variable git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5207 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-12-01Misc (re #1882): Need to zero-fill pj_thread_desc in libRegisterThread() to ↵Nanang Izzuddin
avoid assertion in pj_thread_register() due to accidentally recognized as reused descriptor. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5204 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-26Re #1882 (misc): Fix bug in parser,which may loop infinitely when it doesn't ↵Riza Sulistyo
fine the required character. Thanks to Oleg Grazhdan for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5202 74dad513-b988-da41-8d7b-12977e46ad98