Commit Graph

345 Commits

Author SHA1 Message Date
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
Nanang Izzuddin 3a86f326d0 Fix #1212:
- Updated pj_register_strerror() to just return PJ_SUCCESS when the same range
and handler is being re-registered.
 - Removed the usage of static flag of error string handler registration in some
modules, which prevent the re-registration of the handler, e.g: in restarting
pjsua, as such flags never got reseted.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3455 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-16 07:34:16 +00:00
Benny Prijono 91430b2dc4 Fixed #1152 (The base64 decoder should ignore whitespaces in the input). In fact, the base64 decoder now will silently ignore/skip any bad characters.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3356 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-26 23:53:28 +00:00
Benny Prijono f66dc1c8e7 Misc (re #1134): fixed failed unit tests due to changes in DNS resolver code in r3344
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3346 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-14 10:56:02 +00:00
Benny Prijono dc1c15a2bc Misc (re #1134): fixed failure in resolving DNS A resolution if the answer contains more than one CNAME redirection before an A record is found (thanks Régis Montoya for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3344 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-14 07:22:04 +00:00
Benny Prijono 8ef546c3fb Another fix for authentication in HTTP client (re #1136):
- missing opaque parameter in the response
 - also replaced "\n" with "\r\n"


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3333 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-04 01:11:54 +00:00
Benny Prijono 064d235023 Re #1136 (Basic and digest authentication in the HTTP client): fixed error in parsing URL if the path contains at ("@") character
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3332 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-01 06:43:17 +00:00
Benny Prijono 00f8827827 Implemented and closed #1136: added HTTP authentication support
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3321 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-27 08:35:08 +00:00
Benny Prijono 0282727447 Misc (re #1134): fixed error in Makefile target for generating doxygen documentation when WWWDIR is specified
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3319 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-23 22:46:11 +00:00
Benny Prijono f50194620e Fixed #1108: deadlock in DNS resolver (thanks Bogdan Krakowski for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3298 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-27 03:19:00 +00:00
Benny Prijono 2958061f92 Misc (re #1068): fixed various compilation warnings with Visual Studio 6 and 2005
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3262 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-11 06:03:47 +00:00
Benny Prijono d62947c23e Misc (re #1068): fixed couple of problems with http client unit test:
- crash because server is let running
 - SIGPIPE on Linux in the test server code


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3257 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-06 08:40:55 +00:00
Sauw Ming fc0c176237 Misc fix (re #1068): added port number in the Host header of http request.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3236 74dad513-b988-da41-8d7b-12977e46ad98
2010-07-13 13:18:08 +00:00
Nanang Izzuddin cbbcb60ada Fix #1078: added XOR_MAPPED_ADDRESS parsing capability to the resolver.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3235 74dad513-b988-da41-8d7b-12977e46ad98
2010-07-06 08:11:04 +00:00
Sauw Ming 382853f752 Misc(re #1068): Revert the default trace to 0.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3229 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-29 17:06:01 +00:00
Sauw Ming 3f0320605f Misc(re #1068): fixed crash because pj_http_req may now be destroyed after calling on_complete callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3228 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-29 17:02:59 +00:00
Sauw Ming 2d674b320c Ticket #1018:
Application may now destroy pj_http_req inside on_complete callback.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3227 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-29 13:43:05 +00:00
Benny Prijono 2ee684b9d9 Ref #1018, fixed failure in pjlib-util-test due to the use of hardcoded port in HTTP client test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3147 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-27 08:31:08 +00:00
Sauw Ming b36176088a More ticket #1018:
* Immediately process response body after receiving the header.
 * Fix GET method when Content-Length header is not specified.
 * Fix checking when HTTP request is cancelled.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3098 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-11 12:50:42 +00:00
Benny Prijono 990f6e9989 More ticket #1018: fixed some more warnings about pointer conversions, or errors if the library is compiled in C++ mode (thanks Atik Khan for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3095 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-10 10:45:07 +00:00
Benny Prijono 743ce28766 More ticket #1018: fixed warning about incompatible pointer types
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3092 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-10 07:49:03 +00:00
Sauw Ming 63236bb7f5 Misc (#1018):
* httpdemo: make the 2nd parameter (output filename) optional (result will be printed to stdout if output file is not provided.
 * remove trailing "\n" from PJ_LOG.
 * change response.status_code from pj_str_t to pj_uint16_t.
 * remove PJ_EPENDING status checking from on_complete.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3089 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-05 16:03:29 +00:00
Sauw Ming d8435e6798 Implemented ticket #1018: Simple HTTP client implementation
* pjlib-util:
   * implement http_client
 * pjlib-util-test:
   * unit test for http_client
 * pjsip-apps/samples:
   * sample http client implementation
 * build:
   * added http_client support on VS6, VS2005, MMP, and Makefile 



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3087 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-04 18:29:16 +00:00
Benny Prijono d523370d48 Initial OpenBSD fixes (#994):
pjlib:
 - Autoconf fixes in detecting header availability
 - Undefined sched_get_priority_max() and sched_get_priority_min()
    - protect with #ifdef _POSIX_PRIORITY_SCHEDULING, and
    - return hardcoded (0, 31) if __OpenBSD__ macro is declared
 - Better GUID generation

pjlib-test:
 - Reduce the loop in PJILB activesock test
 - Fixed bug in ioqueue unregistration test which caused assertion error in destroying mutex

pjlib-util-test:
 - Fixed bug in pjlib-util resolver test



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3057 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-13 13:09:45 +00:00
Nanang Izzuddin 30b615c7cc Ticket #886:
- Added C++ wrapper files for C source files using exception (PJ_TRY & PJ_THROW).
 - Updated Symbian MMPs.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2873 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-13 11:54:35 +00:00
Benny Prijono ecc183e9be Ticket #868: Added functions to search XML child nodes recursively
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2727 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-01 09:28:28 +00:00
Benny Prijono 329d638568 Integration of Sipit24 branch, many tickets involved:
- #793: AMR encoder should regard 'mode-set' param specified by remote decoder.
 - #831: Automatically switch to TCP transport when sending large request
 - #832: Support for outbound proxy setting without using Route header
 - #849: Modify conference audio switch behavior in connecting ports.
 - #850: Remove 'Require=replaces' param in 'Refer-To' header (in call transfer with replaces).
 - #851: Support for regular nomination in ICE
 - #852: --ip-addr support for IPv6 for media transport in pjsua
 - #854: Adding SOFTWARE attribute in all outgoing requests may cause compatibility problem with older STUN server (thanks Alexei Kuznetsov for the report)
 - #855: Bug in digit map frequencies for DTMF digits (thanks FCCH for the report)
 - #856: Put back the ICE candidate priority values according to the default values in the draft-mmusic-ice
 - #857: Support for ICE keep-alive with Binding indication
 - #858: Do not authenticate STUN 438 response
 - #859: AMR-WB format param in the SDP is not negotiated correctly.
 - #867: Return error instead of asserting when PJSUA-LIB fails to open log file




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2724 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-29 13:04:03 +00:00
Benny Prijono 5cd804a663 Fixed ticket #836: SHA1 encryption may corrupt STUN packets with MESSAGE-INTEGRITY. Also added unit test to verify this behavior
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2690 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-12 08:01:56 +00:00
Benny Prijono dc8c49028e More ticket #706: renamed output names from vs8 to vc8 to make it backward compatible
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2664 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-29 15:30:38 +00:00
Nanang Izzuddin 89c273edc7 Initial VS settings for all platforms.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg2@2649 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-27 12:41:05 +00:00
Nanang Izzuddin 5ac6cdf3a7 #792: Fixed WM6 build configs, updated svn prop for pjsua_wince & pocketpj.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2631 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-21 19:04:26 +00:00
Nanang Izzuddin 57ccc7ff4f #792: Updated output file name: use short platform name wm6std/pro & replace hyphen with dash.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2630 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-21 17:00:57 +00:00
Perry Ismangil 50a7530d1d #792 work in progress
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2629 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-21 14:59:35 +00:00
Nanang Izzuddin 29b6baf2c4 #792: Renamed test_pjsip to pjsip_test, updated some missing settings for Win32 platform.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2626 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-21 11:12:40 +00:00
Nanang Izzuddin 6ae3846f7e #792: Updated property sheet win32-common and updated some projects settings
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2625 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-20 20:11:18 +00:00
Perry Ismangil 740891ec08 #792 work in progress: all vcproj now has property sheets wired in.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2622 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-20 16:41:35 +00:00
Nanang Izzuddin a5c1abf3fb Added sample of ps inherited from another ps.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2609 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-17 13:54:57 +00:00
Perry Ismangil e6410c26ca #792 work in progress, solutions loads but then freezes VS. Trying it on other PCs.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg@2606 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-16 10:13:21 +00:00
Perry Ismangil 05d1769aaf #706 work in progress: all Win32 projects now have all 6 configs. Settings not correct yet.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2584 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-08 11:28:16 +00:00
Perry Ismangil 74338058c2 Addition of Debug-Static, Debug-Dynamic, Release-Static, and Release-Dynamic build configuration for Visual Studio, for Win32 target
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2559 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-30 12:15:43 +00:00
Benny Prijono f32d7ad66f Ticket #751: Incorrect table based CRC32 calculation on big endian platforms (thanks Ruud Klaver for the fix)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2511 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-13 12:28:00 +00:00
Benny Prijono d9e8dfea2d Initial fixes for ticket #747: bugs in parsing SIP torture messages (RFC 4475):
- SIP version components may be separated by whitespaces (e.g. "SIP / 2.0")
 - parsing of mangled header when for unknown/generic header
 - Via parameters were parsed with paramchar rather than token
 - handling NULL character inside quoted string

Some torture messages have been added in the Python test.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2505 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-12 11:25:11 +00:00
Benny Prijono 298c12e70e Ticket #706: Part 1 of VS 2005 projects reorganization: introduction of Windows Mobile 6 standard SDK in the build platform
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2430 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-27 10:14:52 +00:00
Benny Prijono 32d267bb67 Fixed gcc-4.3.2 warnings with the warn_unused_result flag in some APIs
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2408 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-01 22:08:21 +00:00
Benny Prijono 95b5340fa6 Fixed unreached code, deprecated fopen(), unused arguments, and other warnings with MSVC
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2407 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-01 20:56:36 +00:00
Benny Prijono 1ac5bfa095 Removed the check for NDEBUG (it failed the test on release mode)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2403 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-30 16:19:06 +00:00
Benny Prijono 844653c1f2 Updated copyright notice in all files to Teluu Inc., and changed the year as well
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2394 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-23 17:27:53 +00:00
Nanang Izzuddin 9522ff22fa Minor update on resolver test to use 'unrestricted' ports (>1024) in socket bindings.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2391 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-19 15:08:44 +00:00
Benny Prijono 2929e380d2 More ticket #686: bug in handling strayed callback
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2390 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-19 14:37:32 +00:00
Benny Prijono c693f4d6e5 Fixed ticket #686: Failure to cancel outstanding DNS SRV query job (API change)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2387 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-19 12:26:42 +00:00
Benny Prijono e6a5f8ef79 Ticket #667: Padding issue when the old/RFC 3489 STUN client is communicating with new/STUNbis STUN server
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2356 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-23 11:31:11 +00:00
Benny Prijono 179ab74df4 Ticket #651: Added WinCE workspace/project files for pjlib-util unit tests (thanks Seth Hinze for the contribution)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2337 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-01 09:56:09 +00:00
Benny Prijono b1c620431a Fixed ticket #581: Fixed build dependencies in the makefiles
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2183 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-29 11:42:20 +00:00
Benny Prijono 41d7013ab0 Ticket #560: Optimize the memory usage of DNS resolver
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2124 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-12 09:50:48 +00:00
Benny Prijono 32177c0418 Large changeset to replace all occurences of year 2007 with 2008 in the copyright notice
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2039 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-20 22:44:47 +00:00
Benny Prijono 5b64b8df4b Updated doxygen documentations
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2037 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-20 21:39:02 +00:00
Benny Prijono 800ec60675 Bug in srv_resolver: host_resolved value may exceed number of SRV records if there are more than A records in Additional Record section of the response for a single SRV target (thanks Ruud Klaver)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2006 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-12 12:36:59 +00:00
Benny Prijono 739551f551 Fixed compilation warnings in dns_server.c
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1991 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-06 20:59:11 +00:00
Benny Prijono 71c8395069 Ticket #537: implemented Simple DNS Server class (for testing) in pjlib-util
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1987 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-06 14:18:28 +00:00
Benny Prijono 7ffd7752fd Ticket #507: committed and tested g722 patch on Windows
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1870 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-17 14:07:53 +00:00
Benny Prijono 5ac0bd7a4d More ticket #485: added TURN client application
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1867 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-13 15:11:29 +00:00
Benny Prijono b1cf890ef9 Fixed compilation errors on Symbian and others caused by ticket #472 (FD_SETSIZE was removed)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1785 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-08 09:43:30 +00:00
Benny Prijono c4bb78ba5a More ticket #465: option to return UDP header in pj_pcap_read_udp(), and better RTP packet handling in pcaputil sample
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1769 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-02 09:12:13 +00:00
Benny Prijono 9eb0b71816 Added trace to PCAP reader
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1767 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-02 08:22:20 +00:00
Benny Prijono 41b15db7c4 More ticket #465: updated VS8 and WinCE projects
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1766 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-01 16:44:25 +00:00
Benny Prijono 0f85672335 Ticket #465: utility to read PCAP file and sample application to read RTP files from PCAP file, decode the payload, and write the PCM output to WAV file
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1765 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-01 14:59:19 +00:00
Benny Prijono a7b376bc7c Fixed doxygen comments everywhere
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1748 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-25 16:06:33 +00:00
Benny Prijono b2f20e1200 Fixed integer conversion/format warning on x86_64 Linux
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1731 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-23 20:23:12 +00:00
Benny Prijono 40c2633fc6 More ticket #415: Added pj_sockaddr_cmp(), pj_sockaddr_copy_addr(), and pj_sockaddr_print()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1613 74dad513-b988-da41-8d7b-12977e46ad98
2007-12-03 14:33:39 +00:00
Benny Prijono f3437e0c2f Fixed ticket #425: pjstun_get_mapped_addr() failed when receiving incoming SIP request (thanks Lafras Henning)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1596 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-23 03:54:49 +00:00
Benny Prijono 956eb1a4d7 Fixed missing typedef keyword in pj_dns_srv_option declaration (thanks Alain Totouom)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1590 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-21 14:14:00 +00:00
Benny Prijono 444ef3f586 Ticket #419: initial support for DNS AAAA resolution
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1587 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-20 09:47:32 +00:00
Benny Prijono f0f8fd1f2f Fixed compilation warnings/errors under C++ mode
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1569 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-10 12:05:59 +00:00
Benny Prijono 3808af1d42 Updated VS2005 and eVC projects with new base64 and AKA files
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1505 74dad513-b988-da41-8d7b-12977e46ad98
2007-10-18 01:40:44 +00:00
Benny Prijono b071a7897d Fixed build warnings/error on Linux
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1490 74dad513-b988-da41-8d7b-12977e46ad98
2007-10-10 13:12:37 +00:00
Benny Prijono 7977f9f7eb Ticket #396: initial implementation of digest AKA (akav1-md5) authentication for IMS/3GPP
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1488 74dad513-b988-da41-8d7b-12977e46ad98
2007-10-10 11:37:56 +00:00
Benny Prijono ee7276b6f5 Force svn eol-style for WinCE project files to CRLF
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1478 74dad513-b988-da41-8d7b-12977e46ad98
2007-10-05 12:28:11 +00:00
Benny Prijono 1af6beb318 Fixed compilation warnings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1418 74dad513-b988-da41-8d7b-12977e46ad98
2007-08-16 11:26:10 +00:00
Benny Prijono d51a37a496 Continue work on ticket #354: changed pjlib-util and pjnath libraries to .DSO (DLL) in Symbian
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1410 74dad513-b988-da41-8d7b-12977e46ad98
2007-07-28 02:44:55 +00:00
Benny Prijono 8ab968fd0d Ticket #354: build PJLIB as dynamic libraries (.DSO) in Symbian
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1405 74dad513-b988-da41-8d7b-12977e46ad98
2007-07-20 08:08:30 +00:00
Benny Prijono 42d5aaa7ee Fixed sign mismatch warning with Symbian GCCE compiler
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1383 74dad513-b988-da41-8d7b-12977e46ad98
2007-06-23 00:58:29 +00:00
Benny Prijono f1428f3e2b Fixed wrong year in copyright line, s/2005/2007 (thanks Atik Khan)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1374 74dad513-b988-da41-8d7b-12977e46ad98
2007-06-19 09:04:58 +00:00
Benny Prijono edec9675b3 Fixed dns.c compilation error on Symbian
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1364 74dad513-b988-da41-8d7b-12977e46ad98
2007-06-12 11:27:24 +00:00
Benny Prijono bf56604010 Ticket #332: Enlarge default buffer size for caching DNS responses from 512 to 1000 bytes
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1360 74dad513-b988-da41-8d7b-12977e46ad98
2007-06-11 16:59:41 +00:00
Benny Prijono 36430ad2c7 Ticket #326: added more DNS resolver tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1359 74dad513-b988-da41-8d7b-12977e46ad98
2007-06-11 16:56:26 +00:00
Benny Prijono f5afa92fbf Ticket #330: Changed DNS SRV resolver to use the new DNS A response parser
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1357 74dad513-b988-da41-8d7b-12977e46ad98
2007-06-11 16:51:18 +00:00
Benny Prijono 1423585417 Ticket #329: Added utility function to parse DNS A response in PJLIB-UTIL
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1356 74dad513-b988-da41-8d7b-12977e46ad98
2007-06-11 16:47:51 +00:00
Benny Prijono 57f7536b5d Ticket #328: Possible alignment error in DNS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1355 74dad513-b988-da41-8d7b-12977e46ad98
2007-06-11 16:43:29 +00:00
Benny Prijono b9f0368a5b Another ticket #326: Add DNS resolver and DNS SRV resolver test in pjlib-util
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1350 74dad513-b988-da41-8d7b-12977e46ad98
2007-06-07 15:56:49 +00:00
Benny Prijono fa3e100849 Another ticket #326: Add DNS resolver and DNS SRV resolver test in pjlib-util
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1349 74dad513-b988-da41-8d7b-12977e46ad98
2007-06-07 15:50:18 +00:00
Benny Prijono 524f8e4de1 Another ticket #325: More tunable settings in DNS resolver
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1348 74dad513-b988-da41-8d7b-12977e46ad98
2007-06-07 15:47:31 +00:00
Benny Prijono 0d7b4a8047 Ticket #326: Add DNS resolver and DNS SRV resolver test in pjlib-util
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1347 74dad513-b988-da41-8d7b-12977e46ad98
2007-06-07 15:46:07 +00:00
Benny Prijono a53dc15455 Ticket #325: More tunable settings in DNS resolver
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1346 74dad513-b988-da41-8d7b-12977e46ad98
2007-06-07 15:40:19 +00:00
Benny Prijono 1103222feb Fixed ticket #311: PJSIP resolver is not destroyed on shutdown (thanks Martin Peterzon)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1323 74dad513-b988-da41-8d7b-12977e46ad98
2007-05-30 15:20:56 +00:00
Benny Prijono 17e58ed63a Fixed ticket #304: Memory alignment error for hash entry buffer causing crash on ARM (thanks ChenHuan)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1307 74dad513-b988-da41-8d7b-12977e46ad98
2007-05-28 11:49:46 +00:00