C# Class CgwMonitorManage.T28181.SipStackAdapter

显示文件 Open project: eSDK/esdk_Cgw

Public Properties

Property Type Description
isRefreshSucess bool

Public Methods

Method Description
GetDeviceList ( string serverSignalGateway, string deviceID ) : void

获取系统设备列表

IVS_NETSOURCE_UnInit ( ) : IVS_NETSOURCE_RESULT

释放所有实况通道,释放NETSOURCE资源

PtzControl ( string deviceID, string ptzCmd, string controlPriority ) : EM_SIP_RESULT

云台控制

SIP_SDK_ACK ( int iResponseID ) : EM_SIP_RESULT

该函数用于发送SIP ACK消息

SIP_SDK_BYE ( int responseID ) : EM_SIP_RESULT

该函数用于发送SIP BYE消息

SIP_SDK_INVITE ( string pAccount, string pSdpBody, int &iResponseID, StringBuilder strRemoteBody ) : EM_SIP_RESULT

该函数用于发送SIP Invite消息

SIP_SDK_Init ( string pSipAccount, string pSipPasswd, string pLocalID, int iLocalPort, string pServerSipAccount, string pServerSipPasswd, string pServerID, string pServerIP, int iServerPort, EventHandler receivedAllDevice ) : EM_SIP_RESULT

初始化SIP协议栈

SIP_SDK_REGISTER ( ) : EM_SIP_RESULT

该函数用于发送SIP Register消息

SIP_SDK_Subscribe ( string pBody ) : EM_SIP_RESULT

该函数用于发送subscribe消息

SIP_SDK_UNREGISTER ( ) : EM_SIP_RESULT

该函数用于发送SIP UNRegister消息,有效期为0

SIP_SDK_UnInit ( ) : EM_SIP_RESULT

该函数用于去初始化SIP协议栈

SetNetDataCallBack ( NET_DATA_CALLBACK dataCallBack, NET_EXCEPTION_CALLBACK netExceptionCallBack ) : void

设置实况rtp数据包回调

StartKeepalive ( string serverID, string localID ) : void

sip保活

StartRecvStream ( string cameraCode, string domain, string iSipPort, string localPort ) : UInt32

打开通道,开始接收实况RTP数据流

StopRecvStream ( UInt32 channel ) : EM_SIP_RESULT

停止接收rtp数据包

Private Methods

Method Description
GetAllDeviceNum ( string strBody ) : int

获取查询出的设备总数

GetDeviceItem ( string strBody ) : void

根据消息体解析设备

GetInviteRemoteIPPort ( string strRemoteBody, string &pRemoteSendStreamIp, uint &uiRemoteSendStreamVideoPort ) : void

获取收流的IP、端口

GetLocalIP ( string serverIP, int serverPort, int localPort ) : string

获取本机ip

IVS_NETSOURCE_FreeChannel ( UInt32 channel ) : IVS_NETSOURCE_RESULT

释放NETSOURCE通道资源

SIP_CallBackMethod ( int msgType, int eventType, StringBuilder pPara ) : EM_SIP_RESULT

消息通知回调函数结果

SIP_CallBackThreadMethod ( object oPara ) : void

线程解析返回的xml

Method Details

GetDeviceList() public method

获取系统设备列表
public GetDeviceList ( string serverSignalGateway, string deviceID ) : void
serverSignalGateway string 要查询的域编码
deviceID string 要查询的根设备编码
return void

IVS_NETSOURCE_UnInit() public method

释放所有实况通道,释放NETSOURCE资源
public IVS_NETSOURCE_UnInit ( ) : IVS_NETSOURCE_RESULT
return IVS_NETSOURCE_RESULT

PtzControl() public method

云台控制
public PtzControl ( string deviceID, string ptzCmd, string controlPriority ) : EM_SIP_RESULT
deviceID string 设备编码
ptzCmd string
controlPriority string 优先级
return EM_SIP_RESULT

SIP_SDK_ACK() public method

该函数用于发送SIP ACK消息
public SIP_SDK_ACK ( int iResponseID ) : EM_SIP_RESULT
iResponseID int iResponseID
return EM_SIP_RESULT

SIP_SDK_BYE() public method

该函数用于发送SIP BYE消息
public SIP_SDK_BYE ( int responseID ) : EM_SIP_RESULT
responseID int
return EM_SIP_RESULT

SIP_SDK_INVITE() public method

该函数用于发送SIP Invite消息
public SIP_SDK_INVITE ( string pAccount, string pSdpBody, int &iResponseID, StringBuilder strRemoteBody ) : EM_SIP_RESULT
pAccount string 对方账号
pSdpBody string SDP描述字符串
iResponseID int
strRemoteBody StringBuilder
return EM_SIP_RESULT

SIP_SDK_Init() public method

初始化SIP协议栈
public SIP_SDK_Init ( string pSipAccount, string pSipPasswd, string pLocalID, int iLocalPort, string pServerSipAccount, string pServerSipPasswd, string pServerID, string pServerIP, int iServerPort, EventHandler receivedAllDevice ) : EM_SIP_RESULT
pSipAccount string
pSipPasswd string
pLocalID string
iLocalPort int
pServerSipAccount string
pServerSipPasswd string
pServerID string
pServerIP string
iServerPort int
receivedAllDevice EventHandler
return EM_SIP_RESULT

SIP_SDK_REGISTER() public method

该函数用于发送SIP Register消息
public SIP_SDK_REGISTER ( ) : EM_SIP_RESULT
return EM_SIP_RESULT

SIP_SDK_Subscribe() public method

该函数用于发送subscribe消息
public SIP_SDK_Subscribe ( string pBody ) : EM_SIP_RESULT
pBody string
return EM_SIP_RESULT

SIP_SDK_UNREGISTER() public method

该函数用于发送SIP UNRegister消息,有效期为0
public SIP_SDK_UNREGISTER ( ) : EM_SIP_RESULT
return EM_SIP_RESULT

SIP_SDK_UnInit() public method

该函数用于去初始化SIP协议栈
public SIP_SDK_UnInit ( ) : EM_SIP_RESULT
return EM_SIP_RESULT

SetNetDataCallBack() public method

设置实况rtp数据包回调
public SetNetDataCallBack ( NET_DATA_CALLBACK dataCallBack, NET_EXCEPTION_CALLBACK netExceptionCallBack ) : void
dataCallBack NET_DATA_CALLBACK
netExceptionCallBack NET_EXCEPTION_CALLBACK
return void

StartKeepalive() public method

sip保活
public StartKeepalive ( string serverID, string localID ) : void
serverID string
localID string
return void

StartRecvStream() public method

打开通道,开始接收实况RTP数据流
public StartRecvStream ( string cameraCode, string domain, string iSipPort, string localPort ) : UInt32
cameraCode string 摄像机编码
domain string
iSipPort string
localPort string
return System.UInt32

StopRecvStream() public method

停止接收rtp数据包
public StopRecvStream ( UInt32 channel ) : EM_SIP_RESULT
channel System.UInt32
return EM_SIP_RESULT

Property Details

isRefreshSucess public_oe property

刷新设备成功
public bool isRefreshSucess
return bool