Commit Graph

2778 Commits

Author SHA1 Message Date
Benny Prijono bc2bec77f1 Fixed minor bug (#1026): custom ICE priority table must not assign greater priority for SRFLX than PRFLX candidate type (thanks Saúl Ibarra Corretgé for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3101 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-18 14:52:05 +00:00
Benny Prijono 556a285a74 More ticket #1028: fixed compile error caused by corrupted version of passthrough.c when re-commiting r3074 (in r3078). (note: this changeset was originally done by nanang, recheckedin due to moving svn repository)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3100 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-17 17:31:19 +00:00
Benny Prijono 46bd0840a9 More ticket #1009: Initial support for IPP on Mac
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3099 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-12 14:12:41 +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 3965f19782 Ticket #1009: Support for IPP 6.1 on Linux
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3097 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-10 18:46:05 +00:00
Benny Prijono 166d502e3a Ticket #995: Send un-PUBLISH when pjsua_acc_set_registration(FALSE) is called (thanks Johan Lantz for the suggestion)
- in this implementation, when pjsua_acc_set_registration(FALSE) is called, the un-REGISTER request will be sent immediately after un-PUBLISH, unlike the process during shutdown where the un-REGISTER request will be sent only after un-PUBLISH transaction is complete


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3096 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-10 14:24:48 +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 9a048649f3 Fixed ticket #1011: "Invalid operation step" assertion when TCP is used
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3094 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-10 08:48:27 +00:00
Benny Prijono c88ad8dccc Misc (#1026): swap the order fo --dis-codec and --add-codec execution in pjsua, so that user can now enable specific codecs
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3093 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-10 08:16:48 +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
Benny Prijono bcc8dd7270 Fixed ticket #1034: Crash on accepting a call with no codec in the SDP offer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3091 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-09 12:28:03 +00:00
Benny Prijono 3dd29e2863 More ticket #1033:
- fixed the problem that caused ACK not to be sent. This happened when TCP switching is used, and the TCP fails to send the request.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3090 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-08 17:42:35 +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
Benny Prijono 653af2ec75 Misc (#1026): PJLIB does not return the correct error code when TCP connection fails on Linux
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3088 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-05 11:11:52 +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
Nanang Izzuddin 6cc031c24e Ticket #998:
- Updated pjmedia_sdp_parse() to apply direction attribute in session to each media that has no direction attribute (no overriding).
 - Added python tests.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3086 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-03 14:43:25 +00:00
Nanang Izzuddin 9f538cb637 Ticket #766:
- Applied patch provided by Bram Kuijvenhoven related to truncation issue in floating-point to integer type-casts in pjmedia components.
 - Original patch proposal and description can be found here: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2010-January/010258.html.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3085 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-01 11:23:54 +00:00
Benny Prijono 5c816affbc More ticket #1033:
- fix for r3071: added protection for case when TSX_HAS_PENDING_TRANSPORT flag is set to the transaction but pending_tx is NULL, causing crash


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3084 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-29 22:00:04 +00:00
Nanang Izzuddin c5a1759e97 Ticket #1028:
- Updated codecs docs, more detail info about codec settings.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3083 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-29 15:51:09 +00:00
Benny Prijono 4969f375b4 More ticket #1037:
- bug in aligning pointer if sizeof(long) is less than sizeof(void*). Thanks John Ridges for pointing this out


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3082 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-29 11:20:43 +00:00
Benny Prijono ba858ec479 Fixed ticket #1037: Memory pool alignment error when alignment is set to be greater than the default (thanks John Ridges for the report):
- fixed the pool allocation routines in PJLIB, 
 - add alignment test in pjlib-test (only useful if PJ_POOL_ALIGNMENT is configured in config_site.h),
 - fixed other pool tests in pjlib-test which are broken when PJ_POOL_ALIGNMENT is enlarged


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3081 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-29 10:10:49 +00:00
Nanang Izzuddin 98f761b286 Ticket #1028 (minor):
- Fixed missing pjmedia_codec_mgr_destroy() in pjmedia_endpt_destroy().



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3080 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-28 05:02:56 +00:00
Benny Prijono 19a87c7a08 Initial implementation of ticket #1016: Native Linux ALSA audio device backend implementation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3079 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-27 17:22:17 +00:00
Nanang Izzuddin 06839e722b Ticket #1028: Recommit r3074 with updated codec.h.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3078 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-27 11:48:31 +00:00
Benny Prijono d1873b783e Fixed ticket #1036: Stray timer may be registered by SIP TCP and TLS transport in destroy routine, which could crash the program on Symbian (thanks Tamàs Solymosi for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3077 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-27 09:09:27 +00:00
Benny Prijono a1bc01925b Fixed ticket #1035: Crash in timer heap cleanup sequence on Symbian if the pool for the timer entry is released beforehand (thanks Tamàs Solymosi for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3076 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-27 07:28:53 +00:00
Benny Prijono 0ff300cbeb Undo r3074 for ticket #1028 as it is missing updated codec.h hence causing build errors (thanks Michael Bradley Jr for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3075 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-26 18:54:28 +00:00
Nanang Izzuddin 721750538f Ticket #1028:
- Added new API pjmedia_codec_mgr_set_default_param() to set/update default codec parameter and implemented pjsua_codec_set_param() based on it.
 - Added mutex in codec manager to protect states manipulations.
 - Modified API pjmedia_codec_mgr_init() to add pool factory param.
 - Added new API pjmedia_codec_mgr_destroy().
 - Updated passthrough codec AMR to regard peer's mode-set setting.
 - Fixed VAS audio device to apply AMR encoding bitrate setting.
 - Fixed IPP codec codec_open() to update AMR bitrate info (for stream) when AMR encoding bitrate is not using the default, e.g: requested by peer via format param 'mode-set' in SDP.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3074 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-26 15:29:23 +00:00
Benny Prijono 3614fbc7e7 Misc fix (#1026): incoming call event is not detected by PocketPJ sample application
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3073 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-25 17:38:07 +00:00
Nanang Izzuddin 6dd1ff8c3e Misc (#1026): missed PLC availability check in stream get_frame_ext().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3072 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-25 17:14:44 +00:00
Benny Prijono 09638547a7 Initial commit for #1033: Assertion error when shutting down PJSIP while TCP/TLS connect is in progress and a transaction is waiting
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3071 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-25 13:42:56 +00:00
Benny Prijono 984d7679ed Misc (#1026): initialize display field of SIP name address to NULL, as some libc library (mingw with gcc4, msvcrt) has some problem with sprintf with zero length and invalid pointer (thanks Klaus Darilion for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3070 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-21 17:27:32 +00:00
Benny Prijono b2d60deaa9 Fixed ticket #1030: Missing To tag in out-of-dialog response (thanks Rui Macedo for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3069 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-21 17:07:28 +00:00
Benny Prijono 15d3a70d96 Ticket #1029: Fix support for multiple (event) subscriptions in a single dialog (thanks Wang Eric for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3068 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-21 10:04:26 +00:00
Benny Prijono 957dc41433 Related to #969: make maximum PLC generated frames configurable (PJMEDIA_MAX_PLC_DURATION_MSEC)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3067 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-21 08:39:14 +00:00
Benny Prijono 16b2053b7e Ticket #1026: Wrong endianness detection for Motorola m68k architecture in pj/config.h (thanks Andreas Wehrmann for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3066 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-20 19:42:46 +00:00
Nanang Izzuddin b6f66bc233 Ticket #969:
- implemented progressive discard algorithm, discard rate is calculated from ratio of effective size to effective burst level.
 - updated jbuf to clarify prefetch and burst level distinction, previously they are stored in same var, i.e: prefetch, while the semantic is actually different.
 - updated STABLE_HISTORY_LIMIT in jbuf, it is now 20 (was 100), to adjust burst level faster.
 - added test case of periodic-spike-burst-case in jbtest.dat for testing the new algorithm.
 - updated stream to limit the rate of jbuf empty/lost log messages, it will only log first empty/lost event, then log again once jbuf returning normal frame (also counter of previous empty/lost frames).
 - minor updates on jbuf.c: variable names, logs, added burst to jbuf state.
 - minor updates on jbuf_test.c: handle comment in test session header, seq jump is now 20 (was 5000).




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3065 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-20 01:02:37 +00:00
Benny Prijono a38a403b76 Small bug in ticket #1025, which caused build error related to PortAudio in Mac OS X
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3064 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-15 16:53:56 +00:00
Benny Prijono ddd4714f1e Ticket #694: work on 'make install':
- adhere to --prefix
 - header and lib files installation
 - pkgconfig creation
 - also added version.mak to fill in with the correct version


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3063 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-15 15:06:20 +00:00
Benny Prijono 8a9b3b272c More #1025 (support for using external third party libraries):
- support for using external libspeex and libgsm
 - replaced --with-pa-path with --with-external-pa


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3062 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-14 14:46:54 +00:00
Nanang Izzuddin cb40a1c517 Ticket #1027: Fixed stream to skip (frame.buf!=NULL) checking when frame type is PJMEDIA_FRAME_TYPE_EXT before passing the frame to encoder.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3061 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-14 12:39:11 +00:00
Benny Prijono 5765555ef0 Misc (#1026): remove the code that silently set SO_SNDBUF/SO_RCVBUF as it's not that useful and it would print error message on many platforms that don't support it, causing many questions from users
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3060 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-14 09:05:08 +00:00
Benny Prijono a1aec0ec96 Initial fixes for #993 (OpenSolaris issues)
- configure script patch for FIONBIO and SIOCGIFFLAGS errors


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3059 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-13 21:28:06 +00:00
Benny Prijono fe0c127516 Ticket #1025: Support for using different PortAudio installation/path
- added --with-pa-path configure option
 - remove the use of PaUtil_SetDebugPrintFunction() since this is not always available across all PA versions (?)


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3058 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-13 16:28:15 +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
Perry Ismangil 7d1f7686b2 Updated to 1.5.5-trunk after release
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3056 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-11 11:16:12 +00:00
Perry Ismangil 9b5e1f8839 Changed version to 1.5.5
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3054 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-11 09:42:39 +00:00
Benny Prijono 06b0f95a81 More ticket #1013: PJSIP resolver should not try to resolve the target if IP address is given (thanks Emil Sturniolo for the report)
- fixed bug with IPv6
 - also fixed bug with not fully initializing socket address, causing assertion on pjsip-test and also potentially will cause error on MacOS X due to sin_zero_len not being zeroed


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3053 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-08 17:12:05 +00:00
Nanang Izzuddin eeb84dc35a Ticket #1015: Disabled ioqueue Completion Port (ioqueue_winnt.c).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3052 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-08 16:38:47 +00:00
Nanang Izzuddin b2c7529e62 Ticket #1001:
- Moved setsockopt(SO_UPDATE_ACCEPT_CONTEXT) from pj_sock_accept() to ioqueue_on_accept_complete().
 - Added setsockopt(SO_UPDATE_ACCEPT_CONTEXT) in pj_sock_accept() for new accepted socket when immediate connection is available.
 - Added pj_sock_getsockname() check in unit test ioq_tcp.c for new accepted socket.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3051 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-08 13:08:05 +00:00