mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-12 23:40:04 +00:00
Add dump_events.pl script
This commit is contained in:
parent
3375c39c02
commit
fbfa31d2d1
12
libs/esl/perl/dump_events.pl
Executable file
12
libs/esl/perl/dump_events.pl
Executable file
@ -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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user