Commit Graph

237 Commits

Author SHA1 Message Date
Benny Prijono fe9bf3079b Fixed #1512: added Option to continue ICE operation even when STUN resolution fails
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4133 74dad513-b988-da41-8d7b-12977e46ad98
2012-05-21 14:00:17 +00:00
Benny Prijono 28d3c56283 Re #1474: Merged all changes from 1.12 - HEAD (from the 1.x branch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3999 74dad513-b988-da41-8d7b-12977e46ad98
2012-03-30 07:10:13 +00:00
Benny Prijono 0269c8e42f Fixed #1399: Assertion failure if unable to resolve TURN server
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3844 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-24 15:03:43 +00:00
Benny Prijono 2761067eae Fixed #1389: Failed to authenticate to TURN client due to REALM attribute padding
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3843 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-24 14:13:35 +00:00
Sauw Ming e7dbbc8f30 Re #1395: Backport of PJSIP 1.x branch into PJSIP 2.0 trunk
* Backport of r3557:r3832

TODO: ticket #1268 (Option for automatic/manual sending of RTCP SDES/BYE for the stream) for video stream.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3841 74dad513-b988-da41-8d7b-12977e46ad98
2011-10-24 09:28:13 +00:00
Sauw Ming 848742fe2c Re #1266: Fixed failed automated tests for ICE
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3775 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-28 04:20:30 +00:00
Benny Prijono b90fd3879d Modified the libraries to use the new log indentation feature re #1372
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3753 74dad513-b988-da41-8d7b-12977e46ad98
2011-09-18 14:59:56 +00:00
Perry Ismangil c2f2e5550c Re #1254 Doxygen configuration and makefile changes to support version specific documentation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3669 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19 21:42:58 +00:00
Nanang Izzuddin fe68f1dc55 Re #1326: Initial code integration from branch 2.0-dev to trunk as "2.0-pre-alpha-svn".
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3664 74dad513-b988-da41-8d7b-12977e46ad98
2011-07-19 03:42:28 +00:00
Perry Ismangil ebf16b053e Really fixed #1296 deleting VS6 workspaces and projects
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3602 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-30 12:53:51 +00:00
Perry Ismangil 1fef1f9b59 Fixed #1296 deleting VS6 workspaces and projects
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3583 74dad513-b988-da41-8d7b-12977e46ad98
2011-06-14 14:35:39 +00:00
Nanang Izzuddin a62ffc9d03 Re #1250: Updated the year in all copyright texts with 2011!
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3553 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05 06:14:19 +00:00
Sauw Ming a4b628f8f6 Fixed #1246: Use CFHost for pj_getaddrinfo() on iOS
* Replace the fix for ticket #1104 with this fix
 * Modify pjturn-client/client_main's shutdown() function which conflicts with an existing function

Re-run configure-iphone to use this fix automatically.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3543 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-26 03:07:24 +00:00
Nanang Izzuddin 3a86f326d0 Fix #1212:
- Updated pj_register_strerror() to just return PJ_SUCCESS when the same range
and handler is being re-registered.
 - Removed the usage of static flag of error string handler registration in some
modules, which prevent the re-registration of the handler, e.g: in restarting
pjsua, as such flags never got reseted.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3455 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-16 07:34:16 +00:00
Benny Prijono ae51ee0528 Fixed #1158: Possible wrong multiplexing of STUN traffic inside TURN Data Indication
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3369 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-17 09:00:17 +00:00
Benny Prijono 0282727447 Misc (re #1134): fixed error in Makefile target for generating doxygen documentation when WWWDIR is specified
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3319 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-23 22:46:11 +00:00
Benny Prijono 2958061f92 Misc (re #1068): fixed various compilation warnings with Visual Studio 6 and 2005
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3262 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-11 06:03:47 +00:00
Benny Prijono 4d6ff4d62c Fixed #1077: In ICE stream transport (ice_strans.c), automaticaly retry 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: https://svn.pjsip.org/repos/pjproject/trunk@3212 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-19 12:35:33 +00:00
Benny Prijono 87b347ed3b Make TURN pool memory sizes compile-time configurable (misc, re: #1068)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3197 74dad513-b988-da41-8d7b-12977e46ad98
2010-06-03 16:18:11 +00:00
Benny Prijono a6ff3af6fe Misc (#1026): added more documentation for PJNATH_EICEFAILED error code
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3118 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-08 03:25:17 +00:00
Benny Prijono bc2bec77f1 Fixed minor bug (#1026): custom ICE priority table must not assign greater priority for SRFLX than PRFLX candidate type (thanks Saúl Ibarra Corretgé for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3101 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-18 14:52:05 +00:00
Benny Prijono 41903da982 Fixed ticket #999:
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: https://svn.pjsip.org/repos/pjproject/trunk@3028 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-08 13:11:25 +00:00
Benny Prijono 39f187cb19 More #953 (ICE may find the wrong best candidate):
- the sorting process may cause valid checks to point to the wrong candidate pair. This is reproducible by pjnath-test


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3022 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-23 15:02:18 +00:00
Benny Prijono bff0c9e7bf Misc (#951): fixed misc compilation warnings with gcc
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3005 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10 05:54:58 +00:00
Benny Prijono 0e61a5b9e2 More #950 (QoS): updated with the new pj_perror() syntax
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2993 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09 04:32:33 +00:00
Benny Prijono 4d79b0f7f1 Initial commit for ticket #950: QoS support:
- 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: https://svn.pjsip.org/repos/pjproject/trunk@2966 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-25 09:02:07 +00:00
Benny Prijono 3249988985 Fixed ticket #974: Crash if ICE session is destroyed by the application inside "on_ice_complete" with an PJ_ICE_STRANS_OP_NEGOTIATION op callback (thanks John Ridges for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2948 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-15 04:46:39 +00:00
Benny Prijono f5d9f1f381 Ticket #881: send UPDATE or re-INVITE after ICE negotiation, if the default 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: https://svn.pjsip.org/repos/pjproject/trunk@2945 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-14 13:13:18 +00:00
Benny Prijono 43cccb99ce Fixed ticket #971: Assertion in ICE with regular nomination strategy when registering timer
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2944 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-14 10:36:32 +00:00
Benny Prijono 140beae268 Ticket #951 (misc fixes):
- fixed misc compiler warnings with gcc on Linux


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2938 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-11 05:06:43 +00:00
Benny Prijono f7bcbe3bdf More ticket #960: STUN compatibility problem with RFC 3489 servers (in encoding SERVER-NAME or SOFTWARE attribute)
- rollback the previous fix in r2916 since it is broken. It fails various authentication scenarios due to alignment of USERNAME attribute
 - this fix only applies old alignment rule to SERVERNAME attribute or when STUN magic is not used in the message
 - also disabled test vectors from draft-denis-behave-rfc3489bis-test-vectors-02, it fails with this fix


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2928 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-07 08:38:02 +00:00
Benny Prijono e0351cb7c7 Ticket #960: STUN compatibility problem with RFC 3489 servers (in encoding SERVER-NAME or SOFTWARE attribute)
- now always set string attribute's length to 4-bytes aligned



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2916 74dad513-b988-da41-8d7b-12977e46ad98
2009-10-01 06:06:01 +00:00
Benny Prijono 44afb0da30 Fixed ticket #953: ICE may find the wrong best candidate (thanks John Ridges for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2905 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-20 22:42:29 +00:00
Benny Prijono 169f92c7e0 Ticket #916: Crash in TURN client when TCP connection is used
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2831 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-10 15:38:19 +00:00
Nanang Izzuddin ab2e716896 Misc fix (#915): Moved a call to dump_check() in ice_session.c to be inside the log printing.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2827 74dad513-b988-da41-8d7b-12977e46ad98
2009-07-02 11:09:23 +00:00
Benny Prijono 2523a84c31 Ticket #894: fixed failed pjnath ice test due to too many network adapter installed in the host
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2785 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-23 12:08:20 +00:00
Benny Prijono 4fd2bfe861 Ticket #894: pjnath test failed on ICE test if the host has three or more network adapters
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2784 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-22 21:17:16 +00:00
Nanang Izzuddin 60141e711a Ticket #892: Added IPv6-enabled check (compile-time) in stun test vector containing IPv6 data, also added more run-time checks in stun fingerprint test internal.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2775 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-18 14:04:44 +00:00
Benny Prijono 1572cd6e29 Ticket #889: TURN client ignores the allocation parameter specified by application
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2774 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-17 19:20:11 +00:00
Benny Prijono d4afaaa514 Ticket #888: TURN client allocation failure when it receives multiple 438/Stale Nonce responses (thanks Peter Livesey for the report)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2773 74dad513-b988-da41-8d7b-12977e46ad98
2009-06-17 19:14:20 +00:00
Benny Prijono 329d638568 Integration of Sipit24 branch, many tickets involved:
- #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: https://svn.pjsip.org/repos/pjproject/trunk@2724 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-29 13:04:03 +00:00
Benny Prijono ae720abe87 Minor (#838): updated TURN compatibility to draft-ietf-behave-turn-14 (from draft-turn-13)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2694 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-12 10:50:13 +00:00
Benny Prijono 7925fb330a Ticket #840: Update in pjnath-test to support updated TURN draft
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2693 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-12 10:14:52 +00:00
Benny Prijono 5c173ccba4 Fixed ticket #839: Crash in TURN lookup_ch_by_addr() function when sending data
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2692 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-12 10:11:10 +00:00
Benny Prijono 11e71230ae Minor fixes (#838): const correctness in some function call arguments@
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2691 74dad513-b988-da41-8d7b-12977e46ad98
2009-05-12 10:01:21 +00:00
Benny Prijono dc61a2eeb9 Ticket #757:
- put the default IP as the first host candidate



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2667 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-30 17:14:50 +00:00
Benny Prijono dc8c49028e More ticket #706: renamed output names from vs8 to vc8 to make it backward compatible
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2664 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-29 15:30:38 +00:00
Nanang Izzuddin 89c273edc7 Initial VS settings for all platforms.
git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/vs-reorg2@2649 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-27 12:41:05 +00:00
Benny Prijono 8440eee1bf Part of ticket #780: enhance the PJNATH doxygen documentation
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2642 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-22 17:20:24 +00:00
Nanang Izzuddin 0cf8d05d62 Ticket #706: Merged branch vs-reorg into trunk:
- Currently supported platforms are Win32 & WM6 std/pro.
 - Renamed project test_pjsip with pjsip_test, also source directory 'test-pjsip' to 'test'.




git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2638 74dad513-b988-da41-8d7b-12977e46ad98
2009-04-22 14:27:55 +00:00