summaryrefslogtreecommitdiff
path: root/pjmedia
AgeCommit message (Collapse)Author
2010-06-26Fixed segfault Re #740Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3226 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-26Fix #740:Nanang Izzuddin
- Fixed zeroed/unset RTP timestamp in RTCP sender report. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3224 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-24Fix #1075:Nanang Izzuddin
- Fixed SRTP transport to only (re)start the SRTP state when the SRTP crypto settings are updated. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3221 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-23Re #1094: fixed compilation error in previous fix in r3218Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3220 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-23Fixed #1079 (Media transport should be kept alive during double-hold ↵Benny Prijono
scenario). Details: - now the stream will be destroyed but the media transport will be kept alive during doublehold scenario - small fix in SRTP to also negotiate crypto even when the media is marked as inactive, otherwise it's possible that an "optional" endpoint would create RTP/AVP offer and send it to "mandatory" endpoint, which would be rejected and cause the media port to be set to zero git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3219 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-23Fixed #1094: Transmit RTCP keep alive even when the stream is paused (thanks ↵Benny Prijono
Johan Lantz for the suggestion) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3218 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-23Another unterminated SDP offer/answer negotiation fix (Re: #1045):Benny Prijono
- fixed unterminated negotiation if our media transport rejects incoming offer (e.g. due to mismatch SRTP transport) with 488. - to fix the above, modified the SDP negotiator (sdp_neg.[hc])'s pjmedia_sdp_neg_cancel_offer() to also be able to cancel in remote offer state - also fixed the bug introduced previous Session Timer fix (Re: #1047), which cause SDP negotiator's state to be cleared after failed UAC UPDATE transaction is terminated, which means UPDATE can only be sent 5 seconds after the last UPDATE if the last UPDATE failed. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3217 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-21Misc (re #1068): added new API pjmedia_master_port_wait() to poll master ↵Nanang Izzuddin
port clock when it is created with PJMEDIA_CLOCK_NO_ASYNC flag. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3214 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-15Misc (Re #1068): initialize rtpmap string with NULL as it generates ↵Benny Prijono
uninitialized memory ptr read under Valgrind. Thanks Jones Desougi for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3204 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-11Close #1072:Nanang Izzuddin
- Added API pjmedia_codec_g722_set_pcm_shift() to enable configurable level-adjusment setting. - Also added macro PJMEDIA_G722_DEFAULT_PCM_SHIFT (default value is 2) to accomplish 14-16 bit PCM conversion for G722 input/output. - Added a feature in G722 to stop level-adjusment/PCM-shifting when clipping occured, compile-time configurable via PJMEDIA_G722_STOP_PCM_SHIFT_ON_CLIPPING macro. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3202 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-11Fix #1093:Nanang Izzuddin
- Fixed memory leak of CVoIPFormatIntfc instances in S60 VAS. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3201 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-07Fix #1085:Nanang Izzuddin
- Added new codec G721, as alias for G726-32. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3199 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-04Re #668:Nanang Izzuddin
- Fixed process_answer() of SDP negotiation, when no common format in a media, instead of returning error, it should just deactivate the media (offer & answer) and continue negotiating next media. - Generalized the way of deactivating media: set port to 0 and remove all attributes. - Added new API pjmedia_sdp_media_clone_deactivate() to clone media and deactivate the newly cloned media. - Updated PJMEDIA SDP negotiation test. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3198 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-03Fix #1073:Nanang Izzuddin
- Fixed SDP negotiation in processing answer: when the answer has less media count, generate disabled-media to match the media count. - Added python test. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3195 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-02Fix #1088:Nanang Izzuddin
- Fixed SDP negotiation to ignore disabled media (with port 0) in the answer. - Added a SIPp scenario for reproducing the issue. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3192 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-02Fix #1074: Fixed SRTP crypto parser to preverify the key length.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3191 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-26Re #1066, in process_m_answer() of sdp_neg.c:Nanang Izzuddin
- Fixed removing any unmatching formats in the remote-answer to also work with dynamic payload type. - Updated reordering formats priority in the offer based on the answer to also work with dynamic payload type. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3187 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-26Misc (re #1068): AMR codec in IPP codecs should apply Change Mode Request ↵Nanang Izzuddin
(from AMR payload) only when it is different from current encoding mode. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3184 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-17Re #1051: set default new coreaudio backend to disabledBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3177 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-17Merge #1050, #1052, #1053, #1054 into the main trunk.Liong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3175 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-17Merge #1051 into the main trunk.Liong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3174 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-11Re #1068:Nanang Izzuddin
- Fixed max frames-per-packet constants in AMR codec (IPP and passthrough) to be based on PJMEDIA_MAX_FRAME_DURATION_MS setting. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3165 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-07Re #1067: Updated maximum acceptable burst setting in jitter buffer, was ↵Nanang Izzuddin
hardcoded 1s, now it is 3/4 of JB max size and must not be lower than 1s. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3162 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-07Re #1067: Added feature of JB operation tracing to CSV file in stream.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3161 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-07Fixed #1066:Nanang Izzuddin
- Added check if the negotiation result of local-offer/remote-answer has no matching format. - Added routine to remove any unmatching formats in the remote-answer. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3160 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-05Implemented ticket #1065: audiodev register/unregister featureLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3159 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-01Fixed #1064:Benny Prijono
- Removed orphaned third_party/gsm/inc/gsm.h.orig file - Added support for external GSM header in /usr/include/gsm.h (rather than <gsm/gsm.h>) Thanks Christopher Zimmermann for the fixes git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3158 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-30Re #969: Fixed bug division by zero in JB progressive discard code, caused ↵Nanang Izzuddin
by possibility of uninitialized burst level after JB switches status INITIALIZING -> PROCESSING (thanks Janos Tolgyesi and Tamàs Solymosi for the report and investigation). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3154 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-26Misc #1026: moved payload type of G726-32 from static (was 2) to dynamic, ↵Nanang Izzuddin
and also disabled some more L16 codecs (thanks Bram Kuijvenhoven for the report). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3146 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-20More on ticket #998:Benny Prijono
- fixed crash when parsing invalid SDP body, introduced by the last change git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3140 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-12Ticket #1055: Fixed possibility of APS server panic in codec detection on ↵Nanang Izzuddin
few devices, e.g:N95, by adding short delay before closing APS session. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3136 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-07More ticket #1055:Nanang Izzuddin
- Added APS codecs detection. - Minor updates in symsndtest: - added log of supported extended audio formats. - changed libraries order in symsndtest.mmp, this fixes linking error on S60 3rd MR SDK. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3135 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-07Ticket #1055: Fixed infinite loop in stopping APS after initialization failed.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3134 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-04Ticket #1008:Nanang Izzuddin
- Applied VAS AMR playback solution from Forum Nokia. - Fixed AMR playback for VAS and APS in composing DTX/NO_DATA (frame type 15) frame header. - Modified symbsndtest test application to support non-PCM audio. - Minor check fix in pjmedia_codec_mgr_destroy(), caught assertion when VAS factory init failed and media endpoint tried to destroy codec manager (codec mgr hasn't been init-ed). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3116 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-03Ticket #1042, minor updates related to AEC:Nanang Izzuddin
- Added requirement of AEC minimal latency between reference and echo in aectest sample app. - Modified AEC latency in sound port to 3/4 of playback latency. - Few cleaned up echo_common.c: unused vars, a bit stricter latency check (to be at least as much as PTIME). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3115 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-25Minor update on #969: Removed 'experimental feature' comment on progressive ↵Nanang Izzuddin
discard. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3111 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-19More ticket #1038: added to VS6 and VS2005 projectsBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3103 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-19Implemented ticket #1038: null audio deviceLiong Sauw Ming
* pjmedia-audiodev: * implement null audio device * build: * added null audio support on MMP, and Makefile (TODO: vs6 and vs2005) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3102 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-17More ticket #1028: fixed compile error caused by corrupted version of ↵Benny Prijono
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: http://svn.pjsip.org/repos/pjproject/trunk@3100 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-03Ticket #998:Nanang Izzuddin
- 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: http://svn.pjsip.org/repos/pjproject/trunk@3086 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-01Ticket #766:Nanang Izzuddin
- 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: http://svn.pjsip.org/repos/pjproject/trunk@3085 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-29Ticket #1028:Nanang Izzuddin
- Updated codecs docs, more detail info about codec settings. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3083 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-28Ticket #1028 (minor):Nanang Izzuddin
- Fixed missing pjmedia_codec_mgr_destroy() in pjmedia_endpt_destroy(). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3080 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-27Initial implementation of ticket #1016: Native Linux ALSA audio device ↵Benny Prijono
backend implementation git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3079 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-27Ticket #1028: Recommit r3074 with updated codec.h.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3078 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-26Undo r3074 for ticket #1028 as it is missing updated codec.h hence causing ↵Benny Prijono
build errors (thanks Michael Bradley Jr for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3075 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-26Ticket #1028:Nanang Izzuddin
- 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: http://svn.pjsip.org/repos/pjproject/trunk@3074 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-25Misc (#1026): missed PLC availability check in stream get_frame_ext().Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3072 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-21Related to #969: make maximum PLC generated frames configurable ↵Benny Prijono
(PJMEDIA_MAX_PLC_DURATION_MSEC) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3067 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-20Ticket #969:Nanang Izzuddin
- 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: http://svn.pjsip.org/repos/pjproject/trunk@3065 74dad513-b988-da41-8d7b-12977e46ad98