summaryrefslogtreecommitdiff
path: root/pjnath/include
AgeCommit message (Collapse)Author
2013-10-01Fixed #1674: Deadlock when third party media employs external lock and ICE ↵Liong Sauw Ming
is active git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4606 74dad513-b988-da41-8d7b-12977e46ad98
2013-09-25Fix #1700: Added PJ_ICE_CAND_TYPE_MAX to represent the number ICE candidate ↵Nanang Izzuddin
types. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4602 74dad513-b988-da41-8d7b-12977e46ad98
2013-06-19Close #1681:Nanang Izzuddin
- Added compile-time settings PJMEDIA_TRANSPORT_SO_RCVBUF_SIZE and PJMEDIA_TRANSPORT_SO_SNDBUF_SIZE. The default values are both 64 KB when PJMEDIA_HAS_VIDEO is set, otherwise just zero (socket buffer size uses OS default). The settings will be applied to media transport UDP and ICE. - Also added run-time settings so_sndbuf_size and so_rcvbuf_size into ICE stream transport, STUN socket, and TURN socket. Default values are all zero. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4538 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-21Fixed #1617: major synchronization fixes in PJNATH with incorporation of ↵Benny Prijono
group lock to avoid deadlock and crashes due to race conditions git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4360 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-19Fixed #1620: Fix the calculation of transmission count during retransmission ↵Liong Sauw Ming
of STUN request git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4352 74dad513-b988-da41-8d7b-12977e46ad98
2013-02-07Close #1602: configurable local port range for ICE transport.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4343 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-05Re: Added compile-time setting PJNATH_STUN_SOFTWARE_NAME to specify SOFTWARE ↵Nanang Izzuddin
attribute for STUN sessions. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4199 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-05Fix #1547:Nanang Izzuddin
- Added PJMEDIA_MAX_MRU to specify maximum packet size in receiving direction. - Added max_pkt_size into pj_turn_sock_cfg, default is PJ_TURN_MAX_PKT_LEN. - Fixed hardcoded MTU settings in media transport SRTP. - Added MIN_CHUNKS_PER_FRM constant in video stream. Notes: - PJMEDIA_MAX_MTU & PJMEDIA_MAX_MRU to specify max packet size for TX and RX dir. - For ICE media transport, TURN session limits outgoing packet size to PJ_TURN_MAX_PKT_LEN (the size of internal buffer for inserting TURN overheads). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4197 74dad513-b988-da41-8d7b-12977e46ad98
2012-07-05Re #1548: Crash due to racing condition in timer when call is disconnected ↵Benny Prijono
quickly (thanks Joshua Colp for the report!) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4196 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-21Fixed #1512: added Option to continue ICE operation even when STUN ↵Benny Prijono
resolution fails git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4133 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
2010-06-19Fixed #1077: In ICE stream transport (ice_strans.c), automaticaly retry ↵Benny Prijono
allocation once if TURN allocation fails. If this allocation retry also fails, notify the TURN user via on_ice_complete() callback. Details: - added new PJ_ICE_STRANS_OP_KEEP_ALIVE operation - also added new on_ice_transport_error() pjsua callback to allow application to react to the failure. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3212 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-03Make TURN pool memory sizes compile-time configurable (misc, re: #1068)Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3197 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-08Misc (#1026): added more documentation for PJNATH_EICEFAILED error codeBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3118 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-08Fixed ticket #999:Benny Prijono
Several bug fixes to the TURN client library and icedemo sample application: 1. ICE stream transport reports ICE initialization/candidate gathering stage as successful even when TURN client TCP connection has failed. 2. Bad ChannelData framing when TCP is used. PJNATH did not properly add padding to the TURN ChannelData packet if TCP is used and the data is not aligned to four bytes boundary. Similarly incoming ChannelData with padding (over TCP) may not be handled correctly. 3. Incoming data over TCP may be delayed. PJNATH only processed one frame (be it request, indication, or ChannelData) on an incoming stream, so if the stream contains more than one frames, the processing of subsequent frames will be delayed until more stream is received on the TCP transport. 4. The icedemo sample application overwrites the incoming packet buffer with NULL character ('\0') before printing the message to console. If there is another packet after current packet (as often happens when TCP is used), the subsequent packet will get corrupted. The combinations of bugs above may cause PJNATH to return "Invalid STUN message length (PJNATH_EINSTUNMSGLEN)" error when processing incoming TURN ChannelData message over TCP. And a small enhancement: 1. Add logging to file option to icedemo sample. Thanks Sarun Nandakumar for the report. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3028 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-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-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-04-22Part of ticket #780: enhance the PJNATH doxygen documentationBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2642 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-13More ticket #780: fixed compilation errors due to previous modifications ↵Benny Prijono
related to TURN git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2591 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-13Ticket #780: Update TURN from draft 09 to draft 13:Benny Prijono
- new rules for permissions: - permission must be created and refreshed explicitly with CreatePermission - transmitting data does not refresh permission - attributes changed/added: XOR-PEER-ADDRESS, XOR-RELAYED-ADDRESS, EVEN-PORT, DONT-FRAGMENT - attribute(s) removed: REQUESTED-PROPS - new status codes: 401 (Forbidden), 507 (Insufficient Capacity) - removed status codes: 443 (Invalid IP address), 444 (Invalid Port), 508 (Insufficient Port Capacity) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2589 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-07Part of ticket #780 (work in progress): added IPv6 support to various STUN ↵Benny Prijono
attributes and added the test from draft-ietf-behave-stun-test-vectors git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2580 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-04Ticket #742: Change in mapped/STUN IP address does not update ICE srflx ↵Benny Prijono
candidate (thanks Alexei Kuznetsov for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2484 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-18Cleaned up compile warnings (on gcc 4.0.1).Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2386 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-22Ticket #598: Update to draft-ietf-behave-rfc3489bis-18 and ↵Benny Prijono
draft-ietf-behave-turn-09, and fix other things as well. Please see the ticket for more info git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2234 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-25Optimize the number of characters written to SDP by ICEBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2054 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-21Added more API to initialize STUN message and attributes without poolBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2044 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-21Fixed bug with authenticating STUN messages when unrecognized/unknown ↵Benny Prijono
non-mandatory STUN attribute is present in the message git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2041 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-20Updated doxygen documentationsBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2037 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-19Added new API's in ICE stream transport to assist offer/answer negotiation: ↵Benny Prijono
pj_ice_strans_has_sess(), pj_ice_strans_sess_is_running(), pj_ice_strans_sess_is_complete(), pj_ice_strans_get_running_comp_cnt(), pj_ice_strans_get_ufrag_pwd(), and PJNATH_EICEMISMATCH error code. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2031 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-07Fixed more mismatch decl/def function specifications (thanks Samuel Vinson)Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1997 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-06Major major modifications related to ticket #485 (support for TURN-07):Benny Prijono
- Added STUN socket transport pj_stun_sock - Integration of TURN-07 to ICE - Major refactoring in ICE stream transport to make it simpler - Major modification (i.e. API change) in almost everywhere else - Much more elaborate STUN, TURN, and ICE tests in pjnath-test git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1988 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-13More ticket #485: fixed TURN server permission not allowing peer with the ↵Benny Prijono
same IP to get through, and added option to disable FINGERPRINT verification in TURN server since it is currently broken when TURN is used with ICE (which has a FINGERPRINT in its Binding Request) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1924 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-10More ticket #485: fixed REQUESTED-TRANSPORT endiannessBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1923 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-09Improve the PJNATH documentationBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1914 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-09More ticket #485: huge changeset to support TURN TCP. Please see ticket #485 ↵Benny Prijono
for the details git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1913 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-22Added comment about byte ordering in TURN CHANNEL-NUMBER attribute and ↵Benny Prijono
modified select() parameter in TURN client git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1888 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-21More ticket #485: wrong encoding of CHANNEL-NUMBER attributeBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1885 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-20More ticket #485: fixed TURN transport code point and REQUESTED-TRANSPORT ↵Benny Prijono
attribute encoding git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1880 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-19Related to ticket #485: huge changeset to update STUN relating to managing ↵Benny Prijono
authentication. See the ticket for the details git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1877 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-14More ticket #485: initial test on TURN client/serverBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1869 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-13More ticket #485: added TURN client applicationBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1867 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-12More ticket #485: implementation of TURN UDP client sessionBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1862 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-09More ticket #485: initial (incomplete) work on TURN client session libraryBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1854 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-09More work for ticket #485: updated pjnath with TURN-07 and added ↵Benny Prijono
authentication in the server git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1852 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-08More work on ticket #485: more TURN-07 workBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1850 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-21Ticket #485: initial modification in STUN messaging in accordance to TURN-06Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1811 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-02Ticket #437: reduce stack and pool usage on pjnath to make it work better on ↵Benny Prijono
Symbian git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1654 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-12Updated ICE and STUN reference to their latest draftBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1579 74dad513-b988-da41-8d7b-12977e46ad98