package com.inspur.thrid;


/**
 * PBXUrlConstant
 * @author lihao16
 */
public class PBXConstant {

    public static final String PBX_TOKEN_KEY = "pbx" + ":" + "token";

    public static final String PBX_REFRESH_TOKEN_KEY = "pbx" + ":" + "refreshToken";

    public static final String PBX_TRANSFER_CODE_KEY = "pbx" + ":" + "transferCode:";

    public static final Integer EVENT_CALL_STATE_CHANGE = 30011;

    public static final Integer EVENT_NEW_CALL_RECORD = 30012;

    public static final Integer EVENT_DTMF = 30017;

    public static final String GET_TOKEN = "/openapi/v1.0/get_token";

    public static final String REFRESH_TOKEN = "/openapi/v1.0/refresh_token";

    public static final String CALL_TRANSFER = "/openapi/v1.0/call/transfer?access_token=";

    public static final String CALL_DIAL = "/openapi/v1.0/call/dial?access_token=";

    public static final String CALL_HANGUP = "/openapi/v1.0/call/hangup?access_token=";

    public static final String CALL_ADD_MEMBER = "/openapi/v1.0/call/add_member?access_token=";

    public static final String CALL_VOICE_RECORD = "/openapi/v1.0/call/record_start?access_token=";

    public static final String CALL_VOICE_RECORD_LIST = "/openapi/v1.0/recording/list?access_token=";

    public static final String CALL_VOICE_RECORD_DOWNLOAD = "/openapi/v1.0/recording/download?access_token=";

    public static final String WS_HEARTBEAT_RSP = "heartbeat response";

    public static final String CALL_STATUS_ANSWER = "ANSWER";

    public static final String CALL_STATUS_ANSWERED = "ANSWERED";

    public static final String CALL_STATUS_BYE = "BYE";

    public static final String IVR_CODE_SAFE_CODE = "6201";

    public static final String IVR_CODE_TRANSFER_CODE = "6202";

    public static final String IVR_CODE_ERROR_SAFE_CODE = "6203";

    public static final String IVR_CODE_ERROR_NO_PERSON_CODE = "6204";

    public static final String IVR_CODE_BUSY_CODE = "6205";


    /** 转接类型 盲转 */
    public static final String CALL_TRANSFER_TYPE_BIND = "blind";

    /** 转接类型 资讯转 */
    public static final String CALL_TRANSFER_TYPE_ATTENDED = "attended";

    public static final String PBX_ACTIVE_DEV = "dev";

    public static final String PBX_ACTIVE_PROD = "prod";



    /**
     *  30011  通话状态变更
     *  30012  新通话记录(通话结束后)
     *  30015  呼叫失败
     *  30016  来电呼叫请求
     *  30017  DTMF按键信息
     *  30018  语音播放结束
     */
    public static final String SUBSCRIBE_MESSAGE_LIST = "{\"topic_list\":[30011,30012,30017]}";
}
