Package javax.slee

Examples of javax.slee.ChildRelation


     *
     * @see org.mobicents.examples.media.Demo#startConversation(String, ActivityContextInterface).
     */
    public void startDemo(String endpointName) {
        this.setUserEndpoint(endpointName);
        ChildRelation childRelation = this.getAnnouncementSbb();
        try {
            Announcement announcement = (Announcement) childRelation.create();
            sbbContext.getActivities()[0].attach(announcement);
            List sequence = new ArrayList();
            sequence.add(WELCOME_MSG);
            announcement.play(endpointName, sequence, false);
        } catch (CreateException e) {
View Full Code Here


        }
    }

    public void onAnnouncementComplete(MsLinkEvent evt, ActivityContextInterface aci) {
        try {
            ChildRelation childRelation = this.getForestSbb();
            Forest forest = (Forest) childRelation.create();
            this.getConnectionActivity().attach(forest);
            this.getConnectionActivity().detach(sbbContext.getSbbLocalObject());
            forest.enter(this.getUserEndpoint());
            logger.info("Going to the forest");
        } catch (CreateException e) {
View Full Code Here

        String endpointName = link.getEndpoints()[1];

        logger.info("Created conference bridge: " + endpointName);
        ActivityContextInterface connectionActivity = this.getConnectionActivity();
       
        ChildRelation childRelation = this.getParticipantSbb();
        try {
            logger.info("Joining crickets: " + CRICKETS);           
            List cricketVoice = new ArrayList();
            cricketVoice.add(CRICKETS);
            Announcement crickets = (Announcement) childRelation.create();
            connectionActivity.attach(crickets);
            crickets.play(endpointName, cricketVoice, true);
                       
            logger.info("Joining mocking: " + MOCKING);
            List mockingVoice = new ArrayList();
            mockingVoice.add(MOCKING);
            Announcement mocking = (Announcement) childRelation.create();
            connectionActivity.attach(mocking);
           
            mocking.play(endpointName, mockingVoice, true);
           
//            logger.info("Joining cuckoo: " + CUCKOO);
View Full Code Here

      sa.setCallerSession(callerSession);

      // put the callId for the callee dialog in the cache
      getCacheUtility().put(calleeCallId, sa);

      ChildRelation relation = getCallControlSbbChild();
      // Create child SBB
      CallControlSbbLocalObject child = (CallControlSbbLocalObject) relation
          .create();

      setChildSbbLocalObject(child);

      child.setParent(getSbbContext().getSbbLocalObject());
View Full Code Here

      sa.setCallerSession(callerSession);

      // put the callId for the callee dialog in the cache
      getCacheUtility().put(calleeCallId, sa);

      ChildRelation relation = getCallControlSbbChild();
      // Create child SBB
      CallControlSbbLocalObject child = (CallControlSbbLocalObject) relation
          .create();

      setChildSbbLocalObject(child);

      child.setParent(getSbbContext().getSbbLocalObject());
View Full Code Here

      sa.setCallerSession(callerSession);

      // put the callId for the callee dialog in the cache
      getCacheUtility().put(calleeCallId, sa);

      ChildRelation relation = getCallControlSbbChild();
      // Create child SBB
      CallControlSbbLocalObject child = (CallControlSbbLocalObject) relation
          .create();

      setChildSbbLocalObject(child);

      child.setParent(getSbbContext().getSbbLocalObject());
View Full Code Here

      sa.setCallerSession(callerSession);

      // put the callId for the callee dialog in the cache
      getCacheUtility().put(calleeCallId, sa);

      ChildRelation relation = getCallControlSbbChild();
      // Create child SBB
      CallControlSbbLocalObject child = (CallControlSbbLocalObject) relation
          .create();

      setChildSbbLocalObject(child);

      child.setParent(getSbbContext().getSbbLocalObject());
View Full Code Here

     *
     * @see org.mobicents.examples.media.Demo#startConversation(String, ActivityContextInterface).
     */
    public void startDemo(String endpointName) {
        this.setUserEndpoint(endpointName);
        ChildRelation childRelation = this.getAnnouncementSbb();
        try {
            Announcement announcement = (Announcement) childRelation.create();
            sbbContext.getActivities()[0].attach(announcement);
           
            List sequence = new ArrayList();
            sequence.add(WELCOME_MSG);
           
View Full Code Here

        }
    }

    public void onAnnouncementComplete(MsLinkEvent evt, ActivityContextInterface aci) {
        try {
            ChildRelation childRelation = this.getLoopbackSbb();
            Conversation loopback = (Conversation) childRelation.create();
            logger.info("Starting loopback");
            sbbContext.getActivities()[0].attach(loopback);
            loopback.startConversation(this.getUserEndpoint());
        } catch (CreateException e) {
            MsConnection connection = (MsConnection)
View Full Code Here

TOP

Related Classes of javax.slee.ChildRelation

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.