summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2015-11-09Close #1896: Update default audio device backend on MacOS to CoreAudio.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5197 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-06Re #1894: Fixed high socket descriptor check in ioqueue select, it should be ↵Nanang Izzuddin
against FD_SETSIZE instead of PJ_IOQUEUE_MAX_HANDLES, as PJ_IOQUEUE_MAX_HANDLES can be lower than FD_SETSIZE. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5196 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-06Re #1895: Terminate subscription when receiving non 2xx Notify response ↵Riza Sulistyo
without Retry-After header. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5195 74dad513-b988-da41-8d7b-12977e46ad98
2015-11-06Close #1894: Improve ioqueue performance on multithreadeded environment.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5194 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-30Re #1882 (misc): related to r5192, fixed inaccurate index checking in ↵Liong Sauw Ming
pjmedia_sdp_attr_find() as well git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5193 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-29Re #1882 (misc): Fixed inaccurate index checking assertion when removing SDP ↵Liong Sauw Ming
attributes in pjmedia_sdp_attr_remove() and pjmedia_sdp_attr_remove_all() Thanks to Fredrik Hansson for the report. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5192 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-23Misc (re #1882): Only check 'hide' URI parameter on SIP/SIPS URIs in ↵Nanang Izzuddin
printing route header, otherwise it may cause crash as other URI types may not have 'other_param' field (thanks thanks Fredrik Hansson for the patch). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5191 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-23Misc (re #1882): Added array length check before inserting parsed bandwidth ↵Nanang Izzuddin
& attribute info to SDP structure (thanks Fredrik Hansson for the patch). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5190 74dad513-b988-da41-8d7b-12977e46ad98
2015-10-23Misc (re #1882): Updated libresample makefile to also generate shared ↵Nanang Izzuddin
library when configure param '--enable-resample-dll' (see also #1462) is specified. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5189 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-07Re #1882 (misc): Fixed possibly incorrect stream statsLiong Sauw Ming
When a codec is opened, it can modify its param (such as iLBC can normalize its frame ptime based on remote SDP), so the stream stats has to be updated accordingly. Also in this fix is to increase the log level which shows the info of iLBC mode opened. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5187 74dad513-b988-da41-8d7b-12977e46ad98