云客服-对话转接后请求(inaction=11):请求消息样例

时间:2024-09-24 14:46:23

请求消息样例

  • 如果呼叫转移成功,接入方先发起如下请求。
{
    "userid": "1528780879-9581",
    "inaction": 11,
    "inparams": {
        "call_id": "1528780879-9581",
        "call_dst_id": "10086", 
        "begin_trans": "2018090407:16:24",
        "end_trans": "2018090407:20:24",
        "trans_result":"0",
        "input": "",
        "inter_idx": "1"
    },
   "extparams": {
        "transin_data":"95,22714,0,,1,1,,test_gdj_01005"
    }
}

在收到ODFS的响应后,则再次发起如下请求。

{
    "userid": "1528780879-9581",
    "inaction": 11,
    "inparams": {
        "call_id": "1528780879-9581",
        "call_dst_id": "10086", 
        "begin_trans": "2018090407:16:24",
        "end_trans": "2018090407:20:24",
        "trans_result":"0",
        "input": "hangup",
        "inter_idx": "1"
    },
   "extparams": {
        "transin_data":"95,22714,0,,1,1,,test_gdj_01005"
    }
}

收到请求后,ODFS侧则再次返回拆线响应,接入方侧不需再调用ODFS侧接口,整个呼叫转移动作完成。

  • 如果呼叫转移失败

    传入上述参数后, 可能收到ODFS返回 outaction=9/10/11 类型的返回(由业务逻辑决定)

support.huaweicloud.com/api-ccfs-cec/cec_07_2017.html