/// <summary> /// Handle incoming av call from the avmcu. /// </summary> /// <param name="imCall">IM call.</param> public void HandleIncomingDialOutCall(AudioVideoCall avCall) { lock (syncRoot) { if (this.callAnchor != null) { this.callAnchor.ProcessIncomingDialOutCall(avCall); } else { try { Console.WriteLine("No pending estalblishment process. Declining call"); this.logger.Log("No pending estalblishment process. Declining call"); avCall.Decline(); } catch (RealTimeException rte) { Console.WriteLine("Decline failed with {0}", rte); this.logger.Log("Decline failed with {0}", rte); } catch (InvalidOperationException ioe) { Console.WriteLine("Decline failed with {0}", ioe); this.logger.Log("Decline failed with {0}", ioe); } } } }
internal void HandleIncomingMcuDialOut(AudioVideoCall incomingCall) { try { incomingCall.Decline(); } catch (InvalidOperationException) { } }