private void LinphoneWrapper_RegistrationStateChangedEvent(LinphoneRegistrationState state) { switch (state) { case LinphoneRegistrationState.LinphoneRegistrationProgress: ConnectState = ConnectState.Progress; break; case LinphoneRegistrationState.LinphoneRegistrationOk: ConnectState = ConnectState.Connected; PhoneConnectedEvent?.Invoke(); break; case LinphoneRegistrationState.LinphoneRegistrationCleared: ConnectState = ConnectState.Disconnected; PhoneDisconnectedEvent?.Invoke(); break; case LinphoneRegistrationState.LinphoneRegistrationFailed: LinphoneWrapper.DestroyPhone(); ErrorEvent?.Invoke(null, Error.RegisterFailed); break; case LinphoneRegistrationState.LinphoneRegistrationNone: default: break; } }
public void logger() { Core.ResetLogCollection(); Core.EnableLogCollection(LogCollectionState.Enabled); LinphoneWrapper.setNativeLogHandler(); LoggingService.Instance.SetLogFile("Aeonix", "linphone_Log", 100000); LoggingService.Instance.LogLevel = LogLevel.Debug; }
public void MakeCallAndRecord(string uri, string filename, bool recordStartInstantly = false) { CheckError(); CheckError(filename, uri); if (LineState == LineState.Free) { LinphoneWrapper.MakeCallAndRecord(uri, filename, recordStartInstantly); } }
public void MakeCall(string uri) { CheckError(); CheckError(uri); if (LineState == LineState.Free) { LinphoneWrapper.MakeCall(uri); } }
public void ReceiveCallAndRecord(Call call, string filename, bool recordStartInstantly = false) { CheckError(call, filename); var linphoneCall = call as LinphoneCall; if (linphoneCall != null) { LinphoneWrapper.ReceiveCallAndRecord(linphoneCall, filename, recordStartInstantly); } }
public void HoldCall(Call call) { CheckError(call); var linphonceCall = call as LinphoneCall; if (linphonceCall != null) { LinphoneWrapper.HoldCall(linphonceCall); } }
public void ResumeCall(Call call) { CheckError(call); var linphoneCall = call as LinphoneCall; if (linphoneCall != null) { LinphoneWrapper.ResumeCall(linphoneCall); } }
public void SendDTMFs(Call call, string dtmfs) { CheckError(call, dtmfs); var linphoneCall = call as LinphoneCall; if (linphoneCall != null) { LinphoneWrapper.SendDTMFs(linphoneCall, dtmfs); } }
public void TerminateCall(Call call) { CheckError(call); var linphoneCall = call as LinphoneCall; if (linphoneCall != null) { LinphoneWrapper.TerminateCall(linphoneCall); } }
public void TransferCall(Call call, string redirectURI) { CheckError(call, redirectURI); var linphoneCall = call as LinphoneCall; if (linphoneCall != null) { LinphoneWrapper.TransferCall(linphoneCall, redirectURI); } }
public void StartRecording(Call call) { CheckError(call); var linphoneCall = call as LinphoneCall; if (linphoneCall != null) { LinphoneWrapper.StartRecording(linphoneCall); } }
public App(string rc_path = null) { LinphoneWrapper.setNativeLogHandler(); LinphoneCore = LinphoneBase.Instance.linphoneCore; coreListener = LinphoneBase.Instance.coreListener; var page = new NavigationPage(new components.Login()); page.BarBackgroundColor = Color.Brown; page.BarTextColor = Color.White; MainPage = page; //MainPage = new components.navBar(); }
public App(string rc_path = null) { LinphoneWrapper.setNativeLogHandler(); Core.SetLogLevelMask(0xFF); CoreListener listener = Factory.Instance.CreateCoreListener(); listener.OnGlobalStateChanged = OnGlobal; LinphoneCore = Factory.Instance.CreateCore(listener, rc_path, null); LinphoneCore.NetworkReachable = true; MainPage = new MainPage(); }
public SoftphoneBase(Account account) { Account = account ?? throw new LinphoneException("Softphone requires as Account to make calls!"); LinphoneWrapper = new LinphoneWrapper(); }
public void SetRingbackSound(string filename) { CheckError(); CheckError(filename); LinphoneWrapper.SetRingbackSound(filename); }
public void SetIncomingRingSound(string filename) { CheckError(); CheckError(filename); LinphoneWrapper.SetIncomingRingSound(filename); }
public void SendMessage(string to, string message) { CheckError(); CheckError(to, message); LinphoneWrapper.SendMessage(to, message); }