summaryrefslogtreecommitdiff
path: root/pjlib/src
AgeCommit message (Collapse)Author
2007-02-01Implement ticket #83: socket TOS abstractionBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@920 74dad513-b988-da41-8d7b-12977e46ad98
2007-01-27Fixed various gcc warnings especially related to ticket #82 when particular ↵Benny Prijono
codecs are disabled git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@911 74dad513-b988-da41-8d7b-12977e46ad98
2007-01-26Ticket #80: pj_gethostbyname() should return the appropriate native error ↵Benny Prijono
code when it fails git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@907 74dad513-b988-da41-8d7b-12977e46ad98
2007-01-25Updated doxygen documentation to version 0.5.10Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@905 74dad513-b988-da41-8d7b-12977e46ad98
2007-01-23Fixed several compilation warnings with MSVCBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@897 74dad513-b988-da41-8d7b-12977e46ad98
2007-01-22Give more useful information when assertion fails in pj_thread_this()Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@896 74dad513-b988-da41-8d7b-12977e46ad98
2007-01-21Fixed gcc warnings, especially about dereferencing type-punned pointerBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@893 74dad513-b988-da41-8d7b-12977e46ad98
2007-01-20Removed unusable and scary warning when ioqueue cannot write packet immediatelyBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@886 74dad513-b988-da41-8d7b-12977e46ad98
2007-01-20Fix ticket #71: When host doesn't have any NIC interfaces, pj_gethostip() ↵Benny Prijono
should return 127.0.0.1 instead of error git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@885 74dad513-b988-da41-8d7b-12977e46ad98
2006-12-25In relation to ticket #49: fix support for recv() flags such as PJ_MSG_PEEK ↵Benny Prijono
and PJ_MSG_OOB etc git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@860 74dad513-b988-da41-8d7b-12977e46ad98
2006-12-25Fixed ticket #49: When socket is signaled for readability, recv()/recvfrom ↵Benny Prijono
is called with flags set to zero. It should use the flags as specified when ioqueue_recv()/ioqueue_recvfrom() was called. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@859 74dad513-b988-da41-8d7b-12977e46ad98
2006-12-01Changed critical section in os_core_unix.c to use recursive mutexBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@840 74dad513-b988-da41-8d7b-12977e46ad98
2006-12-01Fixed ticket #29: calling pjsua_init() to reinitialize the whole libraries ↵Benny Prijono
after pjsua_destroy() is called git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@839 74dad513-b988-da41-8d7b-12977e46ad98
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