void tsInterface_TransferCall(object sender, WOSI.IVR.IML.TransferEventArgs e) { TelecomScriptInterface tsInterface = (TelecomScriptInterface)sender; if (e.UseBridge) { // Bridge the call with an outbound call if (MakeOutboundCall(tsInterface, e.TransferTo, "", -1, false, false)) { tsInterface.ScriptProcessor.StartProcessing(tsInterface, telecomProvider, dataProvider); } else { tsInterface.IMLInterpreter.SignalTransferFailure(); } } else if (!e.IsExtension) { // If the call is a call to telephone number, blind transfer it telecomProvider.TransferCall(tsInterface.LineNumber, e.TransferTo); tsInterface.IMLInterpreter.SignalEventCallback(e.EventToken); } else { TransferToExtension(e.TransferTo, tsInterface, false); tsInterface.IMLInterpreter.SignalEventCallback(e.EventToken); } }
void imlInterp_TransferCall(object sender, WOSI.IVR.IML.TransferEventArgs e) { if (TransferCall != null) { LoggingService.AddLogEntry(LogLevel.Basic, "(Line " + lineNumber + ") Transferring call to " + WOSI.Utilities.StringUtils.FormatPhoneNumber(e.TransferTo), false); TransferCall(this, e); } }