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