diff --git "a/callmanage2/\350\277\220\350\220\245-\346\225\260\346\215\256\346\216\250\351\200\201\345\222\214\345\233\236\350\260\203\346\216\245\345\217\243.md" "b/callmanage2/\350\277\220\350\220\245-\346\225\260\346\215\256\346\216\250\351\200\201\345\222\214\345\233\236\350\260\203\346\216\245\345\217\243.md" index e3f6bde..b254785 100644 --- "a/callmanage2/\350\277\220\350\220\245-\346\225\260\346\215\256\346\216\250\351\200\201\345\222\214\345\233\236\350\260\203\346\216\245\345\217\243.md" +++ "b/callmanage2/\350\277\220\350\220\245-\346\225\260\346\215\256\346\216\250\351\200\201\345\222\214\345\233\236\350\260\203\346\216\245\345\217\243.md" @@ -217,11 +217,25 @@ RequestBody: "teleNumber":"", // 用户电话 "teleEncodeNumber": "simo_test_20221009142217_7", // 加密后的号码 "teleServiceName": "默认", // 业务名称 - "customSessionId":"121231", "tags":"还款意愿:拒绝还款,逾期原因:忘记有借款,通话状态:本人接通", // BOT打的标签 + "customSessionId":"121231", // 自定义sessionId "callStatus": 1, // 1: 未接通, 4: 通话完成, 0: 已接通 - "callbackType": 1 // 1: 正常完成回调; 2: 短信通知 - + "callbackType": 1, // 1: 正常完成回调; 2: 短信通知 + "outboundSipStatus": 200, // 线路状态码 + "round": 2, // 对话轮数 + "diaTimeLen": 60000, // 通话时长, 单位ms + "userQuestSize": 3, // 用户提问次数 + "hangUpTime": 1644811085000, // 挂断时间 + "switchTurnOnTime": 1644811085000, // 接通时间 + "recordAudioUrl": "http://hw-gz44.heyqiwu.cn:60091/resource/media/audio/telephone_1644811084297_7704/telephone_1644811084297_7704.mp3", // 录音文件 + "dialogs":[ // 对话记录 + { + "timestame": 1644811085000, // 时间 + "text": "交游开始", // 对话文本 + "audioUrl": null, // 音频地址 + "position": 0 // 0:表示用户,1:表示bot + } + ] } ``` @@ -235,24 +249,6 @@ ResponseBody: } ``` -Example - -``` -curl --location --request POST 'http://hw-gz26.heyqiwu.cn:60013/test/callback' \ ---header 'App-Channel-Id: cuishou' \ ---header 'Timestamp: 1651919109374' \ ---header 'Authorization: 591a889c55e958cd59a05a596d5f5c8d' \ ---header 'Content-Type: application/json' \ ---data-raw '{ - "teleNumber":"", - "teleEncodeNumber": "simo_test_20221009142217_7", - "teleServiceName": "默认", - "tags":"还款意愿:拒绝还款,逾期原因:忘记有借款,通话状态:本人接通", - "customSessionId":"121231", - "callStatus": 1, -}' -``` - #### 外呼对话系统uid生成规则 ``` diff --git "a/outboundcall/\345\244\226\345\221\274-\345\244\226\351\203\250\346\234\215\345\212\241\350\260\203\347\224\250\346\226\207\346\241\243.md" "b/outboundcall/\345\244\226\345\221\274-\345\244\226\351\203\250\346\234\215\345\212\241\350\260\203\347\224\250\346\226\207\346\241\243.md" index fba7459..5cd17db 100644 --- "a/outboundcall/\345\244\226\345\221\274-\345\244\226\351\203\250\346\234\215\345\212\241\350\260\203\347\224\250\346\226\207\346\241\243.md" +++ "b/outboundcall/\345\244\226\345\221\274-\345\244\226\351\203\250\346\234\215\345\212\241\350\260\203\347\224\250\346\226\207\346\241\243.md" @@ -124,4 +124,57 @@ curl --location --request POST 'http://47.111.189.55:60012/out/tele/number/to/id "teleNumber":"19925432904", "teleServiceName":"默认" }' +``` + +#### ID转号码 + +URL: {基本地址}/out/tele/id/to/number + +METHOD: POST + +RequestHeaders: + +| key | description | +| :----------- | :------------ | +| Content-Type | application/json;charset=utf-8 | +| Timestamp | 请求时的时间戳,毫秒级 | +| Authorization | 签名, 将 appSecret + ":" + timestamp 字符串md5提取摘要 | +| App-Channel-Id | 渠道ID | + +RequestBody: + +```json +{ + "teleEncodeNumber":"qiwu_test_20221104114443_3", // 号码ID + "teleServiceName":"IMPORT_TEST" // 业务名 +} +``` + + +ResponseBody: + +```json +{ + "code": 1, // 1:表示查询成功; 其他表示失败 + "msg": "成功", + "data": { + "teleEncodeNumber": "qiwu_test_20221104114443_3", // 号码ID + "teleServiceName": "IMPORT_TEST", // 业务名 + "teleNumber": "13871940702" // 真实号码 + } +} +``` + +Example: + +``` +curl --location --request POST 'http://hw-gz3.heyqiwu.cn:60012/out/tele/id/to/number' \ +--header 'App-Channel-Id: qiwu-test' \ +--header 'Timestamp: 1670304976574' \ +--header 'Authorization: 1a25bcae0f4ada9e6fe5a565ec384b60' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "teleEncodeNumber":"qiwu_test_20221104114443_3", + "teleServiceName":"IMPORT_TEST" +}' ``` \ No newline at end of file