public async Task AddPhoneAudio(string sipName, string phoneNumber) { if (string.IsNullOrEmpty(sipName) && string.IsNullOrEmpty(phoneNumber)) { return; } PhoneAudioInvitation invitaion = new Models.PhoneAudioInvitation() { To = string.IsNullOrEmpty(sipName) ? null : sipName, PhoneNumber = string.IsNullOrEmpty(phoneNumber) ? null : phoneNumber, OperationId = Guid.NewGuid().ToString() }; await HttpService.Post(Links.addPhoneAudio, invitaion); }
public async Task StartPhoneAudio(string phoneNumber, string to, string subject, Importance importance) { if (string.IsNullOrEmpty(phoneNumber) || string.IsNullOrEmpty(to) || string.IsNullOrEmpty(subject)) { return; } PhoneAudioInvitation invitation = new Models.PhoneAudioInvitation() { PhoneNumber = phoneNumber, To = to, Subject = subject, Importance = importance, OperationId = Guid.NewGuid().ToString(), ThreadId = Guid.NewGuid().ToString() }; await HttpService.Post(Links.startPhoneAudio, invitation); }