Ejemplo n.º 1
0
 static void dam_Dial(object sender, DialEvent e)
 {
     Console.WriteLine(
         "Dial Event"
         + "\n\tCallerId\t" + e.CallerId
         + "\n\tCallerIdName\t" + e.CallerIdName
         + "\n\tDestination\t" + e.Destination
         + "\n\tDestUniqueId\t" + e.DestUniqueId
         + "\n\tSrc\t\t" + e.Src
         + "\n\tSrcUniqueId\t" + e.SrcUniqueId
         + "\n\tStatus\t" + e.DialStatus
         );
     if(!e.Channel.StartsWith("Local"))
     FillAndAddEventToDB(AsteriskEvent.DIAL_EVENT_CODE, e.Channel, e.DialStatus, e.CallerIdName, e.CallerIdNum, e.UniqueId, e.DateReceived, e.Destination);
 }
Ejemplo n.º 2
0
 static void dam_Dial(object sender, DialEvent e)
 {
     Console.WriteLine(
         "Dial Event"
         + "\n\tCallerId\t" + e.CallerId
         + "\n\tCallerIdName\t" + e.CallerIdName
         + "\n\tDestination\t" + e.Destination
         + "\n\tDestUniqueId\t" + e.DestUniqueId
         + "\n\tSrc\t\t" + e.Src
         + "\n\tSrcUniqueId\t" + e.SrcUniqueId
         );
     if (e != null && e.Destination != null && e.Destination.StartsWith(ORIGINATE_CHANNEL))
         transferChannel = e.Src;
 }