private void RainbowTelephony_TelephonyStatusUpdated(object sender, Rainbow.Events.TelephonyStatusEventArgs e) { Boolean telephonyServiceEnabled = e.Enabled; String pbxVersion = ""; String vmPhoneNumber = ""; if (telephonyServiceEnabled) { // Get PBX Version PbxAgentInfo pbxAgentInfo = rainbowTelephony.GetPBXAgentInformation(); if (pbxAgentInfo != null) { pbxVersion = pbxAgentInfo.Version; } // Voice mail vmPhoneNumber = rainbowTelephony.GetVoiceMailPhoneNumber(); } // Update Form UpdateTelephonyService(telephonyServiceEnabled); UpdatePBXAgentVersion(pbxVersion); UpdateVoiceMailService(vmPhoneNumber); }