mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-07 04:03:53 +00:00
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16520 d0543943-73ff-0310-b7d9-9358b9ac24b2
24 lines
621 B
C#
24 lines
621 B
C#
using System;
|
|
|
|
namespace ManagedEslTest
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
// Connect to FreeSWITCH
|
|
ESLconnection eslConnection = new ESLconnection("localhost", "8021", "ClueCon");
|
|
// We want all Events (probably will want to change this depending on your needs)
|
|
eslConnection.SendRecv("event plain ALL");
|
|
|
|
|
|
// Grab Events until process is killed
|
|
while (eslConnection.Connected() == 1)
|
|
{
|
|
ESLevent eslEvent = eslConnection.RecvEvent();
|
|
Console.WriteLine(eslEvent.Serialize(String.Empty));
|
|
}
|
|
}
|
|
}
|
|
}
|