mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 22:08:33 +00:00
add disconnect method and check in ivrd
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12724 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
bed82b98a6
commit
7e9db269dd
14 files changed
+280
-11
No files matched your search
Executable
+21
@@ -0,0 +1,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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user