PHP ESL

Status
Not open for further replies.

Stelios

New Member
Sep 24, 2017
28
1
3
45
Hi,

There is any simple way we activate PHP ESL on Debial ?
So I will be to us the api?

For example I would like to run this script:
<?php

require_once('ESL.php');

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());
} else {
printf("ERROR: You Need To Pass A Command\nUsage:\n\t%s <command>", $argv[0]);
}

?>
 

sohaib

New Member
May 29, 2019
4
0
1
34
hi, were you able to complete this task? i am also searching for this but couldn't get any help on internet. All documents and "How To" related to Freeswitch only.
 
Status
Not open for further replies.