コード例 #1
0
ファイル: Program.cs プロジェクト: jgowdy/AsterNET
 private static void manager_HandleNewExtentEvent(object sender, NewExtenEvent e)
 {
     if (e.Context == "demoagiaction")
     {
         var playTtMonkeyAgiAction = new AgiAction(e.Channel, "EXEC playback tt-monkeys");
         //var answerAgiAction = new AgiAction(e.Channel, "STREAM FILE tt-monkeys"); // can also be used with other commands
         manager.SendAction(playTtMonkeyAgiAction, 30000);
     }
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: d3en9/CallCRM
 static void manager_IgnoreEvent(object sender, NewExtenEvent e)
 {
     // Ignore this event.
 }
コード例 #3
0
ファイル: Program.cs プロジェクト: jgowdy/AsterNET
 static void dam_NewExten(object sender, NewExtenEvent e)
 {
     Console.WriteLine(
         "New Extension Event"
         + "\n\tChannel\t\t" + e.Channel
         + "\n\tExtension\t" + e.Extension
         + "\n\tContext\t\t" + e.Context
         + "\n\tDateReceived\t" + e.DateReceived.ToString()
         + "\n\tPriority\t" + e.Priority.ToString()
         + "\n\tPrivilege\t" + e.Privilege
         + "\n\tUniqueId\t" + e.UniqueId
         + "\n\tAppData\t\t" + e.AppData
         + "\n\tApplication\t" + e.Application
         );
 }