493 Commits

Author SHA1 Message Date
Lyubomir Marinov
db7710396d Upgrades the Ant compiler source and target from 1.5 to 1.6 because Ant ignores 1.5 as obsolete and our sources require 1.6 anyway. 2015-08-11 15:43:12 -05:00
Lyubomir Marinov
f59d8c6dfc Reflects the adopted Maven standard directory layout in the Eclipse .classpath file. Removes Xalan as a compile-type dependency of the Eclipse project because it is not such a dependency anyway (Xalan is required by the Ant target test). 2015-08-11 14:50:25 -05:00
Lyubomir Marinov
26200eab21 Fixes GitHub issue #19: NPE in MediaDescription#setAttribute() because CandidateAttribute#attribute is null. 2015-07-28 15:33:39 -05:00
Lyubomir Marinov
7072173ed3 Fixes GitHub issue #22: CandidateAttribute.clone() causes NullPointerException. 2015-07-28 11:56:35 -05:00
Lyubomir Marinov
75c2a52f9e Fixes GitHub issue #24: Wrong preference for choosing default candidate (not in accordance with rfc5245). 2015-07-28 11:35:07 -05:00
Lyubomir Marinov
469f045b9b Fixes GitHub issue #25: DATA_INDICATION encode error with STUN(TURN). 2015-07-28 09:16:33 -05:00
Lyubomir Marinov
1960ab615a Moves the src and test directories to their respective Maven standard directory layout locations. 2015-07-28 08:56:48 -05:00
Lyubomir Marinov
4d08a7764f Moves the src and test directories to their respective Maven standard directory layout locations. 2015-07-28 08:48:27 -05:00
Lyubomir Marinov
71b27db69f Adds jitsi-maven-repository, avoids jitsi-universe prerequisite. 2015-07-27 13:49:44 -05:00
Boris Grozev
0e715bd79a Allows the tie breaker value for an Agent to be set (patch my Matt
Fredrickson).
2015-07-24 18:18:53 -05:00
Boris Grozev
8443e7e914 Fixes compilaiton using jdk older than 1.8 (based on Matt Fredrickson's patch). 2015-07-20 11:14:17 -05:00
Boris Grozev
eb35310969 Compares tie breakers as unsigned longs to as RFC5245 mandates. Based on Matt Fredrickson's report and patch. Fixes #28. 2015-07-20 10:58:31 -05:00
Boris Grozev
1ba6076431 Fixes types. 2015-07-20 10:17:19 -05:00
Lyubomir Marinov
8862d9cc5a Removes obsolete source code. 2015-07-15 16:47:20 -05:00
Lyubomir Marinov
84f8559d35 Changes the URL of the ice4j project from Google Code to GitHub. 2015-07-14 13:17:00 -05:00
Boris Grozev
fd0ca16423 Moves the content from the home page to README.md. 2015-07-13 17:12:35 -05:00
lubomir.marinov
ffa876fa04 Extends the ice4j Maven project from the jitsi-universe Maven project in order to inherit common characteristics such as groupId, dependency and plugin versions. 2015-07-10 19:39:33 +00:00
boris
b67ebf259d Adds the PATCH method to HttpDemuxFilter (reported by peili on github: https://github.com/jitsi/jitsi-videobridge/issues/69#issuecomment-116845076). 2015-07-08 20:09:44 +00:00
lubomir.marinov
eea3d27caa Adds Maven support. 2015-06-29 00:10:16 +00:00
lubomir.marinov
a4f7d4ff8d Fixes a stack overflow reported by James B. Byrne, investigated by Danny van Heumen. 2015-06-19 20:41:36 +00:00
boris
50e8ac2616 Exposes the useHostHarvester flag of an Agent. 2015-06-02 12:22:42 +00:00
boris
8d96b29382 Fixes the address filtering for single-port UDP. 2015-06-02 12:22:32 +00:00
boris
1f4aeebe38 Supports server reflexive candidates for single-port UDP, and
automatically detects mappings for EC2.
2015-06-02 12:22:23 +00:00
boris
471f91b364 Automatically adds a mapping for TCP when running on EC2. 2015-06-02 12:22:14 +00:00
boris
4f4b5005f9 Fix REQUEST_METHOD_MAX_LENGTH initialization. 2015-05-20 16:56:39 +00:00
lubomir.marinov
e9398b9353 Restores building and running with a non-8 JDK after r499. 2015-05-14 12:44:00 +00:00
lubomir.marinov
446607e5d7 Allows a listening endpoint to be shared among multiple protocols (e.g. ICE-TCP, HTTP). 2015-05-01 07:58:40 +00:00
lubomir.marinov
c7b8fd2e2b Fixes warnings. Adds javadocs. 2015-04-29 09:26:24 +00:00
boris
bd3f6c663f Exposes the "logPacketToPcap" method, because it is used in Jitsi. 2015-03-30 12:19:27 +00:00
boris
3355481bf8 Drop the first packet instead of the last. 2015-03-30 10:49:39 +00:00
boris
bb688bc896 Remove code (trying to) calculate and log RTP statistics. 2015-03-30 10:49:32 +00:00
boris
b0c8e73b36 Minor formatting changes, make methods package-private. 2015-03-30 10:49:23 +00:00
gp
03c5f7c162 Renames the "reachable" flag to "alive" and adds additional comments explaining its purpose and usage. 2015-03-19 11:15:26 +00:00
gp
b564f06732 Adds a "reachable" flag to the ConnectivityCheck*.java for debugging purposes. 2015-03-19 10:11:05 +00:00
boris
23d3b809cb Makes sure that threads in receive() get a SocketException when the
socket closes.
2015-03-13 13:39:01 +00:00
boris
cd826a1233 Treat the TERMINATED state the same as COMPLETED when handling binding
responses.
2015-03-13 13:38:38 +00:00
boris
89fd7625fe Synchronize access to the Agent's state. Harden state checks to avoid
bugs due to race conditions. Don't fire state change events unless the
state indeed changed. Improve logging.
2015-03-13 13:38:19 +00:00
boris
4cb51d0302 Respects the IPv6 configuration in SinglePortUdpHarvester. Fixes typos. 2015-03-09 18:24:51 +00:00
boris
f9ee7aedba Synchronizes access to an Agent's termination thread
because of an observed race condition leading to calling
start() twice.

14:29:26.756 INFO: [28] org.ice4j.ice.ConnectivityCheckClient.processSuccessResponse() Nomination confirmed for pair: 192.168.1.116:7777/udp/host -> 192.168.1.116:62365/udp/prflx (stream.RTP)
14:29:26.757 INFO: [28] org.ice4j.ice.CheckList.handleNominationConfirmed() Selected pair for stream stream.RTP: 192.168.1.116:7777/udp/host -> 192.168.1.116:62365/udp/prflx (stream.RTP)
14:29:26.758 INFO: [29] org.ice4j.ice.Agent.checkListStatesUpdated() CheckList of stream stream is COMPLETED 14:29:26.758 INFO: [28] org.ice4j.ice.Agent.checkListStatesUpdated() CheckList of stream stream is COMPLETED
14:29:26.758 INFO: [29] org.ice4j.ice.Agent.checkListStatesUpdated() ICE state is COMPLETED
14:29:26.758 INFO: [28] org.ice4j.ice.Agent.checkListStatesUpdated() ICE state is COMPLETED
14:29:26.758 INFO: [29] org.jitsi.videobridge.IceUdpTransportManager.info() ICE processing state of IceUdpTransportManager #2dcab970 (for channels ca079f8cc6778b96 38480814176d5f95 727e3ef175b4a77c)  of con ference bd46bc5c213945f7 changed from Running to Completed.
14:29:26.759 INFO: [28] org.jitsi.videobridge.IceUdpTransportManager.info() ICE processing state of IceUdpTransportManager #2dcab970 (for channels ca079f8cc6778b96 38480814176d5f95 727e3ef175b4a77c)  of con ference bd46bc5c213945f7 changed from Completed to Completed.
14:29:26.766 INFO: [29] org.ice4j.ice.Agent.logCandTypes() Harvester used for selected pair for stream.RTP: host
14:29:26.769 WARNING: [28] org.ice4j.stack.NetAccessManager.handleFatalError() A message processor has unexpectedly stopped. AP:org.ice4j.stack.MessageProcessor@de4a162
java.lang.IllegalThreadStateException
    at java.lang.Thread.start(Thread.java:705)
    at org.ice4j.ice.Agent.scheduleTermination(Agent.java:1930)
    at org.ice4j.ice.Agent.checkListStatesUpdated(Agent.java:1726)
    at org.ice4j.ice.ConnectivityCheckClient.updateCheckListAndTimerStates(ConnectivityCheckClient.java:437)
    at org.ice4j.ice.ConnectivityCheckClient.processResponse(ConnectivityCheckClient.java:360)
    at org.ice4j.stack.StunClientTransaction.handleResponse(StunClientTransaction.java:492)
    at org.ice4j.stack.StunStack.handleMessageEvent(StunStack.java:1028)
    at org.ice4j.stack.MessageProcessor.run(MessageProcessor.java:159)
    at java.lang.Thread.run(Thread.java:745)
2015-03-09 18:24:42 +00:00
boris
818cd10a2f Reduces the log level of logs when freeing an agent and its streams. 2015-03-09 18:24:33 +00:00
boris
7268fb7a75 Logs failures to get host candidates. 2015-03-09 18:24:19 +00:00
boris
7b21db735f Log a message and abort harvesting, rather than failing with an
exception, in case harvesting is not possible due to the harvester
not supporting Agents with multiple components.
2015-03-04 08:01:36 +00:00
boris
59deb864f7 Adds a utility method for creating single-port harvesters for the IP
addresses considered "allowed" by ice4j.
2015-03-02 14:05:58 +00:00
boris
ab81b469af Controls the use of the dynamic host harvester with a property instead
of an API call.
2015-03-02 14:05:51 +00:00
boris
61d82e0885 Adds a UDP harvester using a single port. 2015-02-27 16:42:49 +00:00
boris
a55f6c6be6 Supports multiple "host" harvesters. Allows the default dynamic harvester to be disabled. 2015-02-27 16:42:37 +00:00
boris
5ebfe11c55 Refactors NetAccessManager. Allows UDP sockets to be associated with a
specific remote address.
2015-02-27 16:42:25 +00:00
boris
f322f67f93 Refactors the finding of a CandidatePair's socket. 2015-02-27 16:42:15 +00:00
boris
6999ebc19d Removes code duplication. 2015-02-27 16:42:05 +00:00
lubomir.marinov
5e489a8f05 Fixes a (possible) NullPointerException. 2015-02-08 14:02:17 +00:00