예제 #1
0
 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);
         }
 }
예제 #2
0
 private static void IncomingDtmfDigit(object sender, DtmfEventArgs eventArgs)
 {
     System.Console.WriteLine("Call {0} received {1} digits", eventArgs.CallId, eventArgs.Digit);
 }
예제 #3
0
 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);
         }
 }