summaryrefslogtreecommitdiff
path: root/pjlib/src
AgeCommit message (Collapse)Author
2006-11-27Bumped up version to 0.5.9Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@835 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-25Print media statistic when call is disconnected in pjsua, to assist tracing ↵Benny Prijono
media problems git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@831 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-23Fixed crash in IoCompletionPort during unregistration. Also remove ↵Benny Prijono
WSACleanup() from pj_shutdown() since it may not be a good idea (and for one thing it crashes with Invalid Handle exception) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@821 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-21Fixed thread_test in pjlib-test: the stack buffer for pj_thread_desc may ↵Benny Prijono
contain the previous registration values, causing the next pj_thread_register() to fail (tested on Linux FC4) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@817 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-21Added pj_shutdown() on os_core_unix.cBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@816 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-21Fixed handles leak upon program exit, by introducing pj_shutdown() and ↵Benny Prijono
pj_atexit(). Also fixed handle leaks in SIP transaction layer and SIP endpoint. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@815 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-21Fixed minor memory leak in caching pool (one malloc is not freed)Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@809 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-11Committed what seems like what left uncommitted in previous commit ↵Benny Prijono
(pjsua_app.c and pj/config.c) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@798 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-13Fixed bug in static buffer based pool: thread local strorage leakageBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@768 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-13Fixed bug in log length calculation (null character was included) [thanks ↵Benny Prijono
Klaus Darilion] git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@767 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-08Major addition to support DNS SRV resolution in PJSIP:Benny Prijono
- added DNS asynchronous/caching resolver engine in PJLIB-UTIL (resolver.[hc]) - modified SIP resolver (sip_resolve.c) to properly perform DNS SRV/A resolution when DNS resolution is enabled. - added dns_test.c in PJSIP-TEST for testing the SIP resolver. - added nameserver configuration in PJSUA-LIB - added "--nameserver" option in PJSUA. - updated project/Makefiles and doxygen documentation. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@753 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-05Changed puts() to printf() in log_writer_stdout.c, since puts() introduced ↵Benny Prijono
extra newline. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@752 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-04Fixed compilation errors when threading is disabled (PJ_HAS_THREADS=0) and ↵Benny Prijono
safe ioqueue unregistration is disabled (PJ_IOQUEUE_HAS_SAFE_UNREG=0). Also increase PJ_IOQUEUE_MAX_HANDLES for minimum config to 16 in config_sample.h [thanks Olivier Gournet]. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@750 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-04Changed fputs() to puts() in log_writer_stdout.c, since it's suspected to ↵Benny Prijono
crash GUI applications. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@749 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-03Fixed bug in the hash table size calculation. The hash table creation API ↵Benny Prijono
(pj_hash_create()) suggests that the size should be 2^n-1, and when the size is not 2^n-1, it will be rounded-up to the nearest 2^n-1, except when the size is exactly 2^n, then it will be rounded-down to 2^n-1. The bug caused the hash table size to be doubled when application gives 2^n size (instead of rounding it down to 2^n-1). Nothing dangerous happened because of the bug, it just caused hash table size to be doubled the requirement. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@748 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-03Fixed minor error in pj_thread_is_registered() API. The return value should ↵Benny Prijono
be pj_bool_t instead of pj_status_t. (Note: this change should not break anything). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@746 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-30Added initial implementation of low-level DNS packetization Benny Prijono
and parsing functions in PJLIB-UTIL/dns.h. Errors codes added for DNS formatting related errors. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@745 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-25Version 0.5.8Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@739 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-22In pjsua, outgoing REFER now always put Refer-Sub: falseBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@733 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-17Added pool for allocating memory from the stack bufferBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@725 74dad513-b988-da41-8d7b-12977e46ad98
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-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 mingwBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@699 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-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-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-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-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-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-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-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-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