forked from Mirrors/freeswitch
let log and event work
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3165 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
776919d5fd
commit
d1965b701c
@ -224,8 +224,14 @@ sub handle_curses_input {
|
|||||||
} else {
|
} else {
|
||||||
#see if we got connected at some point
|
#see if we got connected at some point
|
||||||
if(defined($sockets{'localhost'})) {
|
if(defined($sockets{'localhost'})) {
|
||||||
|
my $cmd;
|
||||||
|
if ($input =~ /^log|^event/) {
|
||||||
|
$cmd = $input;
|
||||||
|
} else {
|
||||||
|
$cmd = "api $input";
|
||||||
|
}
|
||||||
#send the command
|
#send the command
|
||||||
$sockets{'localhost'}->put("api $input");
|
$sockets{'localhost'}->put($cmd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user