Commit Graph

3070 Commits

Author SHA1 Message Date
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
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
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
Sauw Ming 8e799128a1 Re #1184: Adding pjmedia_clock_src for the purpose of audio and video synchronization and also to provide synchronization mechanism between two medias in general.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3402 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-30 16:31:16 +00:00
Sauw Ming b1b17d221e Fixed #1184:
* Move the AVI playback from pjmedia-test to new aviplay.c sample application
 * Take the input file from cmdline
 * Synchronize audio and video
 * Remove all codecs related hardcodes from the file 

Re #1193: (no. 6: duplicate fps and frame_rate in pjmedia_format and pjmedia_vid_param)
 * Remove the frame_rate in pjmedia_vid_param
 * Use pjmedia_format's fps in videoport, sdl_dev, and colorbar_dev
 * Prevent overflow in ptime calculation from frame_rate



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3401 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-20 11:02:48 +00:00
Sauw Ming ab494302d8 Re #1183:
* Add PJMEDA_VID_DEV_CAP_OUTPUT_WINDOW capability to ios_dev to allow application to provide their own window for the renderer to display the video.
 * Perform image setting function in the main thread.
 


git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3399 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-17 13:17:23 +00:00
Sauw Ming 6e6c215f70 Fixed #1183
* QT capture device for Mac
 * iOS device for iOS (capture device only works for iOS 4.0 or above)
 * Add NSAutoReleasePool for sdl_dev (Mac)
 * Add NSAutoReleasePool for vid_dev_test (Mac)
 * build system for compilation of Obj-C files (.m)



git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3395 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-14 13:03:10 +00:00
Nanang Izzuddin e43ee729d4 Re #1176: fixed build config for MSVC2005
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3394 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-10 20:55:13 +00:00
Benny Prijono 69b1f82cae Re #1176: fixed link error in GNU build system
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3393 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-10 11:33:01 +00:00
Benny Prijono c45d951901 Migration of current video works from private repository to this repository. This closed #1176
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3392 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-10 11:04:30 +00:00
Benny Prijono 7f5aa6f127 Created 2.0-dev branch for 2.0 development.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3391 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-07 10:52:53 +00:00
Benny Prijono 4034240ebd Changed version to 1.8.10-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3390 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-07 08:50:57 +00:00
Benny Prijono 3913b7e471 Changed version to 1.8.10
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3388 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-07 06:26:30 +00:00
Benny Prijono ae6f32d32e Fixed #1160: Option to bypass RTP payload type verification in the stream (thanks Johan Lantz for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3387 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-06 04:25:44 +00:00
Sauw Ming 5321ca7759 Misc (re #1151): Fixed crash in coreaudio_dev when there is no call during an interruption.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3386 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-05 14:03:31 +00:00
Benny Prijono 9d33c95716 Misc (re #1151): respond incoming re-INVITE with 491 instead of 500 if we are waiting for response for our outgoing re-INVITE. If we are currently processing another incoming re-INVITE, then respond with 500, as it is now
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3385 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 11:21:01 +00:00
Nanang Izzuddin fe30a53008 Re #1165: fixed SRTP transport to not update the SRTP activation flag, i.e: bypass_srtp, in transport_encode_sdp(), as it shouldn't change the media session states.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3384 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 10:56:27 +00:00
Benny Prijono 0324ba5b56 Fixed #1170 (Assertion when receiving updated SDP offer with all media lines removed):
- pjsua_media.c checks if audio media is present in the offer; if not, do not set any answer
 - sip_inv.c checks if app has supplied an answer after on_rx_offer() callback is called, and returnd 488 (Not Acceptable) if not (previously, it will return 200/OK without SDP!)
 - added a SIPp scenario file to reproduce this


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3383 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 10:41:46 +00:00
Benny Prijono 964bbf6f0a Re #1166 (SDP offer/answer glare): added SIPp scenario file to reproduce this
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3382 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 10:13:46 +00:00
Benny Prijono 1ec65e83ae Fixed #1166: Detection of offer/answer glare condition with re-INVITE
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3381 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 10:08:59 +00:00
Nanang Izzuddin 5d86b7b79b Fix #1171, fixed issues in pjmedia_codec_mgr_set_default_param():
- updated the releasing of the old pool to be done after the new codec param is copied
 - fixed the double dec_fmtp copy loop, one of them should be enc_fmtp copy loop instead




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3380 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 06:12:19 +00:00
Nanang Izzuddin c155bb96e0 Misc (re #1151): fixed bug in pjmedia_session_enum_streams(), used wrong pointer for the stream info source.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3379 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 04:13:57 +00:00
Nanang Izzuddin 6d0e23c6f3 Misc (re #1151): Fixed pjsip_multipart_create() in initializing media type, should use pjsip_media_type_init() (thanks Dan Price for the report).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3378 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02 03:46:11 +00:00
Nanang Izzuddin 5fc7fcfb3b Misc (re #1151): fixed pjsua_acc_config_dup(), some fields, i.e: contact_params, contact_uri_params, and auth_pref, were not duplicated properly (thanks Roman Grachev for the report and the patch).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3377 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-01 08:53:52 +00:00
Nanang Izzuddin 3150d8bc2c Fix #1165:
- Fixed pjsua_media_channel_create_sdp() to re-calculate audio index of the remote offer, instead of using existing audio index calculated by pjsua_media_channel_init(), as for subsequent SDP offer/answer, pjsua_media_channel_init() may not be called.
 - Fixed SRTP transport to be able to switch SRTP status from active to inactive/by-passed and vice versa.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3376 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-01 08:20:28 +00:00
Benny Prijono 789794904e Fixed #1164: Possible crash in PUBLISH session if network connectivity is lost between two requests (thanks Nikolay Popok for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3375 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-29 14:49:37 +00:00
Nanang Izzuddin ec9190096e Fix #1163:
- Fixed lock codec to always be done after successful media update, and pend the lock codec until call state CONFIRMED if media update is done in call state EARLY but remote does not support UPDATE method.
 - Added additional checks in lock_codec() and perform_lock_codec(), e.g: skip locking codec when media deactivated.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3374 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-25 09:27:06 +00:00
Benny Prijono 5fa556e5f1 Misc (re #1151): support for sched_get_priority_max/min in OpenBSD (thanks David Coppa for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3373 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-18 07:14:07 +00:00
Benny Prijono 434baa4fc6 Re #1020 (Support for SIP outbound and Path extension (RFC 5626)): added pjsua --outb-rid option to set outbound reg-id parameter for the account
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3372 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-18 05:15:04 +00:00
Benny Prijono 0249327c6b Fixed #1159: UPDATE is sent to lock codec even though call is being disconnected
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3371 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-17 09:15:04 +00:00
Benny Prijono 3f4b8d7a36 Re #1151 (misc): also enable plain UDP SIP transport when enabling IPv6, since many UA will use IPv4 in their Contacts (keyword: sipit27)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3370 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-17 09:05:10 +00:00
Benny Prijono ae51ee0528 Fixed #1158: Possible wrong multiplexing of STUN traffic inside TURN Data Indication
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3369 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-17 09:00:17 +00:00
Benny Prijono e49e620d77 Re #1020: fixed pjsua_acc.c, wrong allocation length for outbound contact.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3368 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-16 07:01:25 +00:00
Benny Prijono 2562b75e03 re #1020 (SIP outbound): remove sip.instance and reg-id parameters from the Contact when re-registering if the server does not support SIP outbound
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3367 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-16 06:01:38 +00:00
Benny Prijono b54719ff91 Implemented SIP outbound (closed #1020)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3366 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-16 03:07:46 +00:00
Benny Prijono 70749d787a Re #1151 (misc fixes): fixed error in pjsua application when handling malformed URI in sending arbitrary request
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3365 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-15 22:55:21 +00:00
Nanang Izzuddin 34fa0ec0d9 Fix #1157: Fixed Symbian SSL socket to re-align the write (circular) buffer only when all pending write requests are completed, i.e: inside the write completion callback and when the buffer is empty.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3364 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-12 07:42:58 +00:00
Benny Prijono 1a1f51e4ac Fixed #1156: New option to ignore bad NOTIFY presence message body (thanks Johan Lantz for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3363 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-10 12:13:46 +00:00
Benny Prijono fb1d2ddb8a Misc (re #1151): fixed the compile time switch to use iLBC codec on iPhone
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3362 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-03 07:33:07 +00:00
Benny Prijono c84ba48757 Fixed #1155 (Run-time option to disable the use of "rport" in outgoing requests (thanks Marcus Froeschl for the suggestion)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3361 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-03 06:48:58 +00:00
Benny Prijono 60dc3faebc Fixed #1154 (Run-time option to disable telephone-event in outgoing SDP offer (thanks Marcus Froeschl for the suggestion))
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3360 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-03 06:46:27 +00:00
Nanang Izzuddin 34315ceb93 Misc (re #1151): fixed jitter buffer state 'jb_max_burst' initialization, MAX_BURST_MSEC should be converted to number-of-frame unit (thanks Zhefeng Du for the fix).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3359 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-29 03:27:17 +00:00
Nanang Izzuddin 2f75386b4b Fix #1153: Fixed missing header dependency in pjmedia-codec/types.h, it should include pjmedia/codec.h
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3358 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-28 08:31:42 +00:00
Benny Prijono 4b9089ef44 Misc (re #1151): fixed error in make dep execution if python module is included in compilation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3357 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-26 23:57:22 +00:00
Benny Prijono 91430b2dc4 Fixed #1152 (The base64 decoder should ignore whitespaces in the input). In fact, the base64 decoder now will silently ignore/skip any bad characters.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3356 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-26 23:53:28 +00:00
Benny Prijono eb7bd1d6f2 Changed version to 1.8.5-trunk
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3355 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-21 05:33:03 +00:00
Benny Prijono 6640ad1fe5 Changed version to 1.8.5
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3353 74dad513-b988-da41-8d7b-12977e46ad98
2010-10-21 03:03:42 +00:00