Package org.mobicents.examples.media

Examples of org.mobicents.examples.media.Announcement.play()


        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) {
            logger.error("Unexpected error, Caused by", e);
            MsConnection connection = (MsConnection)
                    sbbContext.getActivities()[0].getActivity();
            connection.release();
View Full Code Here


        try {
            Announcement announcement = (Announcement) childRelation.create();
            this.getConnectionActivityContext().attach(announcement);
            List sequence = new ArrayList();
            sequence.add(url);
            announcement.play(this.getUserEndpoint(), sequence, false);           
        } catch (CreateException e) {
            logger.error("Unexpected error, Caused by", e);
            MsConnection connection = getConnection();
            connection.release();
        }
View Full Code Here

            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();
View Full Code Here

            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);
//            Announcement cuckoo = (Announcement) childRelation.create();
//            connectionActivity.attach(cuckoo);
           
View Full Code Here

            sbbContext.getActivities()[0].attach(announcement);
           
            List sequence = new ArrayList();
            sequence.add(WELCOME_MSG);
           
            announcement.play(endpointName, sequence, false);
        } catch (CreateException e) {
            logger.error("Unexpected error, Caused by", e);
            MsConnection connection = (MsConnection)
                    sbbContext.getActivities()[0].getActivity();
            connection.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.