package com.xinda.sip.handler.res;

import com.xinda.sip.handler.IResHandler;
import com.xinda.sip.server.IGBListener;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.sip.ResponseEvent;
import java.text.ParseException;
@Slf4j
@Component
public class CancelResHandler implements InitializingBean,IResHandler {
    @Autowired
    private IGBListener sipListener;

    @Override
    public void processMsg(ResponseEvent evt) throws ParseException {

    }

    @Override
    public void afterPropertiesSet() throws Exception {
        String method = "CANCEL";
        sipListener.addResponseProcessor(method,this);
    }
}
