]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
change example
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 20 Feb 2009 16:54:08 +0000 (16:54 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 20 Feb 2009 16:54:08 +0000 (16:54 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12181 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/esl/perl/single_command.pl

index 795351d0f451384144d497b24f380c03ace20ac8..ab75888309f3722d718b1b8f5c8fbd656a26896a 100644 (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();