Commit Graph

3318 Commits

Author SHA1 Message Date
Benny Prijono dec3a37dbc Fixed #1209: new enhancement: Option to update Contact URI when sending re-INVITE or UPDATE
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3452 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-16 03:52:20 +00:00
Benny Prijono 854ec1a682 Re #1208 (misc): added PJMEDIA_HAS_VIDEO macro as the top level macro to disable video features
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3451 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 11:29:53 +00:00
Benny Prijono 867280b9eb Re #1186 (SDP works); added few more APIs for SDP generation:
- pjmedia_endpt_create_base_sdp(): create blank SDP
 - pjmedia_endpt_create_audio_sdp(): create m=audio SDP media
 - pjmedia_endpt_create_video_sdp(): create m=video SDP media


git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3450 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 11:28:24 +00:00
Benny Prijono 51a4a2924a Re #1208 (misc): bug in frame_size calculation in PJMEDIA_FSZ() causing results to be truncated
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3449 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 11:25:00 +00:00
Benny Prijono 8e0fa3cff9 Re #1208 (misc): bug in resample_port, the port info is accessed before it is initialized
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3448 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 11:23:48 +00:00
Benny Prijono 6c7e95ee59 Re #1182: renamed pjmedia_vid_stream to pjmedia_vid_dev_stream due to conflict with "the real" vid_stream
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3447 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 11:22:04 +00:00
Benny Prijono fe74aec894 Fixed #1207: Deprecation of pjmedia_session:
- add new APIs in stream so that app can use this directly instead of via session
 - moved some APIs from session to stream


git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3446 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 11:20:35 +00:00
Benny Prijono 1641953c2d Re #1182: added the video stream to pjmedia Makefile
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3445 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 11:12:53 +00:00
Sauw Ming 8ad06c5f36 Re #1205: If refresh timer is already running, it will be cancelled and rescheduled with the new delay. This can be useful if app wants to correct the delay after it checks the timeout in the callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3444 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 10:49:59 +00:00
Sauw Ming 744e0db987 Misc (re #1175) (thanks to Seth Hinze for the patch):
* uri_test:
  Fixes a divide by zero error when the benchmark is run on a really fast machine.
* presence:
  Fixes a compiler warning about potential referencing of an uninitialized variable.
* echo_speex:
  Allow for compilation when PJMEDIA_HAS_SPEEX_AEC is not defined.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3443 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 05:09:29 +00:00
Sauw Ming d3c8e63df7 Closed #1206: Add pjmedia_stream API to get the last frame type retrieved from the jitter buffer.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3442 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 05:07:01 +00:00
Sauw Ming 9b80d51c09 Fixed #1205: Configurable delay before registration refresh setting in pjsua_acc_config
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3441 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 03:20:37 +00:00
Sauw Ming aa3c0d393f Re #1204:
* Update audio device's list after refreshing the device.
 * Fixed WMME macro.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3440 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15 03:16:33 +00:00
Nanang Izzuddin 48687d7a6b Re #1204: Added audio device list refresh into auddemo.c
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3439 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-11 08:01:18 +00:00
Sauw Ming 98766c7947 Fixed #1204: Support for refreshing audio device list.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3438 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-11 06:57:24 +00:00
Nanang Izzuddin fea635a89b Implementation of re #1202 (PJLIB System Information API) on Symbian/S60 platforms.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3437 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-08 06:30:34 +00:00
Sauw Ming c808952e7c Re #1202: Fixed compilation preprocessor for os_info so that it's more robust across various device and simulator SDKs.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3436 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-02 10:53:24 +00:00
Nanang Izzuddin 678b2f82e0 Re #1182:
- Added remote frame-rate detection in to video stream.
 - Fixed bitrate settings in ffmpeg codec.
 - Fixed SDL dev to update internal SDL info when format changed.
 - Minor fixes/updates, e.g:
   - added cleanup steps, fixed logs, etc, in sample app simpleua.c and vid_streamutil.c
   - fixed/added docs of the new APIs in the jitter buffer.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3435 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-02 08:37:31 +00:00
Sauw Ming 056b4fdc35 Re #1202: Fixed compilation error in os_info_iphone.m on iPhoneSimulator
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3434 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-02 06:40:55 +00:00
Sauw Ming 0b7864e408 Re #1202: Fixed detection for iPhone simulator.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3433 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-02 02:44:57 +00:00
Nanang Izzuddin 9861070228 Re #1182:
- Fixed ffmpeg codec: decoding buffer size check (should not use assertion), reset output bit_info before decoding, removed unused code of auto resize when decoder output size changed.
 - Fixed bug in sdl_factory_default_param() of sdl_dev.c in device direction check.
 - Fixed compile errors sample app vid_streamutil.c of bad local variable definiton.
 - Updated sample app vid_streamutil.c default renderer size to 640 x 480.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3432 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-01 17:40:17 +00:00
Sauw Ming 4a20bc808a Re #1182:
* support for format modification after creating video port (currently for renderer with active role only).
 * support for format modification after opening SDL renderer.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3431 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-01 15:55:34 +00:00
Sauw Ming fe42f0c7c3 Re #3428: Fixed aconfigure for iOS
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3430 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-01 10:42:11 +00:00
Sauw Ming c451f04917 Fix #1203: iPhone OS background mode detection
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3429 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-01 07:47:37 +00:00
Sauw Ming 6a970a3e5a Implementation of re #1202 (PJLIB System Information API) on iPhone OS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3428 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-01 05:25:27 +00:00
Benny Prijono 155791d5e5 Misc (re #1175): fixed link error in OpenBSD 4.6 caused by lack of sched_get_priority_min() and sched_get_priority_max()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3427 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 23:58:14 +00:00
Benny Prijono 4df37e9070 Re #1202 (pjlib sysinfo): testing on OpenSolaris and added pjlib-test entry
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3426 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 22:19:23 +00:00
Nanang Izzuddin 235e1b4fa6 Re #1182:
- Renamed vstreamutil.c to vid_steamutil.c just for filename format consistency reason.
 - Updated sample app simpleua.c and vid_streamutil.c to sync with updated API, e.g: strip session usage, two media ports exported video streams for each dir.
 - Added vid_streamutil.c capability to be able to stream video file (involving transcoding when video codec used in the file different to the video stream codec), also updated AVI player and ffmpeg codecs to be able to read and decode XVID/MPEG4 codec.
 - Fixed bug wrong media type check in stream.c and vid_stream.c in creating stream info from SDP.
 - Minor update: docs, logs, app samples makefiles.



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3425 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 18:59:47 +00:00
Benny Prijono de5c5edce9 Implementation of re #1202 (PJLIB System Information API) on Win32 and Windows mobile targets
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3424 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 08:28:48 +00:00
Benny Prijono e3e6580803 Initial implementation for re #1202 (PJILB System Information API) for Linux/Unix
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3423 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 07:44:19 +00:00
Benny Prijono 29531ae6bb Re #1174 (coreaudio_dev work): minor changes to replace "Error" message with "Warning" for non-fatal errors
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3422 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 07:18:33 +00:00
Benny Prijono 96d4dc6f53 Re #1175 (Misc fixes): fixed realclean and distclean target for Python makefile
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3421 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28 07:16:08 +00:00
Nanang Izzuddin a9c1cf45be Re #1182:
- Added video stream interface in vid_stream.h, the video stream will be able to handle different video formats in encoding and decoding direction.
 - Renamed video device stream class identifiers from 'pjmedia_vid_stream*' to 'pjmedia_vid_dev_stream*' as 'pjmedia_vid_stream' is used by video stream interface.
 - Added ffmpeg video capability to be able to parse SDP format param for H263 and also decide video format for encoding direction based on remote preference and local format-capability setting.
 - Added some new APIs in jitter buffer for handling video stream: pjmedia_jbuf_put_frame3(), pjmedia_jbuf_get_frame3(), pjmedia_jbuf_peek_frame(), and pjmedia_jbuf_remove_frame().
 - Moved pjmedia_stream_info_from_sdp() from session to stream




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3420 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-24 07:47:55 +00:00
Nanang Izzuddin c85a00d1ca Re #1186:
- Added API pjmedia_sdp_conn_cmp() to compare SDP connection.
 - Added internal API pjmedia_stream_info_parse_fmtp() to parse SDP format parameter of specified payload as a helper function for generating stream info from SDP.
 - Modified pjmedia_endpt_create_sdp() to be able to generate SDP media line for video.




git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3419 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-24 07:16:31 +00:00
Nanang Izzuddin ecaaec06e0 Re #1182: Reverted back video part in stream.h/c
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3418 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-24 05:14:34 +00:00
Nanang Izzuddin b3756b38a2 Re #1200: updated IPP codecs to support IPP v7.0 on MSVC, only include "ippsr.lib" in auto link when IPP major version is 6 or below.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3417 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-22 07:31:01 +00:00
Nanang Izzuddin d8cc3e7572 Fix #1199:
- Modified G722 frame time to 10ms (was 20ms) and frame per packet to 2 (was 1).
 - Updated the detection mechanism of remote G722 frame-length in the stream to be flexible to any G722 frame length setting (was assumed to be always 20ms).



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3416 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-18 09:34:28 +00:00
Nanang Izzuddin 6cf25ceac8 Misc (re #1175): fix sample app pcaputil.c bug, it always fails in reading the first/reference packet when the codec is not PCMU (default payload type was hardcoded to zero/PCMU).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3415 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-17 15:59:52 +00:00
Nanang Izzuddin 462fb1dd12 Misc (re #1175): fixed possible division-by-zero bug when receiving problematic G722 payloads (e.g: sized less than 160 bytes) and remote clock-rate/timestamp-span detection is active (PJMEDIA_HANDLE_G722_MPEG_BUG is set). Thanks Erik Waling for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3414 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-17 09:08:11 +00:00
Sauw Ming aa6fd41de9 Re #1174: fixed crash when pjsua is restarted, causing inClientData to be invalid since AudioSessionInitialize can only be called once.
Re #1175: cleaning up interruption and audio route handling in coreaudio for iOS. In the case of interruption, there is no need to reinstantiate the audio unit (a simple restart will do), while for audio route change, nothing needs to be done.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3413 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-15 05:33:23 +00:00
Sauw Ming 5c2f6da4ec Re #1161: Support for adding custom presence subscription headers.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3412 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-11 07:39:14 +00:00
Sauw Ming 5b0f2308ee Re #1175: Modified default core audio unit used on iOS from VPIO to RemoteIO. To use VPIO, application needs to specify a nonzero value for the PJMEDIA_AUD_DEV_CAP_EC capability.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3411 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-10 06:41:39 +00:00
Sauw Ming f3cfb88bf0 Re #1192: Fixes stereo support.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3410 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-31 11:27:48 +00:00
Benny Prijono a5edbd9d28 Re #1197: also increase MAX_IMMEDIATE_PACKET from 10 to 50 to make it more resilient against errors
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3409 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-21 07:35:24 +00:00
Benny Prijono a61c43d571 Fixed #1197: WSAECONNRESET errors on Windows 2000 or 2003 may cause UDP transport to stop working
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3408 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-21 07:15:22 +00:00
Sauw Ming 9ef51380cf Re #597: Modify buffer padding code for EOF event (thanks to Thomas Johnson).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3407 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-21 01:30:37 +00:00
Sauw Ming 3e7630a839 Re #3398: Fixes assertion in the resample procedure and callback.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3406 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-20 03:32:14 +00:00
Sauw Ming 0f35826415 Fixes #597: Error reading WAV files when there are extra chunks after DATA chunk.
Wav player will now just play data chunks in wav files and ignore others.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3405 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-19 10:23:58 +00:00
Sauw Ming 4fc590fd4e Fix #1195: assertion during thread registration in coreaudio and portaudio's input/output callbacks on Mac OS X and #1196: using system's default audio input/output device instead of first available device.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3404 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-13 16:42:21 +00:00
Sauw Ming 1e376aa799 As compared to iOS SDK 3.x, in iOS SDK 4.x, __IPHONE_OS_VERSION_MIN_REQUIRED is defined only when -miphoneos-version-min is used (see the SDK's AvailabilityInternal.h). This causes coreaudio_dev to be compiled using RemoteIO (instead of VPIO) and without Bluetooth support. This revision fixes #1194.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3403 74dad513-b988-da41-8d7b-12977e46ad98
2011-01-04 03:41:43 +00:00