Send an arbitrary API command (blocking mode). Command reference can be found at; https://freeswitch.org/confluence/display/FREESWITCH/mod_commands
Source
Future<Response> api(String command, {int timeoutSeconds: 10}) {
Completer<Response> completer = new Completer<Response>();
_apiJobQueue.addLast(completer);
return _sendSerializedCommand(
'api $command', completer, new Duration(seconds: timeoutSeconds));
}