internal PlayGetDigitsResult(ChannelEvent eventMessage, string channelVariable) : base(eventMessage) { Digits = eventMessage.GetVariable(channelVariable); TerminatorUsed = eventMessage.GetVariable("read_terminator_used"); Success = !string.IsNullOrEmpty(Digits); }
internal BridgeResult(ChannelEvent eventMessage) : base(eventMessage) { if (eventMessage != null) { Success = eventMessage.Headers.ContainsKey(HeaderNames.OtherLegUniqueId); ResponseText = eventMessage.GetVariable("DIALSTATUS"); if (Success) { BridgeUUID = eventMessage.Headers[HeaderNames.OtherLegUniqueId]; } } else { Success = false; ResponseText = "Aborted"; } }
public string GetVariable(string variableName) { return(lastEvent.GetVariable(variableName)); }