Commit Graph

125 Commits

Author SHA1 Message Date
Benny Prijono d9dd8657e8 More ticket #780: fixed compilation errors due to previous modifications related to TURN
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2591 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-13 18:40:10 +00:00
Benny Prijono 0f327c95a5 Ticket #780: Update TURN from draft 09 to draft 13:
- 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: https://svn.pjsip.org/repos/pjproject/trunk@2589 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-13 08:54:10 +00:00
Benny Prijono 0fc2c6bb34 Part of ticket #780 (work in progress): added IPv6 support to various STUN attributes and added the test from draft-ietf-behave-stun-test-vectors
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2580 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-07 09:42:58 +00:00
Benny Prijono 9158a3a88e Ticket #742: Change in mapped/STUN IP address does not update ICE srflx candidate (thanks Alexei Kuznetsov for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2484 74dad513-b988-da41-8d7b-12977e46ad98
2009-03-04 12:56:32 +00:00
Benny Prijono 844653c1f2 Updated copyright notice in all files to Teluu Inc., and changed the year as well
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2394 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-23 17:27:53 +00:00
Nanang Izzuddin 838cb32cc4 Cleaned up compile warnings (on gcc 4.0.1).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2386 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-18 17:52:57 +00:00
Benny Prijono efa014b4ea Ticket #598: Update to draft-ietf-behave-rfc3489bis-18 and draft-ietf-behave-turn-09, and fix other things as well. Please see the ticket for more info
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2234 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-22 17:46:33 +00:00
Benny Prijono a18dad99c8 Optimize the number of characters written to SDP by ICE
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2054 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-25 21:16:46 +00:00
Benny Prijono 074db79551 Added more API to initialize STUN message and attributes without pool
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2044 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-21 17:51:31 +00:00
Benny Prijono 7ce74135ed Fixed bug with authenticating STUN messages when unrecognized/unknown non-mandatory STUN attribute is present in the message
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2041 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-21 12:36:56 +00:00
Benny Prijono 5b64b8df4b Updated doxygen documentations
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2037 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-20 21:39:02 +00:00
Benny Prijono ed6bd028f8 Added new API's in ICE stream transport to assist offer/answer negotiation: 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: https://svn.pjsip.org/repos/pjproject/trunk@2031 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-19 13:54:21 +00:00
Benny Prijono 0890fb6d16 Fixed more mismatch decl/def function specifications (thanks Samuel Vinson)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1997 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-07 11:23:27 +00:00
Benny Prijono ff1df04070 Major major modifications related to ticket #485 (support for TURN-07):
- 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: https://svn.pjsip.org/repos/pjproject/trunk@1988 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-06 14:47:10 +00:00
Benny Prijono e7226850ad More ticket #485: fixed TURN server permission not allowing peer with the 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: https://svn.pjsip.org/repos/pjproject/trunk@1924 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-13 21:48:44 +00:00
Benny Prijono a11c76a674 More ticket #485: fixed REQUESTED-TRANSPORT endianness
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1923 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-10 22:24:23 +00:00
Benny Prijono a2c0bb2d9d Improve the PJNATH documentation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1914 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-09 12:08:08 +00:00
Benny Prijono 879ad1a1b6 More ticket #485: huge changeset to support TURN TCP. Please see ticket #485 for the details
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1913 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-09 09:38:12 +00:00
Benny Prijono 1add4d5206 Added comment about byte ordering in TURN CHANNEL-NUMBER attribute and modified select() parameter in TURN client
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1888 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-22 09:33:26 +00:00
Benny Prijono e2303e3f45 More ticket #485: wrong encoding of CHANNEL-NUMBER attribute
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1885 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-21 09:43:59 +00:00
Benny Prijono 4d5931ec04 More ticket #485: fixed TURN transport code point and REQUESTED-TRANSPORT attribute encoding
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1880 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-20 18:26:26 +00:00
Benny Prijono a5d214f997 Related to ticket #485: huge changeset to update STUN relating to managing authentication. See the ticket for the details
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1877 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-19 23:00:30 +00:00
Benny Prijono 17d10b50c1 More ticket #485: initial test on TURN client/server
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1869 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-14 17:56:11 +00:00
Benny Prijono 5ac0bd7a4d More ticket #485: added TURN client application
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1867 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-13 15:11:29 +00:00
Benny Prijono 03b54859b6 More ticket #485: implementation of TURN UDP client session
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1862 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-12 20:52:16 +00:00
Benny Prijono 3fd9fc5f06 More ticket #485: initial (incomplete) work on TURN client session library
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1854 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-09 23:52:48 +00:00
Benny Prijono 708725a869 More work for ticket #485: updated pjnath with TURN-07 and added authentication in the server
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1852 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-09 12:55:00 +00:00
Benny Prijono b05aafc1a7 More work on ticket #485: more TURN-07 work
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1850 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-08 00:54:04 +00:00
Benny Prijono 2c888e01ca Ticket #485: initial modification in STUN messaging in accordance to TURN-06
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1811 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-21 15:38:36 +00:00
Benny Prijono 0887321535 Ticket #437: reduce stack and pool usage on pjnath to make it work better on Symbian
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1654 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-02 08:24:10 +00:00
Benny Prijono bf22b0d2fb Updated ICE and STUN reference to their latest draft
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1579 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-12 13:56:07 +00:00
Benny Prijono 6ba8c54950 More ticket #399: added callback to report NAT detection result, and sends NAT type in SDP
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1501 74dad513-b988-da41-8d7b-12977e46ad98
2007-10-16 01:34:14 +00:00
Benny Prijono c909a3590d Added "magic" parameter in pj_stun_session_create_req()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1498 74dad513-b988-da41-8d7b-12977e46ad98
2007-10-13 00:06:59 +00:00
Benny Prijono f4e03a7ffd Related to ticket #399: added comments etc.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1497 74dad513-b988-da41-8d7b-12977e46ad98
2007-10-12 23:29:27 +00:00
Benny Prijono 4ab9fbbd57 Ticket #399: Initial implementation of tool to perform NAT type detection/classification
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1495 74dad513-b988-da41-8d7b-12977e46ad98
2007-10-12 12:14:27 +00:00
Benny Prijono 6eb3a111c0 Updated PJNATH doxygen documentation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1487 74dad513-b988-da41-8d7b-12977e46ad98
2007-10-07 12:51:15 +00:00
Benny Prijono 652247bb6d Changed reference to ice-15 to ice-18
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1480 74dad513-b988-da41-8d7b-12977e46ad98
2007-10-06 17:04:16 +00:00
Benny Prijono 97c8238458 Ticket #392: Added configuration to enable old, rfc3489bis-06 and older, style of MESSAGE-INTEGRITY and FINGERPRINT calculation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1479 74dad513-b988-da41-8d7b-12977e46ad98
2007-10-05 15:53:56 +00:00
Benny Prijono 2501e1345a Ticket #382: Updated ICE from draft-ietf-mmusic-ice-14 to ice-18 specification, and also done some other tweaks as well
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1450 74dad513-b988-da41-8d7b-12977e46ad98
2007-09-24 19:46:41 +00:00
Benny Prijono 0638120b60 Re-enable STUN status 437 (No Binding) since this is used by TURN
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1443 74dad513-b988-da41-8d7b-12977e46ad98
2007-09-20 11:30:30 +00:00
Benny Prijono e2d0acbaaa Ticket #374: Update STUN specification from rfc3489bis-06 to rfc3489bis-10
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1439 74dad513-b988-da41-8d7b-12977e46ad98
2007-09-18 19:33:33 +00:00
Benny Prijono 096c56c1a5 Ticket #370: Implemented callback notification to application when ICE negotiation fails (via on_call_media_state callback)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1435 74dad513-b988-da41-8d7b-12977e46ad98
2007-09-15 08:30:16 +00:00
Benny Prijono 4a5d7708a0 Fixed ticket #372: Handle case where STUN mapped address has changed in ICE (thanks Ravin Suri)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1434 74dad513-b988-da41-8d7b-12977e46ad98
2007-09-14 10:19:47 +00:00
Benny Prijono 1f61a8f8af Ticket #354: continuing work to port the Symbian libraries to .DSO format
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1417 74dad513-b988-da41-8d7b-12977e46ad98
2007-08-16 10:11:44 +00:00
Benny Prijono f1428f3e2b Fixed wrong year in copyright line, s/2005/2007 (thanks Atik Khan)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1374 74dad513-b988-da41-8d7b-12977e46ad98
2007-06-19 09:04:58 +00:00
Benny Prijono edd4ffa870 Ticket #287: selectively disable authentication for several STUN error responses
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1290 74dad513-b988-da41-8d7b-12977e46ad98
2007-05-23 07:05:59 +00:00
Benny Prijono 5aeed44e21 Fixed several STUN bugs: USERNAME, REALM etc are not allowed in the response, retransmission timer calculation bug, etc.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1275 74dad513-b988-da41-8d7b-12977e46ad98
2007-05-15 10:42:56 +00:00
Benny Prijono ba5926a822 PJSUA-LIB was ported to Symbian and added simple Symbian app. Testing follows
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1242 74dad513-b988-da41-8d7b-12977e46ad98
2007-05-02 11:29:37 +00:00
Benny Prijono caa8f62515 Respond to early check with proper credential
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1154 74dad513-b988-da41-8d7b-12977e46ad98
2007-04-05 22:28:01 +00:00
Benny Prijono 40468d3369 Added missing include in pjnath/config.h
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1153 74dad513-b988-da41-8d7b-12977e46ad98
2007-04-05 15:12:27 +00:00
Benny Prijono dbf461580e ICE (work in progress): handle early check that is received before answer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1152 74dad513-b988-da41-8d7b-12977e46ad98
2007-04-05 11:32:47 +00:00
Benny Prijono 7f03beaab4 Added PJ_STUN_NO_AUTHENTICATE option to disable authentication in STUN session
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1151 74dad513-b988-da41-8d7b-12977e46ad98
2007-04-04 17:49:28 +00:00
Benny Prijono 8d9fd61b0e Fixed crash with invalid PDU and added MAGIC-COOKIE attribute for backward compatibility with old TURN
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1150 74dad513-b988-da41-8d7b-12977e46ad98
2007-04-04 17:29:36 +00:00
Benny Prijono 6c670acb3b Added ICE-CONTROLLED and ICE-CONTROLLING attribute, handle ICE 487 error, and add response source address checking
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1141 74dad513-b988-da41-8d7b-12977e46ad98
2007-04-03 19:15:10 +00:00
Benny Prijono bd876dc063 Fixed misc bugs with ICE: (1) moved STUN session from candidate to component since it causes STUN response to wrong session, and (2) keep-alive transaction timed-out when ICE is active
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1140 74dad513-b988-da41-8d7b-12977e46ad98
2007-04-03 18:01:27 +00:00
Benny Prijono 0cb7bf1603 Enable all tests in pjnath-test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1129 74dad513-b988-da41-8d7b-12977e46ad98
2007-04-02 18:00:45 +00:00
Benny Prijono da675ceed4 ICE: work in progress
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1126 74dad513-b988-da41-8d7b-12977e46ad98
2007-04-02 11:30:14 +00:00
Benny Prijono 919758f01f Added ICE-CONTROLLING and ICE-CONTROLLED STUN attribute types
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1114 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-29 21:54:21 +00:00
Benny Prijono a6bd758a9d Updated projects and Makefiles with the new pjnath library
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1111 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-28 15:49:48 +00:00
Benny Prijono fed1af9d55 Created doxygen documentation for PJNATH
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1110 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-27 23:29:27 +00:00
Benny Prijono 7e0d52c06e ICE: implement RTCP component and cancelling check in progress
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1106 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-26 13:25:07 +00:00
Benny Prijono b681a2f671 ICE (work in progress): use single socket for all candidates in component, and implemented IP interface enumeration on Win32
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1104 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-25 18:44:51 +00:00
Benny Prijono ec92134367 ICE (work in progress): implement error codes
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1101 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-24 13:00:30 +00:00
Benny Prijono f75ecebb3f ICE (work in progress): implemented server reflexive candidate
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1099 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-23 19:09:54 +00:00
Benny Prijono c97608ee7f ICE (work in progress): integration with PJSUA
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1098 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-23 16:34:20 +00:00
Benny Prijono 24cda7dea5 ICE (work in progress): implemented ICE media transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1097 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-23 00:42:47 +00:00
Benny Prijono ff49ab751b Final ICE stream transport
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1096 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-22 21:00:53 +00:00
Benny Prijono fb9d987d15 Added pjnath-test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1093 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-21 22:05:58 +00:00
Benny Prijono fe9535374f ICE complete, ready for testing
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1092 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-21 13:24:02 +00:00
Benny Prijono 48a4927c07 s/stun_setting/stun_config
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1091 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-21 09:31:01 +00:00
Benny Prijono 38fa00aca4 s/stun_endpoint/stun_setting
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1090 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-21 09:12:22 +00:00
Benny Prijono 0ef1cf6e4a Today's work
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1089 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-20 22:36:54 +00:00
Benny Prijono bda2621b57 --
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1085 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-20 08:44:26 +00:00
Benny Prijono b01897b505 Changed pj_sockaddr structure and added pjnath project for ICE/STUN stuffs
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1080 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-18 17:39:27 +00:00
Benny Prijono 0923717c82 (big patch) Added top-level pjnath project and moved STUN related files to this new project
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1062 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-14 11:52:13 +00:00