summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-03Misc (Re #1882): Fixed crash in sample app encdec.c due to insufficient ↵Nanang Izzuddin
buffer when using codec with clockrate > 16000Hz. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5251 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-29Re #1882 (misc): Fixed a bug in Android sound device backends which prevent ↵Liong Sauw Ming
them to create a unidirectional stream git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5248 74dad513-b988-da41-8d7b-12977e46ad98
2016-02-25Misc (re #1882): Updated ioqueue epoll related vars in build config, e.g: ↵Nanang Izzuddin
update 'ac_linux_poll' value, introduce PJ_HAS_LINUX_EPOLL flag (thanks George Joseph for the patch). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5247 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-02-04Fixed #1904: Support for Opus codecLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5239 74dad513-b988-da41-8d7b-12977e46ad98
2016-01-27Misc (Re #1882): Add raw certificate information to pj_ssl_cert_info data. ↵Riza Sulistyo
Thanks to Peter Koletzki for the suggestion. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5238 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-15Misc (re #1882): Suppress EAGAIN recv() error log in pjmedia stream.c & ↵Nanang Izzuddin
vid_stream.c (thanks Christian Ambach for the patch). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5234 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
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): Add checks as ssocket_cli and state_cli can be NULLLiong Sauw Ming
Thanks to Dusan Klinec for the original patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5231 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): Add assertion checks in pj_strncpy() and ↵Liong Sauw Ming
pj_strncpy_with_null(). When max is negative, it may go undetected and cause crash since it will be cast to an unsigned when calling pj_memcpy(). Thanks to Dusan Klinec for the suggestion. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5229 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-31Re #1882 (misc): should check nscount (instead of anscount) when iterating ↵Liong Sauw Ming
ns values. Thanks to Dusan Klinec for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5228 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-31Re #1882 (misc): Fixed incorrect loop when destroying streams in case of ↵Liong Sauw Ming
non-successful stream creation. Thanks to Dusan Klinec for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5226 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-31Re #1882 (misc): re r5222, fixed string truncation length checking (the ↵Liong Sauw Ming
string is null terminated) in srtp. Thanks to Dusan Klinec for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5225 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 string truncation length checking in srtp (note that ↵Liong Sauw Ming
this is a third party source). Thanks to Dusan Klinec for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5222 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-30Re #1882 (misc): Fixed incorrect sizeof argument when using pj_bzero() and ↵Liong Sauw Ming
pj_memcpy() in ssl_sock_ossl.c Thanks to Dusan Klinec for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5220 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-30Re #1882 (misc): Add checking of crypto name in transport srtp.Liong Sauw Ming
Thanks to Dusan Klinec for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5219 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-23Misc (re #1882): Fixed wrong specifier used in ssl_sock_ossl.c (should be ↵Nanang Izzuddin
'PJ_DEF' instead of 'PJ_DECL'). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5216 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-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-11Re #1882 (misc): Fixed configure-android shell script error on LinuxLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5213 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-03Misc (re #1882): Added feature of CDATA content handling into XML parser.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5206 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-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-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
2015-11-19Re #1882 (misc): Configurable audio device name lengthLiong Sauw Ming
Thanks to Wolfgang Wallhäuser for the original patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5201 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-16Fix #1898: If transport is being shutdown/destroyed and connected event ↵Nanang Izzuddin
comes, proceed as error/cancelled connect. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5200 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-10Re #1896: Updated default audio device backends: mingw uses WMME, linux/*nix ↵Nanang Izzuddin
uses alsa (if available). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5199 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-10Re #1897: Implement support to Ffmpeg 2.8.Riza Sulistyo
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5198 74dad513-b988-da41-8d7b-12977e46ad98