C# Class VATRP.Core.Services.LinphoneService

Inheritance: ILinphoneService
显示文件 Open project: VTCSecureLLC/ace-windows

Public Methods

Method Description
AcceptCall ( IntPtr callPtr, bool rttEnabled, bool muteMicrophone, bool muteSpeaker, bool enableVideo ) : void
AcceptRTTProposition ( IntPtr callPtr ) : void
CanMakeVideoCall ( ) : bool
CardDAVSync ( ) : void
ClearAccountInformation ( ) : void
ClearProxyInformation ( ) : void
DeclineCall ( IntPtr callPtr ) : void
EnableEchoCancellation ( bool enable ) : void
EnableSelfView ( bool enable ) : void
EnableVideo ( bool enable, bool automaticallyInitiate, bool automaticallyAccept ) : void
FillCodecsList ( VATRP.Core.Model.VATRPAccount account, CodecType codecType ) : void
FindCall ( IntPtr callPtr ) : VATRP.Core.Model.VATRPCall
GetAVPFMode ( ) : int
GetAvailableCameras ( ) : List
GetAvailableMicrophones ( ) : List
GetAvailableSpeakers ( ) : List
GetCallAudioStats ( IntPtr callPtr, VATRP.LinphoneWrapper.Structs.LinphoneCallStats &stat ) : void
GetCallParams ( IntPtr callPtr ) : IntPtr
GetCallVideoStats ( IntPtr callPtr, VATRP.LinphoneWrapper.Structs.LinphoneCallStats &stat ) : void
GetFrameRate ( IntPtr curparams, bool sending ) : float
GetHistorySize ( string username ) : int
GetMediaEncryption ( IntPtr curparams ) : LinphoneMediaEncryption
GetMessageStatus ( IntPtr messagePtr ) : LinphoneChatMessageState
GetSelectedCamera ( ) : VATRP.Core.Model.VATRPDevice
GetSelectedMicrophone ( ) : VATRP.Core.Model.VATRPDevice
GetSelectedSpeakers ( ) : VATRP.Core.Model.VATRPDevice
GetTechnicalSupportInfo ( ) : string
GetTechnicalSupportInfo ( IntPtr callPtr ) : string
GetUsedAudioCodec ( IntPtr callParams ) : string
GetUsedPorts ( int &sipPort, int &rtpPort ) : void
GetUsedVideoCodec ( IntPtr callParams ) : string
GetVideoSize ( IntPtr curparams, bool sending ) : VATRP.LinphoneWrapper.Structs.MSVideoSizeDef
IsCallMuted ( ) : bool
IsCameraEnabled ( IntPtr callPtr ) : bool
IsEchoCancellationEnabled ( ) : bool
IsRttEnabled ( IntPtr callPtr ) : bool
IsSelfViewEnabled ( ) : bool
IsSpeakerMuted ( ) : bool
IsVideoEnabled ( VATRP.Core.Model.VATRPCall call ) : bool
LinphoneService ( VATRP.Core.Services.ServiceManagerBase manager ) : System
LoadChatRoom ( VATRPChat chat ) : void
LockCalls ( ) : void
MakeCall ( string destination, bool videoOn, bool rttEnabled, bool muteMicrophone, bool muteSpeaker, bool enableVideo, string geolocation ) : void
MarkChatAsRead ( IntPtr cr ) : void
MuteCall ( bool muteCall ) : void
MuteSpeaker ( bool muteSpeaker ) : void
PauseCall ( IntPtr callPtr ) : void
PlayDtmf ( char dtmf, int duration ) : void
Register ( ) : bool
RemoveCardDAVAuthInfo ( ) : void
ResumeCall ( IntPtr callPtr ) : void
SendCameraSwtichAsInfo ( IntPtr callPtr, bool muteCamera ) : void
SendChar ( uint charCode, IntPtr callPtr, IntPtr &chatRoomPtr, IntPtr &chatMsgPtr ) : bool
SendChatMessage ( VATRPChat chat, string message, IntPtr &msgPtr ) : bool
SendDtmf ( VATRP.Core.Model.VATRPCall call, char dtmf ) : void
SendDtmfAsSipInfo ( bool use_info ) : void
SendDtmfAsTelephoneEvent ( bool use_te ) : void
SendRTTProposition ( IntPtr callPtr ) : void
SetAVPFMode ( LinphoneAVPFMode mode, LinphoneRTCPMode rtcpMode ) : void
SetCamera ( string deviceId ) : void
SetCaptureDevice ( string deviceId ) : void
SetIncomingCallRingingTimeout ( int timeout ) : void
SetPreviewVideoSize ( MSVideoSize w, MSVideoSize h ) : void
SetPreviewVideoSizeByName ( string name ) : bool
SetRTCPFeedback ( string settingValue ) : void
SetSpeakers ( string deviceId ) : void
SetVideoCallWindowHandle ( IntPtr hWnd, bool reset = false ) : void
SetVideoPreviewWindowHandle ( IntPtr hWnd, bool reset = false ) : void
Start ( ) : bool
Start ( bool enableLogs ) : bool
Stop ( ) : bool
SubscribeForVideoMWI ( string newVideoMailUri ) : bool
SwitchSelfVideo ( ) : void
TerminateCall ( IntPtr callPtr, string message ) : bool
ToggleMute ( ) : void
ToggleVideo ( bool enableVideo, IntPtr callPtr ) : void
UnlockCalls ( ) : void
Unregister ( bool deferred ) : bool
UpdateAdvancedParameters ( VATRP.Core.Model.VATRPAccount account ) : bool
UpdateCodecsAccessibility ( VATRP.Core.Model.VATRPAccount account, CodecType codecType ) : bool
UpdateMediaSettings ( VATRP.Core.Model.VATRPAccount account ) : void
UpdateNativeCodecs ( VATRP.Core.Model.VATRPAccount account, CodecType codecType ) : bool
UpdateNetworkingParameters ( VATRP.Core.Model.VATRPAccount account ) : bool
UpdatePrivateDataPath ( ) : void
configureFmtpCodec ( ) : void

Private Methods

Method Description
DoUnregister ( ) : void
GetMd5Hash ( string user, string password, string realm ) : string
LinphoneMainLoop ( ) : void
LoadAudioCodecs ( ) : void
LoadVideoCodecs ( ) : void
OnCallLogUpdated ( IntPtr lc, IntPtr newcl ) : void
OnCallStateChanged ( IntPtr lc, IntPtr callPtr, LinphoneCallState cstate, string message ) : void
OnCallStatsUpdated ( IntPtr lc, IntPtr callPtr, IntPtr statsPtr ) : void
OnCardDAVContactCreated ( IntPtr list, IntPtr lf ) : void
OnCardDAVContactRemoved ( IntPtr list, IntPtr lf ) : void
OnCardDAVContactUpdated ( IntPtr list, IntPtr newFriend, IntPtr oldFriend ) : void
OnCardDAVSyncChanged ( IntPtr list, LinphoneFriendListSyncStatus status, IntPtr msgPtr ) : void
OnGlobalStateChanged ( IntPtr lc, LinphoneGlobalState gstate, string message ) : void
OnInfoEventReceived ( IntPtr lc, IntPtr callPtr, IntPtr msgPtr ) : void
OnIsComposingReceived ( IntPtr lc, IntPtr chatPtr ) : void
OnLinphoneLog ( IntPtr domain, OrtpLogLevel lev, IntPtr fmt, IntPtr args ) : void
OnMessageReceived ( IntPtr lc, IntPtr roomPtr, IntPtr message ) : void
OnMessageStatusChanged ( IntPtr msgPtr, LinphoneChatMessageState state ) : void
OnNetworkReachable ( IntPtr lc, bool reachable ) : void
OnNotifyEventReceived ( IntPtr lc, IntPtr eventPtr, string notified_event, IntPtr bodyPtr ) : void
OnRegistrationChanged ( IntPtr lc, IntPtr cfg, LinphoneRegistrationState cstate, string message ) : void
SetTimeout ( System.Action callback, int miliseconds ) : void
SetTimeout ( int miliseconds ) : void
UpdateMediaEncryption ( ) : void
setFmtpSetting ( IntPtr ptPtr, string sendFmtp, string recvFmtp ) : void

Method Details

AcceptCall() public method

public AcceptCall ( IntPtr callPtr, bool rttEnabled, bool muteMicrophone, bool muteSpeaker, bool enableVideo ) : void
callPtr System.IntPtr
rttEnabled bool
muteMicrophone bool
muteSpeaker bool
enableVideo bool
return void

AcceptRTTProposition() public method

public AcceptRTTProposition ( IntPtr callPtr ) : void
callPtr System.IntPtr
return void

CanMakeVideoCall() public method

public CanMakeVideoCall ( ) : bool
return bool

CardDAVSync() public method

public CardDAVSync ( ) : void
return void

ClearAccountInformation() public method

public ClearAccountInformation ( ) : void
return void

ClearProxyInformation() public method

public ClearProxyInformation ( ) : void
return void

DeclineCall() public method

public DeclineCall ( IntPtr callPtr ) : void
callPtr System.IntPtr
return void

EnableEchoCancellation() public method

public EnableEchoCancellation ( bool enable ) : void
enable bool
return void

EnableSelfView() public method

public EnableSelfView ( bool enable ) : void
enable bool
return void

EnableVideo() public method

public EnableVideo ( bool enable, bool automaticallyInitiate, bool automaticallyAccept ) : void
enable bool
automaticallyInitiate bool
automaticallyAccept bool
return void

FillCodecsList() public method

public FillCodecsList ( VATRP.Core.Model.VATRPAccount account, CodecType codecType ) : void
account VATRP.Core.Model.VATRPAccount
codecType CodecType
return void

FindCall() public method

public FindCall ( IntPtr callPtr ) : VATRP.Core.Model.VATRPCall
callPtr System.IntPtr
return VATRP.Core.Model.VATRPCall

GetAVPFMode() public method

public GetAVPFMode ( ) : int
return int

GetAvailableCameras() public method

public GetAvailableCameras ( ) : List
return List

GetAvailableMicrophones() public method

public GetAvailableMicrophones ( ) : List
return List

GetAvailableSpeakers() public method

public GetAvailableSpeakers ( ) : List
return List

GetCallAudioStats() public method

public GetCallAudioStats ( IntPtr callPtr, VATRP.LinphoneWrapper.Structs.LinphoneCallStats &stat ) : void
callPtr System.IntPtr
stat VATRP.LinphoneWrapper.Structs.LinphoneCallStats
return void

GetCallParams() public method

public GetCallParams ( IntPtr callPtr ) : IntPtr
callPtr System.IntPtr
return System.IntPtr

GetCallVideoStats() public method

public GetCallVideoStats ( IntPtr callPtr, VATRP.LinphoneWrapper.Structs.LinphoneCallStats &stat ) : void
callPtr System.IntPtr
stat VATRP.LinphoneWrapper.Structs.LinphoneCallStats
return void

GetFrameRate() public method

public GetFrameRate ( IntPtr curparams, bool sending ) : float
curparams System.IntPtr
sending bool
return float

GetHistorySize() public method

public GetHistorySize ( string username ) : int
username string
return int

GetMediaEncryption() public method

public GetMediaEncryption ( IntPtr curparams ) : LinphoneMediaEncryption
curparams System.IntPtr
return LinphoneMediaEncryption

GetMessageStatus() public method

public GetMessageStatus ( IntPtr messagePtr ) : LinphoneChatMessageState
messagePtr System.IntPtr
return LinphoneChatMessageState

GetSelectedCamera() public method

public GetSelectedCamera ( ) : VATRP.Core.Model.VATRPDevice
return VATRP.Core.Model.VATRPDevice

GetSelectedMicrophone() public method

public GetSelectedMicrophone ( ) : VATRP.Core.Model.VATRPDevice
return VATRP.Core.Model.VATRPDevice

GetSelectedSpeakers() public method

public GetSelectedSpeakers ( ) : VATRP.Core.Model.VATRPDevice
return VATRP.Core.Model.VATRPDevice

GetTechnicalSupportInfo() public method

public GetTechnicalSupportInfo ( ) : string
return string

GetTechnicalSupportInfo() public method

public GetTechnicalSupportInfo ( IntPtr callPtr ) : string
callPtr System.IntPtr
return string

GetUsedAudioCodec() public method

public GetUsedAudioCodec ( IntPtr callParams ) : string
callParams System.IntPtr
return string

GetUsedPorts() public method

public GetUsedPorts ( int &sipPort, int &rtpPort ) : void
sipPort int
rtpPort int
return void

GetUsedVideoCodec() public method

public GetUsedVideoCodec ( IntPtr callParams ) : string
callParams System.IntPtr
return string

GetVideoSize() public method

public GetVideoSize ( IntPtr curparams, bool sending ) : VATRP.LinphoneWrapper.Structs.MSVideoSizeDef
curparams System.IntPtr
sending bool
return VATRP.LinphoneWrapper.Structs.MSVideoSizeDef

IsCallMuted() public method

public IsCallMuted ( ) : bool
return bool

IsCameraEnabled() public method

public IsCameraEnabled ( IntPtr callPtr ) : bool
callPtr System.IntPtr
return bool

IsEchoCancellationEnabled() public method

public IsEchoCancellationEnabled ( ) : bool
return bool

IsRttEnabled() public method

public IsRttEnabled ( IntPtr callPtr ) : bool
callPtr System.IntPtr
return bool

IsSelfViewEnabled() public method

public IsSelfViewEnabled ( ) : bool
return bool

IsSpeakerMuted() public method

public IsSpeakerMuted ( ) : bool
return bool

IsVideoEnabled() public method

public IsVideoEnabled ( VATRP.Core.Model.VATRPCall call ) : bool
call VATRP.Core.Model.VATRPCall
return bool

LinphoneService() public method

public LinphoneService ( VATRP.Core.Services.ServiceManagerBase manager ) : System
manager VATRP.Core.Services.ServiceManagerBase
return System

LoadChatRoom() public method

public LoadChatRoom ( VATRPChat chat ) : void
chat VATRPChat
return void

LockCalls() public method

public LockCalls ( ) : void
return void

MakeCall() public method

public MakeCall ( string destination, bool videoOn, bool rttEnabled, bool muteMicrophone, bool muteSpeaker, bool enableVideo, string geolocation ) : void
destination string
videoOn bool
rttEnabled bool
muteMicrophone bool
muteSpeaker bool
enableVideo bool
geolocation string
return void

MarkChatAsRead() public method

public MarkChatAsRead ( IntPtr cr ) : void
cr System.IntPtr
return void

MuteCall() public method

public MuteCall ( bool muteCall ) : void
muteCall bool
return void

MuteSpeaker() public method

public MuteSpeaker ( bool muteSpeaker ) : void
muteSpeaker bool
return void

PauseCall() public method

public PauseCall ( IntPtr callPtr ) : void
callPtr System.IntPtr
return void

PlayDtmf() public method

public PlayDtmf ( char dtmf, int duration ) : void
dtmf char
duration int
return void

Register() public method

public Register ( ) : bool
return bool

RemoveCardDAVAuthInfo() public method

public RemoveCardDAVAuthInfo ( ) : void
return void

ResumeCall() public method

public ResumeCall ( IntPtr callPtr ) : void
callPtr System.IntPtr
return void

SendCameraSwtichAsInfo() public method

public SendCameraSwtichAsInfo ( IntPtr callPtr, bool muteCamera ) : void
callPtr System.IntPtr
muteCamera bool
return void

SendChar() public method

public SendChar ( uint charCode, IntPtr callPtr, IntPtr &chatRoomPtr, IntPtr &chatMsgPtr ) : bool
charCode uint
callPtr System.IntPtr
chatRoomPtr System.IntPtr
chatMsgPtr System.IntPtr
return bool

SendChatMessage() public method

public SendChatMessage ( VATRPChat chat, string message, IntPtr &msgPtr ) : bool
chat VATRPChat
message string
msgPtr System.IntPtr
return bool

SendDtmf() public method

public SendDtmf ( VATRP.Core.Model.VATRPCall call, char dtmf ) : void
call VATRP.Core.Model.VATRPCall
dtmf char
return void

SendDtmfAsSipInfo() public method

public SendDtmfAsSipInfo ( bool use_info ) : void
use_info bool
return void

SendDtmfAsTelephoneEvent() public method

public SendDtmfAsTelephoneEvent ( bool use_te ) : void
use_te bool
return void

SendRTTProposition() public method

public SendRTTProposition ( IntPtr callPtr ) : void
callPtr System.IntPtr
return void

SetAVPFMode() public method

public SetAVPFMode ( LinphoneAVPFMode mode, LinphoneRTCPMode rtcpMode ) : void
mode LinphoneAVPFMode
rtcpMode LinphoneRTCPMode
return void

SetCamera() public method

public SetCamera ( string deviceId ) : void
deviceId string
return void

SetCaptureDevice() public method

public SetCaptureDevice ( string deviceId ) : void
deviceId string
return void

SetIncomingCallRingingTimeout() public method

public SetIncomingCallRingingTimeout ( int timeout ) : void
timeout int
return void

SetPreviewVideoSize() public method

public SetPreviewVideoSize ( MSVideoSize w, MSVideoSize h ) : void
w MSVideoSize
h MSVideoSize
return void

SetPreviewVideoSizeByName() public method

public SetPreviewVideoSizeByName ( string name ) : bool
name string
return bool

SetRTCPFeedback() public method

public SetRTCPFeedback ( string settingValue ) : void
settingValue string
return void

SetSpeakers() public method

public SetSpeakers ( string deviceId ) : void
deviceId string
return void

SetVideoCallWindowHandle() public method

public SetVideoCallWindowHandle ( IntPtr hWnd, bool reset = false ) : void
hWnd System.IntPtr
reset bool
return void

SetVideoPreviewWindowHandle() public method

public SetVideoPreviewWindowHandle ( IntPtr hWnd, bool reset = false ) : void
hWnd System.IntPtr
reset bool
return void

Start() public method

public Start ( ) : bool
return bool

Start() public method

public Start ( bool enableLogs ) : bool
enableLogs bool
return bool

Stop() public method

public Stop ( ) : bool
return bool

SubscribeForVideoMWI() public method

public SubscribeForVideoMWI ( string newVideoMailUri ) : bool
newVideoMailUri string
return bool

SwitchSelfVideo() public method

public SwitchSelfVideo ( ) : void
return void

TerminateCall() public method

public TerminateCall ( IntPtr callPtr, string message ) : bool
callPtr System.IntPtr
message string
return bool

ToggleMute() public method

public ToggleMute ( ) : void
return void

ToggleVideo() public method

public ToggleVideo ( bool enableVideo, IntPtr callPtr ) : void
enableVideo bool
callPtr System.IntPtr
return void

UnlockCalls() public method

public UnlockCalls ( ) : void
return void

Unregister() public method

public Unregister ( bool deferred ) : bool
deferred bool
return bool

UpdateAdvancedParameters() public method

public UpdateAdvancedParameters ( VATRP.Core.Model.VATRPAccount account ) : bool
account VATRP.Core.Model.VATRPAccount
return bool

UpdateCodecsAccessibility() public method

public UpdateCodecsAccessibility ( VATRP.Core.Model.VATRPAccount account, CodecType codecType ) : bool
account VATRP.Core.Model.VATRPAccount
codecType CodecType
return bool

UpdateMediaSettings() public method

public UpdateMediaSettings ( VATRP.Core.Model.VATRPAccount account ) : void
account VATRP.Core.Model.VATRPAccount
return void

UpdateNativeCodecs() public method

public UpdateNativeCodecs ( VATRP.Core.Model.VATRPAccount account, CodecType codecType ) : bool
account VATRP.Core.Model.VATRPAccount
codecType CodecType
return bool

UpdateNetworkingParameters() public method

public UpdateNetworkingParameters ( VATRP.Core.Model.VATRPAccount account ) : bool
account VATRP.Core.Model.VATRPAccount
return bool

UpdatePrivateDataPath() public method

public UpdatePrivateDataPath ( ) : void
return void

configureFmtpCodec() public method

public configureFmtpCodec ( ) : void
return void