public void processSdpAnswer(byte[] sdp) throws SdpPortManagerException { connection.debug("Processing SDP answer"); try { this.remoteSdp = sdpFactory.createSessionDescription(new String(sdp)); } catch (Exception e) { throw new SdpPortManagerException(e.getMessage()); } try { connection.fsm.signal(ConnectionTransition.MODIFY); } catch (UnknownTransitionException e) { throw new SdpPortManagerException(e.getMessage()); } }
public void processSdpAnswer(byte[] sdp) throws SdpPortManagerException { connection.debug("Processing SDP answer"); try { this.remoteSdp = sdpFactory.createSessionDescription(new String(sdp)); } catch (Exception e) { throw new SdpPortManagerException(e.getMessage()); } try { connection.fsm.signal(ConnectionTransition.MODIFY); } catch (UnknownTransitionException e) { throw new SdpPortManagerException(e.getMessage()); } }
public void rejectSdpOffer() throws SdpPortManagerException { try { connection.fsm.signal(ConnectionTransition.CLOSE); } catch (UnknownTransitionException e) { throw new SdpPortManagerException(e.getMessage()); } }
public void rejectSdpOffer() throws SdpPortManagerException { try { connection.fsm.signal(ConnectionTransition.CLOSE); } catch (UnknownTransitionException e) { throw new SdpPortManagerException(e.getMessage()); } }
public synchronized void generateSdpOffer() throws SdpPortManagerException { if (connection.getEndpoint().concreteNameExpectedSoon()) { try { connection.getEndpoint().await(); } catch (InterruptedException e) { throw new SdpPortManagerException(e.getMessage()); } } connection.debug("Generating SDP offer"); try { connection.fsm.signal(ConnectionTransition.OPEN); } catch (UnknownTransitionException e) { throw new SdpPortManagerException(e.getMessage()); } }
public synchronized void generateSdpOffer() throws SdpPortManagerException { if (connection.getEndpoint().concreteNameExpectedSoon()) { try { connection.getEndpoint().await(); } catch (InterruptedException e) { throw new SdpPortManagerException(e.getMessage()); } } connection.debug("Generating SDP offer"); try { connection.fsm.signal(ConnectionTransition.OPEN); } catch (UnknownTransitionException e) { throw new SdpPortManagerException(e.getMessage()); } }
public void setCodecPolicy(CodecPolicy codecPolicy) throws SdpPortManagerException { // checking codec policy: required should not be excluded String[] required = codecPolicy.getRequiredCodecs(); for (String codec : required) { if (lookup(codec, codecPolicy.getExcludedCodecs())) { throw new SdpPortManagerException("Codec " + codec + " is excluded"); } } // checking codec policy: excluded should not be in capabilities or // preferences String[] excluded = codecPolicy.getExcludedCodecs(); for (String codec : excluded) { if (lookup(codec, codecPolicy.getCodecCapabilities())) { throw new SdpPortManagerException("Codec " + codec + " is excluded but in capabilities"); } if (lookup(codec, codecPolicy.getCodecPreferences())) { throw new SdpPortManagerException("Codec " + codec + " is excluded but in preferences"); } } // assign specified policy this.codecPolicy = codecPolicy; }
public void setCodecPolicy(CodecPolicy codecPolicy) throws SdpPortManagerException { // checking codec policy: required should not be excluded String[] required = codecPolicy.getRequiredCodecs(); for (String codec : required) { if (lookup(codec, codecPolicy.getExcludedCodecs())) { throw new SdpPortManagerException("Codec " + codec + " is excluded"); } } // checking codec policy: excluded should not be in capabilities or // preferences String[] excluded = codecPolicy.getExcludedCodecs(); for (String codec : excluded) { if (lookup(codec, codecPolicy.getCodecCapabilities())) { throw new SdpPortManagerException("Codec " + codec + " is excluded but in capabilities"); } if (lookup(codec, codecPolicy.getCodecPreferences())) { throw new SdpPortManagerException("Codec " + codec + " is excluded but in preferences"); } } // assign specified policy this.codecPolicy = codecPolicy; }
connection.getEndpoint().await(); } catch (InterruptedException e) { throw new SdpPortManagerException(e.getMessage()); } catch (Exception e) { e.printStackTrace(); throw new SdpPortManagerException(e.getMessage()); sdpProcessor.exclude(f, remoteSdp); } catch (Exception e) { throw new SdpPortManagerException(e.getMessage()); connection.fsm.signal(ConnectionTransition.OPEN); } catch (UnknownTransitionException e) { throw new SdpPortManagerException("state= " + connection.fsm.getState().getName() + " transition: " + e.getMessage());
connection.getEndpoint().await(); } catch (InterruptedException e) { throw new SdpPortManagerException(e.getMessage()); } catch (Exception e) { e.printStackTrace(); throw new SdpPortManagerException(e.getMessage()); sdpProcessor.exclude(f, remoteSdp); } catch (Exception e) { throw new SdpPortManagerException(e.getMessage()); connection.fsm.signal(ConnectionTransition.OPEN); } catch (UnknownTransitionException e) { throw new SdpPortManagerException("state= " + connection.fsm.getState().getName() + " transition: " + e.getMessage());