mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
change api to return event on filter command
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12488 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -26,7 +26,17 @@ for(;;) {
|
||||
|
||||
printf "Connected call %s, from %s\n", $uuid, $info->getHeader("caller-caller-id-number");
|
||||
|
||||
$con->sendRecv("myevents");
|
||||
$e = $con->filter("unique-id", $uuid);
|
||||
if ($e) {
|
||||
print $e->serialize();
|
||||
} else {
|
||||
printf("WTF?\n");
|
||||
}
|
||||
|
||||
$con->events("plain", "all");
|
||||
|
||||
|
||||
#$con->sendRecv("myevents");
|
||||
$con->execute("answer");
|
||||
$con->execute("playback", "/ram/swimp.raw");
|
||||
|
||||
|
Reference in New Issue
Block a user