Future<Reply> bgapi(String command, {String jobUuid: '', int timeoutSeconds: 10})

Send an arbitrary API command (non-blocking mode). Command reference can be found at; https://freeswitch.org/confluence/display/FREESWITCH/mod_commands

Source

Future<Reply> bgapi(String command,
    {String jobUuid: '', int timeoutSeconds: 10}) {
  final String commandString =
      '${command}' + (jobUuid.isNotEmpty ? '\nJob-UUID: ${jobUuid}' : '');

  return _subscribeAndSendCommand(
      'bgapi ${commandString}', new Duration(seconds: timeoutSeconds));
}