package io.github.lunasaw.gbproxy.client.transmit.response.cancel;

import javax.sip.ResponseEvent;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Component;

/**
 * 默认CANCEL处理器实现
 *
 * @author luna
 */
@Slf4j
@Component
@ConditionalOnMissingBean(CancelProcessorHandler.class)
public class DefaultCancelProcessorHandler implements CancelProcessorHandler {

    @Override
    public void handleCancelResponse(String callId, int statusCode, ResponseEvent evt) {
        log.debug("处理CANCEL响应：callId = {}, statusCode = {}", callId, statusCode);
        // 默认实现为空，业务方可以根据需要重写此方法
    }
}