mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
moving phpmod in esl to use swig2.0 which fixes the few issues when you reswig
This commit is contained in:
@@ -6,10 +6,9 @@ if ($argc > 1) {
|
||||
array_shift($argv);
|
||||
$command = sprintf('%s', implode(' ', $argv));
|
||||
printf("Command to run is: %s\n", $command);
|
||||
|
||||
$sock = new ESLconnection('localhost', '8021', 'ClueCon');
|
||||
$res = $sock->api($command);
|
||||
printf("%s\n", $res->getBody());
|
||||
$esl = new eslConnection('127.0.0.1', '8021', 'ClueCon');
|
||||
$e = $esl->api("$command");
|
||||
print $e->getBody();
|
||||
} else {
|
||||
printf("ERROR: You Need To Pass A Command\nUsage:\n\t%s <command>", $argv[0]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user