123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- /*
- * callcomm.h
- *
- * Created on: 2021年12月8日
- * Author: Admin
- */
- #ifndef JNI_CALL_CALLCOMM_H_
- #define JNI_CALL_CALLCOMM_H_
- #include "zkcalldefine.h"
- #include "netspeed.h"
- #include <stdint.h>
- #define TCP_PORT 0x4321
- #define UDP_PORT 0x6877
- const int MEDIA_UDP_PORT = 0x6877;
- #define MSG_INTERCOM_NORMAL 0x1000
- #define MSG_INTERCOM_CALL 0x1001
- #define MSG_INTERCOM_RINGING 0x1002
- #define MSG_INTERCOM_ACCEPT 0x1003
- #define MSG_INTERCOM_HANGUP 0x1004
- #define MSG_INTERCOM_BUSY 0x1005
- #define MSG_INTERCOM_TIMEOUT 0x1006
- #define MSG_INTERCOM_UNLOCK 0x1007
- #define MSG_INTERCOM_CALLELEVATOR 0x1009
- #define MSG_INTERCOM_MESSAGE 0x10000008
- typedef struct {
- int uCmd;
- char chip[24];
- char chParam[64];
- } INTERCOM_MSG, *LPINTERCOM_MSG;
- #define AUDIO_PACKAGE 0//音频
- #define VIDEO_PACKAGE 1//视频
- #define CHECK_PACKAGE 2//暂时不用,检测包
- #define MAX_PACKAGE_LEN (64*1024)//音视频数据最大长度
- typedef struct {
- int vtype; //0:audio 1 video
- int packageid;
- int losttype;
- int len;
- unsigned char data[MAX_PACKAGE_LEN];
- } TRANS_PACKAGE, *LPTRANS_PACKAGE;
- typedef void (*callStatuscallback)(E_CALL_STATUS status, const void* arg);
- typedef struct {
- char devtype[32];
- uint32_t msgtype;
- uint32_t msglen;
- } PCMSG_Head;
- typedef struct {
- PCMSG_Head Head;
- char msgbuf[250];
- } PCMSG;
- #endif /* JNI_CALL_CALLCOMM_H_ */
|