Package javax.slee

Examples of javax.slee.ActivityContextInterface.attach()


        .getUserEndpoint());

    try {
      ActivityContextInterface generatorActivity = msActivityFactory
          .getActivityContextInterface(generator);
      generatorActivity.attach(getSbbContext().getSbbLocalObject());

      generator.apply(Announcement.PLAY, new String[] { audioFileURL
          .toString() });

      // this.initDtmfDetector(getConnection(), this.getEndpointName());
View Full Code Here


        // Attaching session AC
        ActivityContextInterface msAci = null;
        try {
          msAci = msActivityFactory
              .getActivityContextInterface(msConnection);
          msAci.attach(this.getSbbLocalObject());
        } catch (Exception ex) {
          log.error("Internal server error", ex);
          getMessageFactory().createResponse(
              Response.SERVER_INTERNAL_ERROR, request);
          return;
View Full Code Here

        ActivityContextInterface dialogAci = sipACIF
            .getActivityContextInterface(dial);

        // attach this SBB object to the Dialog activity to receive
        // subsequent events on this Dialog
        dialogAci.attach(this.getSbbLocalObject());

        // Notify caller that we're TRYING to reach voice mail. Just a
        // formality, we know we can go further than TRYING at this
        // point
        response = getMessageFactory().createResponse(Response.TRYING,
View Full Code Here

          .getSignalGenerator(endpointName);

      try {
        ActivityContextInterface generatorActivity = msActivityFactory
            .getActivityContextInterface(generator);
        generatorActivity.attach(this.getSbbLocalObject());

        URL audioFileURL = getClass().getResource(waitingDTMF);

        generator.apply(Announcement.PLAY, new String[] { audioFileURL
            .toString() });
View Full Code Here

          .getSignalGenerator(endpointName);

      try {
        ActivityContextInterface dtmfAci = msActivityFactory
            .getActivityContextInterface(signalGenerator);
        dtmfAci.attach(this.getSbbLocalObject());
        signalGenerator.apply(AU.PLAY_RECORD, params);
      } catch (UnrecognizedActivityException e) {
        log.error(e.getMessage(), e);
      }
    }
View Full Code Here

    MsSignalDetector dtmfDetector = msProvider
        .getSignalDetector(userEndPoint);
    try {
      ActivityContextInterface dtmfAci = msActivityFactory
          .getActivityContextInterface(dtmfDetector);
      dtmfAci.attach(this.getSbbLocalObject());
      dtmfDetector.receive(Basic.DTMF, connection, new String[] {});
    } catch (UnrecognizedActivityException e) {
      log.error(e.getMessage(), e);
    }
  }
View Full Code Here

        try {
            linkActivity = mediaAcif.getActivityContextInterface(link);
        } catch (UnrecognizedActivityException ex) {
        }

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

    public void onLinkCreated(MsLinkEvent evt, ActivityContextInterface aci) {
        MsLink link = evt.getSource();
View Full Code Here

    public void playNext() {
        String url = (String) this.getSequence().get(this.getIndex());
        MsSignalGenerator generator = msProvider.getSignalGenerator(getAnnouncementEndpoint());
        try {
            ActivityContextInterface generatorActivity = mediaAcif.getActivityContextInterface(generator);
            generatorActivity.attach(sbbContext.getSbbLocalObject());
            generator.apply(Announcement.PLAY, new String[]{url});
            this.setIndex(getIndex() + 1);
        } catch (UnrecognizedActivityException e) {
        }
    }
View Full Code Here

    private void initDtmfDetector(MsConnection connection) {
        MsSignalDetector dtmfDetector = msProvider.getSignalDetector(this.getUserEndpoint());
        try {
            ActivityContextInterface dtmfAci =
                    mediaAcif.getActivityContextInterface(dtmfDetector);
            dtmfAci.attach(sbbContext.getSbbLocalObject());
            dtmfDetector.receive(Basic.DTMF, connection, new String[]{});
        } catch (UnrecognizedActivityException e) {
        }
    }
   
View Full Code Here

        ActivityContextInterface daci = null;
        try {
            Dialog dialog = sipProvider.getNewDialog(evt.getServerTransaction());
            dialog.terminateOnBye(true);
            daci = acif.getActivityContextInterface(dialog);
            daci.attach(sbbContext.getSbbLocalObject());
        } catch (Exception e) {
            logger.error("Error during dialog creation", e);
            respond(evt, Response.SERVER_INTERNAL_ERROR);
            return;
        }
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.