summaryrefslogtreecommitdiff
path: root/pjsip
AgeCommit message (Collapse)Author
2010-01-08More ticket #1013: PJSIP resolver should not try to resolve the target if IP ↵Benny Prijono
address is given (thanks Emil Sturniolo for the report) - fixed bug with IPv6 - also fixed bug with not fully initializing socket address, causing assertion on pjsip-test and also potentially will cause error on MacOS X due to sin_zero_len not being zeroed git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3053 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-08Ticket #1013: PJSIP resolver should not try to resolve the target if IP ↵Benny Prijono
address is given (thanks Emil Sturniolo for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3049 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-05Misc (#1003): fixed bug: wrong month value in PIDF timestamp generation ↵Benny Prijono
(thanks Johan Lantz for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3045 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-04Misc fix (#1003): resolve NAT type after mapped addresses for SIP/RTP/RTCP ↵Benny Prijono
sockets have been resolved, so reduce chattiness during initialization and simplify debugging related to STUN problems git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3041 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-30Ticket #1005:Nanang Izzuddin
- Fixed bug in pjsip_tls_transport_start(): specified ca_list_file must be applied even when cert_file is not set. - Fixed bug in lis_create_transport(): new transport should inherit cert settings (from listener). - Fixed pjsua app, missing TLS transport setting 'require_client_cert' for '--tls-verify-client' option. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3039 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-22Misc (#1003): added protection against situation when pj_sock_getsockname() ↵Benny Prijono
returns PJ_SUCCESS but 0.0.0.0 is reported as the socket address, potentially causing SIP TCP transport to put 0.0.0.0 or empty Via address. Not sure if this situation could happen though. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3035 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-14Misc (ticket #1003):Benny Prijono
- added missing transport selection information in pjsua_acc_create_request(), when the account has been locked to use a specific transport/listener. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3032 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-10Ticket #1002: Crash when adding/removing buddies (thanks Nikolay Popok and ↵Benny Prijono
Robert Cichielo for the reports) - the timer associated with a buddy is not removed when buddy is deleted, causing crash later on in timer heap. Fixed. - when fails to send the initial SUBSCRIBE request, the dialog associated with buddy subscription will have been destroyed in the callback, causing any subsequent "pjsip_dlg_dec_lock(buddy->dlg)" call to crash. Fixed by protecting the call with "if (buddy->dlg)". git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3031 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-20More ticket #982 (MWI): support for Asterisk unsolicited MWI requests:Benny Prijono
- undo r3019 which put unsolicited MWI support in pjsua app only - put the unsolicited MWI support in PJSUA-LIB instead - unsolicited MWI is by default enabled - on_mwi_info() callback will be called just as the solicited MWI version git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3021 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-20Ticket #957:Nanang Izzuddin
- Fixed compile error of incompatible param type (or bad type conversion) on Symbian 5th ed (and perhaps also on some GCC versions). - Fixed on_connect_complete() to reset SSL sock state before callback when connection fails (OpenSSL impl). - Fixed saving remote address before start connecting, so it won't miss remote address info when socket connection establishes immediately (OpenSSL impl). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3020 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-20More #982 (MWI): support for Asterisk unsolicited MWI in pjsua applicationBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3019 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-11Misc (#951): undo r3012, and silently adjust max_calls to PJSUA_MAX_CALLS ↵Benny Prijono
instead if it is greater git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3013 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-11Misc (#951): check when app specifies max_calls that is greater than ↵Benny Prijono
PJSUA_MAX_CALLS (thanks Robbie Hanson for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3012 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10Fixed for #937 (presence enhancements): handle case where event argument is NULLBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3009 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10More ticket #957 (SSL): exclude sip_transport_tls_ossl.c from VS6 buildBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3008 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10More ticket #940: Multiple header rows with the same name may not be ↵Benny Prijono
completely processed by PJSIP modules: - handle the case when context doesn't have rdata (such as when parsing individual header or in pjsip-test), which crashed the app git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3003 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10Ticket #864: Revise on account registration Contact update ruleBenny Prijono
- don't switch if only port number is different and the Via received address is private - always update the transport (i.e. Via) address as well git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3001 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09Ticket #957: Fixed 0.0.0.0:0 address returned by SIP TLS client transport, ↵Nanang Izzuddin
which would cause 0.0.0.0:0 address in SIP via header. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3000 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09Ticket #950 and #957: Benny Prijono
- added QoS options on PJLIB/PJLIB SSL/TLS socket/transport - added demo in Symbian ua.cpp git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2998 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09Misc fix (#951): Fixed pjsua bug RTP timestamp & sequence resetted after ↵Nanang Izzuddin
hold-resume (thanks Nikolay Popok for the report). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2996 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-06Fixed ticket #986: Assertion when authorization PJSIP_AUTH_AUTO_SEND_NEXT is ↵Benny Prijono
enabled (thanks Zhefeng Du for the report) - also added SIPp scenario for testing git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2988 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-04Fixed ticket #940: Multiple header rows with the same name may not be ↵Benny Prijono
completely processed by PJSIP modules - the parser now collect and aggregate all Supported/Require header fields into single header git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2985 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-28More ticket #982: updated VS6 project with the mwi.[hc]Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2974 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-28Ticket #957: Updated PJSIP_HAS_TLS_TRANSPORT default value to refer to ↵Nanang Izzuddin
PJ_HAS_SSL_SOCK. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2973 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-26Ticket #957:Nanang Izzuddin
- Added features in secure socket: handshake timeout timer, certificate info, renegotiation API. - Added unit test for secure socket, along with testing purpose certificate & private key. - Updated build configs for secure socket. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2970 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-26Implement ticket #982: Support for SIP Message Summary/Message Waiting ↵Benny Prijono
Indication (MWI, RFC 3842) - PJSIP-SIMPLE: - implement MWI - PJSUA-LIB: - added "mwi_enabled" flag in account config - added "on_mwi_info" callback - pjsua app: - added "--mwi" option to enable MWI on account - added simple callback to log the NOTIFY message - other: - added SIPp scenario files to simulate UAS side - build: - added MWI support on VS6, VS2005, MMP, and Makefile git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2968 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-25Initial commit for ticket #950: QoS support:Benny Prijono
- implementation: - PJLIB (sock_qos*.*) - added QoS support in: - SIP UDP transport, - SIP TCP transport, - media UDP transport (done in pjsua-lib), - pjnath ICE stream transport, - pjnath STUN socket, - pjnath TURN client - added QoS options in pjsua-lib: - QoS fields in pjsua_transport_config - added "--set-qos" parameter in pjsua Notes: - QoS in TLS transport is not yet implemented, waiting for #957 - build ok on VS6, VS2005 (multiple targets), Carbide, and Mingw - no run-time testing yet git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2966 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-22Fixed ticket #979: Crash when printing Retry-After header (thanks Andrey ↵Benny Prijono
Kovalenko for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2961 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-21More #937 (presence):Benny Prijono
- added protection to not resubscribe immediately if initial SUBSCRIBE is responded with 481 for some reason git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2960 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-21More ticket #937 (presence revamping):Benny Prijono
- Added couple of SIPp scenario files to test various retry scenarios: - uas-subscribe-refresh-481.xml: client should resubscribe immediately on receiving 481 on resubscription - uas-subscribe-terminated-retry.xml: client should resubscribe upon receiving NOTIFY with some specific termination reasons - Added log message when PJSUA-LIB is resubscribing automatically due to above git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2959 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-20Initial commit for ticket #937: Revamping of presence management to make it ↵Benny Prijono
more efficient Presence enhancements: - finer grained buddy lock object, instead of using global PJSUA-LIB's mutex - individual resubscription timer for buddies and also add random delay interval so that resubscriptions don't happen simultaneously (may hog processing and bandwidth). - in general reduced the use of global PJSUA-LIB's mutex for more efficiency - added last termination code in buddy info - use the RPID note's text for buddy's offline status rather than the default "offline" status, if available - resubscribe automatically on several termination causes as explained in the ticket (still untested) General enhancements: - added pjsua_schedule_timer() and pjsua_cancel_timer() APIs git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2956 74dad513-b988-da41-8d7b-12977e46ad98
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-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-16Ticket #957:Nanang Izzuddin
- Added SSL socket abstraction with OpenSSL backend. - Updated cipher data type and added cipher constants (Symbian SSL socket has also been updated). - Updated SIP TLS transport to allow setting certificate/credential (via file). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2950 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-15Misc (#951): pool that is used to add missing ";lr" parameter in the Route ↵Benny Prijono
URI is not destroyed in PJSUA-LIB, causing potential memory leak git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2949 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-13Ticket #364: Upon unregistration, (un)REGISTER should be sent only after ↵Benny Prijono
(un)PUBLISH has completed successfully - wait for unpublication to complete or some delay expires, before sending unregistration - added unpublish_max_wait_time_msec field in account config to control how long to wait git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2942 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-12Ticket #411: Cannot update account presence's status while previous PUBLISH ↵Benny Prijono
is in progress (thanks Olivier Beytrison for the report) - enable request queueing. If PUBLISH is to be sent while another one is still in progress, queue the request and send it later when the ongoing request completes - this behavior is controlled by new pjsip_publishc_opt structure to control session's options - default behavior is to queue the request git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2940 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-12Related to ticket #411 (Cannot update account presence's status while ↵Benny Prijono
previous PUBLISH is in progress): - Crash in timer if publication session is terminated prematurely. To reproduce: publish two events in quick successions, e.g. by pressing "t" in pjsua couple of times. The publication session will be terminated with PJ_EBUSY status, and crash may occur when timer heap is polled. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2939 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-10-10Ticket #965: Receiving (malformed) re-INVITE with the same Via branch ↵Benny Prijono
parameter value as previous INVITE would raise assertion (thanks Daniel Nanassy for the report) - also fix possible crashes when UAS transaction initialization fails for some reason git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2936 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-09Ticket #966: Bad RPID <person> id attribute generation (thanks Filipe ↵Benny Prijono
Figueiredo for the report) - make sure the id starts with letter git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2935 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-10-09Fixed ticket #917, #936, and #967:Benny Prijono
- #917: CANCEL may be sent to different servers than the INVITE when DNS SRV is used (thanks Alexei Kuznetsov for the report) - #936: CANCEL must be sent with TCP if the INVITE was sent with TCP because of 1300 bytes message size/MTU limit (thanks Johan Lantz for the report) - #967: Wrong Route header generation in CANCEL request with strict route Save the server address(es) found by resolution process to tx_data, which is copied to CANCEL request. CANCEL request then uses this address rather than starting a fresh server resolution. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2932 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-01Misc (ticket #951): increase CSeq on retrying MESSAGE request due to 401/407 ↵Benny Prijono
response (thanks Rafael Maia for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2923 74dad513-b988-da41-8d7b-12977e46ad98
2009-09-22Fixed ticket #959: Assertion upon receiving malformed SIP messages (thanks ↵Benny Prijono
Andrey Kovalenko for the report) - transaction checks for the method before processing incoming ACK request - transport layer checks the validity of status code in the response - added SIPP scenario to reproduce the bad ACK request git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2915 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-27Ticket #957: Initial version of TLS transport for Symbian, includes:Nanang Izzuddin
- Secure socket, generic abstraction and Symbian implementation (using CSecureSocket). - Initial rewriting of SIP TLS transport. - Updated symbian_ua.mmp to support SIP transport TLS (experimental). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2913 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-19Misc #951: use UPPERCASE characters in transport type in SIP Via header, ↵Benny Prijono
some endpoints complain about it (thanks Tzury Bar Yochay and Alain Totouom for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2903 74dad513-b988-da41-8d7b-12977e46ad98