summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsua-lib
AgeCommit message (Collapse)Author
2011-10-24Re #1395: Backport of PJSIP 1.x branch into PJSIP 2.0 trunkLiong Sauw Ming
* Backport of r3557:r3832 TODO: ticket #1268 (Option for automatic/manual sending of RTCP SDES/BYE for the stream) for video stream. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3841 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-23Re #1300: Implemented symmetric payload type in generating SDP answer in SDP ↵Nanang Izzuddin
negotiator. This should work for all codecs, audio & video. Can be disabled at compile-time using PJMEDIA_SDP_NEG_REWRITE_ANSWER_PT macro setting. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3837 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06Misc (re #1370): fixed change video capture device for a call implementationBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3799 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06Re #1266:Liong Sauw Ming
* Make sure that all media transports are already created and completed to fix the assertion when making call using ICE. * Change the callback pjsua_med_tp_state_cb to return pj_status_t (instead of void) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3796 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06Misc (re #1370): calling pjmedia_vid_port_start() more than once had caused ↵Benny Prijono
freezing capture video if preview is enabled before making video calls git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3793 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-06Misc (re #1370): minor fix compile warning on VS2005 about comparison ↵Nanang Izzuddin
between int & unsigned int. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3790 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-04Fixed missing updating of call_med's cap_dev after fast switching (re #1362)Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3788 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-04More re #1362: actually try to use the device switching capability in ↵Benny Prijono
pjsua-lib, in pjsua_call_set_vid_strm(PJSUA_CALL_VID_STRM_CHANGE_CAP_DEV) operation git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3787 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-04Added pjsua_call_vid_stream_is_running() and pjmedia_vid_stream_is_running() ↵Benny Prijono
API (closes #1379) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3786 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-03Re #1266: Modified pjsua_media_channel_deinit() to resume deinit in the ↵Liong Sauw Ming
callback (instead of returning PJ_EBUSY) and make sure the right transport is used before calling dlg_respond() git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3780 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-03Fix #1358:Nanang Izzuddin
- Fixed wrong place of video capture & render event subscription initialization, causing it getting reinitted while being subscribed. - Moved capture/render event unsubscription to be after capture/render port stopped. Also restart the capturer (after being stopped for unsubsciption & stream detachment) only when the capturer is being used by other, e.g: stream or preview. - Fixed error handling in pjsua_call_reinvite(), call pjsip_dlg_dec_lock() only if dlg is successfully acquired. - Minor: added [un]subscribtion log to event. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3778 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-03Closed #1266:Liong Sauw Ming
Handle incoming calls when media transport is created asynchronously. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3777 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-29Closed #1361: codec API change. Details:Benny Prijono
- changed encode(), packetize(), unpacketize(), and decode() to encode_begin(), encode_more(), and decode() - codec has new "packing" setting - updated stream, aviplay, codec-test, and stream-util due to above - minor doxygen documentation fixes here and there git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3776 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-28Re #1266: Fixed failed automated tests for ICELiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3775 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-27Close #1360: implementated video orientation (currently only for video devices).Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3774 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-23Closes #1377: fixed video stream cleanup to reset back cap_win_id & ↵Nanang Izzuddin
rdr_win_id value to PJSUA_INVALID_ID after capture/render device released from the call stream. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3772 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-22Re #1266: Fixed crash when accepting incoming call.Liong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3767 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-21Re #1266: Asynchronous media transport creationLiong Sauw Ming
* Add feature that allows ICE media transport to be created asynchronously. * Add new callback, e.g. on_call_media_transport_state(call_id, state_struct) to report media transport status. * Handle outgoing calls while creating media transport asynchronously. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3763 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-20Related to preview (re #1340): handle problems with starting or stopping ↵Benny Prijono
preview during a call git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3758 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-19Implemented native video preview support. This closes #1340Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3756 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-18Modified the libraries to use the new log indentation feature re #1372Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3753 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29Fixed #1357: temporarily disabled event in pjsua due to crashingBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3737 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-29Fixed crash when call is disconnected while video is not fully running (e.g. ↵Benny Prijono
ICE negotiation failed). [Re #1263] git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3732 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-26Fixed #1352:Nanang Izzuddin
- Updated maximum video tee ports in pjsua video preview to (PJSUA_MAX_CALLS+1). - Removed video tee maximum ports compile-time setting, MAX_DST_PORT_COUNT. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3725 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-25Re #1351: option to initially hide video preview window to avoid floating ↵Benny Prijono
window. Also added pjsua_vid_preview_param_default() git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3724 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-18Re #1347: Fixed case 1, 2, and 3 above:Nanang Izzuddin
- Generating a deactivated pre-answer media by cloning remote media. There was a case that the media transport in the offer is bad/unrecognized, PJSUA still generated the preanswer with RTP/AVP. - When generating answer, it should apply max media count (max_audio/video_cnt in account setting) after SDP negotiation instead of in the pjsua_media_channel_init()). This will require PJSUA to perform SDP re-negotiation when the SDP answer get changed. - Fixed media priority/acceptibility sorting, e.g: media with RTP/SAVP transport still got acceptable score in SRTP disabled mode, this messed up the algorithm of applying max media count setting. - Fixed SDP negotiator to skip format match in generating answer when the pre-answer provided is deactivated (port 0). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3714 74dad513-b988-da41-8d7b-12977e46ad98
2011-08-15Re #1263 (Video API):Benny Prijono
- Added PJSUA_CALL_VID_STRM_NO_OP to occupy value 0 for the enum - Added pjsua_call_vid_strm_op_param_default() to initialize pjsua_call_vid_strm_op_param - Renamed pjsua_call_get_transport_info() to pjsua_call_get_med_transport_info() git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3694 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-26Close #1339: added renderer device ID info into video window info.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3684 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-26Fix #1338: Updated pjsua_modify_acc() to handle the new account config ↵Nanang Izzuddin
fields: max_audio_cnt, max_video_cnt, vid_in_auto_show, vid_out_auto_transmit, vid_cap_dev, vid_rend_dev. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3683 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-23Misc (re #1320): fixed compilation error if SRTP is disabled. Thanks Bo Shi ↵Benny Prijono
for the report git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3678 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-22Re #1332: Added type definition of video window handle.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3675 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19Fixed #1271: protected all video features with PJMEDIA_HAS_VIDEO macro setting.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3667 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19Re #1326:Nanang Izzuddin
- Fixed compile warnings on vs2005 - Fixed compile error when PJMEDIA_HAS_VIDEO set to 0 on vs2005 git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3666 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19Re #1326: Initial code integration from branch 2.0-dev to trunk as ↵Nanang Izzuddin
"2.0-pre-alpha-svn". git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3664 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05Re #1250: Updated the year in all copyright texts with 2011!Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3553 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-14Fixed #1232: Possible memory corruptions caused by pjsua_acc_modify() ↵Benny Prijono
(thanks Viktor Krikun for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3538 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-29Re #1224: Fixed silly bug in pjsua_acc_modify(): incremented wrong loop ↵Nanang Izzuddin
counter in updating credential info. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3490 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-23Bug re #1161: the user header list was not cloned properlyBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3474 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-16Fixed #1209: new enhancement: Option to update Contact URI when sending ↵Benny Prijono
re-INVITE or UPDATE git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3452 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15Re #1205: If refresh timer is already running, it will be cancelled and ↵Liong Sauw Ming
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: http://svn.pjsip.org/repos/pjproject/trunk@3444 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-15Fixed #1205: Configurable delay before registration refresh setting in ↵Liong Sauw Ming
pjsua_acc_config git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3441 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-11Fixed #1204: Support for refreshing audio device list.Liong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3438 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-01Fix #1203: iPhone OS background mode detectionLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3429 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-28Initial implementation for re #1202 (PJILB System Information API) for ↵Benny Prijono
Linux/Unix git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3423 74dad513-b988-da41-8d7b-12977e46ad98
2011-02-11Re #1161: Support for adding custom presence subscription headers.Liong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3412 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-02Fixed #1170 (Assertion when receiving updated SDP offer with all media lines ↵Benny Prijono
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: http://svn.pjsip.org/repos/pjproject/trunk@3383 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-01Misc (re #1151): fixed pjsua_acc_config_dup(), some fields, i.e: ↵Nanang Izzuddin
contact_params, contact_uri_params, and auth_pref, were not duplicated properly (thanks Roman Grachev for the report and the patch). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3377 74dad513-b988-da41-8d7b-12977e46ad98
2010-12-01Fix #1165:Nanang Izzuddin
- 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: http://svn.pjsip.org/repos/pjproject/trunk@3376 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-25Fix #1163:Nanang Izzuddin
- 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: http://svn.pjsip.org/repos/pjproject/trunk@3374 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-17Fixed #1159: UPDATE is sent to lock codec even though call is being disconnectedBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3371 74dad513-b988-da41-8d7b-12977e46ad98