public void OnDtmfDigit(DtmfRecieved e) { lock (_lock) if (_activeCalls.ContainsKey(e.Id) && _activeCalls[e.Id] != null) { var ea = new DtmfEventArgs(_activeCalls[e.Id], e.Digit); IncomingDtmfDigit(this, ea); } }
private static void IncomingDtmfDigit(object sender, DtmfEventArgs eventArgs) { System.Console.WriteLine("Call {0} received {1} digits", eventArgs.CallId, eventArgs.Digit); }