Tange Cloud for Device
Rev.333 |
探鸽双向呼叫设备开发接口. 更多...
#include "TgCloudApi.h"
结构体 | |
struct | CalleeEx |
被叫 更多... | |
类型定义 | |
typedef void(* | RTMSGCALLBACK) (const RTMSG_t *msg, int len, struct CalleeEx *callee) |
被叫端传过来的命令数据. | |
typedef int(* | TGVDPCALLBACK) (int status, struct CalleeEx *pCallee) |
呼叫/通话状态回调. | |
枚举 | |
enum | CALLEETYPE |
呼叫对象类型 更多... | |
enum | EVDPCALLSTATE |
呼叫/通话状态 更多... | |
函数 | |
int | TgVdpInit (const char *cfg_path, struct TciCB *cbs) |
VDP 初始化. | |
void | TgVdpSetCmdHandler (TGCMDHANDLER func) |
设置p2p命令处理回调, 代替 TciSetCmdHandler(). | |
int | TgVdpStart (int isBound, const char *uuid) |
开启VDP 服务. | |
void | TgVdpStop () |
停止VDP服务, 释放资源 会调用 TciStop()/TciCleanup() | |
int | TgVdpCallEx (struct CalleeEx *callees, int size, int timeout, TGVDPCALLBACK cb) |
呼叫. | |
int | TgVdpHangup () |
结束呼叫或通话. | |
int | TgVdpAccept (struct InCallInfo *) |
被叫接听, 等同于 TciAcceptInCall(). | |
int | TgVdpReject (struct InCallInfo *) |
被叫拒接, 等同于 TciRejectInCall(). | |
探鸽双向呼叫设备开发接口.
在文件 vdp.h 中定义.