예제 #1
0
파일: Program.cs 프로젝트: d3en9/CallCRM
 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);
 }
예제 #2
0
파일: Program.cs 프로젝트: jgowdy/AsterNET
 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;
 }