Examples of MsLink


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

  public void onAnnouncementComplete(MsNotifyEvent evt,
      ActivityContextInterface aci) {
    logger.info("Announcement complete: ");

    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 = link.getEndpoints()[0];
    logger.info("endpoint name: " + endpointName);
    logger.info("Announcement endpoint: " + announcementEndpoint);

    MsSignalGenerator generator = msProvider
        .getSignalGenerator(announcementEndpoint);
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

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

        linkActivity.attach(sbbContext.getSbbLocalObject());
        link.join(endpointName, LOOP_ENDPOINT);
    }
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.