Commit Graph

339 Commits

Author SHA1 Message Date
Riza Sulistyo e3d314f7d1 Close #2200: Ignore/discard DNS SRV response with truncated flag set.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6000 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-23 13:42:27 +00:00
Nanang Izzuddin aca93961ce Close #2199: Fixed assertion when DNS SRV resolver receives empty record in response.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5996 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-21 03:17:11 +00:00
Nanang Izzuddin 432be93e4d Re #1298: Updated PJLIB-UTIL to use PJ_ERROR consistently.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5981 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-09 04:54:38 +00:00
Nanang Izzuddin c31c095c49 Close #2127: Replaced DNS resolver mutex with group lock.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5826 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-17 10:49:57 +00:00
Sauw Ming edf6b82fc1 Re #2059 (misc): Fixed typo in json.c (should be semicolon instead of comma).
Thanks to Sebastian Marek for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5818 74dad513-b988-da41-8d7b-12977e46ad98
2018-07-03 09:31:27 +00:00
Riza Sulistyo 111322c0e1 Re #2059 (misc): Don't include test app (exe) when building for Android.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5761 74dad513-b988-da41-8d7b-12977e46ad98
2018-03-27 05:35:03 +00:00
Riza Sulistyo 054ae59549 Close #2067: Fix linker error when building as dll on VS2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5701 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-22 06:59:47 +00:00
Sauw Ming 19686af25f Re #2063: Add more doc in other parts of the library
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5697 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-17 04:07:43 +00:00
Sauw Ming 6dd508d4bf Re #2063: Temporarily disable the assertion
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5695 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-14 13:05:42 +00:00
Sauw Ming fc9177cadd Fixed #2063: Add more documentation in PJSIP's parser to prevent stack buffer overflow
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5693 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-14 08:20:15 +00:00
Sauw Ming 6ae662e215 Re #2059 (misc): Fixed possible function name clash with md5 due to non-static function.
Thanks to Luca Ceseroli for the report.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5688 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-10 03:14:58 +00:00
Riza Sulistyo 76ea108e47 Re #1994(misc): Fixed unguarded 'if' which might lead to double locking. Thanks to Alexander Traud for the info.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5647 74dad513-b988-da41-8d7b-12977e46ad98
2017-09-11 10:31:03 +00:00
Sauw Ming e34fa7ed5e Fixed #2032: NAT64 support for IPv4 interoperability
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5636 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-02 02:51:59 +00:00
Nanang Izzuddin 494f58b07d Misc (re #1994): Fixed compile warnings on MSVC 2005 & 2015.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5635 74dad513-b988-da41-8d7b-12977e46ad98
2017-08-01 07:49:34 +00:00
Sauw Ming 576a3c0ae9 Fixed #2024: Crash due to uncancelled timer if there's an error in resolver's query transmit
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5612 74dad513-b988-da41-8d7b-12977e46ad98
2017-07-04 00:06:22 +00:00
Sauw Ming a836f456a2 Re #1994 (misc): Fixed missing disabling pragma pack after structure definitions.
Thanks to Michael Scheiffler for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5605 74dad513-b988-da41-8d7b-12977e46ad98
2017-06-15 02:18:17 +00:00
Sauw Ming 568a1967ce Re #1994 (misc): Fixes bugs in base64
* move access to input parameter variable after the assertion to check the variable.
 * prevent invalid memory access for empty input string
 * allow using an output buffer of just the right size

Thanks to Adrien Béraud for the patch



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5589 74dad513-b988-da41-8d7b-12977e46ad98
2017-05-04 05:22:44 +00:00
Sauw Ming 8ed046143c Re #1882 (misc): Add check in xml_print_node() to prevent writing past the end of the buffer.
Thanks to Joshua Elson for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5570 74dad513-b988-da41-8d7b-12977e46ad98
2017-03-22 00:26:34 +00:00
Riza Sulistyo 1a18efe912 Re #1994 (misc): Don't try to resolve a DNS SRV query that is already considered resolved.
Thanks to Richard Mudgett for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5559 74dad513-b988-da41-8d7b-12977e46ad98
2017-02-20 02:11:46 +00:00
Nanang Izzuddin 84ad7a0244 Misc (re #1945): Fixed compile warnings on Android 64bit platforms, e.g: dereferencing type-punned pointer, using uninitialized var.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5544 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-24 05:41:05 +00:00
Nanang Izzuddin 1b25ccaf76 Re #1900: Merged changes from trunk.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5538 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-23 04:18:59 +00:00
Riza Sulistyo 4ab1838d0b Re #1945 (misc): Don't trigger SRV complete callback when there is a parse error.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5536 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-23 01:34:12 +00:00
Riza Sulistyo 1aadfca5bf Close #1919: Clear unused-variable warnings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5535 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-19 10:31:38 +00:00
Nanang Izzuddin 7d9a05c9a3 Re #1513: Applied the new API pj_pool_safe_release().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5534 74dad513-b988-da41-8d7b-12977e46ad98
2017-01-19 07:41:25 +00:00
Nanang Izzuddin c551b147fc Re #1900: More merged from trunk (r5512 mistakenly contains merged changes in third-party dir only).
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5513 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-28 03:40:07 +00:00
Nanang Izzuddin 6c47f59bc8 Re #1900: Updated project files for target platform version configuration, it is configurable via property sheet build/vs/pjproject-vs14-common-config.props.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5497 74dad513-b988-da41-8d7b-12977e46ad98
2016-12-09 13:43:07 +00:00
Riza Sulistyo 434417e922 Re #1974: Fix DNS write on freed memory.
Thanks to Richard Mudgett for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5477 74dad513-b988-da41-8d7b-12977e46ad98
2016-11-01 04:10:17 +00:00
Sauw Ming 987f666914 Re #1974: Remove DNS cache entry from resolver's hash table when app callback has a reference.
Thanks to Richard Mudgett for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5475 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-28 06:25:03 +00:00
Sauw Ming 303c352b1d Re #1974:
If there is a pending query, set the return value to that query (instead of NULL)

Thanks to Richard Mudgett for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5473 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-28 03:17:54 +00:00
Sauw Ming e9091aa3b8 Fixed #1974: Various fixes for DNS IPv6
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5471 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-27 05:47:06 +00:00
Nanang Izzuddin 3eb36844aa Misc (re #1945): Fixed assertion in resolver: on read error, source address may be invalid and printing source address will trigger assertion (due to invalid address family).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5464 74dad513-b988-da41-8d7b-12977e46ad98
2016-10-21 02:46:32 +00:00
Nanang Izzuddin b479b3979e Misc (re #1945): Updated resolver behaviour to not mark nameserver as bad after responding with PJ_DNS_RCODE_SERVFAIL. Thanks George Joseph for the feedback and the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5437 74dad513-b988-da41-8d7b-12977e46ad98
2016-09-15 07:03:37 +00:00
Nanang Izzuddin b977d2fdb0 Fixed #1953: Skip IPv6 socket in resolver on system without IPv6 support.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5420 74dad513-b988-da41-8d7b-12977e46ad98
2016-08-17 04:29:17 +00:00
Nanang Izzuddin 30a3cb950b Misc (re #1928): Fixed pjlib-util-test issue on Mac due to bad socket address length param for pj_sock_bind().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5379 74dad513-b988-da41-8d7b-12977e46ad98
2016-07-12 12:36:35 +00:00
Riza Sulistyo e1eb84ed83 Re #1933: Update pjnath-test for IPv6 support.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5350 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-21 06:55:10 +00:00
Nanang Izzuddin 2273c779cd Close #1927: IPv6 support in DNS SRV:
- support DNS A and AAAA resolution for each target in DNS SRV record
 - support fallback to DNS A and DNS AAAA resolution when DNS SRV record is not available
 - support IPv6 nameservers.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5349 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-20 10:10:42 +00:00
Sauw Ming e32c11a5ed Re #1928 (misc): Add doc about unimplemented config fields of CLI telnet (passwd and welcome message)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5345 74dad513-b988-da41-8d7b-12977e46ad98
2016-06-15 12:32:08 +00:00
Sauw Ming 3733338bc1 Re #1922: Replace IPv4 specific APIs as per Apple's recommendations
https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html#//apple_ref/doc/uid/TP40010220-CH213-SW27



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5311 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-20 04:17:00 +00:00
Nanang Izzuddin cfd8536214 Misc (re #1882): Fixed CLI-telnet log level check in log printing, i.e: log level is by default set to 4, but it didn't print log messages with level 4.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5258 74dad513-b988-da41-8d7b-12977e46ad98
2016-03-14 02:46:29 +00:00
Sauw Ming 45e48e2de5 Re #1882 (misc): should check nscount (instead of anscount) when iterating ns values.
Thanks to Dusan Klinec for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5228 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-31 04:06:02 +00:00
Riza Sulistyo e67887e55e Re #1900: Initial implementation with pjsua cli/telnet sample app.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/uwp@5210 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-10 01:58:38 +00:00
Nanang Izzuddin 6f9bfc6993 Misc (re #1882): Added feature of CDATA content handling into XML parser.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5206 74dad513-b988-da41-8d7b-12977e46ad98
2015-12-03 11:43:58 +00:00
Nanang Izzuddin dcff08bc69 Fix #1889: DNS parser should return error on RR class != IN only when RR type is known.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5183 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-29 08:38:42 +00:00
Riza Sulistyo 5a5522dc6e Re #1881: Add filters file.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5181 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-21 05:25:04 +00:00
Nanang Izzuddin aefc097f15 Re #1881: Minor update on pjlib-util project to use default target platform version.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5175 74dad513-b988-da41-8d7b-12977e46ad98
2015-09-11 02:12:49 +00:00
Nanang Izzuddin 88358fd268 Re #1881: Fixed compile warnings on VS2015 about declaration hides previous declaration.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5170 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-25 08:45:46 +00:00
Nanang Izzuddin 710aa0cc27 Re #1881:
- Updated build output naming 'vc8' -> 'vc14' for VS2015.
 - Fixed miscelaneous warnings in VS2015 project settings.
 - Updated SVN ignore property.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5169 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-25 08:41:17 +00:00
Riza Sulistyo bcfe1aea76 Re #1881: Add Visual Studio 2015 support.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5168 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-21 14:58:04 +00:00
Sauw Ming 14ca0a7c0d Re #1843 (misc): Fixed potential memory corruption problem if DNS resolver receives a response with more than 8 A records.
Thank you to Oleg Grazhdan for the patch and Andrey Kovalenko for the report



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5115 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-22 08:49:34 +00:00
Sauw Ming 30468b1d8f Re #1843 (misc): Fixed warning: address of struct will always evaluate to 'true' [-Wpointer-bool-conversion]
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5113 74dad513-b988-da41-8d7b-12977e46ad98
2015-06-22 02:59:23 +00:00
Nanang Izzuddin ee35c38705 Ticket #1809: Fixed DNS SRV resolver bug that application callback may be called twice.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4971 74dad513-b988-da41-8d7b-12977e46ad98
2014-12-24 05:46:51 +00:00
Sauw Ming c757648f01 Re #1782 (misc): This is related to #1418: Library restart fails with PJLIB_UTIL_ESTUNNOTRESPOND error after several times. The fix r3896 in that ticket was accidentally modified during merging in r3999.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4961 74dad513-b988-da41-8d7b-12977e46ad98
2014-11-14 02:17:06 +00:00
Riza Sulistyo 4baa476078 Misc (re #1751): fixed printing value issue when using %02X format. (Thanks Itay Bianco for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4910 74dad513-b988-da41-8d7b-12977e46ad98
2014-09-01 06:32:50 +00:00
Riza Sulistyo 2dbbe57e1e Misc (re #1751): Fix crash when executing pattern matched shortcut on cli.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4825 74dad513-b988-da41-8d7b-12977e46ad98
2014-04-24 09:39:41 +00:00
Benny Prijono abf4f86ac8 Fixed #1719: Bug in DNS SRV/RFC 3263 server selection
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4774 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-28 10:14:24 +00:00
Nanang Izzuddin 797a52d3dc Re #1680: Fixed compile warnings on VS2005 for x64/win64 config.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4761 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-24 09:02:44 +00:00
Benny Prijono 241474d94d Misc (re #1630): Fixing warnings about variable set but not used with recent gcc
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4728 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-04 10:13:56 +00:00
Sauw Ming 4bf06e69fa Re #1519 (commited to SVN trunk): Add lib target to build system to enable building the library only (without the executables)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4727 74dad513-b988-da41-8d7b-12977e46ad98
2014-02-04 07:39:55 +00:00
Nanang Izzuddin 93252d7e89 Misc (re #1630): Fixed symbols that should not be exported (thanks Tzafrir Cohen for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4713 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-23 08:13:11 +00:00
Nanang Izzuddin 288461dd42 Misc (re #1630): Fixed GCC build warnings (thanks Tzafrir Cohen for the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4712 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-23 08:09:29 +00:00
Sauw Ming f33813f793 Closed #1723: Merging pjsua2 branch into trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4704 74dad513-b988-da41-8d7b-12977e46ad98
2014-01-16 05:30:46 +00:00
Nanang Izzuddin 70bde3b601 Re #1519: Misc fixes in pjsua2:
- Changed AccountConfig::toPj() signature, because a pjsua_acc_config instance should not be copied/assigned to another pjsua_acc_config instance as it contains list.
 - Fixed assertion in Endpoint destructor caused by access to pjlib mutex after pjlib is destroyed.
 - Changed VS2005 sample_debug project to allow debugging C++ code such as pjsua2_demo.cpp.
 - Compile warnings on VS2005.
 - Fixed SWIG python unit test.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4692 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-13 11:44:51 +00:00
Benny Prijono 174fe6650d Misc re #1630: added string.h to pjlib-util.h. Thanks Johan lantz for the suggestion
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4688 74dad513-b988-da41-8d7b-12977e46ad98
2013-12-10 10:58:10 +00:00
Nanang Izzuddin 83f15d5e7d Re #1519: Added VS2005 project for pjsua2.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4660 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-27 10:50:42 +00:00
Benny Prijono f912318dd8 Fixed #1713: Enable building the libraries as shared libraries/DLLs for GNU targets
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4656 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-23 07:13:40 +00:00
Nanang Izzuddin c0ce4d60e9 Fix #1710: Modified resolver to always remove cache entry from cache hash table first before releasing/resetting cache pool.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4649 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-07 08:20:30 +00:00
Benny Prijono e389e2ec9b Re #1519: Added support for JSON (JavaScript Object Notation, RFC 4627) format in PJLIB-UTIL.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/pjsua2@4643 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-06 07:46:15 +00:00
Nanang Izzuddin 8210f65326 Fix #1709: Fixed scanner in processing escaped quote right after quote begin.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4641 74dad513-b988-da41-8d7b-12977e46ad98
2013-11-04 09:05:43 +00:00
Sauw Ming fc1fb24b87 Re #1630 (misc): Use the right compiler and flags to compile C++ (.cpp) files
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4637 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-24 07:12:39 +00:00
Sauw Ming fdd63c3b60 Fixed #1707: Add support for paralel build
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4632 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-23 06:39:47 +00:00
Benny Prijono 6ba9e608bf Re #1703 General bug fixes: fixed wrong sizeof() in call to bzero(), memset(), or memcpy()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4614 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-08 11:13:11 +00:00
Benny Prijono 58dba631ff Re #1703: fixing general bugs. First installment: correct handling of snprintf return value
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4613 74dad513-b988-da41-8d7b-12977e46ad98
2013-10-08 09:08:13 +00:00
Riza Sulistyo 850f8872a3 Re #1643: Fix crash due to insufficient command buffer size in get_cmd_name()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4589 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-05 03:50:22 +00:00
Sauw Ming 615ffde2c2 Re #1630 (misc): Removed comment about GPL as the file is actually LGPL
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4578 74dad513-b988-da41-8d7b-12977e46ad98
2013-08-02 02:31:44 +00:00
Nanang Izzuddin c0db622eea Re #1686: avoid cache entry destroy in update_res_cache() when it is being used by callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4553 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-08 01:44:48 +00:00
Nanang Izzuddin 2f362934d0 Fix #1686: release mutex when invoking callback to avoid deadlock. Also a bit memory usage optimization, i.e: avoid bloated pool by unfreed old/expired packet in cache entry.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4552 74dad513-b988-da41-8d7b-12977e46ad98
2013-07-05 08:14:14 +00:00
Riza Sulistyo 25b575b336 Re #1680: Add initial support for Win64
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4537 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-19 06:47:43 +00:00
Riza Sulistyo 397a2d0bc5 Re #1643: - Modification to shortcut handling(execution&display).
- Add exact match check to the parse input command process.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4513 74dad513-b988-da41-8d7b-12977e46ad98
2013-05-03 08:47:14 +00:00
Nanang Izzuddin ae5394d149 Re #1655: Initial implementation of pjsua CLI app for Windows Mobile (5.x & 6.x).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4484 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-19 10:36:11 +00:00
Riza Sulistyo 0c5d8f768d Re #1643: Code restructure + modification to handle non blocking mode
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4476 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-19 06:05:06 +00:00
Riza Sulistyo bc9c677287 Re #1643: Code restructure+add callback to support symbian gui app
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4461 74dad513-b988-da41-8d7b-12977e46ad98
2013-04-05 03:02:19 +00:00
Riza Sulistyo 7da46cd3bd Re #1643: add initial support for CLI
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4440 74dad513-b988-da41-8d7b-12977e46ad98
2013-03-14 07:18:13 +00:00
Nanang Izzuddin 192726c1b5 Re #1603: Replaced sock_sendto() with ioqueue_sendto(), as if ioqueue replaces the socket first (in read operation), sock_sendto() will raise "Bad file descriptor" error.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4333 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-23 09:53:39 +00:00
Nanang Izzuddin bf7b3a14b4 Fix #1603: reinit UDP socket of DNS resolver when sendto() returning EPIPE.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4317 74dad513-b988-da41-8d7b-12977e46ad98
2013-01-15 14:21:07 +00:00
Sauw Ming 6abce2c0b8 Re #1559: Fix dependencies when running parallel make (thanks Shaun Ruffell for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4308 74dad513-b988-da41-8d7b-12977e46ad98
2012-12-13 06:37:05 +00:00
Benny Prijono 79eddc4cdd Re #1562: PJSUA-LIB shutdown operation may block for a long time if system time is modified while the shutdown is in progress. Also fixed similar issue in STUN client.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4297 74dad513-b988-da41-8d7b-12977e46ad98
2012-11-13 08:46:42 +00:00
Nanang Izzuddin b2b5f167fb Close #1567: Added option to use STUN2 format for resolving mapped address in pjsua_config.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4224 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-09 05:21:25 +00:00
Nanang Izzuddin 911260c3cb Fixed #1565: deadlock in DNS resolver.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4220 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-07 03:32:34 +00:00
Sauw Ming 3aa2e6497c Fixed #1558: Bug in parsing quoted URI strings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4209 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-18 10:21:00 +00:00
Benny Prijono 28d3c56283 Re #1474: Merged all changes from 1.12 - HEAD (from the 1.x branch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3999 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-30 07:10:13 +00:00
Sauw Ming e7dbbc8f30 Re #1395: Backport of PJSIP 1.x branch into PJSIP 2.0 trunk
* Backport of r3557:r3832

TODO: ticket #1268 (Option for automatic/manual sending of RTCP SDES/BYE for the stream) for video stream.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3841 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-24 09:28:13 +00:00
Perry Ismangil fed7ebf86f Re #1254 Further tweaks turning off treeview generation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3679 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-23 11:23:08 +00:00
Perry Ismangil c2f2e5550c Re #1254 Doxygen configuration and makefile changes to support version specific documentation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3669 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19 21:42:58 +00:00
Nanang Izzuddin d93c68a997 Re #1326:
- Fixed compile warnings on vs2005
 - Fixed compile error when PJMEDIA_HAS_VIDEO set to 0 on vs2005




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3666 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19 08:40:20 +00:00
Nanang Izzuddin fe68f1dc55 Re #1326: Initial code integration from branch 2.0-dev to trunk as "2.0-pre-alpha-svn".
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3664 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19 03:42:28 +00:00
Perry Ismangil 1fef1f9b59 Fixed #1296 deleting VS6 workspaces and projects
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3583 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-14 14:35:39 +00:00
Nanang Izzuddin a62ffc9d03 Re #1250: Updated the year in all copyright texts with 2011!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3553 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05 06:14:19 +00:00
Nanang Izzuddin 7adfc86158 Re #1250: Added and updated copyright text in several files (with "standard" Teluu copyright text).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3550 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05 05:33:27 +00:00
Nanang Izzuddin 358236f07d Re #1175: Set SVN properties for several files: keywords=id and eol-style=native
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3549 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05 05:10:06 +00:00
Benny Prijono 9849fc74fa Fix #1229: bug fix and enhancements for PJLIB-UTIL STUN client:
Bug:
 1. Bug: if UDP packet is lost, the resolver will wait until all retransmissions are done, which means 4 seconds delay.

Enhancements:
 1. Allow caller to specify only 1 STUN server, for faster result.
 1. If both servers point to the same address, only one will be used.
 1. Decrease retransmission delay from 1000 ms to 500 ms for more responsive result.
 1. Reduce memory consumption (from 1024 to 400 bytes).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3540 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-20 09:16:27 +00:00