change example

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12181 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-02-20 16:54:08 +00:00
parent e3cf4c4a65
commit ba5322f6c0

View File

@ -1,6 +1,8 @@
require ESL;
my $command = join(" ", @ARGV);
my $command = shift;
my $args = join(" ", @ARGV);
my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon");
my $e = $con->sendRecv("api $command");
my $e = $con->api($command, $args);
print $e->getBody();