NET_DVR_SIP_CFG_V50

SIP (Session Initiation Protocol) parameter structure.

Structure Definition

struct{
  DWORD             dwSize;
  BYTE              byEnableAutoLogin;
  BYTE              byLoginStatus;
  BYTE              byRes1[2];
  NET_DVR_IPADDR    stuServerIP;
  WORD              wServerPort;
  BYTE              byRes2[2];
  BYTE              byUserName[NAME_LEN/*32*/];
  BYTE              byPassWord[PASSWD_LEN/*16*/];
  BYTE              byLocalNo[MAX_NUMBER_LEN/*32*/];
  BYTE              byDispalyName[MAX_NAME_LEN/*128*/];
  WORD              wLocalPort;
  BYTE              byLoginCycle;
  BYTE              byRes3;
  BYTE              bySIPServerDomain[MAX_DOMAIN_NAME/*64*/];
  NET_DVR_IPADDR    stuSTUNServerIP;
  BYTE              bySTUNServerDomain[MAX_DOMAIN_NAME/*64*/];
  WORD              wSTUNServerPort;
  BYTE              byRes4[2]
  NET_DVR_IPADDR    stuProxyServerIP;
  BYTE              byProxyServerDomain[MAX_DOMAIN_NAME/*64*/];
  WORD              wProxyServerPort;
  BYTE              byNetWork;
  BYTE              byRes5;
  BYTE              byCalledTargetName[NET_SDK_MAX_CALLEDTARGET_NAME/*32*/];
  BYTE              byRes[224];
}NET_DVR_SIP_CFG_V50, *LPNET_DVR_SIP_CFG_V50;

Members

dwSize

Structure size.

byEnableAutoLogin

Whether to enable registering automatically: 0-disable, 1-enable.

byLoginStatus

Login status: 0-unregistered,1-registered. This parameter can only be obtained.

byRes1

Reserved, set to 0.

stuServerIP

IP address of the SIP server.

wServerPort

Port No. of the SIP server.

byRes2

Reserved, set to 0.

byUserName

User name.

byPassWord

Password.

byLocalNo

Local No.

byDispalyName

Displayed name.

wLocalPort

Local port.

byLoginCycle

Registration period, value range: [1, 99], unit: minute.

byRes3

Reserved, set to 0.

bySIPServerDomain

SIP server domain name

Domain name of the SIP server. Only one member of stuServerIP and bySIPServerDomain should be configured; if both are configured, stuServerIP will be preferred.

stuSTUNServerIP

IP address of the STUN server.

bySTUNServerDomain

Domain name of the STUN server.

wSTUNServerPort

Port No. of the STUN server.

byRes4

Reserved, set to 0.

stuProxyServerIP

IP address of the proxy server.

byProxyServerDomain

Domain name of the proxy server. Only one member of stuProxyServerIP and byProxyServerDomain should be configured; if both are configured, the stuProxyServerIP will be preferred.

wProxyServerPort

Port No. of the proxy server.

byNetWork

Network type: 0-invalid, 1-wired network 1, 2-wired network 2, 3-wireless network. If this member is set to wired network, only the wired network will be used no matter whether the wireless network is normal or not; if this member is set to wireless network, only the wireless network will be used.

byRes5

Reserved, set to 0.

byCalledTargetName

User name of the called person.

byRes

Reserved, set to 0.