summaryrefslogtreecommitdiff
path: root/pjmedia/src
AgeCommit message (Collapse)Author
2006-10-16Fixed bug in media UDP transport: when recv() returns error (e.g. ICMP ↵Benny Prijono
packet is received on Windows), transport will be stopped! [thanks Tomer] git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@773 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-16Fixed missing #include <pjmedia/errno.h> in nullsound.cBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@772 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-13Updated PortAudio to latest version for MacBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@770 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-12Fixed bugs in pasound.c again, this time it is suspected that two ↵Benny Prijono
input/output streams will be called by different threads, while pasound.c only expect it to be called by the same thread [thanks Norman Franke] git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@766 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-11Changed pasound.c to open multiple streams when input/output are on ↵Benny Prijono
different devices git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@762 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-11Fixed missing pj_snd_get_info() in nullsound.cBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@761 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-10Changed pasound.c to handle situation when NULL is passed as input/output ↵Benny Prijono
buffer by PortAudio git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@760 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-09Changed pasound.c to get the default sound devices from the host API's ↵Benny Prijono
default sound device rather than relying on device ID zero for the default device [thanks Norman Franke] git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@759 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-03Fixed compilation error in tone generator when using fixed point.Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@747 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-27Added pjmedia_snd_stream_get_info() function.Benny Prijono
** NOTE SOUND DEVICE IMPLEMENTORS: YOU'LL NEED TO IMPLEMENT THIS FUNCTION TOO *** git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@744 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-25Fixed misleading log message from the sound port about EC being suspended ↵Benny Prijono
when actually there's no EC being used. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@740 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-25Tests with other user agents revealed some bugs whichBenny Prijono
have been fixed below: - some UAs sends "telephone-event/8000/1" instead of "telephone-event/8000", which caused SDP negotiation to fail. Fixed in sdp_neg.c. - codec name was (incorrectly) compared case-sensitively, causing negotiation to fail. Fixed in sdp_neg.c. - Also improved error reporting in SDP negotiation by introducing few more error codes. - Added Warning header in Not Acceptable response sent by pjsip_inv_session when SDP negotiation fails. - PJSUA-LIB will try to negotiate both SDPs before sending 100 response. - Fixed bug in iLBC codec when setting the mode to 30. Also: - Echo cancellation by default is disabled now since it doesn't seem to work. Further investigation needed. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@738 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-22Fixed few bugs that seem to have been introduced by new dialog Benny Prijono
locking algorithm: - Fixed crash in PJSUA-API when initiating client subscription - Fixed another crash in PJSUA-API when hanging-up call Also fixed SDP negotiator: - add a=inactive when rejecting media line Also increase maximum log size from 1500 to 2000 since some SIP packet is quite large. A little bit of Warning: ** THIS MAY AFFECT APPLICATION'S STACK USAGE ** git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@734 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-21Fixed capture device enumeration bug in DirectSound, and changed SDP ↵Benny Prijono
generation to put the IP address instead of hostname in the SDP origin field since hostname may not be setup correctly. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@732 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-20Automatically suspend AEC when nothing is connected to the sound port in the ↵Benny Prijono
bridge, and resume as soon as frames are transmitted. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@731 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-19Fixed race condition bug when initializing SDP parser on multi-processor machineBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@730 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-18Support for reading non-canonical WAV file in WAV file player port.Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@727 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-17Now really checked in the new PLC software!Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@724 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-17Removed G.711 Annex I PLC from the source (because of possible ↵Benny Prijono
licensing/patent infringement issues) and replace it with Steve Underwood's PLC implementation which is distributed under dual GPL/LGPL license. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@723 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-12Added EOF callback and get_size() in pjmedia_mem_capture port.Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@706 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-11Fixed bug in media UDP transport: when transport is created with create(), ↵Benny Prijono
no IP address is given. This caused get_info() to return 0.0.0.0 as the transport address. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@705 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-11Added EOF callback in memory playback port.Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@704 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-11Fixed bug in resample port: put/get buffers are allocated with the wrong ↵Benny Prijono
size (thanks Danya) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@703 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-05Added volume control to indivual tone enqueued to the tone generator.Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@694 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-02Added multi-purpose tone generator in PJMEDIA (tonegen.[hc])Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@693 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-07Change set_ec_tail() API to set_ec() in sound port, also change suppressor ↵Benny Prijono
to reduce mic signal by division rather than zeroing the signal. Also moved out VAD and EC settings to config.h. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@658 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-06Change the silence suppressor to use the adaptive silence detector.Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@655 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-06Change AEC into generic echo canceller framework with either AEC or simple ↵Benny Prijono
echo suppressor backend can be selected during runtime. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@653 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-04Fixed error in setting up tail length in sound_portBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@650 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-04More work on the AEC (including changes in PJSUA), embed the AEC in ↵Benny Prijono
sound_port, reduce DirectSound buffer from 32 to 16, and fixed ARM compilation for MSVC WinCE target. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@648 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-04More experimentation with AEC: (1) added media port to create bidirectional ↵Benny Prijono
port from two unidirectional ports, (2) split AEC functionality into AEC algorithm (aec.h) and AEC media port (aec_port.h), (3) Added the AEC functionality in the sound_port.c. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@646 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-04Removed the constness of the captured frame from pjmedia_snd_rec_cb ↵Benny Prijono
specification (experimental, to support AEC since AEC needs to modify the buffer). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@645 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-04Experimental change in PJMEDIA dsound.c DirectSound backend: (1) Don't raise ↵Benny Prijono
thread priority, and (2) when capturing multiple frames from the microphone, do the same in the playback direction. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@644 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-02Added experimental AEC media port (aec_port.[hc]) based on Speex AEC in ↵Benny Prijono
pjmedia and pjsua-lib. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@642 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-01Added simple WinCE application:Benny Prijono
- added pjsua_wince in pjsip-apps, which is a simple SIP UA application just to broadly test pjsip/pjmedia on WinCE. - Fix name conflicts in xpidf.c (e.g. ATOM variable conflicts with ATOM type in WinCE SDK). - Fix speex compilation errors on Wince (e.g. inline keyword is not recognized, replaced with PJ_INLINE). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@641 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-31Really add the iLBC files into SVN now (duh!).Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@638 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-31- Added iLBC codec (experimental) with the following features:Benny Prijono
- configurable default decoder mode (20 or 30), - encoder mode follows the mode specified in SDP fmtp from the remote's SDP, - silence detector uses pjmedia's, - PLC uses iLBC's PLC, - perceptual enhancement (penh) is configurable via codec param, as usual. - iLBC mode is configurable in pjsua with --ilbc-mode option. - Added packet lost simulation in pjmedia's UDP transport and in pjsua (with --rx-drop-pct and --tx-drop-pct options). - Increase default buffer count in DirectSound to 32 frames to make it more resilient to CPU disruption. - Specify and parse fmtp mode in SDP for codecs that need it. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@637 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-29Added pjmedia_port_info_init() to fill in pjmedia_port_info structure, ↵Benny Prijono
avoiding manual initialization and thus improves consistency (and probably reduces size by a tiny bit). This involves modification in quite few places. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@633 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-27- Added splitter/combiner port (splitcomb.c)Benny Prijono
- Added function to initialize pjmedia_port_info (still unused though) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@631 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-26- Bring speex codec up to date with their SVN trunkBenny Prijono
- Speex codec should work in FIXED_POINT mode when PJ_HAS_FLOATING_POINT is set to zero. - ulaw2linear will return zero if zero is given (this would make the VAD works better, and it also fixed click noise when call is established/hangup). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@628 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-26Fixed rather loud clicking/tick noise when call is established. This was ↵Benny Prijono
caused by the PLC not properly cleared before it is reused for the next call git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@627 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-22Added PJMEDIA_RTCP_IGNORE_FIRST_PACKETS macro to let application decides how ↵Benny Prijono
many first RTP packets to ignore when calculating jitter git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@618 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-17Set the SDP parser to allow blank newline at the end of the messageBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@609 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-04Split ulaw/alaw algorithm from g711.c to alaw_ulaw.c to break circular ↵Benny Prijono
dependencies between g711 codec and silence detector git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@584 74dad513-b988-da41-8d7b-12977e46ad98