Esempio n. 1
0
        internal PlayGetDigitsResult(ChannelEvent eventMessage, string channelVariable) : base(eventMessage)
        {
            Digits = eventMessage.GetVariable(channelVariable);

            TerminatorUsed = eventMessage.GetVariable("read_terminator_used");

            Success = !string.IsNullOrEmpty(Digits);
        }
Esempio n. 2
0
        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";
            }
        }
Esempio n. 3
0
 public string GetVariable(string variableName)
 {
     return(lastEvent.GetVariable(variableName));
 }