C# Класс VATRP.Core.Services.LinphoneService

Наследование: ILinphoneService
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AcceptCall() публичный Метод

public AcceptCall ( IntPtr callPtr, bool rttEnabled, bool muteMicrophone, bool muteSpeaker, bool enableVideo ) : void
callPtr System.IntPtr
rttEnabled bool
muteMicrophone bool
muteSpeaker bool
enableVideo bool
Результат void

AcceptRTTProposition() публичный Метод

public AcceptRTTProposition ( IntPtr callPtr ) : void
callPtr System.IntPtr
Результат void

CanMakeVideoCall() публичный Метод

public CanMakeVideoCall ( ) : bool
Результат bool

CardDAVSync() публичный Метод

public CardDAVSync ( ) : void
Результат void

ClearAccountInformation() публичный Метод

public ClearAccountInformation ( ) : void
Результат void

ClearProxyInformation() публичный Метод

public ClearProxyInformation ( ) : void
Результат void

DeclineCall() публичный Метод

public DeclineCall ( IntPtr callPtr ) : void
callPtr System.IntPtr
Результат void

EnableEchoCancellation() публичный Метод

public EnableEchoCancellation ( bool enable ) : void
enable bool
Результат void

EnableSelfView() публичный Метод

public EnableSelfView ( bool enable ) : void
enable bool
Результат void

EnableVideo() публичный Метод

public EnableVideo ( bool enable, bool automaticallyInitiate, bool automaticallyAccept ) : void
enable bool
automaticallyInitiate bool
automaticallyAccept bool
Результат void

FillCodecsList() публичный Метод

public FillCodecsList ( VATRP.Core.Model.VATRPAccount account, CodecType codecType ) : void
account VATRP.Core.Model.VATRPAccount
codecType CodecType
Результат void

FindCall() публичный Метод

public FindCall ( IntPtr callPtr ) : VATRP.Core.Model.VATRPCall
callPtr System.IntPtr
Результат VATRP.Core.Model.VATRPCall

GetAVPFMode() публичный Метод

public GetAVPFMode ( ) : int
Результат int

GetAvailableCameras() публичный Метод

public GetAvailableCameras ( ) : List
Результат List

GetAvailableMicrophones() публичный Метод

public GetAvailableMicrophones ( ) : List
Результат List

GetAvailableSpeakers() публичный Метод

public GetAvailableSpeakers ( ) : List
Результат List

GetCallAudioStats() публичный Метод

public GetCallAudioStats ( IntPtr callPtr, VATRP.LinphoneWrapper.Structs.LinphoneCallStats &stat ) : void
callPtr System.IntPtr
stat VATRP.LinphoneWrapper.Structs.LinphoneCallStats
Результат void

GetCallParams() публичный Метод

public GetCallParams ( IntPtr callPtr ) : IntPtr
callPtr System.IntPtr
Результат System.IntPtr

GetCallVideoStats() публичный Метод

public GetCallVideoStats ( IntPtr callPtr, VATRP.LinphoneWrapper.Structs.LinphoneCallStats &stat ) : void
callPtr System.IntPtr
stat VATRP.LinphoneWrapper.Structs.LinphoneCallStats
Результат void

GetFrameRate() публичный Метод

public GetFrameRate ( IntPtr curparams, bool sending ) : float
curparams System.IntPtr
sending bool
Результат float

GetHistorySize() публичный Метод

public GetHistorySize ( string username ) : int
username string
Результат int

GetMediaEncryption() публичный Метод

public GetMediaEncryption ( IntPtr curparams ) : LinphoneMediaEncryption
curparams System.IntPtr
Результат LinphoneMediaEncryption

GetMessageStatus() публичный Метод

public GetMessageStatus ( IntPtr messagePtr ) : LinphoneChatMessageState
messagePtr System.IntPtr
Результат LinphoneChatMessageState

GetSelectedCamera() публичный Метод

public GetSelectedCamera ( ) : VATRP.Core.Model.VATRPDevice
Результат VATRP.Core.Model.VATRPDevice

GetSelectedMicrophone() публичный Метод

public GetSelectedMicrophone ( ) : VATRP.Core.Model.VATRPDevice
Результат VATRP.Core.Model.VATRPDevice

GetSelectedSpeakers() публичный Метод

public GetSelectedSpeakers ( ) : VATRP.Core.Model.VATRPDevice
Результат VATRP.Core.Model.VATRPDevice

GetTechnicalSupportInfo() публичный Метод

public GetTechnicalSupportInfo ( ) : string
Результат string

GetTechnicalSupportInfo() публичный Метод

public GetTechnicalSupportInfo ( IntPtr callPtr ) : string
callPtr System.IntPtr
Результат string

GetUsedAudioCodec() публичный Метод

public GetUsedAudioCodec ( IntPtr callParams ) : string
callParams System.IntPtr
Результат string

GetUsedPorts() публичный Метод

public GetUsedPorts ( int &sipPort, int &rtpPort ) : void
sipPort int
rtpPort int
Результат void

GetUsedVideoCodec() публичный Метод

public GetUsedVideoCodec ( IntPtr callParams ) : string
callParams System.IntPtr
Результат string

GetVideoSize() публичный Метод

public GetVideoSize ( IntPtr curparams, bool sending ) : VATRP.LinphoneWrapper.Structs.MSVideoSizeDef
curparams System.IntPtr
sending bool
Результат VATRP.LinphoneWrapper.Structs.MSVideoSizeDef

IsCallMuted() публичный Метод

public IsCallMuted ( ) : bool
Результат bool

IsCameraEnabled() публичный Метод

public IsCameraEnabled ( IntPtr callPtr ) : bool
callPtr System.IntPtr
Результат bool

IsEchoCancellationEnabled() публичный Метод

public IsEchoCancellationEnabled ( ) : bool
Результат bool

IsRttEnabled() публичный Метод

public IsRttEnabled ( IntPtr callPtr ) : bool
callPtr System.IntPtr
Результат bool

IsSelfViewEnabled() публичный Метод

public IsSelfViewEnabled ( ) : bool
Результат bool

IsSpeakerMuted() публичный Метод

public IsSpeakerMuted ( ) : bool
Результат bool

IsVideoEnabled() публичный Метод

public IsVideoEnabled ( VATRP.Core.Model.VATRPCall call ) : bool
call VATRP.Core.Model.VATRPCall
Результат bool

LinphoneService() публичный Метод

public LinphoneService ( VATRP.Core.Services.ServiceManagerBase manager ) : System
manager VATRP.Core.Services.ServiceManagerBase
Результат System

LoadChatRoom() публичный Метод

public LoadChatRoom ( VATRPChat chat ) : void
chat VATRPChat
Результат void

LockCalls() публичный Метод

public LockCalls ( ) : void
Результат void

MakeCall() публичный Метод

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
Результат void

MarkChatAsRead() публичный Метод

public MarkChatAsRead ( IntPtr cr ) : void
cr System.IntPtr
Результат void

MuteCall() публичный Метод

public MuteCall ( bool muteCall ) : void
muteCall bool
Результат void

MuteSpeaker() публичный Метод

public MuteSpeaker ( bool muteSpeaker ) : void
muteSpeaker bool
Результат void

PauseCall() публичный Метод

public PauseCall ( IntPtr callPtr ) : void
callPtr System.IntPtr
Результат void

PlayDtmf() публичный Метод

public PlayDtmf ( char dtmf, int duration ) : void
dtmf char
duration int
Результат void

Register() публичный Метод

public Register ( ) : bool
Результат bool

RemoveCardDAVAuthInfo() публичный Метод

public RemoveCardDAVAuthInfo ( ) : void
Результат void

ResumeCall() публичный Метод

public ResumeCall ( IntPtr callPtr ) : void
callPtr System.IntPtr
Результат void

SendCameraSwtichAsInfo() публичный Метод

public SendCameraSwtichAsInfo ( IntPtr callPtr, bool muteCamera ) : void
callPtr System.IntPtr
muteCamera bool
Результат void

SendChar() публичный Метод

public SendChar ( uint charCode, IntPtr callPtr, IntPtr &chatRoomPtr, IntPtr &chatMsgPtr ) : bool
charCode uint
callPtr System.IntPtr
chatRoomPtr System.IntPtr
chatMsgPtr System.IntPtr
Результат bool

SendChatMessage() публичный Метод

public SendChatMessage ( VATRPChat chat, string message, IntPtr &msgPtr ) : bool
chat VATRPChat
message string
msgPtr System.IntPtr
Результат bool

SendDtmf() публичный Метод

public SendDtmf ( VATRP.Core.Model.VATRPCall call, char dtmf ) : void
call VATRP.Core.Model.VATRPCall
dtmf char
Результат void

SendDtmfAsSipInfo() публичный Метод

public SendDtmfAsSipInfo ( bool use_info ) : void
use_info bool
Результат void

SendDtmfAsTelephoneEvent() публичный Метод

public SendDtmfAsTelephoneEvent ( bool use_te ) : void
use_te bool
Результат void

SendRTTProposition() публичный Метод

public SendRTTProposition ( IntPtr callPtr ) : void
callPtr System.IntPtr
Результат void

SetAVPFMode() публичный Метод

public SetAVPFMode ( LinphoneAVPFMode mode, LinphoneRTCPMode rtcpMode ) : void
mode LinphoneAVPFMode
rtcpMode LinphoneRTCPMode
Результат void

SetCamera() публичный Метод

public SetCamera ( string deviceId ) : void
deviceId string
Результат void

SetCaptureDevice() публичный Метод

public SetCaptureDevice ( string deviceId ) : void
deviceId string
Результат void

SetIncomingCallRingingTimeout() публичный Метод

public SetIncomingCallRingingTimeout ( int timeout ) : void
timeout int
Результат void

SetPreviewVideoSize() публичный Метод

public SetPreviewVideoSize ( MSVideoSize w, MSVideoSize h ) : void
w MSVideoSize
h MSVideoSize
Результат void

SetPreviewVideoSizeByName() публичный Метод

public SetPreviewVideoSizeByName ( string name ) : bool
name string
Результат bool

SetRTCPFeedback() публичный Метод

public SetRTCPFeedback ( string settingValue ) : void
settingValue string
Результат void

SetSpeakers() публичный Метод

public SetSpeakers ( string deviceId ) : void
deviceId string
Результат void

SetVideoCallWindowHandle() публичный Метод

public SetVideoCallWindowHandle ( IntPtr hWnd, bool reset = false ) : void
hWnd System.IntPtr
reset bool
Результат void

SetVideoPreviewWindowHandle() публичный Метод

public SetVideoPreviewWindowHandle ( IntPtr hWnd, bool reset = false ) : void
hWnd System.IntPtr
reset bool
Результат void

Start() публичный Метод

public Start ( ) : bool
Результат bool

Start() публичный Метод

public Start ( bool enableLogs ) : bool
enableLogs bool
Результат bool

Stop() публичный Метод

public Stop ( ) : bool
Результат bool

SubscribeForVideoMWI() публичный Метод

public SubscribeForVideoMWI ( string newVideoMailUri ) : bool
newVideoMailUri string
Результат bool

SwitchSelfVideo() публичный Метод

public SwitchSelfVideo ( ) : void
Результат void

TerminateCall() публичный Метод

public TerminateCall ( IntPtr callPtr, string message ) : bool
callPtr System.IntPtr
message string
Результат bool

ToggleMute() публичный Метод

public ToggleMute ( ) : void
Результат void

ToggleVideo() публичный Метод

public ToggleVideo ( bool enableVideo, IntPtr callPtr ) : void
enableVideo bool
callPtr System.IntPtr
Результат void

UnlockCalls() публичный Метод

public UnlockCalls ( ) : void
Результат void

Unregister() публичный Метод

public Unregister ( bool deferred ) : bool
deferred bool
Результат bool

UpdateAdvancedParameters() публичный Метод

public UpdateAdvancedParameters ( VATRP.Core.Model.VATRPAccount account ) : bool
account VATRP.Core.Model.VATRPAccount
Результат bool

UpdateCodecsAccessibility() публичный Метод

public UpdateCodecsAccessibility ( VATRP.Core.Model.VATRPAccount account, CodecType codecType ) : bool
account VATRP.Core.Model.VATRPAccount
codecType CodecType
Результат bool

UpdateMediaSettings() публичный Метод

public UpdateMediaSettings ( VATRP.Core.Model.VATRPAccount account ) : void
account VATRP.Core.Model.VATRPAccount
Результат void

UpdateNativeCodecs() публичный Метод

public UpdateNativeCodecs ( VATRP.Core.Model.VATRPAccount account, CodecType codecType ) : bool
account VATRP.Core.Model.VATRPAccount
codecType CodecType
Результат bool

UpdateNetworkingParameters() публичный Метод

public UpdateNetworkingParameters ( VATRP.Core.Model.VATRPAccount account ) : bool
account VATRP.Core.Model.VATRPAccount
Результат bool

UpdatePrivateDataPath() публичный Метод

public UpdatePrivateDataPath ( ) : void
Результат void

configureFmtpCodec() публичный Метод

public configureFmtpCodec ( ) : void
Результат void