private void btnPersonalConferencePhoneNumbers_Click(object sender, EventArgs e) { rainbowBubbles.PersonalConferenceGetPhoneNumbers(callback => { if (callback.Result.Success) { PersonalConferencePhoneNumbers instantMeetingPhoneNumbers = callback.Data; List <ConferencePhoneNumber> listNear; List <ConferencePhoneNumber> listOthers; int nbNear = 0; int nbOthers = 0; //get list of near phones listNear = instantMeetingPhoneNumbers.NearEndUser; if ((listNear != null) && (listNear.Count > 0)) { nbNear = listNear.Count; foreach (ConferencePhoneNumber phone in listNear) { log.LogDebug("[PersonalConferenceGetPhoneNumbers] - Near phone number:[{0}]", phone.ToString()); } } else { log.LogDebug("[PersonalConferenceGetPhoneNumbers] - there is no phone near near the end user"); } //get other list of phones listOthers = instantMeetingPhoneNumbers.Others; if ((listOthers != null) && (listOthers.Count > 0)) { nbOthers = listOthers.Count; foreach (ConferencePhoneNumber phone in listOthers) { log.LogDebug("[PersonalConferenceGetPhoneNumbers] - Other phone number:[{0}]", phone.ToString()); } } else { log.LogDebug("[PersonalConferenceGetPhoneNumbers] - there is no other phone numner ..."); } AddStateLine(String.Format("Audio phone numbers found: NbNear:[{0}] - NbOthers:[{1}]", nbNear, nbOthers)); } else { AddStateLine("Pb to get audio phone numbers ..."); log.LogDebug("Pb to get audio phone numbers - error:[{0}]", Util.SerializeSdkError(callback.Result)); } }); }