summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsip-ua
AgeCommit message (Collapse)Author
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-27Fix #1248: Reset destination info in the INVITE message/tdata before ↵Nanang Izzuddin
resending it to force re-resolving destination info. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3546 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-27Fixed #1247: Deadlock potential in sip_regc.c if sending fails (thank you ↵Benny Prijono
Alejandro Orellana for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3545 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-26Re #1245: bad last commit caused everything to be treated as unregistrations!Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3544 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-25Fixed #1245: Assertion may be raised if iPhone app woken up to perform ↵Benny Prijono
registration and the server is down (thanks Alejandro Orellana for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3542 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-23Fix #1222: Assertion if BYE is received while callee is still in early stateBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3481 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
2010-12-02Misc (re #1151): respond incoming re-INVITE with 491 instead of 500 if we ↵Benny Prijono
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: http://svn.pjsip.org/repos/pjproject/trunk@3385 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-02Fixed #1166: Detection of offer/answer glare condition with re-INVITEBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3381 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-28Fixed #1131: Callee disconnects call without sending BYE if ACK is not ↵Benny Prijono
received (thanks Montevecchi Massimiliano and Klaus Darilion for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3324 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-06Fixed ticket:1119: Crash if sending UPDATE fails in session timer module ↵Benny Prijono
because network connectivity is lost (thanks Robbie Hanson for the fix!) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3302 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-01Implemented core multipart support and support in the invite session (re #1070)Benny Prijono
- incoming multipart message will be handled automatically - for testing, enable HAVE_MULTIPART_TEST in pjsua_app.c git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3243 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-01Re #1070 (support for multipart bodies): modified the param field of ↵Benny Prijono
pjsip_media_type from a simple string to pjsip_param, to support a more complex use of this field git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3241 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-24Fixed #1039: Add Allow header in outgoing REGISTER request (thanks Daniel ↵Benny Prijono
Anens for the info) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3223 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-24Fixed #1081: Implement ICE option tag (RFC 5678)Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3222 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-23Another unterminated SDP offer/answer negotiation fix (Re: #1045):Benny Prijono
- fixed unterminated negotiation if our media transport rejects incoming offer (e.g. due to mismatch SRTP transport) with 488. - to fix the above, modified the SDP negotiator (sdp_neg.[hc])'s pjmedia_sdp_neg_cancel_offer() to also be able to cancel in remote offer state - also fixed the bug introduced previous Session Timer fix (Re: #1047), which cause SDP negotiator's state to be cleared after failed UAC UPDATE transaction is terminated, which means UPDATE can only be sent 5 seconds after the last UPDATE if the last UPDATE failed. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3217 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-21Fixes #1047 (Don't send UPDATE if remote doesn't support it (thanks Bogdan ↵Benny Prijono
Krakowski for the report)) and fixes #1097 (Support sending UPDATE without SDP). Details: - Session timer fixes: - will look at remote capability in Allow header - if UPDATE is supported, will send UPDATE without SDP first. If this fails, will send UPDATE with SDP - otherwise will send re-INVITE - PJSUA-LIB will look at dialog's remote capability to determine whether re-INVITE or UPDATE should be sent to change default addresses after ICE negotiation. - pjsip_inv_update() now allows NULL offer, in which case the UPDATE will be sent without SDP. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3215 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-16Fix #1045:Nanang Izzuddin
- Fixed invite module to reset SDP negotiator state after incomplete SDP offer-answer in re-INVITE/UPDATE. - Added some SIPp test scenarios. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3208 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-02Fixed #1092 (Crash when receiving various messages with "Contact: *" header ↵Benny Prijono
format) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3190 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-30Ticket #1044:Nanang Izzuddin
- Added initial version of automatic re-registration after registration failure and automatic call disconnection after re-registration attempt fails. - Published auto re-registration setting to pjsua app. - Updated pjsip_regc_send() to retrieve the transport earlier (was only in tsx_callback()). - Fixed TCP and TLS transport to prevent transport deletion in transport disconnection callback. - Fixed wrong keep-alive settings used by TLS transport (was using TCP keep-alive settings). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3128 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-23Ticket #1031: Automatically handle 423 (Interval Too Brief) response in SIP ↵Benny Prijono
registration (thanks Tomáš Valenta for the suggestion) - implemented in sip_reg.c instead of in PJSUA-LIB, so that the functionality can be reused by non-PJSUA-LIB applications - also added several Python test scripts git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3105 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-10Fixed ticket #1011: "Invalid operation step" assertion when TCP is usedBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3094 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-09Fixed ticket #1034: Crash on accepting a call with no codec in the SDP offerBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3091 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-16Ticket #954 (issue no 2): Updated session timer to process 2xx response in ↵Nanang Izzuddin
mod_inv state handlers (was in mod_inv_on_rx_response()). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2951 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-09Ticket #954: Added missing fix in r2933, updating local SE (to a value less ↵Nanang Izzuddin
than local Min-SE) should also update local Min-SE. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2934 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-09Ticket #954: Updated session timer to tolerate 'bad' SE (less than Min-SE ↵Nanang Izzuddin
specified in request) in 2xx response. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2933 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17Ticket #948: Fixed bug Replaces extension stops functioning after the ↵Nanang Izzuddin
library is restarted, by adding deinit module function and register it into atexit. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2894 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17Ticket #833: Fixed bug session timer won't work properly after pjsua-lib ↵Nanang Izzuddin
restarted, by adding deinit module function for session timer and register the deinit function into atexit. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2893 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17Ticket #833: Updated previous fix for Session Timer (timer callback gets ↵Nanang Izzuddin
pending INVITE is in progress), instead of just quitting the callback, it may be better to reschedule the timer (for five seconds). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2890 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-17Ticket #833: Fixed bug in session timer, timer callback shouldn't perform ↵Nanang Izzuddin
re-INVITE or BYE when there is pending INVITE. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2889 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-14Ticket #877: Fixed bug flip-flop pools shouldn't be swapped when SDP ↵Nanang Izzuddin
negotiation fails. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2879 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-12Ticket #833: Updated Session Timer to keep the refresher role unchanged on ↵Nanang Izzuddin
any refreshes, by timer or manual. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2870 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-12Ticket #877: Memory consumption of the invite session grows indefinitely if ↵Benny Prijono
call is running for long period of time and with many re-INVITES - introducing flip-flop pools in the pjsip_inv_session. There are two additional pools created, and one of them will be reset everytime SDP negotiation is done to release memory back to the OS git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2869 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-12Ticket #833: Fixed pjsip_timer definition (should not in a typedef).Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2865 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-11Ticket #833:Nanang Izzuddin
- Updated build config for VS6, Symbian, and Makefile for Session Timer. - Fixed C/C++ cross-linking problem on some compilers (e.g: Symbian GCCE). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2861 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-11Ticket #833:Nanang Izzuddin
- Renamed pjsip_timer_default_setting() to pjsip_timer_setting_default(). - Updated session timer settings in pjsua-lib as whole session timer setting struct (pyhton version remains using se & min_se). - Added output param SIP status code in pjsip_timer_process_resp() and pjsip_timer_process_req() to specify the corresponding SIP status code when function returning non-PJ_SUCCESS. - Fixed print header functions in sip_timer.c to have buffer check. - Added PJSIP_SESS_TIMER_DEF_SE setting to specify the default value of session timer interval. - Fixed role reference of the refresher, it is transaction role, not dialog role. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2859 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-11Ticket #833:Nanang Izzuddin
- Initial version of Session Timers (RFC 4028). - Added new options in pjsua app to configure Session Timers settings. - Added python tests for Session Timers. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2858 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-06Ticket #934: Fixed pjsip_inv_verify_request2() to also checks all registered ↵Nanang Izzuddin
extensions (via pjsip_endpt_add_capability()). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2856 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-05Ticket #930:Nanang Izzuddin
- Updated semantic of contact param in functions pjsip_dlg_create_uac(), pjsip_dlg_create_uas(), pjsip_endpt_create_request() and also variable pjsua_acc.contact to be Contact header value (was Contact URI). - Updated docs related to above modifications. - Fixed pjsua_im_send() in generating contact header, it should use pjsua_acc.contact instead, if it is set. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2855 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-04Ticket #860:Benny Prijono
- will send SUBSCRIBE to refresh REFER subscription (not REFER!), only when required (such as when call transfer is running for longer than REFER subscription expiration, hence need to be refreshed) - replaced hardcoded REFER subscription duration (600s) with a macro, {{{PJSIP_XFER_EXPIRES}}}. - when NOTIFY with "200 OK" sipfrag body is received and subscription state is not terminated, send SUBSCRIBE with Expires=0 to terminate the REFER subscription - for transferee, terminate the subscription in CONNECTING state and not in CONFIRMED state. Terminating the subscription in CONFIRMED state causes redundant NOTIFYs with "200 OK" sipfrag body to be sent, one with active subscription and another with terminated state. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2750 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-02Ticket #870: Changed the mapping of host resolution failure to SIP status ↵Benny Prijono
code 502 from 503 (thanks Robert Cichielo for the report) - also fixed client registration to use the reason phrase of the transaction rather than to retrieve the default reason phrase for the status code git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2732 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-13Fixed ticket #845: Crash in 100rel after CANCEL is received and 487 is sent ↵Benny Prijono
(thanks Gang Liu for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2697 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-01Fixed ticket #815: Re-INVITE transactions takes too long to be cleared when ↵Benny Prijono
failed final response is received, causing application to unable to send subsequent re-INVITE (thanks Ruud Klaver for the patch) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2670 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-29Fixed compilation error on Symbian caused by ticket #794Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2665 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-27Ticket #798: UAC disconnect call when receiving BYE in early state (thanks ↵Benny Prijono
Gang Liu for the suggestion) - UAC now handles the BYE, and treat it as out-of-order disconnect request, meaning that it will disconnect the call - it will also activate timer to terminate the INVITE transaction, in case final response never arrives - added SIPp UAS scenario to test this - also added forked 200/OK response SIPp scenario, - and fixed the prack_fork.xml SIPp scenario git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2650 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-26Fixed ticket #506: Behavior when cancelling INVITE before provisional ↵Benny Prijono
response is received - do not stop INVITE retransmission - updated pjsip_inv_end_session() documentation git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2647 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-26Fixed ticket #503: Handle the case when CANCEL is responded with 200/OK but ↵Benny Prijono
487 is not sent - added new API pjsip_tsx_set_timeout() - set 64*T1 timeout after CANCEL is initiated - also added SIPp scenario to simulate the UAS git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2646 74dad513-b988-da41-8d7b-12977e46ad98