/** * Receive notification of the session description. Parser will call * this method to report about session descriptor reading. * * @param sd * the session description from message. */ public void sessionDescription(String sd) throws ParseException { response.setLocalConnectionDescriptor(new ConnectionDescriptor(sd)); } }
/** * Receive notification of the session description. Parser will call * this method to report about session descriptor reading. * * @param sd * the session description from message. */ public void sessionDescription(String sd) throws ParseException { command.setRemoteConnectionDescriptor(new ConnectionDescriptor(sd)); } }
/** * Receive notification of the session description. Parser will call * this method to report about session descriptor reading. * * @param sd * the session description from message. */ public void sessionDescription(String sd) throws ParseException { response.setLocalConnectionDescriptor(new ConnectionDescriptor(sd)); } }
/** * Receive notification of the session description. Parser will call * this method to report about session descriptor reading. * * @param sd * the session description from message. */ public void sessionDescription(String sd) throws ParseException { command.setRemoteConnectionDescriptor(new ConnectionDescriptor(sd)); } }
/** * Receive notification of the session description. Parser will call * this method to report about session descriptor reading. * * @param sd * the session description from message. */ public void sessionDescription(String sd) throws ParseException { command.setRemoteConnectionDescriptor(new ConnectionDescriptor(sd)); } }
/** * Receive notification of the session description. Parser will call * this method to report about session descriptor reading. * * @param sd * the session description from message. */ public void sessionDescription(String sd) throws ParseException { response.setLocalConnectionDescriptor(new ConnectionDescriptor(sd)); } }
/** * Receive notification of the session description. Parser will call * this method to report about session descriptor reading. * * @param sd * the session description from message. */ public void sessionDescription(String sd) throws ParseException { response.setLocalConnectionDescriptor(new ConnectionDescriptor(sd)); } }
/** * Receive notification of the session description. Parser will call * this method to report about session descriptor reading. * * @param sd * the session description from message. */ public void sessionDescription(String sd) throws ParseException { response.setLocalConnectionDescriptor(new ConnectionDescriptor(sd)); } }
/** * Receive notification of the session description. Parser will call * this method to report about session descriptor reading. * * @param sd * the session description from message. */ public void sessionDescription(String sd) throws ParseException { response.setLocalConnectionDescriptor(new ConnectionDescriptor(sd)); } }
/** * Receive notification of the session description. Parser will call * this method to report about session descriptor reading. * * @param sd * the session description from message. */ public void sessionDescription(String sd) throws ParseException { try { command.setRemoteConnectionDescriptor(new ConnectionDescriptor(sd)); } catch (Exception e) { logger.error("Unexpected error in session descriptor", e); } } }
/** * Receive notification of the session description. Parser will call * this method to report about session descriptor reading. * * @param sd * the session description from message. */ public void sessionDescription(String sd) throws ParseException { try { command.setRemoteConnectionDescriptor(new ConnectionDescriptor(sd)); } catch (Exception e) { logger.error("Unexpected error in session descriptor", e); } } }
/** * Receive notification of the session description. Parser will call * this method to report about session descriptor reading. * * @param sd * the session description from message. */ public void sessionDescription(String sd) throws ParseException { try { command.setRemoteConnectionDescriptor(new ConnectionDescriptor(sd)); } catch (Exception e) { logger.error("Unexpected error in session descriptor", e); } } }
public synchronized void established(final SipServletResponse successResponse) throws CallException, IOException { final List<State> possibleStates = new ArrayList<State>(); possibleStates.add(QUEUED); possibleStates.add(RINGING); assertState(possibleStates); byte[] answer = successResponse.getRawContent(); try { if(answer != null) { answer = patchMedia(successResponse.getInitialRemoteAddr(), successResponse.getRawContent()); final ConnectionDescriptor remoteDescriptor = new ConnectionDescriptor(new String(answer)); userAgentConnection.modify(remoteDescriptor); } else { terminate(); setState(FAILED); fireStatusChanged(); throw new CallException("The remote client did not send an SDP answer with their 200 OK response."); } } catch(final SdpException exception) { terminate(); setState(FAILED); fireStatusChanged(); throw new CallException(exception); } final SipServletRequest ack = successResponse.createAck(); ack.send(); }
code = ReturnCode.Transaction_Executed_Normally; final ModifyConnectionResponse response = new ModifyConnectionResponse(self, code); final ConnectionDescriptor descriptor = new ConnectionDescriptor(sdp); response.setLocalConnectionDescriptor(descriptor); final int transaction = mdcx.getTransactionHandle();
final ConnectionDescriptor remoteDescriptor = new ConnectionDescriptor(new String(offer)); userAgentConnection = session.createConnection(relayEndpoint, remoteDescriptor); userAgentConnection.addObserver(this);
code = ReturnCode.Transaction_Executed_Normally; final ModifyConnectionResponse response = new ModifyConnectionResponse(self, code); final ConnectionDescriptor descriptor = new ConnectionDescriptor(sdp); response.setLocalConnectionDescriptor(descriptor); final int transaction = mdcx.getTransactionHandle();
public void process(State state) { //prepear callID and endpointID parameters for request CallIdentifier callId = connection.getMediaSession().getCallID(); EndpointIdentifier endpointID = connection.getEndpoint().getIdentifier(); ConnectionIdentifier connectionID = connection.getConnectionID(); //ask for new unique transaction handler int txHandle = connection.getMediaSession().getUniqueHandler(); ModifyConnection req = new ModifyConnection(this, callId, endpointID, connectionID); req.setMode(ConnectionMode.Confrnce); req.setTransactionHandle(txHandle); try { req.setRemoteConnectionDescriptor(new ConnectionDescriptor(connection.sdpPortManager.remoteSdp.toString())); } catch (Exception e) { } //send request connection.getMediaSession().getDriver().attach(txHandle, new ModifyConnectionResponseHandler(connection)); connection.getMediaSession().getDriver().send(req); }
public void process(State state) { //prepear callID and endpointID parameters for request CallIdentifier callId = connection.getMediaSession().getCallID(); EndpointIdentifier endpointID = connection.getEndpoint().getIdentifier(); ConnectionIdentifier connectionID = connection.getConnectionID(); //ask for new unique transaction handler int txHandle = connection.getMediaSession().getUniqueHandler(); ModifyConnection req = new ModifyConnection(this, callId, endpointID, connectionID); req.setMode(ConnectionMode.Confrnce); req.setTransactionHandle(txHandle); try { req.setRemoteConnectionDescriptor(new ConnectionDescriptor(connection.sdpPortManager.remoteSdp.toString())); } catch (Exception e) { } //send request connection.getMediaSession().getDriver().attach(txHandle, new ModifyConnectionResponseHandler(connection)); connection.getMediaSession().getDriver().send(req); }
public void process(State state) { //prepear callID and endpointID parameters for request CallIdentifier callId = connection.getMediaSession().getCallID(); EndpointIdentifier endpointID = connection.getEndpoint().getIdentifier(); //ask for new unique transaction handler int txHandle = connection.getMediaSession().getUniqueHandler(); //generate message CreateConnection req = new CreateConnection(this, callId, endpointID, ConnectionMode.SendRecv); req.setTransactionHandle(txHandle); req.setNotifiedEntity(connection.getMediaSession().getDriver().getCallAgent()); //if SDP is present assign it to request if (connection.sdpPortManager.remoteSdp != null) { try { req.setRemoteConnectionDescriptor(new ConnectionDescriptor(connection.sdpPortManager.remoteSdp.toString())); req.setMode(ConnectionMode.Confrnce); } catch (Exception e) { } } //create handler for this and register it as listener connection.getMediaSession().getDriver().attach(txHandle, new CreateConnectionResponseHandler(connection)); //send request connection.getMediaSession().getDriver().send(req); }
public void process(State state) { //prepear callID and endpointID parameters for request CallIdentifier callId = connection.getMediaSession().getCallID(); EndpointIdentifier endpointID = connection.getEndpoint().getIdentifier(); //ask for new unique transaction handler int txHandle = connection.getMediaSession().getUniqueHandler(); //generate message CreateConnection req = new CreateConnection(this, callId, endpointID, ConnectionMode.SendRecv); req.setTransactionHandle(txHandle); req.setNotifiedEntity(connection.getMediaSession().getDriver().getCallAgent()); //if SDP is present assign it to request if (connection.sdpPortManager.remoteSdp != null) { try { req.setRemoteConnectionDescriptor(new ConnectionDescriptor(connection.sdpPortManager.remoteSdp.toString())); req.setMode(ConnectionMode.Confrnce); } catch (Exception e) { } } //create handler for this and register it as listener connection.getMediaSession().getDriver().attach(txHandle, new CreateConnectionResponseHandler(connection)); //send request connection.getMediaSession().getDriver().send(req); }