*/
public SmppConsumer(SmppEndpoint endpoint, SmppConfiguration config, Processor processor) {
super(endpoint, processor);
this.configuration = config;
this.internalSessionStateListener = new SessionStateListener() {
public void onStateChange(SessionState newState, SessionState oldState, Object source) {
if (configuration.getSessionStateListener() != null) {
configuration.getSessionStateListener().onStateChange(newState, oldState, source);
}