From ba5322f6c0ede4d570fb4baebe35e6d66dcde0ac Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 20 Feb 2009 16:54:08 +0000 Subject: [PATCH] change example git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12181 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/esl/perl/single_command.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/esl/perl/single_command.pl b/libs/esl/perl/single_command.pl index 795351d0f4..ab75888309 100644 --- a/libs/esl/perl/single_command.pl +++ b/libs/esl/perl/single_command.pl @@ -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();