]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Add dump_events.pl script
authorMichael S Collins <msc@freeswitch.org>
Wed, 11 Jul 2012 18:10:24 +0000 (11:10 -0700)
committerMichael S Collins <msc@freeswitch.org>
Wed, 11 Jul 2012 18:10:24 +0000 (11:10 -0700)
libs/esl/perl/dump_events.pl [new file with mode: 0755]

diff --git a/libs/esl/perl/dump_events.pl b/libs/esl/perl/dump_events.pl
new file mode 100755 (executable)
index 0000000..7ed018e
--- /dev/null
@@ -0,0 +1,12 @@
+#!/usr/bin/perl
+require ESL;
+
+my $command = shift;
+my $args = join(" ", @ARGV);
+
+my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon");
+$con->events("plain","all");
+while ( $con->connected() ) {
+    my $e = $con->recvEventTimed(0);
+    print $e->serialize;
+}