public void handlePacketReceived( ByteBuffer byteBuffer, SocketAddress address, final SipChannel channel) { log.debug("Handling SIP Packet Received..."); int i = 0; for (final SipPacketProcessor packetProcessor : packetProcessors) { log.debug( "Processing SIP Packet Received (" + (i++) + "):" + packetProcessor.getClass().getCanonicalName()); packetProcessor.processSipPacket(byteBuffer, address, channel); } }
public void addPacketProcessor(final SipPacketProcessor sipPacketProcessor) { log.debug("Added SipPacketProcessor: " + sipPacketProcessor.getClass().getCanonicalName()); packetProcessors.add(sipPacketProcessor); }