• 描述:
    此接口用于接收第三方终端的停止呼叫请求。

  • 第三方下发挂断请求URL
    api/OpenApi/ThirdStopTalking

  • 请求参数:

  • 请求示例:

    {
      "appid":"yme51ef06b32ac6cf1",
      "account":"xuguangshui1",
      "rand":"1",
      "key":"bcbde7aa27af7dcc",
      "eventNo":"2208191907148338",
      "type":"1",
      "sign":"0F2468A5820C383675E4E77FA82A7DCE"
    }
  • 返回示例:

    {
      "resultcode":1,
      "msg":"关闭对讲成功",
      "actionName":"stopIntercom",
      "data":""
    }
  • demo C#

    停止呼叫
    var callurl="第三方业务平台呼叫处理接口";
    var json = JsonConvert.SerializeObject(new
              {
                  userid = "1630583033426149",
                  method = "closecall",
                  deviceno = textBox1.Text.Trim(),
                  eventNo=eventNo
              });
    
              string res = httpcom.Post(callurl, json);
              if (!string.IsNullOrEmpty(res))
              {
                  dynamic dy = JsonConvert.DeserializeObject<dynamic>(res);
                  if (dy.code.ToString() == "1")
                  {
                      pgLiveSDK.DevClose(_iLiveInstID1);
                      pgLiveSDK.LiveClean(_iLiveInstID1);
                      _iLiveInstID1 = 0;
                  }
                }
作者:郭祥西  创建时间:2024-04-10 17:02
最后编辑:郭祥西  更新时间:2024-11-07 15:18