private void MainThread_OnVoiceMailStatus(BriaAPI.VoiceMailStatusEventArgs args) { // Advanced: If multiple SIP accounts are in use, each account can report messages waiting // individually. To support that, the application would need to maintain and // display information per account. This can in turn be extended to use with the // 'checkVoiceMail' facility so an account number can be passed along there. // // For this example we will just check if there are messages waiting on any account. bool messagesAreWaiting = false; foreach (BriaAPI.VoiceMailInfo voiceMailInfo in args.VoiceMailInfoList) { messagesAreWaiting |= voiceMailInfo.HasNewVoiceMail; } this.m_MessagesAreWaiting = messagesAreWaiting; UpdatePhoneState(); UpdateFunctionButtonStates(); }
private void OnVoiceMailStatus(object sender, BriaAPI.VoiceMailStatusEventArgs args) { this.BeginInvoke(onVoiceMailStatusDelegate, new Object[] { args }); }