UNPKG

ivr-tester

Version:

An automated testing framework for IVR call flows

24 lines (23 loc) 847 B
import { FilenameFactory } from "./filename/FilenameFactory"; import { Config } from "../../configuration/Config"; import { IvrTesterPlugin } from "../../plugins/IvrTesterPlugin"; import { TestSession } from "../../testRunner"; export interface RecorderConfig { outputPath: string; filename?: string | FilenameFactory; } export declare const mediaStreamRecorderPlugin: (config: Config) => IvrTesterPlugin; export declare class MediaStreamRecorder { private readonly testSession; private readonly config; private static readonly FILE_EXT; private writeStream; private readonly processMessageRef; private readonly closeRef; constructor(testSession: TestSession, config: RecorderConfig); private processMessage; private createFilename; private createFile; private writeToFile; private close; }