Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
Cleaned up Ameche dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpermar committed Sep 30, 2013
1 parent ad5291f commit dbe382a
Show file tree
Hide file tree
Showing 35 changed files with 1 addition and 4,406 deletions.
24 changes: 0 additions & 24 deletions rayo-core/src/main/java/com/rayo/core/CallDirection.java

This file was deleted.

10 changes: 0 additions & 10 deletions rayo-core/src/main/java/com/rayo/core/OfferEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public class OfferEvent extends AbstractCallEvent {

private URI to;
private URI from;
private CallDirection direction;
private Map<String, String> headers;

public OfferEvent(String callId) {
Expand All @@ -34,14 +33,6 @@ public void setFrom(URI from) {
this.from = from;
}

public CallDirection getDirection() {
return direction;
}

public void setDirection(CallDirection direction) {
this.direction = direction;
}

public Map<String, String> getHeaders() {
return headers;
}
Expand All @@ -56,7 +47,6 @@ public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
.append("from",from)
.append("to",to)
.append("direction",direction)
.append("headers",headers)
.toString();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.rayo.core.xml.providers;

import static com.voxeo.utils.Strings.isEmpty;

import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
Expand All @@ -18,7 +16,6 @@
import com.rayo.core.AcceptCommand;
import com.rayo.core.AnswerCommand;
import com.rayo.core.AnsweredEvent;
import com.rayo.core.CallDirection;
import com.rayo.core.CallRef;
import com.rayo.core.CallRejectReason;
import com.rayo.core.ConnectCommand;
Expand Down Expand Up @@ -217,9 +214,6 @@ private Object buildOfferEvent(Element element) throws URISyntaxException {
offer.setFrom(toURI(element.attributeValue("from")));
offer.setTo(toURI(element.attributeValue("to")));
String dir = element.attributeValue("direction");
if (!isEmpty(dir)) {
offer.setDirection(toEnum(CallDirection.class, "direction", element));
}
offer.setHeaders(grabHeaders(element));

return offer;
Expand Down Expand Up @@ -727,11 +721,6 @@ private Document createOfferEvent(Object object, Document document) {
root.addAttribute("to", offer.getTo().toString());
root.addAttribute("from", offer.getFrom().toString());

CallDirection direction = offer.getDirection();
if(direction != null) {
root.addAttribute("direction", direction.toString().toLowerCase());
}

addHeaders(offer.getHeaders(), root);

return document;
Expand Down
11 changes: 0 additions & 11 deletions rayo-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,6 @@
<artifactId>rayo-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.ameche</groupId>
<artifactId>ameche-model</artifactId>
<version>${ameche.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.voxeo</groupId>
<artifactId>vlib-core</artifactId>
Expand Down
19 changes: 0 additions & 19 deletions rayo-server/src/main/java/com/rayo/server/CallActor.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
import com.rayo.core.verb.UnmuteCommand;
import com.rayo.server.exception.RayoProtocolException;
import com.rayo.server.exception.RayoProtocolException.Condition;
import com.rayo.server.ims.CallDirectionResolver;
import com.voxeo.exceptions.NotFoundException;
import com.voxeo.logging.Loggerf;
import com.voxeo.moho.Call;
Expand Down Expand Up @@ -70,8 +69,6 @@ public class CallActor <T extends Call> extends AbstractActor<T> {
private CallRegistry callRegistry;
private MixerManager mixerManager;
private CallManager callManager;
private DialingCoordinator dialingCoordinator;
private CallDirectionResolver callDirectionResolver;

// This is used to synchronize Answered event with media join as Moho may send you
// an answered event before the media is joined
Expand Down Expand Up @@ -656,22 +653,6 @@ public void setCallManager(CallManager callManager) {
this.callManager = callManager;
}

public DialingCoordinator getDialingCoordinator() {
return dialingCoordinator;
}

public void setDialingCoordinator(DialingCoordinator dialingCoordinator) {
this.dialingCoordinator = dialingCoordinator;
}

public void setCallDirectionResolver(CallDirectionResolver callDirectionResolver) {
this.callDirectionResolver = callDirectionResolver;
}

public CallDirectionResolver getCallDirectionResolver() {
return callDirectionResolver;
}

public CallActor<?> getCallActor(String id) {

return callRegistry.get(id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import org.jetlang.fibers.PoolFiberFactory;

import com.rayo.server.ims.CallDirectionResolver;
import com.rayo.server.verb.VerbManager;
import com.voxeo.logging.Loggerf;
import com.voxeo.moho.Call;
Expand All @@ -19,8 +18,6 @@ public class DefaultCallActorFactory implements CallActorFactory {
private CallRegistry callRegistry;
private MixerManager mixerManager;
private CallManager callManager;
private DialingCoordinator dialingCoordinator;
private CallDirectionResolver callDirectionResolver;

@Override
public CallActor<?> create(Call call) {
Expand All @@ -43,8 +40,6 @@ public CallActor<?> create(Call call) {
actor.setCallRegistry(callRegistry);
actor.setMixerManager(mixerManager);
actor.setCallManager(callManager);
actor.setDialingCoordinator(dialingCoordinator);
actor.setCallDirectionResolver(callDirectionResolver);
return actor;
}

Expand Down Expand Up @@ -91,17 +86,4 @@ public CallManager getCallManager() {
public void setCallManager(CallManager callManager) {
this.callManager = callManager;
}

public DialingCoordinator getDialingCoordinator() {
return dialingCoordinator;
}

public void setDialingCoordinator(DialingCoordinator dialingCoordinator) {
this.dialingCoordinator = dialingCoordinator;
}

public void setCallDirectionResolver(CallDirectionResolver callDirectionResolver) {

this.callDirectionResolver = callDirectionResolver;
}
}
Loading

0 comments on commit dbe382a

Please sign in to comment.