Exemplo n.º 1
0
 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);
   }
 }
Exemplo n.º 2
0
 public void addPacketProcessor(final SipPacketProcessor sipPacketProcessor) {
   log.debug("Added SipPacketProcessor: " + sipPacketProcessor.getClass().getCanonicalName());
   packetProcessors.add(sipPacketProcessor);
 }