Logo

GitLab

Sign in

焦健 / CC-master

  • Back to Dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • CC-master
  • dep
  • freeswitch
  • patch
  • esl
  • test.pl
  • src
    79ad9e6c
    焦健 authored
    2018-05-08 15:18:01 +0800  
    Browse Code »
test.pl 338 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/usr/bin/perl
require ESL;
use Data::Dumper;

my $fd = fileno(STDIN);
my $con = new ESL::ESLconnection($fd);
my $info = $con->getInfo();

select STDERR;

print $info->serialize();

my $uuid = $info->getHeader("unique-id");

$con->execute("answer", "", $uuid);
$con->execute("playback", "/ram/swimp.raw", $uuid);


$con->disconnect();