radvision H.323 中cmUserInput相关操作

来源:互联网 发布:淘宝产业链 编辑:程序博客网 时间:2024/06/05 18:03
相关函数有:
   cmUserInputBuildAlphanumeric();//构造数据
   cmUserInputBuildNonStandard(); //构造数据
   cmCallSendUserInput();         //发送数据

我们可以通过使用cmUserInput相关函数来发送协议栈本身不支持的操作,通过在UserInput中的结构cmUserInputData的Alphanumeric字段,可以构造自己的结构,通过这个结构来传送一些自定义的信令,
具体过程:

cmUserInputData uid;
RvChar strBuf[10];
RvPvtNodeId msgId;
RvStatus status;
 
strBuf[0] = 0x27; /* Start Escape character - tag indication
of GeneralString*/

strBuf[1] = 4; /* Length of the actual string - in this case
4 bytes */

strBuf[2] = '1';
strBuf[3] = '2';
strBuf[4] = '3';
strBuf[5] = '4';
 
uid.data = strBuf;
uid.length = 6;
 
/* Build the userInput message */
msgId = cmUserInputBuildAlphanumeric(hApp, &uid);
 
/* Send the UII */
status = cmCallSendUserInput(hsCall, msgId);
 
if ((status == RV_ERROR_DESTRUCTED) || (status ==
RV_ERROR_NULLPTR))
    pvtDelete(hVal, msgId);


在上边的代码中,是通过向Alphanumeric字段段填充一个数组,我们可以在这个数组上进行相应的扩充,如果我们对这个数据结构化,设定长度为N,然后分别定义各个序号单元的含义,就可以发送自定义的信令了,而且不要太多的工作,协议栈对这个userinput信令的完好支持,可以省去很多的工作.

阅读(388) | 评论(0) | 转发(0) |
0

上一篇:再次被VS08折磨~ CString 转换 std::string

下一篇:windonws中vc的调试输出手段

相关热门文章
  • linux 常见服务端口
  • 什么是shell
  • linux socket的bug??
  • linux的线程是否受到了保护?...
  • 一个适用于windows和linux的抓...
  • debian7系统与ATI X2300显卡...
  • ubuntu sysklogd之配置文件介...
  • 自己用的ubuntu环境搭建(一)...
  • linux 学习心得
  • 用户输入操作和数据的显示...
给主人留下些什么吧!~~
原创粉丝点击