Examples of MsLink


Examples of org.mobicents.mscontrol.MsLink

        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) {
        }

        linkActivity.attach(sbbContext.getSbbLocalObject());
        link.join(userEndpoint, ANNOUNCEMENT_ENDPOINT);
    }
View Full Code Here

Examples of org.mobicents.mscontrol.MsLink

        linkActivity.attach(sbbContext.getSbbLocalObject());
        link.join(userEndpoint, ANNOUNCEMENT_ENDPOINT);
    }

    public void onLinkCreated(MsLinkEvent evt, ActivityContextInterface aci) {
        MsLink link = evt.getSource();
        String announcementEndpoint = link.getEndpoints()[1];

        logger.info("Announcement endpoint: " + announcementEndpoint);
        this.setAnnouncementEndpoint(announcementEndpoint);

        playNext();
View Full Code Here

Examples of org.mobicents.mscontrol.MsLink

        logger.info("Index= " + getIndex() + " keepAlive = " + this.getKeepAlive());

        if (this.getIndex() == this.getSequence().size() && !this.getKeepAlive()) {
            logger.info("Releasing link");
            MsLink link = this.getLink();
            link.release();
        } else {
            logger.info("Replay");
            this.setIndex(0);
            playNext();
        }
View Full Code Here

Examples of org.mobicents.mscontrol.MsLink

        }
    }

    public void onUserDisconnected(MsConnectionEvent evt, ActivityContextInterface aci) {
        System.out.println("Finita la commedia");
        MsLink link = this.getLink();
        if (link != null) {
            link.release();
        }
    }
View Full Code Here

Examples of org.mobicents.mscontrol.MsLink

    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) {
        }

        linkActivity.attach(sbbContext.getSbbLocalObject());
        link.join(endpointName, CNF_ENDPOINT);
    }
View Full Code Here

Examples of org.mobicents.mscontrol.MsLink

        linkActivity.attach(sbbContext.getSbbLocalObject());
        link.join(endpointName, CNF_ENDPOINT);
    }
   
    public void onConfBridgeCreated(MsLinkEvent evt, ActivityContextInterface aci) {
        MsLink link = evt.getSource();
        String endpointName = link.getEndpoints()[1];

        logger.info("Created conference bridge: " + endpointName);
        ActivityContextInterface connectionActivity = this.getConnectionActivity();
       
        ChildRelation childRelation = this.getParticipantSbb();
View Full Code Here

Examples of org.mobicents.mscontrol.MsLink

  public void onAnnouncementComplete(MsNotifyEvent evt,
      ActivityContextInterface aci) {
    logger.info("Announcement complete: ");
    if (this.getSendBye()) {
      MsLink link = this.getLink();
      link.release();
    }
  }
View Full Code Here

Examples of org.mobicents.mscontrol.MsLink

    }
  }

  public void onLinkCreated(MsLinkEvent evt, ActivityContextInterface aci) {
    logger.info("--------onLinkCreated------------");
    MsLink link = evt.getSource();
    String announcementEndpoint = link.getEndpoints()[1];

    String endpointName = null;
    if (this.getEndpointName() == null) {
      this.setEndpointName(link.getEndpoints()[0]);
    }

    if (this.getAnnouncementEndpointName() == null) {
      this.setAnnouncementEndpointName(announcementEndpoint);
    }
View Full Code Here

Examples of org.mobicents.mscontrol.MsLink

      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) {
      ex.printStackTrace();
    }

    linkActivity.attach(getParentCmp());

    link.join(connection.getEndpoint(), ANNOUNCEMENT_ENDPOINT);
  }
View Full Code Here

Examples of org.mobicents.mscontrol.MsLink

  public void onAnnouncementComplete(MsNotifyEvent evt,
      ActivityContextInterface aci) {
    logger.info("Announcement complete: ");
    if (this.getSendBye()) {
      MsLink link = this.getLink();
      link.release();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.