summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsua-lib/pjsua_call.c
AgeCommit message (Collapse)Author
2013-01-11Fix #1605: always re-init media channel for SDP re-offer/answer generation.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4315 74dad513-b988-da41-8d7b-12977e46ad98
2012-12-14Fixed #1599: Fixed bug that caused new contact not being used in ↵Liong Sauw Ming
UPDATE/re-INVITE git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4309 74dad513-b988-da41-8d7b-12977e46ad98
2012-12-13Re #1595: Restrict the fix in r4300 so it only applies to outgoing callLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4307 74dad513-b988-da41-8d7b-12977e46ad98
2012-12-12Fixed #1598: Assertion when sip error code is not set (thanks Peter Koletzki ↵Liong Sauw Ming
for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4306 74dad513-b988-da41-8d7b-12977e46ad98
2012-11-26Fixes #1595: Allow call hangup immediately after outgoing callLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4300 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-08Fixed #1591: Fixed dialog locking in acquire_call() when media transport is ↵Liong Sauw Ming
created asynchronously. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4280 74dad513-b988-da41-8d7b-12977e46ad98
2012-10-02Fixed #1588: State PJSIP_INV_STATE_NULL is called after call has been ↵Benny Prijono
disconnected git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4273 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-28Re #1587: Respond to call replace request with the last provisional response ↵Nanang Izzuddin
sent in the replaced call. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4269 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-28Re #1587:Nanang Izzuddin
- Don't answer call replace request with 200 if the replaced call hasn't reach confirmed state and has UAS role. - Only apply accept_replace_in_early_state when call is in early state. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4268 74dad513-b988-da41-8d7b-12977e46ad98
2012-09-03Fix #1574: Fixed silly mistake in the media channel init condition in ↵Nanang Izzuddin
pjsua_call_answer2(). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4244 74dad513-b988-da41-8d7b-12977e46ad98
2012-08-07Fixed #1412: Account specific NAT settings: STUN, ICE, and TURNBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4218 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-13Fixed #1553: Account setting to disable re-INVITE or UPDATE to lock codecBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4204 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-23Re #1526: r4175 missed PJSUA_UNLOCK() on some failure cases in ↵Nanang Izzuddin
pjsua_call_answer2(). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4176 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-22Fix #1526:Nanang Izzuddin
- Fix incoming call without SDP by delaying media init in on_incoming_call() until call setting is set i.e: via call answer. Note that there is no need to delay the media init in the case of call replace request, the call setting is already set in the incoming call callback, i.e: via on_call_replace_request2() callback or just the current setting of the replaced call. - Fix processing call replace request when the media init is performed asynchronously. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4175 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-20Fixed #1537: Via rewrite: putting the right IP address in Via sent-by for ↵Liong Sauw Ming
outgoing requests git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4173 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-12Close #1534: done.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4164 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-22Fixed #1515: Sound device is not closed when the call fails to connect ↵Benny Prijono
(thanks Régis Montoya for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4145 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-22Re #1514: fixed the incoming call scenario, and changed disconnection code ↵Benny Prijono
from Precondition Failure to Temporarily Unavailable git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4136 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-22Fixed second problem in re #1514: NULL state is reported instead of ↵Benny Prijono
DISCONNECTED state if call is disconnected due to transport (ICE) initialization error git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4135 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-04Fixed #1504: Crash when trying to answer calls but call has been disconnectedLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4118 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-26Fix #1497: reset call->inv to NULL whenever call is terminated prematurely ↵Nanang Izzuddin
(before completely attached to pjsua). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4102 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-24Re #1474: merged r4054-r4079Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4082 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-24Fix #1423:Nanang Izzuddin
- Added provisional media in call for generating initial and subsequent SDP offer/answer. If a reoffer is rejected by peer, the main call media will remain unchanged and the provisional media will be cleaned up (the cleanup is currently delayed until call gets destroyed or another reoffer/answer occurs). - Reenabled media transport dump in pjsua_core.c. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4071 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-23Fixed #1493: Fixed bug in terminating the invite session when accepting ↵Liong Sauw Ming
incoming call. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4068 74dad513-b988-da41-8d7b-12977e46ad98
2012-04-16Re #1446 (misc): Fixed unset sip error code if pjsip_inv_verify_request3() ↵Liong Sauw Ming
failed. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4052 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-30Re #1474: Merged all changes from 1.12 - HEAD (from the 1.x branch)Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3999 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-30Re #1446 (misc fix): Fix call info to display correct invite state Liong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3996 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-28Misc (re #1446): prevent on_call_state() callback from being called before ↵Benny Prijono
on_incoming_call() callback is called git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3990 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-22Re: #1463 (Third party media support). Tnitial work and it works, tested on ↵Benny Prijono
Linux. Details: * add PJSUA_MEDIA_HAS_PJMEDIA macro * move pjmedia specific implementation in pjsua_media.c and pjsua_call.c into pjsua_aud.c * add pjsip-apps/src/third_party_media sample containing: - alt_pjsua_aud.c - alt_pjsua_vid.c * moved pjmedia_vid_stream_info_from_sdp() into pjmedia/vid_stream_info.c * moved pjmedia_stream_info_from_sdp() into pjmedia/stream_info.c * misc: fixed mips_test.c if codecs are disabled git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3982 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-07Fixed #1461: pjsua_call_make_call: assertion failure when rapidly making callsLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3966 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-06Fix #1459: returned back the old/1.x way of controlling dialog lifetime in ↵Nanang Izzuddin
pjsua_call_make_call(). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3965 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-27More re #1419: changed field names from video_count to vid_cnt and audio_cnt ↵Benny Prijono
to aud_cnt for better consistency git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3925 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-23Re #1430: Fixed crash when STUN & ICE is offLiong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3919 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-20Fixed #1430: Crash when dialog is prematurely destroyed during outgoing call.Liong Sauw Ming
We do this by temporarily incrementing dialog session until the invite session is created. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3918 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-13Close #1424: Added new pjsua callback: on_call_rx_offer().Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3908 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-08Re #1419: updated call transfer to allow both the transferee and the ↵Nanang Izzuddin
transfer destination to update the current call setting: - for transferee (attended & unattended): via new PJSUA-LIB callback on_call_transfer_request2() - for transfer destination (attended only): via new PJSUA-LIB callback on_call_replace_request2() git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3903 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-07Re #1234: Initial version of keyframe request/response via SIP INFO.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3901 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-01Misc (re #1393): fix linking error "app_config_init_video() not found" when ↵Nanang Izzuddin
video is disabled, also some compile warnings (unused variables). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3892 74dad513-b988-da41-8d7b-12977e46ad98
2011-12-01Re #1419, implement media count manipulation per call basis:Nanang Izzuddin
- moved the media count setting from account setting to call setting - introduced pjsua_call_setting, to be used by pjsua_call_make_call() and some new APIs: pjsua_call_answer2(), pjsua_call_reinvite2(), pjsua_call_update2() git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3891 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-25Fixed #1398: TURN initialization failure scenario Liong Sauw Ming
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3849 74dad513-b988-da41-8d7b-12977e46ad98
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-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-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-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-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-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-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-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