Package org.asteriskjava.manager.event

Examples of org.asteriskjava.manager.event.RtcpReceivedEvent


                dispatcher.dispatchedEvents.size());

        assertEquals("first event must be a RtcpReceivedEvent",
                RtcpReceivedEvent.class, dispatcher.dispatchedEvents.get(0).getClass());

        RtcpReceivedEvent rtcpReceivedEvent = (RtcpReceivedEvent) dispatcher.dispatchedEvents.get(0);
        assertEquals("Invalid from address on RtcpReceivedEvent", "192.168.0.1", rtcpReceivedEvent.getFromAddress().getHostAddress());
        assertEquals("Invalid from port on RtcpReceivedEvent", new Integer(1234), rtcpReceivedEvent.getFromPort());
        assertEquals("Invalid highest sequence on RtcpReceivedEvent", new Long(999), rtcpReceivedEvent.getHighestSequence());

        assertEquals("second event must be a DisconnectEvent",
                DisconnectEvent.class, dispatcher.dispatchedEvents.get(1).getClass());
    }
View Full Code Here

TOP

Related Classes of org.asteriskjava.manager.event.RtcpReceivedEvent

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.