summaryrefslogtreecommitdiff
path: root/pjlib
AgeCommit message (Collapse)Author
2006-09-14Applied temporary fix to error code returned by pj_gethostbyname(). Under ↵Benny Prijono
*nix, the error code is returned in h_errno, and the error string is reported by hstrerror(). But it is a bit too complex to support this for the moment, so we just return PJ_ERESOLVE for any failure returned by gethostbyname() git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@722 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-14Fix the local IP address resolution issue in PJSIP, PJMEDIA, and PJSUA, by ↵Benny Prijono
adding a new API pj_gethostip() to resolve the default local IP address of local host. This new function will work even when local hostname resolution is not set correctly, by detecting the default IP interface in the system. Also fix compile warnings in iLBC. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@721 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-14Fixed compilation error in Linux when the legacy configure is being used: ↵Benny Prijono
multiple declaration of socklen_t. Also does similar things with os_sunos, os_darwinos, and os_rtems git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@716 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-13SIP methods are now compared case-sensitively (previously it was ↵Benny Prijono
case-insensitive) because the standard says so. There's no ill effect of the old behavior, but it's still important that we do things according to what the standard says. Also a little change in string implementation (use memcmp() instead of strncmp()), an increase the version number from 0.5.7.6 to 0.5.7.7. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@713 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-12Fixed mutex leaking in Linux: pj_mutex_destroy() will fail to destroy the ↵Benny Prijono
mutex if the mutex is currently being held. Unfortunately it is quite common in the libraries to acquire the mutex first before destroying it, causing mutexes to leak. The solution is to retry unlocking/destroying the mutex several times (currently 4) while pthread_mutex_destroy() returns EBUSY git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@708 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-10Fixed autoconf in various other systems (IA64, x86_64, BSD/FreeBSD)Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@700 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-10Fixed autoconf in mingwBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@699 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-10Fixed autoconf on MacOS XBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@698 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-09Added PJ_HAS_SOCKLEN_T test in configure script (some MacOS X have it, some ↵Benny Prijono
dont) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@697 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-09Fix compilation error when PJSIP_AUTH_HEADER_CACHING and ↵Benny Prijono
PJSIP_AUTH_AUTO_SEND_NEXT is disabled, and set the default for both to disabled. Also fixed the error message in pjsua when invalid arguments are specified. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@695 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-25Yet another documentation/doxygen updateBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@691 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-24Just updated doxygen documentationBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@690 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-20Finishing autoconf work, also fixed compilation error in publish.hBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@689 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-15Support for PUBLISH (RFC 3903):Benny Prijono
- API BREAK: pjsua_pres_create_uac() API CHANGED!! Added options in the function, to allow creating SUBSCRIBE without ";id=" parameter in the Event header. - the generic event publication in pjsip-simple/publish.[hc] - split PIDF and X-PIDF body generation and parsing into pjsip-simple/presence_body.c. - allow NULL in module parameter in pjsip_endpt_add_capability() - added "--publish" option in PJSUA. - by default, PJSUA-LIB will not add ";id=" parameter in Event header in the SUBSCRIBE request since lots of server and user agents don't support this correctly. - Set version to 0.5.7.6. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@685 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-15Fixed yet another bug for 64bit target: error in initializing caching pool ↵Benny Prijono
because internal pool size is too small. Increased by 256 bytes. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@684 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-12Improved logging consistency and added more logging info in verbosity 6Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@675 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-11Added pj_thread_is_registeredBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@674 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-11Increased width for sender column in log message, and added additional check ↵Benny Prijono
in pj_thread_register() git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@672 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-10Removed copyright info from pj_timer_heap [hc], and explain more about ACEBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@669 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-09Changed WinCE demo app to automatically answer incoming calls.Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@667 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-07Added --auto-conf options in pjsua, also enable speex/3200, and set quality ↵Benny Prijono
5 to use large resampling filter git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@659 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-06Echo suppressor tuning and testing on WincE, and also added config_site_sample.hBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@656 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-04Fixed complilation error in config.h for ARM target.Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@647 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-02Fix compilation error in MacOS because of recent changes in config.h, also ↵Benny Prijono
disable AEC by default in pjsua-lib, and added ec-tail option in pjsua git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@643 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-01Fix PJLIB on WinCE:Benny Prijono
- Added CPU and OS autodetection feature in config.h. For target CPU type, now we don't need to specify PJ_M_* anymore. - Fix stricmp_alnum() link error on WinCE - Exclude error message test on WincE, since WinCE doesn't have full error reporting capability as Win32. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@640 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-31Fixed bug in registring external thread: thread descriptor is not large ↵Benny Prijono
enough because of recent enlargement on PJ_MAX_OBJ_NAME. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@636 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-29Another take at fixing 64bit problems. PJ_MAX_OBJ_NAME is increased to 32 ↵Benny Prijono
chars (from 16), and check all those sprintf's especially the ones with "%p" format. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@635 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-29Removed pj/compat/sprintf.h from MSVC workspace, also changed "make size" to ↵Benny Prijono
calculate .bss and .data as well. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@634 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-24Added initial implementation of autoconf script (aconfigure)Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@625 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-23Added 64bit Linux target (x86_64), also fixed compilation warnings when ↵Benny Prijono
compiling for this target git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@624 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-23Improvement/bug fix in hash table lookup to allow user to specify the hash ↵Benny Prijono
value, and modify transaction to take advantage of this feature git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@623 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-22Changed all public header files to compile correctly when -ansi and ↵Benny Prijono
-pedantic is used, also when g++ is used git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@622 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-18Increased version number to 0.5.7!Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@614 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-18Fixed several bugs related to TCP:Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@610 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-14Attempt to get some applications linked for RTEMS target, just to get the ↵Benny Prijono
footprint calculation working git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@604 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-10Fixed several bugs in WinNT IOCP: (1) accept() does not return correct ↵Benny Prijono
addresses, (2) handle error condition when accept() returns -1 as the new socket git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@599 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-10Fixed bug in PJSUA API re: account selection and Contact header for accountsBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@597 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-09Added feature to report peak memory used in caching poolBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@594 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-08Attempted to fix epoll for LinuxBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@592 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-06Fixed link errors in ioqueue epoll backendBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@590 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-06Improve the search for correct size in caching poolBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@588 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-03Various performance improvements in PJSIP: (1) optimizing for common case to ↵Benny Prijono
minimize stricmp() calls (header names, method, URI schemes), (2) added functionality in scanner to parse and unescape in-place, (3) etc.. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@583 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-03Change all pj_memset to pj_bzero(), where applicableBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@582 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-03Fixed minor bug in pool_caching.c that prevent pool from being reused if the ↵Benny Prijono
capacity has changed when the pool is released git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@581 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-03PJLIB will print the exception name when there is an unhandled exceptionBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@577 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-29In VC6 workspace, set PJLIB to use IoCompletionPort instead of select() on ↵Benny Prijono
Release build git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@566 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-28Major improvements in PJSIP to support TCP. The changes fall into these ↵Benny Prijono
categories: (1) the TCP transport implementation itself (*.[hc]), (2) bug-fix in SIP transaction when using reliable transports, (3) support for TCP transport in PJSUA-LIB/PJSUA, and (4) changes in PJSIP-TEST to support TCP testing. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@563 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-28Added PJ_INT64() and PJ_UINT64() macro to construct 64bit constants in ↵Benny Prijono
portable manner git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@560 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-28Fixed bug in ioqueue IOCP: accept() callback is called with new socket ↵Benny Prijono
handle already reset to -1 git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@559 74dad513-b988-da41-8d7b-12977e46ad98
2006-06-28Fixed bug in sockaddr_in: the sin_zero part of the sockaddr_in is not ↵Benny Prijono
zeroed, causing SIP transport hash table to behave erraticly git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@557 74dad513-b988-da41-8d7b-12977e46ad98