public ArkePromptPlayer(ArkeCall arkeCall, ISipPromptApi sipPromptApi) { _arkeCall = arkeCall; _sipPromptApi = sipPromptApi; _promptQueue = new Queue <IPrompt>(); _languageData = LanguageData.English; }
public AsteriskLanguageSelectionPromptPlayer(ICall asteriskCall, ISipPromptApi sipPromptApi, ISipApiClient sipApiClient) { _asteriskCall = asteriskCall; _promptQueue = new Queue <IPrompt>(); _sipPromptApi = sipPromptApi; _sipApiClient = sipApiClient; _sipApiClient.OnPromptPlaybackFinishedEvent += HandlePromptFinishedEvent; }
public ArkeCall(ISipApiClient sipApiClient, ISipLineApi sipLineApi, ISipBridgingApi sipBridgeApi, ISipPromptApi sipPromptApi, IRecordingManager recordingmanager) { _sipApiClient = sipApiClient; _sipLineApi = sipLineApi; _sipBridgeApi = sipBridgeApi; _logFields = new Dictionary <string, string>(); _promptPlayer = new ArkePromptPlayer(this, sipPromptApi); _asteriskPhoneInputHandler = new AsteriskPhoneInputHandler(this, _promptPlayer); _asteriskRecordingManager = recordingmanager; _dslProcessor = new DslProcessor(this); _arkeBridgeFactory = new ArkeBridgeFactory(_sipBridgeApi); _callStateMachine = new CallStateMachine(this, _promptPlayer); _callStateMachine.SetupFiniteStateMachine(); LanguageSelectionPromptPlayer = new AsteriskLanguageSelectionPromptPlayer(this, sipPromptApi, sipApiClient); }
public ArkePromptPlayer(ArkeCall arkeCall, ISipPromptApi sipPromptApi) { _arkeCall = arkeCall; _sipPromptApi = sipPromptApi; _promptQueue = new Queue <IPrompt>(); }