ESL Mangaged examples and solution file for esl.dll

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16353 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West
2010-01-18 04:30:48 +00:00
parent 0968912cfd
commit 108c17718a
7 changed files with 483 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
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));
}
}
}
}