summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsip-ua
AgeCommit message (Collapse)Author
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
2009-04-23Fixed ticket #794: Bug with generating SDP version in origin line (thanks ↵Benny Prijono
Joel Dodson for the report) - the INVITE session now correctly uses the SDP offer "fixed" by the negotiator, hence it will have the correct origin fields. - removed update_sdp_version() from PJSUA-LIB - the negotiator now also fixes the session ID of subsequent answer so that it's identical to the previous SDP git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2643 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-14Related to ticket #786: potential memory leak in invite sessionBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2594 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-23Updated copyright notice in all files to Teluu Inc., and changed the year as ↵Benny Prijono
well git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2394 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-18Fixed minor gcc compilation warningsBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2385 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-17Ticket 684: protect the memory allocation for TX packet with try/catch, and ↵Benny Prijono
fixed various transmit data buffer leaks when transmission fails immediately git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2380 74dad513-b988-da41-8d7b-12977e46ad98
2008-11-27More ticket #10: changed to signature of the redirection callbacks to make ↵Benny Prijono
it more natural to use git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2371 74dad513-b988-da41-8d7b-12977e46ad98
2008-11-27Ticket #10: handle redirection response in the invite sessionBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2370 74dad513-b988-da41-8d7b-12977e46ad98
2008-10-31Ticket #657: (Partial early media forking support) renegotiate SDP upon ↵Benny Prijono
receiving forked 2xx response after 183 is received git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2362 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-22Ticket #641: Assertion error when late 200/OK is received after call has ↵Benny Prijono
been disconnected (thanks Dan Åberg for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2306 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-21Ticket #640: Crash when receiving ACK with SDP after BYE has been received ↵Benny Prijono
(thanks Amit Sharma for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2304 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-11Ticket #620: PRACK is sent to the wrong UAS when 100rel is used and the ↵Benny Prijono
dialog forks (thanks Ruud Klaver for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2271 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26Do no disconnect invite session if authentication fails for requests within ↵Benny Prijono
dialog. Also clears up inv->invite_tsx if re-INVITE fails with authentication error, otherwise it will not be able to send further re-INVITEs git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2058 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-25Fixed assertion error when resending re-INVITE after it is challenged with ↵Benny Prijono
401/407, and also fixed error when the invite session is not retrying the BYE request when it is challenged with 401/407 git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2053 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-25Fixed ticket #550: PRACK is not re-sent on 401/407 challenge (thanks Josh ↵Benny Prijono
Benson) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2049 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-20Large changeset to replace all occurences of year 2007 with 2008 in the ↵Benny Prijono
copyright notice git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2039 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-13Fixed various compilation warnings with gcc strict compilationBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2015 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-06Ticket #418 Protect client registration session with mutexBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1992 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-04Fixed gcc warnings about type pruned pointersBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1981 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-17Ticket #534: Client register/registration support for various registrar ↵Benny Prijono
brokenness git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1959 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-04If regc.check_contact is disabled, and no Expires header has been found, but ↵Benny Prijono
the server does return one single Contact header, assumes that the server is broken/unable to return the correct Contact. In this case, get the expiration from the single Contact header in the response (thanks Alan Bond) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1946 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-17Fixed bug: the status line in sipfrag content (for REFER) must ends with a CR-LFBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1933 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-01More ticket #514: bug in previous fix caused invite session to unable to ↵Benny Prijono
respond to authentication in re-INVITE git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1902 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-27More ticket #514: the last fix causes invite session to refuse to send CANCEL!Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1896 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-20Ticket #514: bug with handling simultaneous outgoing re-INVITE, the invite ↵Benny Prijono
session does not check if we have an ongoing INVITE transaction (thanks Philippe Leuba) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1878 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-02Ticket #498: Option in client registration to ignore Contact address in ↵Benny Prijono
REGISTER response git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1837 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-22Ticket #7: Move PJSIP compile time configurations/settings (such as T1, T2 ↵Benny Prijono
timers) to run-time (thanks Philippe Leuba) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1818 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-21Ticket #488: When outgoing request within dialog is responded with 481 or ↵Benny Prijono
408, should send BYE after terminating dialog (thanks Philippe Leuba) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1814 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-23Related to ticket #61: added new invite session API ↵Benny Prijono
pjsip_inv_verify_request() which takes additional remote SDP, to avoid parsing SDP multiple times git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1733 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-25Ticket #416: Allow application to handle sending ACK manuallyBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1598 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-23Fixed ticket #426: Respond incoming CANCEL with no matching INVITE with 481 ↵Benny Prijono
(thanks Sergey Bakulin) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1597 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-23Fixed ticket #423: Client registration (pjsip_regc) doesn't obey explicit ↵Benny Prijono
transport selection (thanks Hitesh) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1593 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-10Fixed compilation warnings/errors under C++ modeBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1569 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-08Remove SDP from 487 response when incoming INVITE comes without SDP and we ↵Benny Prijono
are sending offer in 18x response git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1564 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-08Accept UPDATE without SDP (this is a valid scenario according to session ↵Benny Prijono
timer RFC) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1563 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-08- Added option to send empty Authorization header in outgoing requestsBenny Prijono
- When UAS has sent answer in reliable 1xx, do not put SDP in 2xx - Handle the case when UPDATE is challenged with 401/407 - Obsolete --service-route option in pjsua git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1561 74dad513-b988-da41-8d7b-12977e46ad98