summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsua-lib/pjsua_call.c
AgeCommit message (Collapse)Author
2009-10-20Ticket #976: Fixed pjsua_call_make_call() to associate call with account ↵Nanang Izzuddin
before media channel initialization. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2955 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-14Ticket #881: send UPDATE or re-INVITE after ICE negotiation, if the default ↵Benny Prijono
candidate has changed - done - added pj_ice_strans_state (to be used for informational purposes for now) - added pjmedia ICE transport specific info, and display it in call dump output - misc fixes (changed pjmedia_transport_info.spec_info_cnt from int to unsigned) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2945 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-14Ticket #970: More gracefull PJSUA-LIB shutdown sequence. Enhancements:Benny Prijono
- wait for unregistration to complete (or a preconfigured delay expires) - new account config field to set the maximum delay to wait for unregistration - rejects incoming requests (INVITE, SUBSCRIBE, and OPTIONS) when shutdown is in progress git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2943 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-11Ticket #951 (misc fixes):Benny Prijono
- fixed misc compiler warnings with gcc on Linux git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2938 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-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-06-05Ticket #880: Pressing call hold twice in pjsua will cause call to be unheldBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2752 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-05-29Integration of Sipit24 branch, many tickets involved:Benny Prijono
- #793: AMR encoder should regard 'mode-set' param specified by remote decoder. - #831: Automatically switch to TCP transport when sending large request - #832: Support for outbound proxy setting without using Route header - #849: Modify conference audio switch behavior in connecting ports. - #850: Remove 'Require=replaces' param in 'Refer-To' header (in call transfer with replaces). - #851: Support for regular nomination in ICE - #852: --ip-addr support for IPv6 for media transport in pjsua - #854: Adding SOFTWARE attribute in all outgoing requests may cause compatibility problem with older STUN server (thanks Alexei Kuznetsov for the report) - #855: Bug in digit map frequencies for DTMF digits (thanks FCCH for the report) - #856: Put back the ICE candidate priority values according to the default values in the draft-mmusic-ice - #857: Support for ICE keep-alive with Binding indication - #858: Do not authenticate STUN 438 response - #859: AMR-WB format param in the SDP is not negotiated correctly. - #867: Return error instead of asserting when PJSUA-LIB fails to open log file git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2724 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-12Ticket #842: Error parsing status line in sipfrag message body in call ↵Benny Prijono
transfer scenario (thanks Tomáš Valenta for the report!) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2695 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-14Ticket #786: Crash when UAC invite or subscribe session initialization fails ↵Benny Prijono
(thanks Rostislav Molodyko for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2593 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-12(Major) Task #737 and #738: integration of APS-Direct and Audiodev from ↵Benny Prijono
aps-direct branch to trunk. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2506 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-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-09-24Ticket #635: Disconnect the other call leg when multiple 2xx/OK responses to ↵Benny Prijono
INVITE are received due to forking git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2315 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-20Ticket #611: Configuration option to force the route URI to use loose routingBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2301 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-18Ticket #631:Nanang Izzuddin
- Changed rem_rtp/rtcp_addr to src_rtp/rtcp_addr in media transport info - Updated behaviour of media transport get info, when the transport hasn't receive any packet src_rtp/rtcp_addr will not be set. - Fixed bug in pjsua_call_dump that rem_addr was unset. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2293 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-17Ticket #631:Nanang Izzuddin
- Added new fields in media transport info: remote address originating RTP & RTCP. - Updated transport UDP & ICE to fill above fields in getting transport info. - Updated pjsua call dump, instead of showing remote RTP address from SDP, it will show address of RTP originator. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2291 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-08Ticket #613: Added packet discard statistic in pjsua 'dq' outputBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2266 74dad513-b988-da41-8d7b-12977e46ad98
2008-09-02Ticket #608: Added API to retrieve media transport and session from pjsua callBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2259 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-26Ticket #602:Nanang Izzuddin
- Introduced new API pjmedia_rtp_session_init2() to enable intializing RTP session with non-default initial settings - Updated stream so it can be created with non-default initial RTP settings. - Updated pjsua-lib to make sure RTP timestamp and sequence contigue when stream session is restarted. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2241 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-04Ticket #563: Updated SDP offer/answer related to call hold scenario to ↵Nanang Izzuddin
conform to RFC 3264 section 8.4 (before: 'a=inactive' and 'c=0.0.0.0', now: 'a=sendonly' and muted ports). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2191 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-17Added ability to dump extended statistics (RTCP XR) in pjsua.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2152 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-13Ticket #518: some fixes for growing memory usage in PJSUA-LIB, by using ↵Benny Prijono
temporary pools for temporary variables and by having separate pool for each account and buddy git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2130 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-27Fix handling of multiple media lines in the incoming SDP offer. Now ↵Benny Prijono
pjsua-lib will be able to select the best media line to handle git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2079 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26Fixed assertion in invite session when INVITE has bad SDP because the SDP is ↵Benny Prijono
given without having been validated first git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2065 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26Ticket #544: Fixed SRTP on hold+reinvite scenarioNanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2064 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-26Fixed bug: media got deactivated when SDP negotiation fails on re-INVITE or ↵Benny Prijono
UPDATE while it should be unaffected git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2060 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-19Ticket #549: major modification in media transport API to support more ↵Benny Prijono
offer/answer scenarios git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2032 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-16More ticket #540: updated snd-auto-close to work friendly with callNanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2027 74dad513-b988-da41-8d7b-12977e46ad98
2008-05-17More on ticket #535: updated files using and related to math.hNanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1961 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-15Use the smart Contact header for TCP/TLSBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1931 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-14Fixed miscellaneous compile warnings/errors when built with C++ modeBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1929 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-08As per list report, changed the default response to incoming REFER from 200 ↵Benny Prijono
to 202 as some gateways do not like this. Thanks Pedro Sanchez for the report git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1912 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-07Fixed crash in SRTP when incoming SDP is received without any m= line ↵Benny Prijono
(thanks Atik) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1909 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-17More ticket #479: bug in pjmedia_transport_get_info(), the info should be ↵Benny Prijono
initialized by caller git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1873 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-11Ticket #479: allow media transport framework to return transport specific ↵Benny Prijono
info (for example, to know whether SRTP is enabled) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1860 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-07Ticket 467: dont send SDP with BYE!Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1849 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-26Fixed bug in ticket #455 in round-robin call ID allocation (thanks Truong ↵Benny Prijono
Thanh Quang) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1821 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-21Ticket #467: fixed issues with RTP/AVP vs RTP/SAVP negotiationBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1810 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-02More ticket #61: fixed signaling security level calculation for SRTPBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1774 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-26Added pj_strstr() and pj_stristr() in pjlibBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1757 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-25More ticket #61: fix bug in secure signaling determination, and added ↵Benny Prijono
--srtp-secure option in pjsua to control signaling security requirement for SRTP git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1745 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-24Return 406/Not Acceptable if SRTP negotiation failed instead of 500Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1742 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-23Ticket #61: Implement SRTP support in PJMEDIA and PJSUA-LIB, and updated ↵Benny Prijono
applications because of the changes. This is a major modification back ported from SRTP branch. See ticket #61 for changelog detail of this commit git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1735 74dad513-b988-da41-8d7b-12977e46ad98