Class InboundClientHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<EslMessage>
com.bytedesk.call.esl.client.internal.AbstractEslClientHandler
com.bytedesk.call.esl.client.inbound.InboundClientHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

class InboundClientHandler extends AbstractEslClientHandler
End users of the inbound Client should not need to use this class.

Specialised AbstractEslClientHandler that implements the connection logic for an 'Inbound' FreeSWITCH Event Socket connection. The responsibilities for this class are:

  • To handle the auth request that the FreeSWITCH server will send immediately following a new connection when mode is Inbound.
  • To signal the observing IEslProtocolListener (expected to be the Inbound client implementation) when ESL events are received.
Note: implementation requirement is that an ExecutionHandler is placed in the processing pipeline prior to this handler. This will ensure that each incoming message is processed in its own thread (although still guaranteed to be processed in the order of receipt).