Package org.mobicents.mscontrol

Examples of org.mobicents.mscontrol.MsSession


        // SDP Description from the request
        String sdp = new String(request.getRawContent());

        // Creating Media Session
        MsSession mediaSession = msProvider.createSession();
        // Setting Media Session
        this.setMediaSession(mediaSession);
        MsConnection msConnection = mediaSession
            .createNetworkConnection(ENDPOINT_NAME);

        // Attaching session AC
        ActivityContextInterface msAci = null;
        try {
View Full Code Here


        //join user endpoint with any of the announcement endpoint
        ActivityContextInterface connectionActivity = sbbContext.getActivities()[0];
        logger.info("Joining " + userEndpoint + " with " + ANNOUNCEMENT_ENDPOINT);

        MsConnection connection = (MsConnection) connectionActivity.getActivity();
        MsSession session = connection.getSession();
        MsLink link = session.createLink(MsLink.MODE_FULL_DUPLEX);

        ActivityContextInterface linkActivity = null;
        try {
            linkActivity = mediaAcif.getActivityContextInterface(link);
        } catch (UnrecognizedActivityException ex) {
View Full Code Here

            return;
        }

        respond(evt, Response.RINGING);
       
        MsSession session = msProvider.createSession();
        MsConnection msConnection = session.createNetworkConnection(ENDPOINT_NAME);

        ActivityContextInterface msAci = null;
        try {
            msAci = msActivityFactory.getActivityContextInterface(msConnection);
            msAci.attach(sbbContext.getSbbLocalObject());
View Full Code Here

     */
    public void enter(String endpointName) {
        logger.info("Joining " + endpointName + " with " + CNF_ENDPOINT);
       
        MsConnection connection = (MsConnection) getConnectionActivity().getActivity();
        MsSession session = connection.getSession();
        MsLink link = session.createLink(MsLink.MODE_FULL_DUPLEX);

        ActivityContextInterface linkActivity = null;
        try {
            linkActivity = mediaAcif.getActivityContextInterface(link);
        } catch (UnrecognizedActivityException ex) {
View Full Code Here

          .getLocalDescriptor());
      dialog.sendAck(ackRequest);
    } catch (SipException e) {
      e.printStackTrace();
    }
    MsSession session = connection.getSession();
    MsLink link = session.createLink(MsLink.MODE_FULL_DUPLEX);

    ActivityContextInterface linkActivity = null;
    try {
      linkActivity = mediaAcif.getActivityContextInterface(link);
    } catch (UnrecognizedActivityException ex) {
View Full Code Here

      String sdp = new String(event.getResponse().getRawContent());

      log.debug("BeforeCalleeConfirmedState.handleOK sdpOffer = " + sdp);

      MsSession session = msProvider.createSession();
      MsConnection msConnection = session
          .createNetworkConnection(ENDPOINT_NAME);

      try {
        ActivityContextInterface aci = mediaAcif
            .getActivityContextInterface(msConnection);
View Full Code Here

     */
    public void startConversation(String endpointName) {
        logger.info("Joining " + endpointName + " with " + LOOP_ENDPOINT);
       
        MsConnection connection = (MsConnection) sbbContext.getActivities()[0].getActivity();
        MsSession session = connection.getSession();
        MsLink link = session.createLink(MsLink.MODE_FULL_DUPLEX);

        ActivityContextInterface linkActivity = null;
        try {
            linkActivity = mediaAcif.getActivityContextInterface(link);
        } catch (UnrecognizedActivityException ex) {
View Full Code Here

TOP

Related Classes of org.mobicents.mscontrol.MsSession

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.